Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1237535 > unrolled thread

[PATCH 0/4] Enable Ethernet on StiH407 family boards

Started byMaxime Coquelin <maxime.coquelin@st.com>
First post2015-10-01 18:00 +0200
Last post2015-10-01 18:00 +0200
Articles 4 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH 0/4] Enable Ethernet on StiH407 family boards Maxime Coquelin <maxime.coquelin@st.com> - 2015-10-01 18:00 +0200
    [PATCH 2/4] ARM: dts: Add Ethernet node to STiH407 family Maxime Coquelin <maxime.coquelin@st.com> - 2015-10-01 18:00 +0200
    [PATCH 4/4] ARM: dts: Enable Ethernet on STi's B2199 board Maxime Coquelin <maxime.coquelin@st.com> - 2015-10-01 18:00 +0200
    [PATCH 3/4] ARM: dts: Enable Ethernet on STi's B2120 boards Maxime Coquelin <maxime.coquelin@st.com> - 2015-10-01 18:00 +0200

#1237535 — [PATCH 0/4] Enable Ethernet on StiH407 family boards

FromMaxime Coquelin <maxime.coquelin@st.com>
Date2015-10-01 18:00 +0200
Subject[PATCH 0/4] Enable Ethernet on StiH407 family boards
Message-ID<qeOr0-Eb-7@gated-at.bofh.it>
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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1237536 — [PATCH 2/4] ARM: dts: Add Ethernet node to STiH407 family

FromMaxime Coquelin <maxime.coquelin@st.com>
Date2015-10-01 18:00 +0200
Subject[PATCH 2/4] ARM: dts: Add Ethernet node to STiH407 family
Message-ID<qeOr1-Eb-27@gated-at.bofh.it>
In reply to#1237535
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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1237537 — [PATCH 4/4] ARM: dts: Enable Ethernet on STi's B2199 board

FromMaxime Coquelin <maxime.coquelin@st.com>
Date2015-10-01 18:00 +0200
Subject[PATCH 4/4] ARM: dts: Enable Ethernet on STi's B2199 board
Message-ID<qeOr1-Eb-29@gated-at.bofh.it>
In reply to#1237535
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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1237538 — [PATCH 3/4] ARM: dts: Enable Ethernet on STi's B2120 boards

FromMaxime Coquelin <maxime.coquelin@st.com>
Date2015-10-01 18:00 +0200
Subject[PATCH 3/4] ARM: dts: Enable Ethernet on STi's B2120 boards
Message-ID<qeOr1-Eb-31@gated-at.bofh.it>
In reply to#1237535
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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web