瀏覽代碼

ARM: dts: Enable Ethernet on STi's B2120 boards

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>
Maxime Coquelin 10 年之前
父節點
當前提交
60dfa24588
共有 3 個文件被更改,包括 8 次插入0 次删除
  1. 1 0
      arch/arm/boot/dts/stih407-b2120.dts
  2. 1 0
      arch/arm/boot/dts/stih410-b2120.dts
  3. 6 0
      arch/arm/boot/dts/stihxxx-b2120.dtsi

+ 1 - 0
arch/arm/boot/dts/stih407-b2120.dts

@@ -25,6 +25,7 @@
 
 	aliases {
 		ttyAS0 = &sbc_serial0;
+		ethernet0 = &ethernet0;
 	};
 
 };

+ 1 - 0
arch/arm/boot/dts/stih410-b2120.dts

@@ -25,6 +25,7 @@
 
 	aliases {
 		ttyAS0 = &sbc_serial0;
+		ethernet0 = &ethernet0;
 	};
 
 	soc {

+ 6 - 0
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>;
+		};
 	};
 };