diff options
author | Anton Vorontsov <avorontsov@ru.mvista.com> | 2009-03-19 14:01:51 -0400 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2009-03-24 09:35:18 -0400 |
commit | d8bc55fb334e1124b72684e2d0a2e599aab21ae4 (patch) | |
tree | 5290a33768186b65e8f1bf37a39ff645b4e4af2b | |
parent | 84ba4a5899e613a396c5bea5feadba923534801b (diff) |
powerpc/86xx: 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>
-rw-r--r-- | arch/powerpc/boot/dts/gef_ppc9a.dts | 39 | ||||
-rw-r--r-- | arch/powerpc/boot/dts/gef_sbc310.dts | 39 | ||||
-rw-r--r-- | arch/powerpc/boot/dts/gef_sbc610.dts | 39 | ||||
-rw-r--r-- | arch/powerpc/boot/dts/mpc8641_hpcn.dts | 157 | ||||
-rw-r--r-- | arch/powerpc/boot/dts/sbc8641d.dts | 156 | ||||
-rw-r--r-- | arch/powerpc/platforms/86xx/gef_ppc9a.c | 1 | ||||
-rw-r--r-- | arch/powerpc/platforms/86xx/gef_sbc310.c | 1 | ||||
-rw-r--r-- | arch/powerpc/platforms/86xx/gef_sbc610.c | 1 | ||||
-rw-r--r-- | arch/powerpc/platforms/86xx/mpc8610_hpcd.c | 1 | ||||
-rw-r--r-- | arch/powerpc/platforms/86xx/mpc86xx_hpcn.c | 1 | ||||
-rw-r--r-- | arch/powerpc/platforms/86xx/sbc8641d.c | 1 |
11 files changed, 237 insertions, 199 deletions
diff --git a/arch/powerpc/boot/dts/gef_ppc9a.dts b/arch/powerpc/boot/dts/gef_ppc9a.dts index 0ddfdfc7ab5f..d47ad0718759 100644 --- a/arch/powerpc/boot/dts/gef_ppc9a.dts +++ b/arch/powerpc/boot/dts/gef_ppc9a.dts | |||
@@ -247,34 +247,37 @@ | |||
247 | }; | 247 | }; |
248 | }; | 248 | }; |
249 | 249 | ||
250 | mdio@24520 { | ||
251 | #address-cells = <1>; | ||
252 | #size-cells = <0>; | ||
253 | compatible = "fsl,gianfar-mdio"; | ||
254 | reg = <0x24520 0x20>; | ||
255 | |||
256 | phy0: ethernet-phy@0 { | ||
257 | interrupt-parent = <&gef_pic>; | ||
258 | interrupts = <0x9 0x4>; | ||
259 | reg = <1>; | ||
260 | }; | ||
261 | phy2: ethernet-phy@2 { | ||
262 | interrupt-parent = <&gef_pic>; | ||
263 | interrupts = <0x8 0x4>; | ||
264 | reg = <3>; | ||
265 | }; | ||
266 | }; | ||
267 | |||
268 | enet0: ethernet@24000 { | 250 | enet0: ethernet@24000 { |
251 | #address-cells = <1>; | ||
252 | #size-cells = <1>; | ||
269 | device_type = "network"; | 253 | device_type = "network"; |
270 | model = "eTSEC"; | 254 | model = "eTSEC"; |
271 | compatible = "gianfar"; | 255 | compatible = "gianfar"; |
272 | reg = <0x24000 0x1000>; | 256 | reg = <0x24000 0x1000>; |
257 | ranges = <0x0 0x24000 0x1000>; | ||
273 | local-mac-address = [ 00 00 00 00 00 00 ]; | 258 | local-mac-address = [ 00 00 00 00 00 00 ]; |
274 | interrupts = <0x1d 0x2 0x1e 0x2 0x22 0x2>; | 259 | interrupts = <0x1d 0x2 0x1e 0x2 0x22 0x2>; |
275 | interrupt-parent = <&mpic>; | 260 | interrupt-parent = <&mpic>; |
276 | phy-handle = <&phy0>; | 261 | phy-handle = <&phy0>; |
277 | phy-connection-type = "gmii"; | 262 | phy-connection-type = "gmii"; |
263 | |||
264 | mdio@520 { | ||
265 | #address-cells = <1>; | ||
266 | #size-cells = <0>; | ||
267 | compatible = "fsl,gianfar-mdio"; | ||
268 | reg = <0x520 0x20>; | ||
269 | |||
270 | phy0: ethernet-phy@0 { | ||
271 | interrupt-parent = <&gef_pic>; | ||
272 | interrupts = <0x9 0x4>; | ||
273 | reg = <1>; | ||
274 | }; | ||
275 | phy2: ethernet-phy@2 { | ||
276 | interrupt-parent = <&gef_pic>; | ||
277 | interrupts = <0x8 0x4>; | ||
278 | reg = <3>; | ||
279 | }; | ||
280 | }; | ||
278 | }; | 281 | }; |
279 | 282 | ||
280 | enet1: ethernet@26000 { | 283 | enet1: ethernet@26000 { |
diff --git a/arch/powerpc/boot/dts/gef_sbc310.dts b/arch/powerpc/boot/dts/gef_sbc310.dts index 09eeb438216b..1569117e5ddc 100644 --- a/arch/powerpc/boot/dts/gef_sbc310.dts +++ b/arch/powerpc/boot/dts/gef_sbc310.dts | |||
@@ -247,34 +247,37 @@ | |||
247 | }; | 247 | }; |
248 | }; | 248 | }; |
249 | 249 | ||
250 | mdio@24520 { | ||
251 | #address-cells = <1>; | ||
252 | #size-cells = <0>; | ||
253 | compatible = "fsl,gianfar-mdio"; | ||
254 | reg = <0x24520 0x20>; | ||
255 | |||
256 | phy0: ethernet-phy@0 { | ||
257 | interrupt-parent = <&gef_pic>; | ||
258 | interrupts = <0x9 0x4>; | ||
259 | reg = <1>; | ||
260 | }; | ||
261 | phy2: ethernet-phy@2 { | ||
262 | interrupt-parent = <&gef_pic>; | ||
263 | interrupts = <0x8 0x4>; | ||
264 | reg = <3>; | ||
265 | }; | ||
266 | }; | ||
267 | |||
268 | enet0: ethernet@24000 { | 250 | enet0: ethernet@24000 { |
251 | #address-cells = <1>; | ||
252 | #size-cells = <1>; | ||
269 | device_type = "network"; | 253 | device_type = "network"; |
270 | model = "eTSEC"; | 254 | model = "eTSEC"; |
271 | compatible = "gianfar"; | 255 | compatible = "gianfar"; |
272 | reg = <0x24000 0x1000>; | 256 | reg = <0x24000 0x1000>; |
257 | ranges = <0x0 0x24000 0x1000>; | ||
273 | local-mac-address = [ 00 00 00 00 00 00 ]; | 258 | local-mac-address = [ 00 00 00 00 00 00 ]; |
274 | interrupts = <0x1d 0x2 0x1e 0x2 0x22 0x2>; | 259 | interrupts = <0x1d 0x2 0x1e 0x2 0x22 0x2>; |
275 | interrupt-parent = <&mpic>; | 260 | interrupt-parent = <&mpic>; |
276 | phy-handle = <&phy0>; | 261 | phy-handle = <&phy0>; |
277 | phy-connection-type = "gmii"; | 262 | phy-connection-type = "gmii"; |
263 | |||
264 | mdio@520 { | ||
265 | #address-cells = <1>; | ||
266 | #size-cells = <0>; | ||
267 | compatible = "fsl,gianfar-mdio"; | ||
268 | reg = <0x520 0x20>; | ||
269 | |||
270 | phy0: ethernet-phy@0 { | ||
271 | interrupt-parent = <&gef_pic>; | ||
272 | interrupts = <0x9 0x4>; | ||
273 | reg = <1>; | ||
274 | }; | ||
275 | phy2: ethernet-phy@2 { | ||
276 | interrupt-parent = <&gef_pic>; | ||
277 | interrupts = <0x8 0x4>; | ||
278 | reg = <3>; | ||
279 | }; | ||
280 | }; | ||
278 | }; | 281 | }; |
279 | 282 | ||
280 | enet1: ethernet@26000 { | 283 | enet1: ethernet@26000 { |
diff --git a/arch/powerpc/boot/dts/gef_sbc610.dts b/arch/powerpc/boot/dts/gef_sbc610.dts index 714175ccb2a4..6582dbd36da7 100644 --- a/arch/powerpc/boot/dts/gef_sbc610.dts +++ b/arch/powerpc/boot/dts/gef_sbc610.dts | |||
@@ -202,34 +202,37 @@ | |||
202 | }; | 202 | }; |
203 | }; | 203 | }; |
204 | 204 | ||
205 | mdio@24520 { | ||
206 | #address-cells = <1>; | ||
207 | #size-cells = <0>; | ||
208 | compatible = "fsl,gianfar-mdio"; | ||
209 | reg = <0x24520 0x20>; | ||
210 | |||
211 | phy0: ethernet-phy@0 { | ||
212 | interrupt-parent = <&gef_pic>; | ||
213 | interrupts = <0x9 0x4>; | ||
214 | reg = <1>; | ||
215 | }; | ||
216 | phy2: ethernet-phy@2 { | ||
217 | interrupt-parent = <&gef_pic>; | ||
218 | interrupts = <0x8 0x4>; | ||
219 | reg = <3>; | ||
220 | }; | ||
221 | }; | ||
222 | |||
223 | enet0: ethernet@24000 { | 205 | enet0: ethernet@24000 { |
206 | #address-cells = <1>; | ||
207 | #size-cells = <1>; | ||
224 | device_type = "network"; | 208 | device_type = "network"; |
225 | model = "eTSEC"; | 209 | model = "eTSEC"; |
226 | compatible = "gianfar"; | 210 | compatible = "gianfar"; |
227 | reg = <0x24000 0x1000>; | 211 | reg = <0x24000 0x1000>; |
212 | ranges = <0x0 0x24000 0x1000>; | ||
228 | local-mac-address = [ 00 00 00 00 00 00 ]; | 213 | local-mac-address = [ 00 00 00 00 00 00 ]; |
229 | interrupts = <0x1d 0x2 0x1e 0x2 0x22 0x2>; | 214 | interrupts = <0x1d 0x2 0x1e 0x2 0x22 0x2>; |
230 | interrupt-parent = <&mpic>; | 215 | interrupt-parent = <&mpic>; |
231 | phy-handle = <&phy0>; | 216 | phy-handle = <&phy0>; |
232 | phy-connection-type = "gmii"; | 217 | phy-connection-type = "gmii"; |
218 | |||
219 | mdio@520 { | ||
220 | #address-cells = <1>; | ||
221 | #size-cells = <0>; | ||
222 | compatible = "fsl,gianfar-mdio"; | ||
223 | reg = <0x520 0x20>; | ||
224 | |||
225 | phy0: ethernet-phy@0 { | ||
226 | interrupt-parent = <&gef_pic>; | ||
227 | interrupts = <0x9 0x4>; | ||
228 | reg = <1>; | ||
229 | }; | ||
230 | phy2: ethernet-phy@2 { | ||
231 | interrupt-parent = <&gef_pic>; | ||
232 | interrupts = <0x8 0x4>; | ||
233 | reg = <3>; | ||
234 | }; | ||
235 | }; | ||
233 | }; | 236 | }; |
234 | 237 | ||
235 | enet1: ethernet@26000 { | 238 | enet1: ethernet@26000 { |
diff --git a/arch/powerpc/boot/dts/mpc8641_hpcn.dts b/arch/powerpc/boot/dts/mpc8641_hpcn.dts index 4481532cbe77..d72beb192460 100644 --- a/arch/powerpc/boot/dts/mpc8641_hpcn.dts +++ b/arch/powerpc/boot/dts/mpc8641_hpcn.dts | |||
@@ -180,133 +180,144 @@ | |||
180 | }; | 180 | }; |
181 | }; | 181 | }; |
182 | 182 | ||
183 | mdio@24520 { | ||
184 | #address-cells = <1>; | ||
185 | #size-cells = <0>; | ||
186 | compatible = "fsl,gianfar-mdio"; | ||
187 | reg = <0x24520 0x20>; | ||
188 | |||
189 | phy0: ethernet-phy@0 { | ||
190 | interrupt-parent = <&mpic>; | ||
191 | interrupts = <10 1>; | ||
192 | reg = <0>; | ||
193 | device_type = "ethernet-phy"; | ||
194 | }; | ||
195 | phy1: ethernet-phy@1 { | ||
196 | interrupt-parent = <&mpic>; | ||
197 | interrupts = <10 1>; | ||
198 | reg = <1>; | ||
199 | device_type = "ethernet-phy"; | ||
200 | }; | ||
201 | phy2: ethernet-phy@2 { | ||
202 | interrupt-parent = <&mpic>; | ||
203 | interrupts = <10 1>; | ||
204 | reg = <2>; | ||
205 | device_type = "ethernet-phy"; | ||
206 | }; | ||
207 | phy3: ethernet-phy@3 { | ||
208 | interrupt-parent = <&mpic>; | ||
209 | interrupts = <10 1>; | ||
210 | reg = <3>; | ||
211 | device_type = "ethernet-phy"; | ||
212 | }; | ||
213 | tbi0: tbi-phy@11 { | ||
214 | reg = <0x11>; | ||
215 | device_type = "tbi-phy"; | ||
216 | }; | ||
217 | }; | ||
218 | |||
219 | mdio@25520 { | ||
220 | #address-cells = <1>; | ||
221 | #size-cells = <0>; | ||
222 | compatible = "fsl,gianfar-tbi"; | ||
223 | reg = <0x25520 0x20>; | ||
224 | |||
225 | tbi1: tbi-phy@11 { | ||
226 | reg = <0x11>; | ||
227 | device_type = "tbi-phy"; | ||
228 | }; | ||
229 | }; | ||
230 | |||
231 | mdio@26520 { | ||
232 | #address-cells = <1>; | ||
233 | #size-cells = <0>; | ||
234 | compatible = "fsl,gianfar-tbi"; | ||
235 | reg = <0x26520 0x20>; | ||
236 | |||
237 | tbi2: tbi-phy@11 { | ||
238 | reg = <0x11>; | ||
239 | device_type = "tbi-phy"; | ||
240 | }; | ||
241 | }; | ||
242 | |||
243 | mdio@27520 { | ||
244 | #address-cells = <1>; | ||
245 | #size-cells = <0>; | ||
246 | compatible = "fsl,gianfar-tbi"; | ||
247 | reg = <0x27520 0x20>; | ||
248 | |||
249 | tbi3: tbi-phy@11 { | ||
250 | reg = <0x11>; | ||
251 | device_type = "tbi-phy"; | ||
252 | }; | ||
253 | }; | ||
254 | |||
255 | |||
256 | enet0: ethernet@24000 { | 183 | enet0: ethernet@24000 { |
184 | #address-cells = <1>; | ||
185 | #size-cells = <1>; | ||
257 | cell-index = <0>; | 186 | cell-index = <0>; |
258 | device_type = "network"; | 187 | device_type = "network"; |
259 | model = "TSEC"; | 188 | model = "TSEC"; |
260 | compatible = "gianfar"; | 189 | compatible = "gianfar"; |
261 | reg = <0x24000 0x1000>; | 190 | reg = <0x24000 0x1000>; |
191 | ranges = <0x0 0x24000 0x1000>; | ||
262 | local-mac-address = [ 00 00 00 00 00 00 ]; | 192 | local-mac-address = [ 00 00 00 00 00 00 ]; |
263 | interrupts = <29 2 30 2 34 2>; | 193 | interrupts = <29 2 30 2 34 2>; |
264 | interrupt-parent = <&mpic>; | 194 | interrupt-parent = <&mpic>; |
265 | tbi-handle = <&tbi0>; | 195 | tbi-handle = <&tbi0>; |
266 | phy-handle = <&phy0>; | 196 | phy-handle = <&phy0>; |
267 | phy-connection-type = "rgmii-id"; | 197 | phy-connection-type = "rgmii-id"; |
198 | |||
199 | mdio@520 { | ||
200 | #address-cells = <1>; | ||
201 | #size-cells = <0>; | ||
202 | compatible = "fsl,gianfar-mdio"; | ||
203 | reg = <0x520 0x20>; | ||
204 | |||
205 | phy0: ethernet-phy@0 { | ||
206 | interrupt-parent = <&mpic>; | ||
207 | interrupts = <10 1>; | ||
208 | reg = <0>; | ||
209 | device_type = "ethernet-phy"; | ||
210 | }; | ||
211 | phy1: ethernet-phy@1 { | ||
212 | interrupt-parent = <&mpic>; | ||
213 | interrupts = <10 1>; | ||
214 | reg = <1>; | ||
215 | device_type = "ethernet-phy"; | ||
216 | }; | ||
217 | phy2: ethernet-phy@2 { | ||
218 | interrupt-parent = <&mpic>; | ||
219 | interrupts = <10 1>; | ||
220 | reg = <2>; | ||
221 | device_type = "ethernet-phy"; | ||
222 | }; | ||
223 | phy3: ethernet-phy@3 { | ||
224 | interrupt-parent = <&mpic>; | ||
225 | interrupts = <10 1>; | ||
226 | reg = <3>; | ||
227 | device_type = "ethernet-phy"; | ||
228 | }; | ||
229 | tbi0: tbi-phy@11 { | ||
230 | reg = <0x11>; | ||
231 | device_type = "tbi-phy"; | ||
232 | }; | ||
233 | }; | ||
268 | }; | 234 | }; |
269 | 235 | ||
270 | enet1: ethernet@25000 { | 236 | enet1: ethernet@25000 { |
237 | #address-cells = <1>; | ||
238 | #size-cells = <1>; | ||
271 | cell-index = <1>; | 239 | cell-index = <1>; |
272 | device_type = "network"; | 240 | device_type = "network"; |
273 | model = "TSEC"; | 241 | model = "TSEC"; |
274 | compatible = "gianfar"; | 242 | compatible = "gianfar"; |
275 | reg = <0x25000 0x1000>; | 243 | reg = <0x25000 0x1000>; |
244 | ranges = <0x0 0x25000 0x1000>; | ||
276 | local-mac-address = [ 00 00 00 00 00 00 ]; | 245 | local-mac-address = [ 00 00 00 00 00 00 ]; |
277 | interrupts = <35 2 36 2 40 2>; | 246 | interrupts = <35 2 36 2 40 2>; |
278 | interrupt-parent = <&mpic>; | 247 | interrupt-parent = <&mpic>; |
279 | tbi-handle = <&tbi1>; | 248 | tbi-handle = <&tbi1>; |
280 | phy-handle = <&phy1>; | 249 | phy-handle = <&phy1>; |
281 | phy-connection-type = "rgmii-id"; | 250 | phy-connection-type = "rgmii-id"; |
251 | |||
252 | mdio@520 { | ||
253 | #address-cells = <1>; | ||
254 | #size-cells = <0>; | ||
255 | compatible = "fsl,gianfar-tbi"; | ||
256 | reg = <0x520 0x20>; | ||
257 | |||
258 | tbi1: tbi-phy@11 { | ||
259 | reg = <0x11>; | ||
260 | device_type = "tbi-phy"; | ||
261 | }; | ||
262 | }; | ||
282 | }; | 263 | }; |
283 | 264 | ||
284 | enet2: ethernet@26000 { | 265 | enet2: ethernet@26000 { |
266 | #address-cells = <1>; | ||
267 | #size-cells = <1>; | ||
285 | cell-index = <2>; | 268 | cell-index = <2>; |
286 | device_type = "network"; | 269 | device_type = "network"; |
287 | model = "TSEC"; | 270 | model = "TSEC"; |
288 | compatible = "gianfar"; | 271 | compatible = "gianfar"; |
289 | reg = <0x26000 0x1000>; | 272 | reg = <0x26000 0x1000>; |
273 | ranges = <0x0 0x26000 0x1000>; | ||
290 | local-mac-address = [ 00 00 00 00 00 00 ]; | 274 | local-mac-address = [ 00 00 00 00 00 00 ]; |
291 | interrupts = <31 2 32 2 33 2>; | 275 | interrupts = <31 2 32 2 33 2>; |
292 | interrupt-parent = <&mpic>; | 276 | interrupt-parent = <&mpic>; |
293 | tbi-handle = <&tbi2>; | 277 | tbi-handle = <&tbi2>; |
294 | phy-handle = <&phy2>; | 278 | phy-handle = <&phy2>; |
295 | phy-connection-type = "rgmii-id"; | 279 | phy-connection-type = "rgmii-id"; |
280 | |||
281 | mdio@520 { | ||
282 | #address-cells = <1>; | ||
283 | #size-cells = <0>; | ||
284 | compatible = "fsl,gianfar-tbi"; | ||
285 | reg = <0x520 0x20>; | ||
286 | |||
287 | tbi2: tbi-phy@11 { | ||
288 | reg = <0x11>; | ||
289 | device_type = "tbi-phy"; | ||
290 | }; | ||
291 | }; | ||
296 | }; | 292 | }; |
297 | 293 | ||
298 | enet3: ethernet@27000 { | 294 | enet3: ethernet@27000 { |
295 | #address-cells = <1>; | ||
296 | #size-cells = <1>; | ||
299 | cell-index = <3>; | 297 | cell-index = <3>; |
300 | device_type = "network"; | 298 | device_type = "network"; |
301 | model = "TSEC"; | 299 | model = "TSEC"; |
302 | compatible = "gianfar"; | 300 | compatible = "gianfar"; |
303 | reg = <0x27000 0x1000>; | 301 | reg = <0x27000 0x1000>; |
302 | ranges = <0x0 0x27000 0x1000>; | ||
304 | local-mac-address = [ 00 00 00 00 00 00 ]; | 303 | local-mac-address = [ 00 00 00 00 00 00 ]; |
305 | interrupts = <37 2 38 2 39 2>; | 304 | interrupts = <37 2 38 2 39 2>; |
306 | interrupt-parent = <&mpic>; | 305 | interrupt-parent = <&mpic>; |
307 | tbi-handle = <&tbi3>; | 306 | tbi-handle = <&tbi3>; |
308 | phy-handle = <&phy3>; | 307 | phy-handle = <&phy3>; |
309 | phy-connection-type = "rgmii-id"; | 308 | phy-connection-type = "rgmii-id"; |
309 | |||
310 | mdio@520 { | ||
311 | #address-cells = <1>; | ||
312 | #size-cells = <0>; | ||
313 | compatible = "fsl,gianfar-tbi"; | ||
314 | reg = <0x520 0x20>; | ||
315 | |||
316 | tbi3: tbi-phy@11 { | ||
317 | reg = <0x11>; | ||
318 | device_type = "tbi-phy"; | ||
319 | }; | ||
320 | }; | ||
310 | }; | 321 | }; |
311 | 322 | ||
312 | serial0: serial@4500 { | 323 | serial0: serial@4500 { |
diff --git a/arch/powerpc/boot/dts/sbc8641d.dts b/arch/powerpc/boot/dts/sbc8641d.dts index 36db981548e4..e3e914e78caa 100644 --- a/arch/powerpc/boot/dts/sbc8641d.dts +++ b/arch/powerpc/boot/dts/sbc8641d.dts | |||
@@ -192,132 +192,144 @@ | |||
192 | }; | 192 | }; |
193 | }; | 193 | }; |
194 | 194 | ||
195 | mdio@24520 { | ||
196 | #address-cells = <1>; | ||
197 | #size-cells = <0>; | ||
198 | compatible = "fsl,gianfar-mdio"; | ||
199 | reg = <0x24520 0x20>; | ||
200 | |||
201 | phy0: ethernet-phy@1f { | ||
202 | interrupt-parent = <&mpic>; | ||
203 | interrupts = <10 1>; | ||
204 | reg = <0x1f>; | ||
205 | device_type = "ethernet-phy"; | ||
206 | }; | ||
207 | phy1: ethernet-phy@0 { | ||
208 | interrupt-parent = <&mpic>; | ||
209 | interrupts = <10 1>; | ||
210 | reg = <0>; | ||
211 | device_type = "ethernet-phy"; | ||
212 | }; | ||
213 | phy2: ethernet-phy@1 { | ||
214 | interrupt-parent = <&mpic>; | ||
215 | interrupts = <10 1>; | ||
216 | reg = <1>; | ||
217 | device_type = "ethernet-phy"; | ||
218 | }; | ||
219 | phy3: ethernet-phy@2 { | ||
220 | interrupt-parent = <&mpic>; | ||
221 | interrupts = <10 1>; | ||
222 | reg = <2>; | ||
223 | device_type = "ethernet-phy"; | ||
224 | }; | ||
225 | tbi0: tbi-phy@11 { | ||
226 | reg = <0x11>; | ||
227 | device_type = "tbi-phy"; | ||
228 | }; | ||
229 | }; | ||
230 | |||
231 | mdio@25520 { | ||
232 | #address-cells = <1>; | ||
233 | #size-cells = <0>; | ||
234 | compatible = "fsl,gianfar-tbi"; | ||
235 | reg = <0x25520 0x20>; | ||
236 | |||
237 | tbi1: tbi-phy@11 { | ||
238 | reg = <0x11>; | ||
239 | device_type = "tbi-phy"; | ||
240 | }; | ||
241 | }; | ||
242 | |||
243 | mdio@26520 { | ||
244 | #address-cells = <1>; | ||
245 | #size-cells = <0>; | ||
246 | compatible = "fsl,gianfar-tbi"; | ||
247 | reg = <0x26520 0x20>; | ||
248 | |||
249 | tbi2: tbi-phy@11 { | ||
250 | reg = <0x11>; | ||
251 | device_type = "tbi-phy"; | ||
252 | }; | ||
253 | }; | ||
254 | |||
255 | mdio@27520 { | ||
256 | #address-cells = <1>; | ||
257 | #size-cells = <0>; | ||
258 | compatible = "fsl,gianfar-tbi"; | ||
259 | reg = <0x27520 0x20>; | ||
260 | |||
261 | tbi3: tbi-phy@11 { | ||
262 | reg = <0x11>; | ||
263 | device_type = "tbi-phy"; | ||
264 | }; | ||
265 | }; | ||
266 | |||
267 | enet0: ethernet@24000 { | 195 | enet0: ethernet@24000 { |
196 | #address-cells = <1>; | ||
197 | #size-cells = <1>; | ||
268 | cell-index = <0>; | 198 | cell-index = <0>; |
269 | device_type = "network"; | 199 | device_type = "network"; |
270 | model = "TSEC"; | 200 | model = "TSEC"; |
271 | compatible = "gianfar"; | 201 | compatible = "gianfar"; |
272 | reg = <0x24000 0x1000>; | 202 | reg = <0x24000 0x1000>; |
203 | ranges = <0x0 0x24000 0x1000>; | ||
273 | local-mac-address = [ 00 00 00 00 00 00 ]; | 204 | local-mac-address = [ 00 00 00 00 00 00 ]; |
274 | interrupts = <29 2 30 2 34 2>; | 205 | interrupts = <29 2 30 2 34 2>; |
275 | interrupt-parent = <&mpic>; | 206 | interrupt-parent = <&mpic>; |
276 | tbi-handle = <&tbi0>; | 207 | tbi-handle = <&tbi0>; |
277 | phy-handle = <&phy0>; | 208 | phy-handle = <&phy0>; |
278 | phy-connection-type = "rgmii-id"; | 209 | phy-connection-type = "rgmii-id"; |
210 | |||
211 | mdio@520 { | ||
212 | #address-cells = <1>; | ||
213 | #size-cells = <0>; | ||
214 | compatible = "fsl,gianfar-mdio"; | ||
215 | reg = <0x520 0x20>; | ||
216 | |||
217 | phy0: ethernet-phy@1f { | ||
218 | interrupt-parent = <&mpic>; | ||
219 | interrupts = <10 1>; | ||
220 | reg = <0x1f>; | ||
221 | device_type = "ethernet-phy"; | ||
222 | }; | ||
223 | phy1: ethernet-phy@0 { | ||
224 | interrupt-parent = <&mpic>; | ||
225 | interrupts = <10 1>; | ||
226 | reg = <0>; | ||
227 | device_type = "ethernet-phy"; | ||
228 | }; | ||
229 | phy2: ethernet-phy@1 { | ||
230 | interrupt-parent = <&mpic>; | ||
231 | interrupts = <10 1>; | ||
232 | reg = <1>; | ||
233 | device_type = "ethernet-phy"; | ||
234 | }; | ||
235 | phy3: ethernet-phy@2 { | ||
236 | interrupt-parent = <&mpic>; | ||
237 | interrupts = <10 1>; | ||
238 | reg = <2>; | ||
239 | device_type = "ethernet-phy"; | ||
240 | }; | ||
241 | tbi0: tbi-phy@11 { | ||
242 | reg = <0x11>; | ||
243 | device_type = "tbi-phy"; | ||
244 | }; | ||
245 | }; | ||
279 | }; | 246 | }; |
280 | 247 | ||
281 | enet1: ethernet@25000 { | 248 | enet1: ethernet@25000 { |
249 | #address-cells = <1>; | ||
250 | #size-cells = <1>; | ||
282 | cell-index = <1>; | 251 | cell-index = <1>; |
283 | device_type = "network"; | 252 | device_type = "network"; |
284 | model = "TSEC"; | 253 | model = "TSEC"; |
285 | compatible = "gianfar"; | 254 | compatible = "gianfar"; |
286 | reg = <0x25000 0x1000>; | 255 | reg = <0x25000 0x1000>; |
256 | ranges = <0x0 0x25000 0x1000>; | ||
287 | local-mac-address = [ 00 00 00 00 00 00 ]; | 257 | local-mac-address = [ 00 00 00 00 00 00 ]; |
288 | interrupts = <35 2 36 2 40 2>; | 258 | interrupts = <35 2 36 2 40 2>; |
289 | interrupt-parent = <&mpic>; | 259 | interrupt-parent = <&mpic>; |
290 | tbi-handle = <&tbi1>; | 260 | tbi-handle = <&tbi1>; |
291 | phy-handle = <&phy1>; | 261 | phy-handle = <&phy1>; |
292 | phy-connection-type = "rgmii-id"; | 262 | phy-connection-type = "rgmii-id"; |
263 | |||
264 | mdio@520 { | ||
265 | #address-cells = <1>; | ||
266 | #size-cells = <0>; | ||
267 | compatible = "fsl,gianfar-tbi"; | ||
268 | reg = <0x520 0x20>; | ||
269 | |||
270 | tbi1: tbi-phy@11 { | ||
271 | reg = <0x11>; | ||
272 | device_type = "tbi-phy"; | ||
273 | }; | ||
274 | }; | ||
293 | }; | 275 | }; |
294 | 276 | ||
295 | enet2: ethernet@26000 { | 277 | enet2: ethernet@26000 { |
278 | #address-cells = <1>; | ||
279 | #size-cells = <1>; | ||
296 | cell-index = <2>; | 280 | cell-index = <2>; |
297 | device_type = "network"; | 281 | device_type = "network"; |
298 | model = "TSEC"; | 282 | model = "TSEC"; |
299 | compatible = "gianfar"; | 283 | compatible = "gianfar"; |
300 | reg = <0x26000 0x1000>; | 284 | reg = <0x26000 0x1000>; |
285 | ranges = <0x0 0x26000 0x1000>; | ||
301 | local-mac-address = [ 00 00 00 00 00 00 ]; | 286 | local-mac-address = [ 00 00 00 00 00 00 ]; |
302 | interrupts = <31 2 32 2 33 2>; | 287 | interrupts = <31 2 32 2 33 2>; |
303 | interrupt-parent = <&mpic>; | 288 | interrupt-parent = <&mpic>; |
304 | tbi-handle = <&tbi2>; | 289 | tbi-handle = <&tbi2>; |
305 | phy-handle = <&phy2>; | 290 | phy-handle = <&phy2>; |
306 | phy-connection-type = "rgmii-id"; | 291 | phy-connection-type = "rgmii-id"; |
292 | |||
293 | mdio@520 { | ||
294 | #address-cells = <1>; | ||
295 | #size-cells = <0>; | ||
296 | compatible = "fsl,gianfar-tbi"; | ||
297 | reg = <0x520 0x20>; | ||
298 | |||
299 | tbi2: tbi-phy@11 { | ||
300 | reg = <0x11>; | ||
301 | device_type = "tbi-phy"; | ||
302 | }; | ||
303 | }; | ||
307 | }; | 304 | }; |
308 | 305 | ||
309 | enet3: ethernet@27000 { | 306 | enet3: ethernet@27000 { |
307 | #address-cells = <1>; | ||
308 | #size-cells = <1>; | ||
310 | cell-index = <3>; | 309 | cell-index = <3>; |
311 | device_type = "network"; | 310 | device_type = "network"; |
312 | model = "TSEC"; | 311 | model = "TSEC"; |
313 | compatible = "gianfar"; | 312 | compatible = "gianfar"; |
314 | reg = <0x27000 0x1000>; | 313 | reg = <0x27000 0x1000>; |
314 | ranges = <0x0 0x27000 0x1000>; | ||
315 | local-mac-address = [ 00 00 00 00 00 00 ]; | 315 | local-mac-address = [ 00 00 00 00 00 00 ]; |
316 | interrupts = <37 2 38 2 39 2>; | 316 | interrupts = <37 2 38 2 39 2>; |
317 | interrupt-parent = <&mpic>; | 317 | interrupt-parent = <&mpic>; |
318 | tbi-handle = <&tbi3>; | 318 | tbi-handle = <&tbi3>; |
319 | phy-handle = <&phy3>; | 319 | phy-handle = <&phy3>; |
320 | phy-connection-type = "rgmii-id"; | 320 | phy-connection-type = "rgmii-id"; |
321 | |||
322 | mdio@520 { | ||
323 | #address-cells = <1>; | ||
324 | #size-cells = <0>; | ||
325 | compatible = "fsl,gianfar-tbi"; | ||
326 | reg = <0x520 0x20>; | ||
327 | |||
328 | tbi3: tbi-phy@11 { | ||
329 | reg = <0x11>; | ||
330 | device_type = "tbi-phy"; | ||
331 | }; | ||
332 | }; | ||
321 | }; | 333 | }; |
322 | 334 | ||
323 | serial0: serial@4500 { | 335 | serial0: serial@4500 { |
diff --git a/arch/powerpc/platforms/86xx/gef_ppc9a.c b/arch/powerpc/platforms/86xx/gef_ppc9a.c index 830fd9a23b5a..d79104669cdc 100644 --- a/arch/powerpc/platforms/86xx/gef_ppc9a.c +++ b/arch/powerpc/platforms/86xx/gef_ppc9a.c | |||
@@ -194,6 +194,7 @@ static long __init mpc86xx_time_init(void) | |||
194 | 194 | ||
195 | static __initdata struct of_device_id of_bus_ids[] = { | 195 | static __initdata struct of_device_id of_bus_ids[] = { |
196 | { .compatible = "simple-bus", }, | 196 | { .compatible = "simple-bus", }, |
197 | { .compatible = "gianfar", }, | ||
197 | {}, | 198 | {}, |
198 | }; | 199 | }; |
199 | 200 | ||
diff --git a/arch/powerpc/platforms/86xx/gef_sbc310.c b/arch/powerpc/platforms/86xx/gef_sbc310.c index ba3ce4381611..af14f852d747 100644 --- a/arch/powerpc/platforms/86xx/gef_sbc310.c +++ b/arch/powerpc/platforms/86xx/gef_sbc310.c | |||
@@ -205,6 +205,7 @@ static long __init mpc86xx_time_init(void) | |||
205 | 205 | ||
206 | static __initdata struct of_device_id of_bus_ids[] = { | 206 | static __initdata struct of_device_id of_bus_ids[] = { |
207 | { .compatible = "simple-bus", }, | 207 | { .compatible = "simple-bus", }, |
208 | { .compatible = "gianfar", }, | ||
208 | {}, | 209 | {}, |
209 | }; | 210 | }; |
210 | 211 | ||
diff --git a/arch/powerpc/platforms/86xx/gef_sbc610.c b/arch/powerpc/platforms/86xx/gef_sbc610.c index d6b772ba3b8f..ea2360639652 100644 --- a/arch/powerpc/platforms/86xx/gef_sbc610.c +++ b/arch/powerpc/platforms/86xx/gef_sbc610.c | |||
@@ -194,6 +194,7 @@ static long __init mpc86xx_time_init(void) | |||
194 | 194 | ||
195 | static __initdata struct of_device_id of_bus_ids[] = { | 195 | static __initdata struct of_device_id of_bus_ids[] = { |
196 | { .compatible = "simple-bus", }, | 196 | { .compatible = "simple-bus", }, |
197 | { .compatible = "gianfar", }, | ||
197 | {}, | 198 | {}, |
198 | }; | 199 | }; |
199 | 200 | ||
diff --git a/arch/powerpc/platforms/86xx/mpc8610_hpcd.c b/arch/powerpc/platforms/86xx/mpc8610_hpcd.c index e8d54ac5292c..3f49a6f893a3 100644 --- a/arch/powerpc/platforms/86xx/mpc8610_hpcd.c +++ b/arch/powerpc/platforms/86xx/mpc8610_hpcd.c | |||
@@ -46,6 +46,7 @@ static unsigned char *pixis_bdcfg0, *pixis_arch; | |||
46 | static struct of_device_id __initdata mpc8610_ids[] = { | 46 | static struct of_device_id __initdata mpc8610_ids[] = { |
47 | { .compatible = "fsl,mpc8610-immr", }, | 47 | { .compatible = "fsl,mpc8610-immr", }, |
48 | { .compatible = "simple-bus", }, | 48 | { .compatible = "simple-bus", }, |
49 | { .compatible = "gianfar", }, | ||
49 | {} | 50 | {} |
50 | }; | 51 | }; |
51 | 52 | ||
diff --git a/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c b/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c index 27e0e682d8e1..c4ec49b5f7f8 100644 --- a/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c +++ b/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c | |||
@@ -148,6 +148,7 @@ mpc86xx_time_init(void) | |||
148 | static __initdata struct of_device_id of_bus_ids[] = { | 148 | static __initdata struct of_device_id of_bus_ids[] = { |
149 | { .compatible = "simple-bus", }, | 149 | { .compatible = "simple-bus", }, |
150 | { .compatible = "fsl,rapidio-delta", }, | 150 | { .compatible = "fsl,rapidio-delta", }, |
151 | { .compatible = "gianfar", }, | ||
151 | {}, | 152 | {}, |
152 | }; | 153 | }; |
153 | 154 | ||
diff --git a/arch/powerpc/platforms/86xx/sbc8641d.c b/arch/powerpc/platforms/86xx/sbc8641d.c index 5fd7ed40986f..2886a36fc085 100644 --- a/arch/powerpc/platforms/86xx/sbc8641d.c +++ b/arch/powerpc/platforms/86xx/sbc8641d.c | |||
@@ -103,6 +103,7 @@ mpc86xx_time_init(void) | |||
103 | 103 | ||
104 | static __initdata struct of_device_id of_bus_ids[] = { | 104 | static __initdata struct of_device_id of_bus_ids[] = { |
105 | { .compatible = "simple-bus", }, | 105 | { .compatible = "simple-bus", }, |
106 | { .compatible = "gianfar", }, | ||
106 | {}, | 107 | {}, |
107 | }; | 108 | }; |
108 | 109 | ||