diff options
author | Anton Vorontsov <avorontsov@ru.mvista.com> | 2009-03-19 14:01:45 -0400 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2009-03-24 09:35:04 -0400 |
commit | 70b3adbba056f5d9081f1ec9b4a629e3c7502072 (patch) | |
tree | ef7a299becef375b9d59f8d2d4a56e036e17b6d9 /arch/powerpc/boot/dts/mpc8349emitx.dts | |
parent | 125a00d74ea57a901fd4cc3d84baf2e825704b68 (diff) |
powerpc/83xx: 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/mpc8349emitx.dts')
-rw-r--r-- | arch/powerpc/boot/dts/mpc8349emitx.dts | 69 |
1 files changed, 38 insertions, 31 deletions
diff --git a/arch/powerpc/boot/dts/mpc8349emitx.dts b/arch/powerpc/boot/dts/mpc8349emitx.dts index b5eda94a8e2a..1ae38f0ddef8 100644 --- a/arch/powerpc/boot/dts/mpc8349emitx.dts +++ b/arch/powerpc/boot/dts/mpc8349emitx.dts | |||
@@ -170,57 +170,52 @@ | |||
170 | phy_type = "ulpi"; | 170 | phy_type = "ulpi"; |
171 | }; | 171 | }; |
172 | 172 | ||
173 | mdio@24520 { | ||
174 | #address-cells = <1>; | ||
175 | #size-cells = <0>; | ||
176 | compatible = "fsl,gianfar-mdio"; | ||
177 | reg = <0x24520 0x20>; | ||
178 | |||
179 | /* Vitesse 8201 */ | ||
180 | phy1c: ethernet-phy@1c { | ||
181 | interrupt-parent = <&ipic>; | ||
182 | interrupts = <18 0x8>; | ||
183 | reg = <0x1c>; | ||
184 | device_type = "ethernet-phy"; | ||
185 | }; | ||
186 | tbi0: tbi-phy@11 { | ||
187 | reg = <0x11>; | ||
188 | device_type = "tbi-phy"; | ||
189 | }; | ||
190 | }; | ||
191 | |||
192 | mdio@25520 { | ||
193 | #address-cells = <1>; | ||
194 | #size-cells = <0>; | ||
195 | compatible = "fsl,gianfar-tbi"; | ||
196 | reg = <0x25520 0x20>; | ||
197 | |||
198 | tbi1: tbi-phy@11 { | ||
199 | reg = <0x11>; | ||
200 | device_type = "tbi-phy"; | ||
201 | }; | ||
202 | }; | ||
203 | |||
204 | enet0: ethernet@24000 { | 173 | enet0: ethernet@24000 { |
174 | #address-cells = <1>; | ||
175 | #size-cells = <1>; | ||
205 | cell-index = <0>; | 176 | cell-index = <0>; |
206 | device_type = "network"; | 177 | device_type = "network"; |
207 | model = "TSEC"; | 178 | model = "TSEC"; |
208 | compatible = "gianfar"; | 179 | compatible = "gianfar"; |
209 | reg = <0x24000 0x1000>; | 180 | reg = <0x24000 0x1000>; |
181 | ranges = <0x0 0x24000 0x1000>; | ||
210 | local-mac-address = [ 00 00 00 00 00 00 ]; | 182 | local-mac-address = [ 00 00 00 00 00 00 ]; |
211 | interrupts = <32 0x8 33 0x8 34 0x8>; | 183 | interrupts = <32 0x8 33 0x8 34 0x8>; |
212 | interrupt-parent = <&ipic>; | 184 | interrupt-parent = <&ipic>; |
213 | tbi-handle = <&tbi0>; | 185 | tbi-handle = <&tbi0>; |
214 | phy-handle = <&phy1c>; | 186 | phy-handle = <&phy1c>; |
215 | linux,network-index = <0>; | 187 | linux,network-index = <0>; |
188 | |||
189 | mdio@520 { | ||
190 | #address-cells = <1>; | ||
191 | #size-cells = <0>; | ||
192 | compatible = "fsl,gianfar-mdio"; | ||
193 | reg = <0x520 0x20>; | ||
194 | |||
195 | /* Vitesse 8201 */ | ||
196 | phy1c: ethernet-phy@1c { | ||
197 | interrupt-parent = <&ipic>; | ||
198 | interrupts = <18 0x8>; | ||
199 | reg = <0x1c>; | ||
200 | device_type = "ethernet-phy"; | ||
201 | }; | ||
202 | |||
203 | tbi0: tbi-phy@11 { | ||
204 | reg = <0x11>; | ||
205 | device_type = "tbi-phy"; | ||
206 | }; | ||
207 | }; | ||
216 | }; | 208 | }; |
217 | 209 | ||
218 | enet1: ethernet@25000 { | 210 | enet1: ethernet@25000 { |
211 | #address-cells = <1>; | ||
212 | #size-cells = <1>; | ||
219 | cell-index = <1>; | 213 | cell-index = <1>; |
220 | device_type = "network"; | 214 | device_type = "network"; |
221 | model = "TSEC"; | 215 | model = "TSEC"; |
222 | compatible = "gianfar"; | 216 | compatible = "gianfar"; |
223 | reg = <0x25000 0x1000>; | 217 | reg = <0x25000 0x1000>; |
218 | ranges = <0x0 0x25000 0x1000>; | ||
224 | local-mac-address = [ 00 00 00 00 00 00 ]; | 219 | local-mac-address = [ 00 00 00 00 00 00 ]; |
225 | interrupts = <35 0x8 36 0x8 37 0x8>; | 220 | interrupts = <35 0x8 36 0x8 37 0x8>; |
226 | interrupt-parent = <&ipic>; | 221 | interrupt-parent = <&ipic>; |
@@ -228,6 +223,18 @@ | |||
228 | fixed-link = <1 1 1000 0 0>; | 223 | fixed-link = <1 1 1000 0 0>; |
229 | linux,network-index = <1>; | 224 | linux,network-index = <1>; |
230 | tbi-handle = <&tbi1>; | 225 | tbi-handle = <&tbi1>; |
226 | |||
227 | mdio@520 { | ||
228 | #address-cells = <1>; | ||
229 | #size-cells = <0>; | ||
230 | compatible = "fsl,gianfar-tbi"; | ||
231 | reg = <0x520 0x20>; | ||
232 | |||
233 | tbi1: tbi-phy@11 { | ||
234 | reg = <0x11>; | ||
235 | device_type = "tbi-phy"; | ||
236 | }; | ||
237 | }; | ||
231 | }; | 238 | }; |
232 | 239 | ||
233 | serial0: serial@4500 { | 240 | serial0: serial@4500 { |