diff options
author | Anton Vorontsov <avorontsov@ru.mvista.com> | 2009-03-19 14:01:48 -0400 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2009-03-24 09:35:13 -0400 |
commit | 84ba4a5899e613a396c5bea5feadba923534801b (patch) | |
tree | 8f5c39fc7dbde9451995ac5b771423707afe8bda /arch/powerpc/boot/dts/tqm8555.dts | |
parent | 70b3adbba056f5d9081f1ec9b4a629e3c7502072 (diff) |
powerpc/85xx: 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/tqm8555.dts')
-rw-r--r-- | arch/powerpc/boot/dts/tqm8555.dts | 90 |
1 files changed, 48 insertions, 42 deletions
diff --git a/arch/powerpc/boot/dts/tqm8555.dts b/arch/powerpc/boot/dts/tqm8555.dts index 4b7da890c03b..a133ded6dddb 100644 --- a/arch/powerpc/boot/dts/tqm8555.dts +++ b/arch/powerpc/boot/dts/tqm8555.dts | |||
@@ -135,72 +135,78 @@ | |||
135 | }; | 135 | }; |
136 | }; | 136 | }; |
137 | 137 | ||
138 | mdio@24520 { | ||
139 | #address-cells = <1>; | ||
140 | #size-cells = <0>; | ||
141 | compatible = "fsl,gianfar-mdio"; | ||
142 | reg = <0x24520 0x20>; | ||
143 | |||
144 | phy1: ethernet-phy@1 { | ||
145 | interrupt-parent = <&mpic>; | ||
146 | interrupts = <8 1>; | ||
147 | reg = <1>; | ||
148 | device_type = "ethernet-phy"; | ||
149 | }; | ||
150 | phy2: ethernet-phy@2 { | ||
151 | interrupt-parent = <&mpic>; | ||
152 | interrupts = <8 1>; | ||
153 | reg = <2>; | ||
154 | device_type = "ethernet-phy"; | ||
155 | }; | ||
156 | phy3: ethernet-phy@3 { | ||
157 | interrupt-parent = <&mpic>; | ||
158 | interrupts = <8 1>; | ||
159 | reg = <3>; | ||
160 | device_type = "ethernet-phy"; | ||
161 | }; | ||
162 | tbi0: tbi-phy@11 { | ||
163 | reg = <0x11>; | ||
164 | device_type = "tbi-phy"; | ||
165 | }; | ||
166 | }; | ||
167 | |||
168 | mdio@25520 { | ||
169 | #address-cells = <1>; | ||
170 | #size-cells = <0>; | ||
171 | compatible = "fsl,gianfar-tbi"; | ||
172 | reg = <0x25520 0x20>; | ||
173 | |||
174 | tbi1: tbi-phy@11 { | ||
175 | reg = <0x11>; | ||
176 | device_type = "tbi-phy"; | ||
177 | }; | ||
178 | }; | ||
179 | |||
180 | enet0: ethernet@24000 { | 138 | enet0: ethernet@24000 { |
139 | #address-cells = <1>; | ||
140 | #size-cells = <1>; | ||
181 | cell-index = <0>; | 141 | cell-index = <0>; |
182 | device_type = "network"; | 142 | device_type = "network"; |
183 | model = "TSEC"; | 143 | model = "TSEC"; |
184 | compatible = "gianfar"; | 144 | compatible = "gianfar"; |
185 | reg = <0x24000 0x1000>; | 145 | reg = <0x24000 0x1000>; |
146 | ranges = <0x0 0x24000 0x1000>; | ||
186 | local-mac-address = [ 00 00 00 00 00 00 ]; | 147 | local-mac-address = [ 00 00 00 00 00 00 ]; |
187 | interrupts = <29 2 30 2 34 2>; | 148 | interrupts = <29 2 30 2 34 2>; |
188 | interrupt-parent = <&mpic>; | 149 | interrupt-parent = <&mpic>; |
189 | tbi-handle = <&tbi0>; | 150 | tbi-handle = <&tbi0>; |
190 | phy-handle = <&phy2>; | 151 | phy-handle = <&phy2>; |
152 | |||
153 | mdio@520 { | ||
154 | #address-cells = <1>; | ||
155 | #size-cells = <0>; | ||
156 | compatible = "fsl,gianfar-mdio"; | ||
157 | reg = <0x520 0x20>; | ||
158 | |||
159 | phy1: ethernet-phy@1 { | ||
160 | interrupt-parent = <&mpic>; | ||
161 | interrupts = <8 1>; | ||
162 | reg = <1>; | ||
163 | device_type = "ethernet-phy"; | ||
164 | }; | ||
165 | phy2: ethernet-phy@2 { | ||
166 | interrupt-parent = <&mpic>; | ||
167 | interrupts = <8 1>; | ||
168 | reg = <2>; | ||
169 | device_type = "ethernet-phy"; | ||
170 | }; | ||
171 | phy3: ethernet-phy@3 { | ||
172 | interrupt-parent = <&mpic>; | ||
173 | interrupts = <8 1>; | ||
174 | reg = <3>; | ||
175 | device_type = "ethernet-phy"; | ||
176 | }; | ||
177 | tbi0: tbi-phy@11 { | ||
178 | reg = <0x11>; | ||
179 | device_type = "tbi-phy"; | ||
180 | }; | ||
181 | }; | ||
191 | }; | 182 | }; |
192 | 183 | ||
193 | enet1: ethernet@25000 { | 184 | enet1: ethernet@25000 { |
185 | #address-cells = <1>; | ||
186 | #size-cells = <1>; | ||
194 | cell-index = <1>; | 187 | cell-index = <1>; |
195 | device_type = "network"; | 188 | device_type = "network"; |
196 | model = "TSEC"; | 189 | model = "TSEC"; |
197 | compatible = "gianfar"; | 190 | compatible = "gianfar"; |
198 | reg = <0x25000 0x1000>; | 191 | reg = <0x25000 0x1000>; |
192 | ranges = <0x0 0x25000 0x1000>; | ||
199 | local-mac-address = [ 00 00 00 00 00 00 ]; | 193 | local-mac-address = [ 00 00 00 00 00 00 ]; |
200 | interrupts = <35 2 36 2 40 2>; | 194 | interrupts = <35 2 36 2 40 2>; |
201 | interrupt-parent = <&mpic>; | 195 | interrupt-parent = <&mpic>; |
202 | tbi-handle = <&tbi1>; | 196 | tbi-handle = <&tbi1>; |
203 | phy-handle = <&phy1>; | 197 | phy-handle = <&phy1>; |
198 | |||
199 | mdio@520 { | ||
200 | #address-cells = <1>; | ||
201 | #size-cells = <0>; | ||
202 | compatible = "fsl,gianfar-tbi"; | ||
203 | reg = <0x520 0x20>; | ||
204 | |||
205 | tbi1: tbi-phy@11 { | ||
206 | reg = <0x11>; | ||
207 | device_type = "tbi-phy"; | ||
208 | }; | ||
209 | }; | ||
204 | }; | 210 | }; |
205 | 211 | ||
206 | serial0: serial@4500 { | 212 | serial0: serial@4500 { |