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 | |
| 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>
31 files changed, 1183 insertions, 1016 deletions
diff --git a/arch/powerpc/boot/dts/ksi8560.dts b/arch/powerpc/boot/dts/ksi8560.dts index 3bfff47418db..308fe7c29dea 100644 --- a/arch/powerpc/boot/dts/ksi8560.dts +++ b/arch/powerpc/boot/dts/ksi8560.dts | |||
| @@ -124,67 +124,72 @@ | |||
| 124 | }; | 124 | }; |
| 125 | }; | 125 | }; |
| 126 | 126 | ||
| 127 | mdio@24520 { /* For TSECs */ | ||
| 128 | #address-cells = <1>; | ||
| 129 | #size-cells = <0>; | ||
| 130 | compatible = "fsl,gianfar-mdio"; | ||
| 131 | reg = <0x24520 0x20>; | ||
| 132 | |||
| 133 | PHY1: ethernet-phy@1 { | ||
| 134 | interrupt-parent = <&mpic>; | ||
| 135 | reg = <0x1>; | ||
| 136 | device_type = "ethernet-phy"; | ||
| 137 | }; | ||
| 138 | |||
| 139 | PHY2: ethernet-phy@2 { | ||
| 140 | interrupt-parent = <&mpic>; | ||
| 141 | reg = <0x2>; | ||
| 142 | device_type = "ethernet-phy"; | ||
| 143 | }; | ||
| 144 | |||
| 145 | tbi0: tbi-phy@11 { | ||
| 146 | reg = <0x11>; | ||
| 147 | device_type = "tbi-phy"; | ||
| 148 | }; | ||
| 149 | }; | ||
| 150 | |||
| 151 | mdio@25520 { | ||
| 152 | #address-cells = <1>; | ||
| 153 | #size-cells = <0>; | ||
| 154 | compatible = "fsl,gianfar-tbi"; | ||
| 155 | reg = <0x25520 0x20>; | ||
| 156 | |||
| 157 | tbi1: tbi-phy@11 { | ||
| 158 | reg = <0x11>; | ||
| 159 | device_type = "tbi-phy"; | ||
| 160 | }; | ||
| 161 | }; | ||
| 162 | |||
| 163 | |||
| 164 | enet0: ethernet@24000 { | 127 | enet0: ethernet@24000 { |
| 128 | #address-cells = <1>; | ||
| 129 | #size-cells = <1>; | ||
| 165 | device_type = "network"; | 130 | device_type = "network"; |
| 166 | model = "TSEC"; | 131 | model = "TSEC"; |
| 167 | compatible = "gianfar"; | 132 | compatible = "gianfar"; |
| 168 | reg = <0x24000 0x1000>; | 133 | reg = <0x24000 0x1000>; |
| 134 | ranges = <0x0 0x24000 0x1000>; | ||
| 169 | /* Mac address filled in by bootwrapper */ | 135 | /* Mac address filled in by bootwrapper */ |
| 170 | local-mac-address = [ 00 00 00 00 00 00 ]; | 136 | local-mac-address = [ 00 00 00 00 00 00 ]; |
| 171 | interrupts = <0x1d 0x2 0x1e 0x2 0x22 0x2>; | 137 | interrupts = <0x1d 0x2 0x1e 0x2 0x22 0x2>; |
| 172 | interrupt-parent = <&mpic>; | 138 | interrupt-parent = <&mpic>; |
| 173 | tbi-handle = <&tbi0>; | 139 | tbi-handle = <&tbi0>; |
| 174 | phy-handle = <&PHY1>; | 140 | phy-handle = <&PHY1>; |
| 141 | |||
| 142 | mdio@520 { /* For TSECs */ | ||
| 143 | #address-cells = <1>; | ||
| 144 | #size-cells = <0>; | ||
| 145 | compatible = "fsl,gianfar-mdio"; | ||
| 146 | reg = <0x520 0x20>; | ||
| 147 | |||
| 148 | PHY1: ethernet-phy@1 { | ||
| 149 | interrupt-parent = <&mpic>; | ||
| 150 | reg = <0x1>; | ||
| 151 | device_type = "ethernet-phy"; | ||
| 152 | }; | ||
| 153 | |||
| 154 | PHY2: ethernet-phy@2 { | ||
| 155 | interrupt-parent = <&mpic>; | ||
| 156 | reg = <0x2>; | ||
| 157 | device_type = "ethernet-phy"; | ||
| 158 | }; | ||
| 159 | |||
| 160 | tbi0: tbi-phy@11 { | ||
| 161 | reg = <0x11>; | ||
| 162 | device_type = "tbi-phy"; | ||
| 163 | }; | ||
| 164 | }; | ||
| 175 | }; | 165 | }; |
| 176 | 166 | ||
| 177 | enet1: ethernet@25000 { | 167 | enet1: ethernet@25000 { |
| 168 | #address-cells = <1>; | ||
| 169 | #size-cells = <1>; | ||
| 178 | device_type = "network"; | 170 | device_type = "network"; |
| 179 | model = "TSEC"; | 171 | model = "TSEC"; |
| 180 | compatible = "gianfar"; | 172 | compatible = "gianfar"; |
| 181 | reg = <0x25000 0x1000>; | 173 | reg = <0x25000 0x1000>; |
| 174 | ranges = <0x0 0x25000 0x1000>; | ||
| 182 | /* Mac address filled in by bootwrapper */ | 175 | /* Mac address filled in by bootwrapper */ |
| 183 | local-mac-address = [ 00 00 00 00 00 00 ]; | 176 | local-mac-address = [ 00 00 00 00 00 00 ]; |
| 184 | interrupts = <0x23 0x2 0x24 0x2 0x28 0x2>; | 177 | interrupts = <0x23 0x2 0x24 0x2 0x28 0x2>; |
| 185 | interrupt-parent = <&mpic>; | 178 | interrupt-parent = <&mpic>; |
| 186 | tbi-handle = <&tbi1>; | 179 | tbi-handle = <&tbi1>; |
| 187 | phy-handle = <&PHY2>; | 180 | phy-handle = <&PHY2>; |
| 181 | |||
| 182 | mdio@520 { | ||
| 183 | #address-cells = <1>; | ||
| 184 | #size-cells = <0>; | ||
| 185 | compatible = "fsl,gianfar-tbi"; | ||
| 186 | reg = <0x520 0x20>; | ||
| 187 | |||
| 188 | tbi1: tbi-phy@11 { | ||
| 189 | reg = <0x11>; | ||
| 190 | device_type = "tbi-phy"; | ||
| 191 | }; | ||
| 192 | }; | ||
| 188 | }; | 193 | }; |
| 189 | 194 | ||
| 190 | mpic: pic@40000 { | 195 | mpic: pic@40000 { |
diff --git a/arch/powerpc/boot/dts/mpc8536ds.dts b/arch/powerpc/boot/dts/mpc8536ds.dts index 3c905df1812c..b31c5041350b 100644 --- a/arch/powerpc/boot/dts/mpc8536ds.dts +++ b/arch/powerpc/boot/dts/mpc8536ds.dts | |||
| @@ -137,42 +137,6 @@ | |||
| 137 | }; | 137 | }; |
| 138 | }; | 138 | }; |
| 139 | 139 | ||
| 140 | mdio@24520 { | ||
| 141 | #address-c | ||
