aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
authorAndy Fleming <afleming@freescale.com>2012-01-04 16:28:31 -0500
committerKumar Gala <galak@kernel.crashing.org>2012-01-04 16:33:51 -0500
commit220669495bf8b68130a8218607147c7b74c28d2b (patch)
treeaf31ad750cf3ea770084c4020e2eaa582e2393e3 /arch/powerpc
parentdabc78403fc2ad96e6fc8b53c6c6abcc02e152ee (diff)
powerpc: Add TBI PHY node to first MDIO bus
Systems which use the fsl_pq_mdio driver need to specify an address for TBI PHY transactions such that the address does not conflict with any PHYs on the bus (all transactions to that address are directed to the onboard TBI PHY). The driver used to scan for a free address if no address was specified, however this ran into issues when the PHY Lib was fixed so that all MDIO transactions were protected by a mutex. As it is, the code was meant to serve as a transitional tool until the device trees were all updated to specify the TBI address. The best fix for the mutex issue was to remove the scanning code, but it turns out some of the newer SoCs have started to omit the tbi-phy node when SGMII is not being used. As such, these devices will now fail unless we add a tbi-phy node to the first mdio controller. Signed-off-by: Andy Fleming <afleming@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/boot/dts/p1010rdb.dtsi5
-rw-r--r--arch/powerpc/boot/dts/p1020rdb.dtsi5
-rw-r--r--arch/powerpc/boot/dts/p1021mds.dts4
-rw-r--r--arch/powerpc/boot/dts/p1022ds.dts4
-rw-r--r--arch/powerpc/boot/dts/p2020rdb.dts8
5 files changed, 24 insertions, 2 deletions
diff --git a/arch/powerpc/boot/dts/p1010rdb.dtsi b/arch/powerpc/boot/dts/p1010rdb.dtsi
index 3aa2b823fb00..d4c4a7730285 100644
--- a/arch/powerpc/boot/dts/p1010rdb.dtsi
+++ b/arch/powerpc/boot/dts/p1010rdb.dtsi
@@ -194,6 +194,11 @@
194 interrupts = <2 1 0 0>; 194 interrupts = <2 1 0 0>;
195 reg = <0x2>; 195 reg = <0x2>;
196 }; 196 };
197
198 tbi-phy@3 {
199 device-type = "tbi-phy";
200 reg = <0x3>;
201 };
197 }; 202 };
198 203
199 mdio@25000 { 204 mdio@25000 {
diff --git a/arch/powerpc/boot/dts/p1020rdb.dtsi b/arch/powerpc/boot/dts/p1020rdb.dtsi
index 37389464ad89..b5bd86f4baf2 100644
--- a/arch/powerpc/boot/dts/p1020rdb.dtsi
+++ b/arch/powerpc/boot/dts/p1020rdb.dtsi
@@ -214,6 +214,11 @@
214 interrupts = <2 1>; 214 interrupts = <2 1>;
215 reg = <0x1>; 215 reg = <0x1>;
216 }; 216 };
217
218 tbi-phy@2 {
219 device_type = "tbi-phy";
220 reg = <0x2>;
221 };
217 }; 222 };
218 223
219 mdio@25000 { 224 mdio@25000 {
diff --git a/arch/powerpc/boot/dts/p1021mds.dts b/arch/powerpc/boot/dts/p1021mds.dts
index b1bef1fa66da..d9540791e434 100644
--- a/arch/powerpc/boot/dts/p1021mds.dts
+++ b/arch/powerpc/boot/dts/p1021mds.dts
@@ -165,6 +165,10 @@
165 phy4: ethernet-phy@4 { 165 phy4: ethernet-phy@4 {
166 reg = <0x4>; 166 reg = <0x4>;
167 }; 167 };
168 tbi-phy@5 {
169 device_type = "tbi-phy";
170 reg = <0x5>;
171 };
168 }; 172 };
169 173
170 mdio@25000 { 174 mdio@25000 {
diff --git a/arch/powerpc/boot/dts/p1022ds.dts b/arch/powerpc/boot/dts/p1022ds.dts
index 3e85d8c38503..0ca0eb1ce51e 100644
--- a/arch/powerpc/boot/dts/p1022ds.dts
+++ b/arch/powerpc/boot/dts/p1022ds.dts
@@ -207,6 +207,10 @@
207 interrupts = <9 1 0 0>; 207 interrupts = <9 1 0 0>;
208 reg = <0x2>; 208 reg = <0x2>;
209 }; 209 };
210 tbi-phy@2 {
211 device_type = "tbi-phy";
212 reg = <0x2>;
213 };
210 }; 214 };
211 215
212 ethernet@b0000 { 216 ethernet@b0000 {
diff --git a/arch/powerpc/boot/dts/p2020rdb.dts b/arch/powerpc/boot/dts/p2020rdb.dts
index fd4271296f85..26759a591712 100644
--- a/arch/powerpc/boot/dts/p2020rdb.dts
+++ b/arch/powerpc/boot/dts/p2020rdb.dts
@@ -203,11 +203,15 @@
203 phy0: ethernet-phy@0 { 203 phy0: ethernet-phy@0 {
204 interrupts = <3 1 0 0>; 204 interrupts = <3 1 0 0>;
205 reg = <0x0>; 205 reg = <0x0>;
206 }; 206 };
207 phy1: ethernet-phy@1 { 207 phy1: ethernet-phy@1 {
208 interrupts = <3 1 0 0>; 208 interrupts = <3 1 0 0>;
209 reg = <0x1>; 209 reg = <0x1>;
210 }; 210 };
211 tbi-phy@2 {
212 device_type = "tbi-phy";
213 reg = <0x2>;
214 };
211 }; 215 };
212 216
213 mdio@25520 { 217 mdio@25520 {