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/mpc8378_mds.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/mpc8378_mds.dts')
-rw-r--r-- | arch/powerpc/boot/dts/mpc8378_mds.dts | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/powerpc/boot/dts/mpc8378_mds.dts b/arch/powerpc/boot/dts/mpc8378_mds.dts index 67a08d2e2ff2..b85fc02682d2 100644 --- a/arch/powerpc/boot/dts/mpc8378_mds.dts +++ b/arch/powerpc/boot/dts/mpc8378_mds.dts | |||
@@ -232,8 +232,25 @@ | |||
232 | reg = <0x3>; | 232 | reg = <0x3>; |
233 | device_type = "ethernet-phy"; | 233 | device_type = "ethernet-phy"; |
234 | }; | 234 | }; |
235 | tbi0: tbi-phy@11 { | ||
236 | reg = <0x11>; | ||
237 | device_type = "tbi-phy"; | ||
238 | }; | ||
239 | }; | ||
240 | |||
241 | mdio@25520 { | ||
242 | #address-cells = <1>; | ||
243 | #size-cells = <0>; | ||
244 | compatible = "fsl,gianfar-tbi"; | ||
245 | reg = <0x25520 0x20>; | ||
246 | |||
247 | tbi1: tbi-phy@11 { | ||
248 | reg = <0x11>; | ||
249 | device_type = "tbi-phy"; | ||
250 | }; | ||
235 | }; | 251 | }; |
236 | 252 | ||
253 | |||
237 | enet0: ethernet@24000 { | 254 | enet0: ethernet@24000 { |
238 | cell-index = <0>; | 255 | cell-index = <0>; |
239 | device_type = "network"; | 256 | device_type = "network"; |
@@ -244,6 +261,7 @@ | |||
244 | interrupts = <32 0x8 33 0x8 34 0x8>; | 261 | interrupts = <32 0x8 33 0x8 34 0x8>; |
245 | phy-connection-type = "mii"; | 262 | phy-connection-type = "mii"; |
246 | interrupt-parent = <&ipic>; | 263 | interrupt-parent = <&ipic>; |
264 | tbi-handle = <&tbi0>; | ||
247 | phy-handle = <&phy2>; | 265 | phy-handle = <&phy2>; |
248 | }; | 266 | }; |
249 | 267 | ||
@@ -257,6 +275,7 @@ | |||
257 | interrupts = <35 0x8 36 0x8 37 0x8>; | 275 | interrupts = <35 0x8 36 0x8 37 0x8>; |
258 | phy-connection-type = "mii"; | 276 | phy-connection-type = "mii"; |
259 | interrupt-parent = <&ipic>; | 277 | interrupt-parent = <&ipic>; |
278 | tbi-handle = <&tbi1>; | ||
260 | phy-handle = <&phy3>; | 279 | phy-handle = <&phy3>; |
261 | }; | 280 | }; |
262 | 281 | ||