devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] Enable Ethernet on StiH407 family boards
@ 2015-10-01 15:56 Maxime Coquelin
  2015-10-01 15:56 ` [PATCH 1/4] ARM: dts: Fix RGMII pinctrl timings Maxime Coquelin
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Maxime Coquelin @ 2015-10-01 15:56 UTC (permalink / raw)
  To: Giuseppe Cavallaro, peter.griffin, lee.jones, alexandre.torgue,
	linux-arm-kernel, devicetree
  Cc: maxime.coquelin, kernel, linux-kernel

This series enables Ethernet support on STiH407 family reference design
boards.

These boards use the RTL8367 Switch as PHY.
As it is previously configured by the bootloader, we declare it as a fixed
link.

Maxime Coquelin (4):
  ARM: dts: Fix RGMII pinctrl timings
  ARM: dts: Add Ethernet node to STiH407 family
  ARM: dts: Enable Ethernet on STi's B2120 boards
  ARM: dts: Enable Ethernet on STi's B2199 board

 arch/arm/boot/dts/stih407-b2120.dts    |  1 +
 arch/arm/boot/dts/stih407-family.dtsi  | 27 +++++++++++++++++++++++++++
 arch/arm/boot/dts/stih407-pinctrl.dtsi |  4 ++--
 arch/arm/boot/dts/stih410-b2120.dts    |  1 +
 arch/arm/boot/dts/stih418-b2199.dts    |  8 ++++++++
 arch/arm/boot/dts/stihxxx-b2120.dtsi   |  6 ++++++
 6 files changed, 45 insertions(+), 2 deletions(-)

-- 
1.9.1

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH 1/4] ARM: dts: Fix RGMII pinctrl timings
  2015-10-01 15:56 [PATCH 0/4] Enable Ethernet on StiH407 family boards Maxime Coquelin
@ 2015-10-01 15:56 ` Maxime Coquelin
  2015-10-01 15:56 ` [PATCH 3/4] ARM: dts: Enable Ethernet on STi's B2120 boards Maxime Coquelin
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 6+ messages in thread
From: Maxime Coquelin @ 2015-10-01 15:56 UTC (permalink / raw)
  To: Giuseppe Cavallaro, peter.griffin, lee.jones, alexandre.torgue,
	linux-arm-kernel, devicetree
  Cc: linux-kernel, kernel, maxime.coquelin

These new re-timing values provides a better stability on Ethernet link.

Signed-off-by: Maxime Coquelin <maxime.coquelin@st.com>
---
 arch/arm/boot/dts/stih407-pinctrl.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boot/dts/stih407-pinctrl.dtsi b/arch/arm/boot/dts/stih407-pinctrl.dtsi
index 8fe542a..a538ae5 100644
--- a/arch/arm/boot/dts/stih407-pinctrl.dtsi
+++ b/arch/arm/boot/dts/stih407-pinctrl.dtsi
@@ -216,9 +216,9 @@
 						rxd2 = <&pio1 6 ALT1 IN DE_IO 0 CLK_A>;
 						rxd3 = <&pio1 7 ALT1 IN DE_IO 0 CLK_A>;
 						rxdv = <&pio2 0 ALT1 IN DE_IO 0 CLK_A>;
-						rxclk = <&pio2 2 ALT1 IN NICLK 500 CLK_A>;
+						rxclk = <&pio2 2 ALT1 IN NICLK 0 CLK_A>;
 						clk125 = <&pio3 7 ALT4 IN NICLK 0 CLK_A>;
-						phyclk = <&pio2 3 ALT4 OUT NICLK 1750 CLK_B>;
+						phyclk = <&pio2 3 ALT4 OUT NICLK 1250 CLK_B>;
 					};
 				};
 
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 2/4] ARM: dts: Add Ethernet node to STiH407 family
       [not found] ` <1443714982-16251-1-git-send-email-maxime.coquelin-qxv4g6HH51o@public.gmane.org>
@ 2015-10-01 15:56   ` Maxime Coquelin
  2015-10-15 11:51   ` [PATCH 0/4] Enable Ethernet on StiH407 family boards Maxime Coquelin
  1 sibling, 0 replies; 6+ messages in thread
From: Maxime Coquelin @ 2015-10-01 15:56 UTC (permalink / raw)
  To: Giuseppe Cavallaro, peter.griffin-QSEj5FYQhm4dnm+yROfE0A,
	lee.jones-QSEj5FYQhm4dnm+yROfE0A, alexandre.torgue-qxv4g6HH51o,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	devicetree-u79uwXL29TY76Z2rM5mHXA
  Cc: maxime.coquelin-qxv4g6HH51o, kernel-F5mvAk5X5gdBDgjK7y7TUQ,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA

STiH407 family uses the Synopsys IP.

Signed-off-by: Maxime Coquelin <maxime.coquelin-qxv4g6HH51o@public.gmane.org>
---
 arch/arm/boot/dts/stih407-family.dtsi | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/arch/arm/boot/dts/stih407-family.dtsi b/arch/arm/boot/dts/stih407-family.dtsi
index 582154b..c944d3a 100644
--- a/arch/arm/boot/dts/stih407-family.dtsi
+++ b/arch/arm/boot/dts/stih407-family.dtsi
@@ -653,5 +653,32 @@
 			clocks          = <&clk_sysin>;
 			status		= "okay";
 		};
+
+		ethernet0: dwmac@9630000 {
+			device_type = "network";
+			status = "disabled";
+			compatible = "st,stih407-dwmac", "snps,dwmac", "snps,dwmac-3.710";
+			reg = <0x9630000 0x8000>, <0x80 0x4>;
+			reg-names = "stmmaceth", "sti-ethconf";
+
+			st,syscon = <&syscfg_sbc_reg 0x80>;
+			st,gmac_en;
+			resets = <&softreset STIH407_ETH1_SOFTRESET>;
+			reset-names = "stmmaceth";
+
+			interrupts = <GIC_SPI 98 IRQ_TYPE_NONE>,
+				     <GIC_SPI 99 IRQ_TYPE_NONE>;
+			interrupt-names = "macirq", "eth_wake_irq";
+
+			/* DMA Bus Mode */
+			snps,pbl = <8>;
+
+			pinctrl-names = "default";
+			pinctrl-0 = <&pinctrl_rgmii1>;
+
+			clock-names = "stmmaceth", "sti-ethclk";
+			clocks = <&clk_s_c0_flexgen CLK_EXT2F_A9>,
+				 <&clk_s_c0_flexgen CLK_ETH_PHY>;
+		};
 	};
 };
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 3/4] ARM: dts: Enable Ethernet on STi's B2120 boards
  2015-10-01 15:56 [PATCH 0/4] Enable Ethernet on StiH407 family boards Maxime Coquelin
  2015-10-01 15:56 ` [PATCH 1/4] ARM: dts: Fix RGMII pinctrl timings Maxime Coquelin
@ 2015-10-01 15:56 ` Maxime Coquelin
  2015-10-01 15:56 ` [PATCH 4/4] ARM: dts: Enable Ethernet on STi's B2199 board Maxime Coquelin
       [not found] ` <1443714982-16251-1-git-send-email-maxime.coquelin-qxv4g6HH51o@public.gmane.org>
  3 siblings, 0 replies; 6+ messages in thread
From: Maxime Coquelin @ 2015-10-01 15:56 UTC (permalink / raw)
  To: Giuseppe Cavallaro, peter.griffin, lee.jones, alexandre.torgue,
	linux-arm-kernel, devicetree
  Cc: maxime.coquelin, kernel, linux-kernel

These boards are mounted with Realtek RTL8367 switch.
We consider the bootloader will have intiliazed the switch before jumping into
the kernel, so we declare it as a fixed link.

Signed-off-by: Maxime Coquelin <maxime.coquelin@st.com>
---
 arch/arm/boot/dts/stih407-b2120.dts  | 1 +
 arch/arm/boot/dts/stih410-b2120.dts  | 1 +
 arch/arm/boot/dts/stihxxx-b2120.dtsi | 6 ++++++
 3 files changed, 8 insertions(+)

diff --git a/arch/arm/boot/dts/stih407-b2120.dts b/arch/arm/boot/dts/stih407-b2120.dts
index 6d93475..c8ad905 100644
--- a/arch/arm/boot/dts/stih407-b2120.dts
+++ b/arch/arm/boot/dts/stih407-b2120.dts
@@ -25,6 +25,7 @@
 
 	aliases {
 		ttyAS0 = &sbc_serial0;
+		ethernet0 = &ethernet0;
 	};
 
 };
diff --git a/arch/arm/boot/dts/stih410-b2120.dts b/arch/arm/boot/dts/stih410-b2120.dts
index 8af1e73..118ac28 100644
--- a/arch/arm/boot/dts/stih410-b2120.dts
+++ b/arch/arm/boot/dts/stih410-b2120.dts
@@ -25,6 +25,7 @@
 
 	aliases {
 		ttyAS0 = &sbc_serial0;
+		ethernet0 = &ethernet0;
 	};
 
 	soc {
diff --git a/arch/arm/boot/dts/stihxxx-b2120.dtsi b/arch/arm/boot/dts/stihxxx-b2120.dtsi
index ab029f7..ad21a42 100644
--- a/arch/arm/boot/dts/stihxxx-b2120.dtsi
+++ b/arch/arm/boot/dts/stihxxx-b2120.dtsi
@@ -87,5 +87,11 @@
 			status = "okay";
 		};
 
+		ethernet0: dwmac@9630000 {
+			st,tx-retime-src = "clkgen";
+			status = "okay";
+			phy-mode = "rgmii";
+			fixed-link = <0 1 1000 0 0>;
+		};
 	};
 };
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 4/4] ARM: dts: Enable Ethernet on STi's B2199 board
  2015-10-01 15:56 [PATCH 0/4] Enable Ethernet on StiH407 family boards Maxime Coquelin
  2015-10-01 15:56 ` [PATCH 1/4] ARM: dts: Fix RGMII pinctrl timings Maxime Coquelin
  2015-10-01 15:56 ` [PATCH 3/4] ARM: dts: Enable Ethernet on STi's B2120 boards Maxime Coquelin
@ 2015-10-01 15:56 ` Maxime Coquelin
       [not found] ` <1443714982-16251-1-git-send-email-maxime.coquelin-qxv4g6HH51o@public.gmane.org>
  3 siblings, 0 replies; 6+ messages in thread
From: Maxime Coquelin @ 2015-10-01 15:56 UTC (permalink / raw)
  To: Giuseppe Cavallaro, peter.griffin, lee.jones, alexandre.torgue,
	linux-arm-kernel, devicetree
  Cc: maxime.coquelin, kernel, linux-kernel

The B2199 board is mounted with Realtek RTL8367 switch.
We consider the bootloader will have intiliazed the switch before jumping into
the kernel, so we declare it as a fixed link.

Signed-off-by: Maxime Coquelin <maxime.coquelin@st.com>
---
 arch/arm/boot/dts/stih418-b2199.dts | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm/boot/dts/stih418-b2199.dts b/arch/arm/boot/dts/stih418-b2199.dts
index 82eee39..772d2bb 100644
--- a/arch/arm/boot/dts/stih418-b2199.dts
+++ b/arch/arm/boot/dts/stih418-b2199.dts
@@ -24,6 +24,7 @@
 
 	aliases {
 		ttyAS0 = &sbc_serial0;
+		ethernet0 = &ethernet0;
 	};
 
 	soc {
@@ -101,5 +102,12 @@
 		st_dwc3: dwc3@8f94000 {
 			status = "okay";
 		};
+
+		ethernet0: dwmac@9630000 {
+			st,tx-retime-src = "clkgen";
+			status = "okay";
+			phy-mode = "rgmii";
+			fixed-link = <0 1 1000 0 0>;
+		};
 	};
 };
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH 0/4] Enable Ethernet on StiH407 family boards
       [not found] ` <1443714982-16251-1-git-send-email-maxime.coquelin-qxv4g6HH51o@public.gmane.org>
  2015-10-01 15:56   ` [PATCH 2/4] ARM: dts: Add Ethernet node to STiH407 family Maxime Coquelin
@ 2015-10-15 11:51   ` Maxime Coquelin
  1 sibling, 0 replies; 6+ messages in thread
From: Maxime Coquelin @ 2015-10-15 11:51 UTC (permalink / raw)
  To: Giuseppe Cavallaro, peter.griffin-QSEj5FYQhm4dnm+yROfE0A,
	lee.jones-QSEj5FYQhm4dnm+yROfE0A, alexandre.torgue-qxv4g6HH51o,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	devicetree-u79uwXL29TY76Z2rM5mHXA
  Cc: kernel-F5mvAk5X5gdBDgjK7y7TUQ,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA



On 10/01/2015 05:56 PM, Maxime Coquelin wrote:
> This series enables Ethernet support on STiH407 family reference design
> boards.
>
> These boards use the RTL8367 Switch as PHY.
> As it is previously configured by the bootloader, we declare it as a fixed
> link.
>
> Maxime Coquelin (4):
>    ARM: dts: Fix RGMII pinctrl timings
>    ARM: dts: Add Ethernet node to STiH407 family
>    ARM: dts: Enable Ethernet on STi's B2120 boards
>    ARM: dts: Enable Ethernet on STi's B2199 board
>
>   arch/arm/boot/dts/stih407-b2120.dts    |  1 +
>   arch/arm/boot/dts/stih407-family.dtsi  | 27 +++++++++++++++++++++++++++
>   arch/arm/boot/dts/stih407-pinctrl.dtsi |  4 ++--
>   arch/arm/boot/dts/stih410-b2120.dts    |  1 +
>   arch/arm/boot/dts/stih418-b2199.dts    |  8 ++++++++
>   arch/arm/boot/dts/stihxxx-b2120.dtsi   |  6 ++++++
>   6 files changed, 45 insertions(+), 2 deletions(-)
>
Series applied.

Maxime
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-10-15 11:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-01 15:56 [PATCH 0/4] Enable Ethernet on StiH407 family boards Maxime Coquelin
2015-10-01 15:56 ` [PATCH 1/4] ARM: dts: Fix RGMII pinctrl timings Maxime Coquelin
2015-10-01 15:56 ` [PATCH 3/4] ARM: dts: Enable Ethernet on STi's B2120 boards Maxime Coquelin
2015-10-01 15:56 ` [PATCH 4/4] ARM: dts: Enable Ethernet on STi's B2199 board Maxime Coquelin
     [not found] ` <1443714982-16251-1-git-send-email-maxime.coquelin-qxv4g6HH51o@public.gmane.org>
2015-10-01 15:56   ` [PATCH 2/4] ARM: dts: Add Ethernet node to STiH407 family Maxime Coquelin
2015-10-15 11:51   ` [PATCH 0/4] Enable Ethernet on StiH407 family boards Maxime Coquelin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).