ARM: dts: Enable Ethernet on STi's B2120 boards
authorMaxime Coquelin <maxime.coquelin@st.com>
Thu, 1 Oct 2015 15:45:46 +0000 (17:45 +0200)
committerMaxime Coquelin <maxime.coquelin@st.com>
Thu, 15 Oct 2015 11:45:56 +0000 (13:45 +0200)
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
arch/arm/boot/dts/stih410-b2120.dts
arch/arm/boot/dts/stihxxx-b2120.dtsi

index 6d93475be5546afaff1fde83bae34afe7f638cec..c8ad905d03094008501e3bc42ade018e61eb0264 100644 (file)
@@ -25,6 +25,7 @@
 
        aliases {
                ttyAS0 = &sbc_serial0;
+               ethernet0 = &ethernet0;
        };
 
 };
index 8af1e73c0532676f33096fda3fc375bca3b23d91..118ac284fc4b65f50e2a5479171b90cde498faeb 100644 (file)
@@ -25,6 +25,7 @@
 
        aliases {
                ttyAS0 = &sbc_serial0;
+               ethernet0 = &ethernet0;
        };
 
        soc {
index ab029f7239b257abcf213550c6e5368f171094c6..ad21a4293a339c28446056b189e6c3059266c15c 100644 (file)
                        status = "okay";
                };
 
+               ethernet0: dwmac@9630000 {
+                       st,tx-retime-src = "clkgen";
+                       status = "okay";
+                       phy-mode = "rgmii";
+                       fixed-link = <0 1 1000 0 0>;
+               };
        };
 };