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 /arch/powerpc/boot/dts/mpc8641_hpcn.dts | |
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>
Diffstat (limited to 'arch/powerpc/boot/dts/mpc8641_hpcn.dts')
-rw-r--r-- | arch/powerpc/boot/dts/mpc8641_hpcn.dts | 157 |
1 files changed, 84 insertions, 73 deletions
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 { |