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/mpc8560ads.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/mpc8560ads.dts')
-rw-r--r-- | arch/powerpc/boot/dts/mpc8560ads.dts | 102 |
1 files changed, 54 insertions, 48 deletions
diff --git a/arch/powerpc/boot/dts/mpc8560ads.dts b/arch/powerpc/boot/dts/mpc8560ads.dts index 11b1bcbe14ce..cc2acf87d02f 100644 --- a/arch/powerpc/boot/dts/mpc8560ads.dts +++ b/arch/powerpc/boot/dts/mpc8560ads.dts | |||
@@ -115,78 +115,84 @@ | |||
115 | }; | 115 | }; |
116 | }; | 116 | }; |
117 | 117 | ||
118 | mdio@24520 { | ||
119 | #address-cells = <1>; | ||
120 | #size-cells = <0>; | ||
121 | compatible = "fsl,gianfar-mdio"; | ||
122 | reg = <0x24520 0x20>; | ||
123 | |||
124 | phy0: ethernet-phy@0 { | ||
125 | interrupt-parent = <&mpic>; | ||
126 | interrupts = <5 1>; | ||
127 | reg = <0x0>; | ||
128 | device_type = "ethernet-phy"; | ||
129 | }; | ||
130 | phy1: ethernet-phy@1 { | ||
131 | interrupt-parent = <&mpic>; | ||
132 | interrupts = <5 1>; | ||
133 | reg = <0x1>; | ||
134 | device_type = "ethernet-phy"; | ||
135 | }; | ||
136 | phy2: ethernet-phy@2 { | ||
137 | interrupt-parent = <&mpic>; | ||
138 | interrupts = <7 1>; | ||
139 | reg = <0x2>; | ||
140 | device_type = "ethernet-phy"; | ||
141 | }; | ||
142 | phy3: ethernet-phy@3 { | ||
143 | interrupt-parent = <&mpic>; | ||
144 | interrupts = <7 1>; | ||
145 | reg = <0x3>; | ||
146 | device_type = "ethernet-phy"; | ||
147 | }; | ||
148 | tbi0: tbi-phy@11 { | ||
149 | reg = <0x11>; | ||
150 | device_type = "tbi-phy"; | ||
151 | }; | ||
152 | }; | ||
153 | |||
154 | mdio@25520 { | ||
155 | #address-cells = <1>; | ||
156 | #size-cells = <0>; | ||
157 | compatible = "fsl,gianfar-tbi"; | ||
158 | reg = <0x25520 0x20>; | ||
159 | |||
160 | tbi1: tbi-phy@11 { | ||
161 | reg = <0x11>; | ||
162 | device_type = "tbi-phy"; | ||
163 | }; | ||
164 | }; | ||
165 | |||
166 | enet0: ethernet@24000 { | 118 | enet0: ethernet@24000 { |
119 | #address-cells = <1>; | ||
120 | #size-cells = <1>; | ||
167 | cell-index = <0>; | 121 | cell-index = <0>; |
168 | device_type = "network"; | 122 | device_type = "network"; |
169 | model = "TSEC"; | 123 | model = "TSEC"; |
170 | compatible = "gianfar"; | 124 | compatible = "gianfar"; |
171 | reg = <0x24000 0x1000>; | 125 | reg = <0x24000 0x1000>; |
126 | ranges = <0x0 0x24000 0x1000>; | ||
172 | local-mac-address = [ 00 00 00 00 00 00 ]; | 127 | local-mac-address = [ 00 00 00 00 00 00 ]; |
173 | interrupts = <29 2 30 2 34 2>; | 128 | interrupts = <29 2 30 2 34 2>; |
174 | interrupt-parent = <&mpic>; | 129 | interrupt-parent = <&mpic>; |
175 | tbi-handle = <&tbi0>; | 130 | tbi-handle = <&tbi0>; |
176 | phy-handle = <&phy0>; | 131 | phy-handle = <&phy0>; |
132 | |||
133 | mdio@520 { | ||
134 | #address-cells = <1>; | ||
135 | #size-cells = <0>; | ||
136 | compatible = "fsl,gianfar-mdio"; | ||
137 | reg = <0x520 0x20>; | ||
138 | |||
139 | phy0: ethernet-phy@0 { | ||
140 | interrupt-parent = <&mpic>; | ||
141 | interrupts = <5 1>; | ||
142 | reg = <0x0>; | ||
143 | device_type = "ethernet-phy"; | ||
144 | }; | ||
145 | phy1: ethernet-phy@1 { | ||
146 | interrupt-parent = <&mpic>; | ||
147 | interrupts = <5 1>; | ||
148 | reg = <0x1>; | ||
149 | device_type = "ethernet-phy"; | ||
150 | }; | ||
151 | phy2: ethernet-phy@2 { | ||
152 | interrupt-parent = <&mpic>; | ||
153 | interrupts = <7 1>; | ||
154 | reg = <0x2>; | ||
155 | device_type = "ethernet-phy"; | ||
156 | }; | ||
157 | phy3: ethernet-phy@3 { | ||
158 | interrupt-parent = <&mpic>; | ||
159 | interrupts = <7 1>; | ||
160 | reg = <0x3>; | ||
161 | device_type = "ethernet-phy"; | ||
162 | }; | ||
163 | tbi0: tbi-phy@11 { | ||
164 | reg = <0x11>; | ||
165 | device_type = "tbi-phy"; | ||
166 | }; | ||
167 | }; | ||
177 | }; | 168 | }; |
178 | 169 | ||
179 | enet1: ethernet@25000 { | 170 | enet1: ethernet@25000 { |
171 | #address-cells = <1>; | ||
172 | #size-cells = <1>; | ||
180 | cell-index = <1>; | 173 | cell-index = <1>; |
181 | device_type = "network"; | 174 | device_type = "network"; |
182 | model = "TSEC"; | 175 | model = "TSEC"; |
183 | compatible = "gianfar"; | 176 | compatible = "gianfar"; |
184 | reg = <0x25000 0x1000>; | 177 | reg = <0x25000 0x1000>; |
178 | ranges = <0x0 0x25000 0x1000>; | ||
185 | local-mac-address = [ 00 00 00 00 00 00 ]; | 179 | local-mac-address = [ 00 00 00 00 00 00 ]; |
186 | interrupts = <35 2 36 2 40 2>; | 180 | interrupts = <35 2 36 2 40 2>; |
187 | interrupt-parent = <&mpic>; | 181 | interrupt-parent = <&mpic>; |
188 | tbi-handle = <&tbi1>; | 182 | tbi-handle = <&tbi1>; |
189 | phy-handle = <&phy1>; | 183 | phy-handle = <&phy1>; |
184 | |||
185 | mdio@520 { | ||
186 | #address-cells = <1>; | ||
187 | #size-cells = <0>; | ||
188 | compatible = "fsl,gianfar-tbi"; | ||
189 | reg = <0x520 0x20>; | ||
190 | |||
191 | tbi1: tbi-phy@11 { | ||
192 | reg = <0x11>; | ||
193 | device_type = "tbi-phy"; | ||
194 | }; | ||
195 | }; | ||
190 | }; | 196 | }; |
191 | 197 | ||
192 | mpic: pic@40000 { | 198 | mpic: pic@40000 { |