ARM: SPEAr: DT: Modify DT bindings for STMMAC
authorDeepak Sikri <deepak.sikri@st.com>
Thu, 9 Aug 2012 07:48:40 +0000 (13:18 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Mon, 26 Nov 2012 10:23:52 +0000 (15:53 +0530)
This patch modifies the DT bindings for the GMAC IP existings for the
SPEAr family. The DT bindings now additionally pass the phy mode as a
configuration parameter for the ethernet device.

Signed-off-by: Deepak Sikri <deepak.sikri@st.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
arch/arm/boot/dts/spear1310-evb.dts
arch/arm/boot/dts/spear1310.dtsi
arch/arm/boot/dts/spear1340-evb.dts
arch/arm/boot/dts/spear3xx.dtsi
arch/arm/boot/dts/spear600.dtsi

index 668dcb27dafddbe273d56aee163404ebd7ab058e..72f467575743e6d1549e9878f1dcf3a69c7682d6 100644 (file)
                };
 
                gmac0: eth@e2000000 {
+                       phy-mode = "gmii";
                        status = "okay";
                };
 
index b2479be7590524e05215a9110711342be2121468..e613452ec5bbbde944a53e3d74338158e68f81ca 100644 (file)
@@ -55,6 +55,7 @@
                        reg = <0x5c400000 0x8000>;
                        interrupts = <0 95 0x4>;
                        interrupt-names = "macirq";
+                       phy-mode = "mii";
                        status = "disabled";
                };
 
@@ -63,6 +64,7 @@
                        reg = <0x5c500000 0x8000>;
                        interrupts = <0 96 0x4>;
                        interrupt-names = "macirq";
+                       phy-mode = "mii";
                        status = "disabled";
                };
 
@@ -71,6 +73,7 @@
                        reg = <0x5c600000 0x8000>;
                        interrupts = <0 97 0x4>;
                        interrupt-names = "macirq";
+                       phy-mode = "rmii";
                        status = "disabled";
                };
 
@@ -79,6 +82,7 @@
                        reg = <0x5c700000 0x8000>;
                        interrupts = <0 98 0x4>;
                        interrupt-names = "macirq";
+                       phy-mode = "rgmii";
                        status = "disabled";
                };
 
index 015601360f733f3d39edf8efe7a4302381c33630..cfe82d126da3194009e20face4b61b371c46be73 100644 (file)
                };
 
                gmac0: eth@e2000000 {
+                       phy-mode = "rgmii";
                        status = "okay";
                };
 
index b02721fed16658bfa687fbde7ad8e00f98e1f9d8..494636000f5c053e101e13ff66c1a77bfaccb8d2 100644 (file)
@@ -53,6 +53,7 @@
                        reg = <0xe0800000 0x8000>;
                        interrupts = <23 22>;
                        interrupt-names = "macirq", "eth_wake_irq";
+                       phy-mode = "mii";
                        status = "disabled";
                };
 
index a3c36e47d7efcafee29eb73865eb5dec5651d4a4..f74feeaab1e0efa6ef6fd9dec7b596f81f7ea0d9 100644 (file)
@@ -59,6 +59,7 @@
                        interrupt-parent = <&vic1>;
                        interrupts = <24 23>;
                        interrupt-names = "macirq", "eth_wake_irq";
+                       phy-mode = "gmii";
                        status = "disabled";
                };