All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christophe Roullier <christophe.roullier@st.com>
To: <mark.rutland@arm.com>, <mcoquelin.stm32@gmail.com>,
	<alexandre.torgue@st.com>, <peppe.cavallaro@st.com>
Cc: <devicetree@vger.kernel.org>,
	<linux-arm-kernel@lists.infradead.org>, <netdev@vger.kernel.org>,
	<christophe.roullier@st.com>, <andrew@lunn.ch>
Subject: [PATCH V2 5/8] ARM: dts: stm32: Add ethernet dwmac on stm32mp1
Date: Wed, 2 May 2018 16:18:40 +0200	[thread overview]
Message-ID: <1525270723-18241-6-git-send-email-christophe.roullier@st.com> (raw)
In-Reply-To: <1525270723-18241-1-git-send-email-christophe.roullier@st.com>

Add Ethernet support (Synopsys MAC IP 4.20a) on stm32mp1 SOC.
Enable feature supported by the stmmac driver, such as TSO.

Signed-off-by: Christophe Roullier <christophe.roullier@st.com>
---
 arch/arm/boot/dts/stm32mp157c.dtsi | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/arch/arm/boot/dts/stm32mp157c.dtsi b/arch/arm/boot/dts/stm32mp157c.dtsi
index 86421ba..79def3b 100644
--- a/arch/arm/boot/dts/stm32mp157c.dtsi
+++ b/arch/arm/boot/dts/stm32mp157c.dtsi
@@ -179,5 +179,35 @@
 			clocks = <&rcc USART1_K>;
 			status = "disabled";
 		};
+
+		stmmac_axi_config_0: stmmac-axi-config {
+			snps,wr_osr_lmt = <0x7>;
+			snps,rd_osr_lmt = <0x7>;
+			snps,blen = <0 0 0 0 16 8 4>;
+		};
+
+		ethernet0: ethernet@5800a000 {
+			compatible = "st,stm32mp1-dwmac", "snps,dwmac-4.20a";
+			reg = <0x5800a000 0x2000>;
+			reg-names = "stmmaceth";
+			interrupts-extended = <&intc GIC_SPI 61 IRQ_TYPE_NONE>;
+			interrupt-names = "macirq";
+			clock-names = "stmmaceth",
+				      "mac-clk-tx",
+				      "mac-clk-rx",
+				      "ethstp",
+				      "syscfg-clk";
+			clocks = <&rcc ETHMAC>,
+				 <&rcc ETHTX>,
+				 <&rcc ETHRX>,
+				 <&rcc ETHSTP>,
+				 <&rcc SYSCFG>;
+			st,syscon = <&syscfg 0x4>;
+			snps,mixed-burst;
+			snps,pbl = <2>;
+			snps,axi-config = <&stmmac_axi_config_0>;
+			snps,tso;
+			status = "disabled";
+		};
 	};
 };
-- 
1.9.1

WARNING: multiple messages have this Message-ID (diff)
From: Christophe Roullier <christophe.roullier@st.com>
To: mark.rutland@arm.com, mcoquelin.stm32@gmail.com,
	alexandre.torgue@st.com, peppe.cavallaro@st.com
Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	netdev@vger.kernel.org, christophe.roullier@st.com,
	andrew@lunn.ch
Subject: [PATCH V2 5/8] ARM: dts: stm32: Add ethernet dwmac on stm32mp1
Date: Wed, 2 May 2018 16:18:40 +0200	[thread overview]
Message-ID: <1525270723-18241-6-git-send-email-christophe.roullier@st.com> (raw)
In-Reply-To: <1525270723-18241-1-git-send-email-christophe.roullier@st.com>

Add Ethernet support (Synopsys MAC IP 4.20a) on stm32mp1 SOC.
Enable feature supported by the stmmac driver, such as TSO.

Signed-off-by: Christophe Roullier <christophe.roullier@st.com>
---
 arch/arm/boot/dts/stm32mp157c.dtsi | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/arch/arm/boot/dts/stm32mp157c.dtsi b/arch/arm/boot/dts/stm32mp157c.dtsi
index 86421ba..79def3b 100644
--- a/arch/arm/boot/dts/stm32mp157c.dtsi
+++ b/arch/arm/boot/dts/stm32mp157c.dtsi
@@ -179,5 +179,35 @@
 			clocks = <&rcc USART1_K>;
 			status = "disabled";
 		};
+
+		stmmac_axi_config_0: stmmac-axi-config {
+			snps,wr_osr_lmt = <0x7>;
+			snps,rd_osr_lmt = <0x7>;
+			snps,blen = <0 0 0 0 16 8 4>;
+		};
+
+		ethernet0: ethernet@5800a000 {
+			compatible = "st,stm32mp1-dwmac", "snps,dwmac-4.20a";
+			reg = <0x5800a000 0x2000>;
+			reg-names = "stmmaceth";
+			interrupts-extended = <&intc GIC_SPI 61 IRQ_TYPE_NONE>;
+			interrupt-names = "macirq";
+			clock-names = "stmmaceth",
+				      "mac-clk-tx",
+				      "mac-clk-rx",
+				      "ethstp",
+				      "syscfg-clk";
+			clocks = <&rcc ETHMAC>,
+				 <&rcc ETHTX>,
+				 <&rcc ETHRX>,
+				 <&rcc ETHSTP>,
+				 <&rcc SYSCFG>;
+			st,syscon = <&syscfg 0x4>;
+			snps,mixed-burst;
+			snps,pbl = <2>;
+			snps,axi-config = <&stmmac_axi_config_0>;
+			snps,tso;
+			status = "disabled";
+		};
 	};
 };
-- 
1.9.1

WARNING: multiple messages have this Message-ID (diff)
From: christophe.roullier@st.com (Christophe Roullier)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH V2 5/8] ARM: dts: stm32: Add ethernet dwmac on stm32mp1
Date: Wed, 2 May 2018 16:18:40 +0200	[thread overview]
Message-ID: <1525270723-18241-6-git-send-email-christophe.roullier@st.com> (raw)
In-Reply-To: <1525270723-18241-1-git-send-email-christophe.roullier@st.com>

Add Ethernet support (Synopsys MAC IP 4.20a) on stm32mp1 SOC.
Enable feature supported by the stmmac driver, such as TSO.

Signed-off-by: Christophe Roullier <christophe.roullier@st.com>
---
 arch/arm/boot/dts/stm32mp157c.dtsi | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/arch/arm/boot/dts/stm32mp157c.dtsi b/arch/arm/boot/dts/stm32mp157c.dtsi
index 86421ba..79def3b 100644
--- a/arch/arm/boot/dts/stm32mp157c.dtsi
+++ b/arch/arm/boot/dts/stm32mp157c.dtsi
@@ -179,5 +179,35 @@
 			clocks = <&rcc USART1_K>;
 			status = "disabled";
 		};
+
+		stmmac_axi_config_0: stmmac-axi-config {
+			snps,wr_osr_lmt = <0x7>;
+			snps,rd_osr_lmt = <0x7>;
+			snps,blen = <0 0 0 0 16 8 4>;
+		};
+
+		ethernet0: ethernet at 5800a000 {
+			compatible = "st,stm32mp1-dwmac", "snps,dwmac-4.20a";
+			reg = <0x5800a000 0x2000>;
+			reg-names = "stmmaceth";
+			interrupts-extended = <&intc GIC_SPI 61 IRQ_TYPE_NONE>;
+			interrupt-names = "macirq";
+			clock-names = "stmmaceth",
+				      "mac-clk-tx",
+				      "mac-clk-rx",
+				      "ethstp",
+				      "syscfg-clk";
+			clocks = <&rcc ETHMAC>,
+				 <&rcc ETHTX>,
+				 <&rcc ETHRX>,
+				 <&rcc ETHSTP>,
+				 <&rcc SYSCFG>;
+			st,syscon = <&syscfg 0x4>;
+			snps,mixed-burst;
+			snps,pbl = <2>;
+			snps,axi-config = <&stmmac_axi_config_0>;
+			snps,tso;
+			status = "disabled";
+		};
 	};
 };
-- 
1.9.1

  parent reply	other threads:[~2018-05-02 14:19 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-02 14:18 [PATCH V2 0/8] net: ethernet: stmmac: add support for stm32mp1 Christophe Roullier
2018-05-02 14:18 ` Christophe Roullier
2018-05-02 14:18 ` Christophe Roullier
2018-05-02 14:18 ` [PATCH V2 1/8] net: ethernet: stmmac: add adaptation for stm32mp157c Christophe Roullier
2018-05-02 14:18   ` Christophe Roullier
2018-05-02 14:18   ` Christophe Roullier
2018-05-02 14:18 ` [PATCH V2 2/8] dt-bindings: stm32-dwmac: add support of MPU families Christophe Roullier
2018-05-02 14:18   ` Christophe Roullier
2018-05-02 14:18   ` Christophe Roullier
2018-05-07 16:37   ` Rob Herring
2018-05-07 16:37     ` Rob Herring
2018-05-02 14:18 ` [PATCH V2 3/8] ARM: dts: stm32: add ethernet pins to stm32mp157c Christophe Roullier
2018-05-02 14:18   ` Christophe Roullier
2018-05-02 14:18   ` Christophe Roullier
2018-05-02 14:18 ` [PATCH V2 4/8] ARM: dts: stm32: Add syscfg on stm32mp1 Christophe Roullier
2018-05-02 14:18   ` Christophe Roullier
2018-05-02 14:18   ` Christophe Roullier
2018-05-07 16:36   ` Rob Herring
2018-05-07 16:36     ` Rob Herring
2018-05-02 14:18 ` Christophe Roullier [this message]
2018-05-02 14:18   ` [PATCH V2 5/8] ARM: dts: stm32: Add ethernet dwmac " Christophe Roullier
2018-05-02 14:18   ` Christophe Roullier
2018-05-02 14:18 ` [PATCH V2 6/8] net: stmmac: add dwmac-4.20a compatible Christophe Roullier
2018-05-02 14:18   ` Christophe Roullier
2018-05-02 14:18   ` Christophe Roullier
2018-05-02 14:41   ` Jose Abreu
2018-05-02 14:41     ` Jose Abreu
2018-05-02 14:41     ` Jose Abreu
2018-05-02 15:16     ` Christophe ROULLIER
2018-05-02 15:16       ` Christophe ROULLIER
2018-05-02 14:18 ` [PATCH V2 7/8] ARM: dts: stm32: add support of ethernet on stm32mp157c-ev1 Christophe Roullier
2018-05-02 14:18   ` Christophe Roullier
2018-05-02 14:18   ` Christophe Roullier
2018-05-02 14:18 ` [PATCH V2 8/8] dt-bindings: stm32: add compatible for syscon Christophe Roullier
2018-05-02 14:18   ` Christophe Roullier
2018-05-02 14:18   ` Christophe Roullier
2018-05-07 16:35   ` Rob Herring
2018-05-07 16:35     ` Rob Herring
2018-05-15 16:19     ` Christophe ROULLIER
2018-05-15 16:19       ` Christophe ROULLIER
2018-05-17 12:37       ` Rob Herring
2018-05-17 12:37         ` Rob Herring

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1525270723-18241-6-git-send-email-christophe.roullier@st.com \
    --to=christophe.roullier@st.com \
    --cc=alexandre.torgue@st.com \
    --cc=andrew@lunn.ch \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=mark.rutland@arm.com \
    --cc=mcoquelin.stm32@gmail.com \
    --cc=netdev@vger.kernel.org \
    --cc=peppe.cavallaro@st.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.