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/mpc8641_hpcn.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/mpc8641_hpcn.dts')
-rw-r--r-- | arch/powerpc/boot/dts/mpc8641_hpcn.dts | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/arch/powerpc/boot/dts/mpc8641_hpcn.dts b/arch/powerpc/boot/dts/mpc8641_hpcn.dts index d665e767822a..35d5e248ccd7 100644 --- a/arch/powerpc/boot/dts/mpc8641_hpcn.dts +++ b/arch/powerpc/boot/dts/mpc8641_hpcn.dts | |||
@@ -205,8 +205,49 @@ | |||
205 | reg = <3>; | 205 | reg = <3>; |
206 | device_type = "ethernet-phy"; | 206 | device_type = "ethernet-phy"; |
207 | }; | 207 | }; |
208 | tbi0: tbi-phy@11 { | ||
209 | reg = <0x11>; | ||
210 | device_type = "tbi-phy"; | ||
211 | }; | ||
212 | }; | ||
213 | |||
214 | mdio@25520 { | ||
215 | #address-cells = <1>; | ||
216 | #size-cells = <0>; | ||
217 | compatible = "fsl,gianfar-tbi"; | ||
218 | reg = <0x25520 0x20>; | ||
219 | |||
220 | tbi1: tbi-phy@11 { | ||
221 | reg = <0x11>; | ||
222 | device_type = "tbi-phy"; | ||
223 | }; | ||
224 | }; | ||
225 | |||
226 | mdio@26520 { | ||
227 | #address-cells = <1>; | ||
228 | #size-cells = <0>; | ||
229 | compatible = "fsl,gianfar-tbi"; | ||
230 | reg = <0x26520 0x20>; | ||
231 | |||
232 | tbi2: tbi-phy@11 { | ||
233 | reg = <0x11>; | ||
234 | device_type = "tbi-phy"; | ||
235 | }; | ||
236 | }; | ||
237 | |||
238 | mdio@27520 { | ||
239 | #address-cells = <1>; | ||
240 | #size-cells = <0>; | ||
241 | compatible = "fsl,gianfar-tbi"; | ||
242 | reg = <0x27520 0x20>; | ||
243 | |||
244 | tbi3: tbi-phy@11 { | ||
245 | reg = <0x11>; | ||
246 | device_type = "tbi-phy"; | ||
247 | }; | ||
208 | }; | 248 | }; |
209 | 249 | ||
250 | |||
210 | enet0: ethernet@24000 { | 251 | enet0: ethernet@24000 { |
211 | cell-index = <0>; | 252 | cell-index = <0>; |
212 | device_type = "network"; | 253 | device_type = "network"; |
@@ -216,6 +257,7 @@ | |||
216 | local-mac-address = [ 00 00 00 00 00 00 ]; | 257 | local-mac-address = [ 00 00 00 00 00 00 ]; |
217 | interrupts = <29 2 30 2 34 2>; | 258 | interrupts = <29 2 30 2 34 2>; |
218 | interrupt-parent = <&mpic>; | 259 | interrupt-parent = <&mpic>; |
260 | tbi-handle = <&tbi0>; | ||
219 | phy-handle = <&phy0>; | 261 | phy-handle = <&phy0>; |
220 | phy-connection-type = "rgmii-id"; | 262 | phy-connection-type = "rgmii-id"; |
221 | }; | 263 | }; |
@@ -229,6 +271,7 @@ | |||
229 | local-mac-address = [ 00 00 00 00 00 00 ]; | 271 | local-mac-address = [ 00 00 00 00 00 00 ]; |
230 | interrupts = <35 2 36 2 40 2>; | 272 | interrupts = <35 2 36 2 40 2>; |
231 | interrupt-parent = <&mpic>; | 273 | interrupt-parent = <&mpic>; |
274 | tbi-handle = <&tbi1>; | ||
232 | phy-handle = <&phy1>; | 275 | phy-handle = <&phy1>; |
233 | phy-connection-type = "rgmii-id"; | 276 | phy-connection-type = "rgmii-id"; |
234 | }; | 277 | }; |
@@ -242,6 +285,7 @@ | |||
242 | local-mac-address = [ 00 00 00 00 00 00 ]; | 285 | local-mac-address = [ 00 00 00 00 00 00 ]; |
243 | interrupts = <31 2 32 2 33 2>; | 286 | interrupts = <31 2 32 2 33 2>; |
244 | interrupt-parent = <&mpic>; | 287 | interrupt-parent = <&mpic>; |
288 | tbi-handle = <&tbi2>; | ||
245 | phy-handle = <&phy2>; | 289 | phy-handle = <&phy2>; |
246 | phy-connection-type = "rgmii-id"; | 290 | phy-connection-type = "rgmii-id"; |
247 | }; | 291 | }; |
@@ -255,6 +299,7 @@ | |||
255 | local-mac-address = [ 00 00 00 00 00 00 ]; | 299 | local-mac-address = [ 00 00 00 00 00 00 ]; |
256 | interrupts = <37 2 38 2 39 2>; | 300 | interrupts = <37 2 38 2 39 2>; |
257 | interrupt-parent = <&mpic>; | 301 | interrupt-parent = <&mpic>; |
302 | tbi-handle = <&tbi3>; | ||
258 | phy-handle = <&phy3>; | 303 | phy-handle = <&phy3>; |
259 | phy-connection-type = "rgmii-id"; | 304 | phy-connection-type = "rgmii-id"; |
260 | }; | 305 | }; |