diff options
author | Andy Fleming <afleming@freescale.com> | 2008-12-16 18:29:15 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-12-16 18:29:15 -0500 |
commit | b31a1d8b41513b96e9c7ec2f68c5734cef0b26a4 (patch) | |
tree | f8643c2fd1b137dd6c00bcd385ad36adfca4f540 /arch/powerpc/boot/dts/sbc8548.dts | |
parent | 257d938a0c17838c740eb68f0005b041444ac2c2 (diff) |
gianfar: Convert gianfar to an of_platform_driver
Does the same for the accompanying MDIO driver, and then modifies the TBI
configuration method. The old way used fields in einfo, which no longer
exists. The new way is to create an MDIO device-tree node for each instance
of gianfar, and create a tbi-handle property to associate ethernet controllers
with the TBI PHYs they are connected to.
Signed-off-by: Andy Fleming <afleming@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/powerpc/boot/dts/sbc8548.dts')
-rw-r--r-- | arch/powerpc/boot/dts/sbc8548.dts | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/powerpc/boot/dts/sbc8548.dts b/arch/powerpc/boot/dts/sbc8548.dts index 333552b4e90d..2baf4a51f224 100644 --- a/arch/powerpc/boot/dts/sbc8548.dts +++ b/arch/powerpc/boot/dts/sbc8548.dts | |||
@@ -252,6 +252,22 @@ | |||
252 | reg = <0x1a>; | 252 | reg = <0x1a>; |
253 | device_type = "ethernet-phy"; | 253 | device_type = "ethernet-phy"; |
254 | }; | 254 | }; |
255 | tbi0: tbi-phy@11 { | ||
256 | reg = <0x11>; | ||
257 | device_type = "tbi-phy"; | ||
258 | }; | ||
259 | }; | ||
260 | |||
261 | mdio@25520 { | ||
262 | #address-cells = <1>; | ||
263 | #size-cells = <0>; | ||
264 | compatible = "fsl,gianfar-tbi"; | ||
265 | reg = <0x25520 0x20>; | ||
266 | |||
267 | tbi1: tbi-phy@11 { | ||
268 | reg = <0x11>; | ||
269 | device_type = "tbi-phy"; | ||
270 | }; | ||
255 | }; | 271 | }; |
256 | 272 | ||
257 | enet0: ethernet@24000 { | 273 | enet0: ethernet@24000 { |
@@ -263,6 +279,7 @@ | |||
263 | local-mac-address = [ 00 00 00 00 00 00 ]; | 279 | local-mac-address = [ 00 00 00 00 00 00 ]; |
264 | interrupts = <0x1d 0x2 0x1e 0x2 0x22 0x2>; | 280 | interrupts = <0x1d 0x2 0x1e 0x2 0x22 0x2>; |
265 | interrupt-parent = <&mpic>; | 281 | interrupt-parent = <&mpic>; |
282 | tbi-handle = <&tbi0>; | ||
266 | phy-handle = <&phy0>; | 283 | phy-handle = <&phy0>; |
267 | }; | 284 | }; |
268 | 285 | ||
@@ -275,6 +292,7 @@ | |||
275 | local-mac-address = [ 00 00 00 00 00 00 ]; | 292 | local-mac-address = [ 00 00 00 00 00 00 ]; |
276 | interrupts = <0x23 0x2 0x24 0x2 0x28 0x2>; | 293 | interrupts = <0x23 0x2 0x24 0x2 0x28 0x2>; |
277 | interrupt-parent = <&mpic>; | 294 | interrupt-parent = <&mpic>; |
295 | tbi-handle = <&tbi1>; | ||
278 | phy-handle = <&phy1>; | 296 | phy-handle = <&phy1>; |
279 | }; | 297 | }; |
280 | 298 | ||