diff options
author | Anton Vorontsov <avorontsov@ru.mvista.com> | 2009-03-19 14:01:45 -0400 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2009-03-24 09:35:04 -0400 |
commit | 70b3adbba056f5d9081f1ec9b4a629e3c7502072 (patch) | |
tree | ef7a299becef375b9d59f8d2d4a56e036e17b6d9 /arch/powerpc/boot/dts/mpc8377_rdb.dts | |
parent | 125a00d74ea57a901fd4cc3d84baf2e825704b68 (diff) |
powerpc/83xx: Move gianfar mdio nodes under the ethernet nodes
Currently it doesn't matter where the mdio nodes are placed, but with
power management support (i.e. when sleep = <> properties will take
effect), mdio nodes placement will become important: mdio controller
is a part of the ethernet block, so the mdio nodes should be placed
correctly. Otherwise we may wrongly assume that MDIO controllers are
available during sleep.
Suggested-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/boot/dts/mpc8377_rdb.dts')
-rw-r--r-- | arch/powerpc/boot/dts/mpc8377_rdb.dts | 67 |
1 files changed, 37 insertions, 30 deletions
diff --git a/arch/powerpc/boot/dts/mpc8377_rdb.dts b/arch/powerpc/boot/dts/mpc8377_rdb.dts index 32311c8f55d8..053339390c22 100644 --- a/arch/powerpc/boot/dts/mpc8377_rdb.dts +++ b/arch/powerpc/boot/dts/mpc8377_rdb.dts | |||
@@ -248,42 +248,15 @@ | |||
248 | sleep = <&pmc 0x00c00000>; | 248 | sleep = <&pmc 0x00c00000>; |
249 | }; | 249 | }; |
250 | 250 | ||
251 | mdio@24520 { | ||
252 | #address-cells = <1>; | ||
253 | #size-cells = <0>; | ||
254 | compatible = "fsl,gianfar-mdio"; | ||
255 | reg = <0x24520 0x20>; | ||
256 | phy2: ethernet-phy@2 { | ||
257 | interrupt-parent = <&ipic>; | ||
258 | interrupts = <17 0x8>; | ||
259 | reg = <0x2>; | ||
260 | device_type = "ethernet-phy"; | ||
261 | }; | ||
262 | tbi0: tbi-phy@11 { | ||
263 | reg = <0x11>; | ||
264 | device_type = "tbi-phy"; | ||
265 | }; | ||
266 | }; | ||
267 | |||
268 | mdio@25520 { | ||
269 | #address-cells = <1>; | ||
270 | #size-cells = <0>; | ||
271 | compatible = "fsl,gianfar-tbi"; | ||
272 | reg = <0x25520 0x20>; | ||
273 | |||
274 | tbi1: tbi-phy@11 { | ||
275 | reg = <0x11>; | ||
276 | device_type = "tbi-phy"; | ||
277 | }; | ||
278 | }; | ||
279 | |||
280 | |||
281 | enet0: ethernet@24000 { | 251 | enet0: ethernet@24000 { |
252 | #address-cells = <1>; | ||
253 | #size-cells = <1>; | ||
282 | cell-index = <0>; | 254 | cell-index = <0>; |
283 | device_type = "network"; | 255 | device_type = "network"; |
284 | model = "eTSEC"; | 256 | model = "eTSEC"; |
285 | compatible = "gianfar"; | 257 | compatible = "gianfar"; |
286 | reg = <0x24000 0x1000>; | 258 | reg = <0x24000 0x1000>; |
259 | ranges = <0x0 0x24000 0x1000>; | ||
287 | local-mac-address = [ 00 00 00 00 00 00 ]; | 260 | local-mac-address = [ 00 00 00 00 00 00 ]; |
288 | interrupts = <32 0x8 33 0x8 34 0x8>; | 261 | interrupts = <32 0x8 33 0x8 34 0x8>; |
289 | phy-connection-type = "mii"; | 262 | phy-connection-type = "mii"; |
@@ -292,14 +265,36 @@ | |||
292 | phy-handle = <&phy2>; | 265 | phy-handle = <&phy2>; |
293 | sleep = <&pmc 0xc0000000>; | 266 | sleep = <&pmc 0xc0000000>; |
294 | fsl,magic-packet; | 267 | fsl,magic-packet; |
268 | |||
269 | mdio@520 { | ||
270 | #address-cells = <1>; | ||
271 | #size-cells = <0>; | ||
272 | compatible = "fsl,gianfar-mdio"; | ||
273 | reg = <0x520 0x20>; | ||
274 | |||
275 | phy2: ethernet-phy@2 { | ||
276 | interrupt-parent = <&ipic>; | ||
277 | interrupts = <17 0x8>; | ||
278 | reg = <0x2>; | ||
279 | device_type = "ethernet-phy"; | ||
280 | }; | ||
281 | |||
282 | tbi0: tbi-phy@11 { | ||
283 | reg = <0x11>; | ||
284 | device_type = "tbi-phy"; | ||
285 | }; | ||
286 | }; | ||
295 | }; | 287 | }; |
296 | 288 | ||
297 | enet1: ethernet@25000 { | 289 | enet1: ethernet@25000 { |
290 | #address-cells = <1>; | ||
291 | #size-cells = <1>; | ||
298 | cell-index = <1>; | 292 | cell-index = <1>; |
299 | device_type = "network"; | 293 | device_type = "network"; |
300 | model = "eTSEC"; | 294 | model = "eTSEC"; |
301 | compatible = "gianfar"; | 295 | compatible = "gianfar"; |
302 | reg = <0x25000 0x1000>; | 296 | reg = <0x25000 0x1000>; |
297 | ranges = <0x0 0x25000 0x1000>; | ||
303 | local-mac-address = [ 00 00 00 00 00 00 ]; | 298 | local-mac-address = [ 00 00 00 00 00 00 ]; |
304 | interrupts = <35 0x8 36 0x8 37 0x8>; | 299 | interrupts = <35 0x8 36 0x8 37 0x8>; |
305 | phy-connection-type = "mii"; | 300 | phy-connection-type = "mii"; |
@@ -308,6 +303,18 @@ | |||
308 | tbi-handle = <&tbi1>; | 303 | tbi-handle = <&tbi1>; |
309 | sleep = <&pmc 0x30000000>; | 304 | sleep = <&pmc 0x30000000>; |
310 | fsl,magic-packet; | 305 | fsl,magic-packet; |
306 | |||
307 | mdio@520 { | ||
308 | #address-cells = <1>; | ||
309 | #size-cells = <0>; | ||
310 | compatible = "fsl,gianfar-tbi"; | ||
311 | reg = <0x520 0x20>; | ||
312 | |||
313 | tbi1: tbi-phy@11 { | ||
314 | reg = <0x11>; | ||
315 | device_type = "tbi-phy"; | ||
316 | }; | ||
317 | }; | ||
311 | }; | 318 | }; |
312 | 319 | ||
313 | serial0: serial@4500 { | 320 | serial0: serial@4500 { |