* [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 2/4] ARM: dts: Add Ethernet node to STiH407 family Maxime Coquelin
` (3 subsequent siblings)
4 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 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
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 3/4] ARM: dts: Enable Ethernet on STi's B2120 boards Maxime Coquelin
` (2 subsequent siblings)
4 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
STiH407 family uses the Synopsys IP.
Signed-off-by: Maxime Coquelin <maxime.coquelin@st.com>
---
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
^ 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 ` [PATCH 2/4] ARM: dts: Add Ethernet node to STiH407 family 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
2015-10-15 11:51 ` [PATCH 0/4] Enable Ethernet on StiH407 family boards Maxime Coquelin
4 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 = ðernet0;
};
};
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 = ðernet0;
};
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
` (2 preceding siblings ...)
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
2015-10-15 11:51 ` [PATCH 0/4] Enable Ethernet on StiH407 family boards Maxime Coquelin
4 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 = ðernet0;
};
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
2015-10-01 15:56 [PATCH 0/4] Enable Ethernet on StiH407 family boards Maxime Coquelin
` (3 preceding siblings ...)
2015-10-01 15:56 ` [PATCH 4/4] ARM: dts: Enable Ethernet on STi's B2199 board Maxime Coquelin
@ 2015-10-15 11:51 ` Maxime Coquelin
4 siblings, 0 replies; 6+ messages in thread
From: Maxime Coquelin @ 2015-10-15 11:51 UTC (permalink / raw)
To: Giuseppe Cavallaro, peter.griffin, lee.jones, alexandre.torgue,
linux-arm-kernel, devicetree
Cc: kernel, linux-kernel
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
^ permalink raw reply [flat|nested] 6+ messages in thread