Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[POWERPC] FSL: enet device tree cleanups

* Removed address fields in ethernet nodes
* Removed #address-cells, #size-cells from gianfar nodes
* Added cell-index to gianfar and ucc ethernet nodes
* Added enet[0..3] labels
* Renamed compatible node for gianfar mdio to "fsl,gianfar-mdio"
* Removed device_type = "mdio"

The matching for gianfar mdio still supports the old "mdio"/"gianfar" combo
but it is now considered deprecated.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>

+118 -281
+2 -4
Documentation/powerpc/booting-without-of.txt
··· 1223 1223 1224 1224 Required properties: 1225 1225 - reg : Offset and length of the register set for the device 1226 - - device_type : Should be "mdio" 1227 1226 - compatible : Should define the compatible device type for the 1228 - mdio. Currently, this is most likely to be "gianfar" 1227 + mdio. Currently, this is most likely to be "fsl,gianfar-mdio" 1229 1228 1230 1229 Example: 1231 1230 1232 1231 mdio@24520 { 1233 1232 reg = <24520 20>; 1234 - device_type = "mdio"; 1235 - compatible = "gianfar"; 1233 + compatible = "fsl,gianfar-mdio"; 1236 1234 1237 1235 ethernet-phy@0 { 1238 1236 ......
+6 -5
arch/powerpc/boot/dts/mpc8313erdb.dts
··· 95 95 }; 96 96 97 97 mdio@24520 { 98 - device_type = "mdio"; 99 - compatible = "gianfar"; 100 - reg = <24520 20>; 101 98 #address-cells = <1>; 102 99 #size-cells = <0>; 100 + compatible = "fsl,gianfar-mdio"; 101 + reg = <24520 20>; 103 102 phy1: ethernet-phy@1 { 104 103 interrupt-parent = < &ipic >; 105 104 interrupts = <13 8>; ··· 113 114 }; 114 115 }; 115 116 116 - ethernet@24000 { 117 + enet0: ethernet@24000 { 118 + cell-index = <0>; 117 119 device_type = "network"; 118 120 model = "eTSEC"; 119 121 compatible = "gianfar"; ··· 125 125 phy-handle = < &phy1 >; 126 126 }; 127 127 128 - ethernet@25000 { 128 + enet1: ethernet@25000 { 129 + cell-index = <1>; 129 130 device_type = "network"; 130 131 model = "eTSEC"; 131 132 compatible = "gianfar";
+4 -14
arch/powerpc/boot/dts/mpc832x_mds.dts
··· 208 208 mode = "slave"; 209 209 }; 210 210 211 - ucc@2200 { 211 + enet0: ucc@2200 { 212 212 device_type = "network"; 213 213 compatible = "ucc_geth"; 214 214 model = "UCC"; 215 + cell-index = <3>; 215 216 device-id = <3>; 216 217 reg = <2200 200>; 217 218 interrupts = <22>; 218 219 interrupt-parent = < &qeic >; 219 - /* 220 - * mac-address is deprecated and will be removed 221 - * in 2.6.25. Only recent versions of 222 - * U-Boot support local-mac-address, however. 223 - */ 224 - mac-address = [ 00 00 00 00 00 00 ]; 225 220 local-mac-address = [ 00 00 00 00 00 00 ]; 226 221 rx-clock = <19>; 227 222 tx-clock = <1a>; ··· 224 229 pio-handle = < &pio3 >; 225 230 }; 226 231 227 - ucc@3200 { 232 + enet1: ucc@3200 { 228 233 device_type = "network"; 229 234 compatible = "ucc_geth"; 230 235 model = "UCC"; 236 + cell-index = <4>; 231 237 device-id = <4>; 232 238 reg = <3200 200>; 233 239 interrupts = <23>; 234 240 interrupt-parent = < &qeic >; 235 - /* 236 - * mac-address is deprecated and will be removed 237 - * in 2.6.25. Only recent versions of 238 - * U-Boot support local-mac-address, however. 239 - */ 240 - mac-address = [ 00 00 00 00 00 00 ]; 241 241 local-mac-address = [ 00 00 00 00 00 00 ]; 242 242 rx-clock = <17>; 243 243 tx-clock = <18>;
+4 -14
arch/powerpc/boot/dts/mpc832x_rdb.dts
··· 189 189 mode = "cpu"; 190 190 }; 191 191 192 - ucc@3000 { 192 + enet0: ucc@3000 { 193 193 device_type = "network"; 194 194 compatible = "ucc_geth"; 195 195 model = "UCC"; 196 + cell-index = <2>; 196 197 device-id = <2>; 197 198 reg = <3000 200>; 198 199 interrupts = <21>; 199 200 interrupt-parent = <&qeic>; 200 - /* 201 - * mac-address is deprecated and will be removed 202 - * in 2.6.25. Only recent versions of 203 - * U-Boot support local-mac-address, however. 204 - */ 205 - mac-address = [ 00 00 00 00 00 00 ]; 206 201 local-mac-address = [ 00 00 00 00 00 00 ]; 207 202 rx-clock = <20>; 208 203 tx-clock = <13>; ··· 205 210 pio-handle = <&ucc2pio>; 206 211 }; 207 212 208 - ucc@2200 { 213 + enet1: ucc@2200 { 209 214 device_type = "network"; 210 215 compatible = "ucc_geth"; 211 216 model = "UCC"; 217 + cell-index = <3>; 212 218 device-id = <3>; 213 219 reg = <2200 200>; 214 220 interrupts = <22>; 215 221 interrupt-parent = <&qeic>; 216 - /* 217 - * mac-address is deprecated and will be removed 218 - * in 2.6.25. Only recent versions of 219 - * U-Boot support local-mac-address, however. 220 - */ 221 - mac-address = [ 00 00 00 00 00 00 ]; 222 222 local-mac-address = [ 00 00 00 00 00 00 ]; 223 223 rx-clock = <19>; 224 224 tx-clock = <1a>;
+6 -19
arch/powerpc/boot/dts/mpc8349emitx.dts
··· 106 106 }; 107 107 108 108 mdio@24520 { 109 - device_type = "mdio"; 110 - compatible = "gianfar"; 111 - reg = <24520 20>; 112 109 #address-cells = <1>; 113 110 #size-cells = <0>; 111 + compatible = "fsl,gianfar-mdio"; 112 + reg = <24520 20>; 114 113 115 114 /* Vitesse 8201 */ 116 115 phy1c: ethernet-phy@1c { ··· 128 129 }; 129 130 }; 130 131 131 - ethernet@24000 { 132 + enet0: ethernet@24000 { 133 + cell-index = <0>; 132 134 device_type = "network"; 133 135 model = "TSEC"; 134 136 compatible = "gianfar"; 135 137 reg = <24000 1000>; 136 - /* 137 - * address is deprecated and will be removed 138 - * in 2.6.25. Only recent versions of 139 - * U-Boot support local-mac-address, however. 140 - */ 141 - address = [ 00 00 00 00 00 00 ]; 142 138 local-mac-address = [ 00 00 00 00 00 00 ]; 143 139 interrupts = <20 8 21 8 22 8>; 144 140 interrupt-parent = < &ipic >; ··· 141 147 linux,network-index = <0>; 142 148 }; 143 149 144 - ethernet@25000 { 145 - #address-cells = <1>; 146 - #size-cells = <0>; 150 + enet1: ethernet@25000 { 151 + cell-index = <1>; 147 152 device_type = "network"; 148 153 model = "TSEC"; 149 154 compatible = "gianfar"; 150 155 reg = <25000 1000>; 151 - /* 152 - * address is deprecated and will be removed 153 - * in 2.6.25. Only recent versions of 154 - * U-Boot support local-mac-address, however. 155 - */ 156 - address = [ 00 00 00 00 00 00 ]; 157 156 local-mac-address = [ 00 00 00 00 00 00 ]; 158 157 interrupts = <23 8 24 8 25 8>; 159 158 interrupt-parent = < &ipic >;
+4 -4
arch/powerpc/boot/dts/mpc8349emitxgp.dts
··· 94 94 }; 95 95 96 96 mdio@24520 { 97 - device_type = "mdio"; 98 - compatible = "gianfar"; 99 - reg = <24520 20>; 100 97 #address-cells = <1>; 101 98 #size-cells = <0>; 99 + compatible = "fsl,gianfar-mdio"; 100 + reg = <24520 20>; 102 101 103 102 /* Vitesse 8201 */ 104 103 phy1c: ethernet-phy@1c { ··· 108 109 }; 109 110 }; 110 111 111 - ethernet@24000 { 112 + enet0: ethernet@24000 { 113 + cell-index = <0>; 112 114 device_type = "network"; 113 115 model = "TSEC"; 114 116 compatible = "gianfar";
+7 -19
arch/powerpc/boot/dts/mpc834x_mds.dts
··· 119 119 }; 120 120 121 121 mdio@24520 { 122 - device_type = "mdio"; 123 - compatible = "gianfar"; 124 - reg = <24520 20>; 125 122 #address-cells = <1>; 126 123 #size-cells = <0>; 124 + compatible = "fsl,gianfar-mdio"; 125 + reg = <24520 20>; 126 + 127 127 phy0: ethernet-phy@0 { 128 128 interrupt-parent = < &ipic >; 129 129 interrupts = <11 8>; ··· 138 138 }; 139 139 }; 140 140 141 - ethernet@24000 { 141 + enet0: ethernet@24000 { 142 + cell-index = <0>; 142 143 device_type = "network"; 143 144 model = "TSEC"; 144 145 compatible = "gianfar"; 145 146 reg = <24000 1000>; 146 - /* 147 - * address is deprecated and will be removed 148 - * in 2.6.25. Only recent versions of 149 - * U-Boot support local-mac-address, however. 150 - */ 151 - address = [ 00 00 00 00 00 00 ]; 152 147 local-mac-address = [ 00 00 00 00 00 00 ]; 153 148 interrupts = <20 8 21 8 22 8>; 154 149 interrupt-parent = < &ipic >; ··· 151 156 linux,network-index = <0>; 152 157 }; 153 158 154 - ethernet@25000 { 155 - #address-cells = <1>; 156 - #size-cells = <0>; 159 + enet1: ethernet@25000 { 160 + cell-index = <1>; 157 161 device_type = "network"; 158 162 model = "TSEC"; 159 163 compatible = "gianfar"; 160 164 reg = <25000 1000>; 161 - /* 162 - * address is deprecated and will be removed 163 - * in 2.6.25. Only recent versions of 164 - * U-Boot support local-mac-address, however. 165 - */ 166 - address = [ 00 00 00 00 00 00 ]; 167 165 local-mac-address = [ 00 00 00 00 00 00 ]; 168 166 interrupts = <23 8 24 8 25 8>; 169 167 interrupt-parent = < &ipic >;
+4 -14
arch/powerpc/boot/dts/mpc836x_mds.dts
··· 239 239 mode = "slave"; 240 240 }; 241 241 242 - ucc@2000 { 242 + enet0: ucc@2000 { 243 243 device_type = "network"; 244 244 compatible = "ucc_geth"; 245 245 model = "UCC"; 246 + cell-index = <1>; 246 247 device-id = <1>; 247 248 reg = <2000 200>; 248 249 interrupts = <20>; 249 250 interrupt-parent = < &qeic >; 250 - /* 251 - * mac-address is deprecated and will be removed 252 - * in 2.6.25. Only recent versions of 253 - * U-Boot support local-mac-address, however. 254 - */ 255 - mac-address = [ 00 00 00 00 00 00 ]; 256 251 local-mac-address = [ 00 00 00 00 00 00 ]; 257 252 rx-clock = <0>; 258 253 tx-clock = <19>; ··· 256 261 pio-handle = < &pio1 >; 257 262 }; 258 263 259 - ucc@3000 { 264 + enet1: ucc@3000 { 260 265 device_type = "network"; 261 266 compatible = "ucc_geth"; 262 267 model = "UCC"; 268 + cell-index = <2>; 263 269 device-id = <2>; 264 270 reg = <3000 200>; 265 271 interrupts = <21>; 266 272 interrupt-parent = < &qeic >; 267 - /* 268 - * mac-address is deprecated and will be removed 269 - * in 2.6.25. Only recent versions of 270 - * U-Boot support local-mac-address, however. 271 - */ 272 - mac-address = [ 00 00 00 00 00 00 ]; 273 273 local-mac-address = [ 00 00 00 00 00 00 ]; 274 274 rx-clock = <0>; 275 275 tx-clock = <14>;
+8 -29
arch/powerpc/boot/dts/mpc8540ads.dts
··· 76 76 mdio@24520 { 77 77 #address-cells = <1>; 78 78 #size-cells = <0>; 79 - device_type = "mdio"; 80 - compatible = "gianfar"; 79 + compatible = "fsl,gianfar-mdio"; 81 80 reg = <24520 20>; 81 + 82 82 phy0: ethernet-phy@0 { 83 83 interrupt-parent = <&mpic>; 84 84 interrupts = <5 1>; ··· 99 99 }; 100 100 }; 101 101 102 - ethernet@24000 { 103 - #address-cells = <1>; 104 - #size-cells = <0>; 102 + enet0: ethernet@24000 { 103 + cell-index = <0>; 105 104 device_type = "network"; 106 105 model = "TSEC"; 107 106 compatible = "gianfar"; 108 107 reg = <24000 1000>; 109 - /* 110 - * address is deprecated and will be removed 111 - * in 2.6.25. Only recent versions of 112 - * U-Boot support local-mac-address, however. 113 - */ 114 - address = [ 00 00 00 00 00 00 ]; 115 108 local-mac-address = [ 00 00 00 00 00 00 ]; 116 109 interrupts = <1d 2 1e 2 22 2>; 117 110 interrupt-parent = <&mpic>; 118 111 phy-handle = <&phy0>; 119 112 }; 120 113 121 - ethernet@25000 { 122 - #address-cells = <1>; 123 - #size-cells = <0>; 114 + enet1: ethernet@25000 { 115 + cell-index = <1>; 124 116 device_type = "network"; 125 117 model = "TSEC"; 126 118 compatible = "gianfar"; 127 119 reg = <25000 1000>; 128 - /* 129 - * address is deprecated and will be removed 130 - * in 2.6.25. Only recent versions of 131 - * U-Boot support local-mac-address, however. 132 - */ 133 - address = [ 00 00 00 00 00 00 ]; 134 120 local-mac-address = [ 00 00 00 00 00 00 ]; 135 121 interrupts = <23 2 24 2 28 2>; 136 122 interrupt-parent = <&mpic>; 137 123 phy-handle = <&phy1>; 138 124 }; 139 125 140 - ethernet@26000 { 141 - #address-cells = <1>; 142 - #size-cells = <0>; 126 + enet2: ethernet@26000 { 127 + cell-index = <2>; 143 128 device_type = "network"; 144 129 model = "FEC"; 145 130 compatible = "gianfar"; 146 131 reg = <26000 1000>; 147 - /* 148 - * address is deprecated and will be removed 149 - * in 2.6.25. Only recent versions of 150 - * U-Boot support local-mac-address, however. 151 - */ 152 - address = [ 00 00 00 00 00 00 ]; 153 132 local-mac-address = [ 00 00 00 00 00 00 ]; 154 133 interrupts = <29 2>; 155 134 interrupt-parent = <&mpic>;
+6 -8
arch/powerpc/boot/dts/mpc8541cds.dts
··· 76 76 mdio@24520 { 77 77 #address-cells = <1>; 78 78 #size-cells = <0>; 79 - device_type = "mdio"; 80 - compatible = "gianfar"; 79 + compatible = "fsl,gianfar-mdio"; 81 80 reg = <24520 20>; 81 + 82 82 phy0: ethernet-phy@0 { 83 83 interrupt-parent = <&mpic>; 84 84 interrupts = <5 1>; ··· 93 93 }; 94 94 }; 95 95 96 - ethernet@24000 { 97 - #address-cells = <1>; 98 - #size-cells = <0>; 96 + enet0: ethernet@24000 { 97 + cell-index = <0>; 99 98 device_type = "network"; 100 99 model = "TSEC"; 101 100 compatible = "gianfar"; ··· 105 106 phy-handle = <&phy0>; 106 107 }; 107 108 108 - ethernet@25000 { 109 - #address-cells = <1>; 110 - #size-cells = <0>; 109 + enet1: ethernet@25000 { 110 + cell-index = <1>; 111 111 device_type = "network"; 112 112 model = "TSEC"; 113 113 compatible = "gianfar";
+6 -8
arch/powerpc/boot/dts/mpc8544ds.dts
··· 88 88 mdio@24520 { 89 89 #address-cells = <1>; 90 90 #size-cells = <0>; 91 - device_type = "mdio"; 92 - compatible = "gianfar"; 91 + compatible = "fsl,gianfar-mdio"; 93 92 reg = <24520 20>; 93 + 94 94 phy0: ethernet-phy@0 { 95 95 interrupt-parent = <&mpic>; 96 96 interrupts = <a 1>; ··· 105 105 }; 106 106 }; 107 107 108 - ethernet@24000 { 109 - #address-cells = <1>; 110 - #size-cells = <0>; 108 + enet0: ethernet@24000 { 109 + cell-index = <0>; 111 110 device_type = "network"; 112 111 model = "TSEC"; 113 112 compatible = "gianfar"; ··· 118 119 phy-connection-type = "rgmii-id"; 119 120 }; 120 121 121 - ethernet@26000 { 122 - #address-cells = <1>; 123 - #size-cells = <0>; 122 + enet1: ethernet@26000 { 123 + cell-index = <1>; 124 124 device_type = "network"; 125 125 model = "TSEC"; 126 126 compatible = "gianfar";
+10 -14
arch/powerpc/boot/dts/mpc8548cds.dts
··· 87 87 mdio@24520 { 88 88 #address-cells = <1>; 89 89 #size-cells = <0>; 90 - device_type = "mdio"; 91 - compatible = "gianfar"; 90 + compatible = "fsl,gianfar-mdio"; 92 91 reg = <24520 20>; 92 + 93 93 phy0: ethernet-phy@0 { 94 94 interrupt-parent = <&mpic>; 95 95 interrupts = <5 1>; ··· 116 116 }; 117 117 }; 118 118 119 - ethernet@24000 { 120 - #address-cells = <1>; 121 - #size-cells = <0>; 119 + enet0: ethernet@24000 { 120 + cell-index = <0>; 122 121 device_type = "network"; 123 122 model = "eTSEC"; 124 123 compatible = "gianfar"; ··· 128 129 phy-handle = <&phy0>; 129 130 }; 130 131 131 - ethernet@25000 { 132 - #address-cells = <1>; 133 - #size-cells = <0>; 132 + enet1: ethernet@25000 { 133 + cell-index = <1>; 134 134 device_type = "network"; 135 135 model = "eTSEC"; 136 136 compatible = "gianfar"; ··· 141 143 }; 142 144 143 145 /* eTSEC 3/4 are currently broken 144 - ethernet@26000 { 145 - #address-cells = <1>; 146 - #size-cells = <0>; 146 + enet2: ethernet@26000 { 147 + cell-index = <2>; 147 148 device_type = "network"; 148 149 model = "eTSEC"; 149 150 compatible = "gianfar"; ··· 153 156 phy-handle = <&phy2>; 154 157 }; 155 158 156 - ethernet@27000 { 157 - #address-cells = <1>; 158 - #size-cells = <0>; 159 + enet3: ethernet@27000 { 160 + cell-index = <3>; 159 161 device_type = "network"; 160 162 model = "eTSEC"; 161 163 compatible = "gianfar";
+6 -8
arch/powerpc/boot/dts/mpc8555cds.dts
··· 76 76 mdio@24520 { 77 77 #address-cells = <1>; 78 78 #size-cells = <0>; 79 - device_type = "mdio"; 80 - compatible = "gianfar"; 79 + compatible = "fsl,gianfar-mdio"; 81 80 reg = <24520 20>; 81 + 82 82 phy0: ethernet-phy@0 { 83 83 interrupt-parent = <&mpic>; 84 84 interrupts = <5 1>; ··· 93 93 }; 94 94 }; 95 95 96 - ethernet@24000 { 97 - #address-cells = <1>; 98 - #size-cells = <0>; 96 + enet0: ethernet@24000 { 97 + cell-index = <0>; 99 98 device_type = "network"; 100 99 model = "TSEC"; 101 100 compatible = "gianfar"; ··· 105 106 phy-handle = <&phy0>; 106 107 }; 107 108 108 - ethernet@25000 { 109 - #address-cells = <1>; 110 - #size-cells = <0>; 109 + enet1: ethernet@25000 { 110 + cell-index = <1>; 111 111 device_type = "network"; 112 112 model = "TSEC"; 113 113 compatible = "gianfar";
+9 -33
arch/powerpc/boot/dts/mpc8560ads.dts
··· 63 63 }; 64 64 65 65 mdio@24520 { 66 - device_type = "mdio"; 67 - compatible = "gianfar"; 68 - reg = <24520 20>; 69 66 #address-cells = <1>; 70 67 #size-cells = <0>; 68 + compatible = "fsl,gianfar-mdio"; 69 + reg = <24520 20>; 70 + 71 71 phy0: ethernet-phy@0 { 72 72 interrupt-parent = <&mpic>; 73 73 interrupts = <5 1>; ··· 94 94 }; 95 95 }; 96 96 97 - ethernet@24000 { 97 + enet0: ethernet@24000 { 98 + cell-index = <0>; 98 99 device_type = "network"; 99 100 model = "TSEC"; 100 101 compatible = "gianfar"; 101 102 reg = <24000 1000>; 102 - /* 103 - * address is deprecated and will be removed 104 - * in 2.6.25. Only recent versions of 105 - * U-Boot support local-mac-address, however. 106 - */ 107 - address = [ 00 00 00 00 00 00 ]; 108 103 local-mac-address = [ 00 00 00 00 00 00 ]; 109 104 interrupts = <1d 2 1e 2 22 2>; 110 105 interrupt-parent = <&mpic>; 111 106 phy-handle = <&phy0>; 112 107 }; 113 108 114 - ethernet@25000 { 115 - #address-cells = <1>; 116 - #size-cells = <0>; 109 + enet1: ethernet@25000 { 110 + cell-index = <1>; 117 111 device_type = "network"; 118 112 model = "TSEC"; 119 113 compatible = "gianfar"; 120 114 reg = <25000 1000>; 121 - /* 122 - * address is deprecated and will be removed 123 - * in 2.6.25. Only recent versions of 124 - * U-Boot support local-mac-address, however. 125 - */ 126 - address = [ 00 00 00 00 00 00 ]; 127 115 local-mac-address = [ 00 00 00 00 00 00 ]; 128 116 interrupts = <23 2 24 2 28 2>; 129 117 interrupt-parent = <&mpic>; ··· 186 198 interrupt-parent = <&cpmpic>; 187 199 }; 188 200 189 - ethernet@91320 { 201 + enet2: ethernet@91320 { 190 202 device_type = "network"; 191 203 compatible = "fsl,mpc8560-fcc-enet", 192 204 "fsl,cpm2-fcc-enet"; 193 205 reg = <91320 20 88500 100 913b0 1>; 194 - /* 195 - * mac-address is deprecated and will be removed 196 - * in 2.6.25. Only recent versions of 197 - * U-Boot support local-mac-address, however. 198 - */ 199 - mac-address = [ 00 00 00 00 00 00 ]; 200 206 local-mac-address = [ 00 00 00 00 00 00 ]; 201 207 fsl,cpm-command = <16200300>; 202 208 interrupts = <21 8>; ··· 198 216 phy-handle = <&phy2>; 199 217 }; 200 218 201 - ethernet@91340 { 219 + enet3: ethernet@91340 { 202 220 device_type = "network"; 203 221 compatible = "fsl,mpc8560-fcc-enet", 204 222 "fsl,cpm2-fcc-enet"; 205 223 reg = <91340 20 88600 100 913d0 1>; 206 - /* 207 - * mac-address is deprecated and will be removed 208 - * in 2.6.25. Only recent versions of 209 - * U-Boot support local-mac-address, however. 210 - */ 211 - mac-address = [ 00 00 00 00 00 00 ]; 212 224 local-mac-address = [ 00 00 00 00 00 00 ]; 213 225 fsl,cpm-command = <1a400300>; 214 226 interrupts = <22 8>;
+10 -35
arch/powerpc/boot/dts/mpc8568mds.dts
··· 101 101 mdio@24520 { 102 102 #address-cells = <1>; 103 103 #size-cells = <0>; 104 - device_type = "mdio"; 105 - compatible = "gianfar"; 104 + compatible = "fsl,gianfar-mdio"; 106 105 reg = <24520 20>; 106 + 107 107 phy0: ethernet-phy@7 { 108 108 interrupt-parent = <&mpic>; 109 109 interrupts = <1 1>; ··· 130 130 }; 131 131 }; 132 132 133 - ethernet@24000 { 134 - #address-cells = <1>; 135 - #size-cells = <0>; 133 + enet0: ethernet@24000 { 134 + cell-index = <0>; 136 135 device_type = "network"; 137 136 model = "eTSEC"; 138 137 compatible = "gianfar"; 139 138 reg = <24000 1000>; 140 - /* 141 - * mac-address is deprecated and will be removed 142 - * in 2.6.25. Only recent versions of 143 - * U-Boot support local-mac-address, however. 144 - */ 145 - mac-address = [ 00 00 00 00 00 00 ]; 146 139 local-mac-address = [ 00 00 00 00 00 00 ]; 147 140 interrupts = <1d 2 1e 2 22 2>; 148 141 interrupt-parent = <&mpic>; 149 142 phy-handle = <&phy2>; 150 143 }; 151 144 152 - ethernet@25000 { 153 - #address-cells = <1>; 154 - #size-cells = <0>; 145 + enet1: ethernet@25000 { 146 + cell-index = <1>; 155 147 device_type = "network"; 156 148 model = "eTSEC"; 157 149 compatible = "gianfar"; 158 150 reg = <25000 1000>; 159 - /* 160 - * mac-address is deprecated and will be removed 161 - * in 2.6.25. Only recent versions of 162 - * U-Boot support local-mac-address, however. 163 - */ 164 - mac-address = [ 00 00 00 00 00 00 ]; 165 151 local-mac-address = [ 00 00 00 00 00 00 ]; 166 152 interrupts = <23 2 24 2 28 2>; 167 153 interrupt-parent = <&mpic>; ··· 304 318 mode = "cpu"; 305 319 }; 306 320 307 - ucc@2000 { 321 + enet2: ucc@2000 { 308 322 device_type = "network"; 309 323 compatible = "ucc_geth"; 310 324 model = "UCC"; 325 + cell-index = <1>; 311 326 device-id = <1>; 312 327 reg = <2000 200>; 313 328 interrupts = <20>; 314 329 interrupt-parent = <&qeic>; 315 - /* 316 - * mac-address is deprecated and will be removed 317 - * in 2.6.25. Only recent versions of 318 - * U-Boot support local-mac-address, however. 319 - */ 320 - mac-address = [ 00 00 00 00 00 00 ]; 321 330 local-mac-address = [ 00 00 00 00 00 00 ]; 322 331 rx-clock = <0>; 323 332 tx-clock = <20>; ··· 321 340 phy-connection-type = "rgmii-id"; 322 341 }; 323 342 324 - ucc@3000 { 343 + enet3: ucc@3000 { 325 344 device_type = "network"; 326 345 compatible = "ucc_geth"; 327 346 model = "UCC"; 347 + cell-index = <2>; 328 348 device-id = <2>; 329 349 reg = <3000 200>; 330 350 interrupts = <21>; 331 351 interrupt-parent = <&qeic>; 332 - /* 333 - * mac-address is deprecated and will be removed 334 - * in 2.6.25. Only recent versions of 335 - * U-Boot support local-mac-address, however. 336 - */ 337 - mac-address = [ 00 00 00 00 00 00 ]; 338 352 local-mac-address = [ 00 00 00 00 00 00 ]; 339 353 rx-clock = <0>; 340 354 tx-clock = <20>; ··· 342 366 #address-cells = <1>; 343 367 #size-cells = <0>; 344 368 reg = <2120 18>; 345 - device_type = "mdio"; 346 369 compatible = "ucc_geth_phy"; 347 370 348 371 /* These are the same PHYs as on
+10 -14
arch/powerpc/boot/dts/mpc8572ds.dts
··· 93 93 mdio@24520 { 94 94 #address-cells = <1>; 95 95 #size-cells = <0>; 96 - device_type = "mdio"; 97 - compatible = "gianfar"; 96 + compatible = "fsl,gianfar-mdio"; 98 97 reg = <24520 20>; 98 + 99 99 phy0: ethernet-phy@0 { 100 100 interrupt-parent = <&mpic>; 101 101 interrupts = <a 1>; ··· 118 118 }; 119 119 }; 120 120 121 - ethernet@24000 { 122 - #address-cells = <1>; 123 - #size-cells = <0>; 121 + enet0: ethernet@24000 { 122 + cell-index = <0>; 124 123 device_type = "network"; 125 124 model = "eTSEC"; 126 125 compatible = "gianfar"; ··· 131 132 phy-connection-type = "rgmii-id"; 132 133 }; 133 134 134 - ethernet@25000 { 135 - #address-cells = <1>; 136 - #size-cells = <0>; 135 + enet1: ethernet@25000 { 136 + cell-index = <1>; 137 137 device_type = "network"; 138 138 model = "eTSEC"; 139 139 compatible = "gianfar"; ··· 144 146 phy-connection-type = "rgmii-id"; 145 147 }; 146 148 147 - ethernet@26000 { 148 - #address-cells = <1>; 149 - #size-cells = <0>; 149 + enet2: ethernet@26000 { 150 + cell-index = <2>; 150 151 device_type = "network"; 151 152 model = "eTSEC"; 152 153 compatible = "gianfar"; ··· 157 160 phy-connection-type = "rgmii-id"; 158 161 }; 159 162 160 - ethernet@27000 { 161 - #address-cells = <1>; 162 - #size-cells = <0>; 163 + enet3: ethernet@27000 { 164 + cell-index = <3>; 163 165 device_type = "network"; 164 166 model = "eTSEC"; 165 167 compatible = "gianfar";
+6 -34
arch/powerpc/boot/dts/mpc8641_hpcn.dts
··· 93 93 mdio@24520 { 94 94 #address-cells = <1>; 95 95 #size-cells = <0>; 96 - device_type = "mdio"; 97 - compatible = "gianfar"; 96 + compatible = "fsl,gianfar-mdio"; 98 97 reg = <24520 20>; 98 + 99 99 phy0: ethernet-phy@0 { 100 100 interrupt-parent = <&mpic>; 101 101 interrupts = <a 1>; ··· 123 123 }; 124 124 125 125 enet0: ethernet@24000 { 126 - #address-cells = <1>; 127 - #size-cells = <0>; 126 + cell-index = <0>; 128 127 device_type = "network"; 129 128 model = "TSEC"; 130 129 compatible = "gianfar"; 131 130 reg = <24000 1000>; 132 - /* 133 - * mac-address is deprecated and will be removed 134 - * in 2.6.25. Only recent versions of 135 - * U-Boot support local-mac-address, however. 136 - */ 137 - mac-address = [ 00 00 00 00 00 00 ]; 138 131 local-mac-address = [ 00 00 00 00 00 00 ]; 139 132 interrupts = <1d 2 1e 2 22 2>; 140 133 interrupt-parent = <&mpic>; ··· 136 143 }; 137 144 138 145 enet1: ethernet@25000 { 139 - #address-cells = <1>; 140 - #size-cells = <0>; 146 + cell-index = <1>; 141 147 device_type = "network"; 142 148 model = "TSEC"; 143 149 compatible = "gianfar"; 144 150 reg = <25000 1000>; 145 - /* 146 - * mac-address is deprecated and will be removed 147 - * in 2.6.25. Only recent versions of 148 - * U-Boot support local-mac-address, however. 149 - */ 150 - mac-address = [ 00 00 00 00 00 00 ]; 151 151 local-mac-address = [ 00 00 00 00 00 00 ]; 152 152 interrupts = <23 2 24 2 28 2>; 153 153 interrupt-parent = <&mpic>; ··· 149 163 }; 150 164 151 165 enet2: ethernet@26000 { 152 - #address-cells = <1>; 153 - #size-cells = <0>; 166 + cell-index = <2>; 154 167 device_type = "network"; 155 168 model = "TSEC"; 156 169 compatible = "gianfar"; 157 170 reg = <26000 1000>; 158 - /* 159 - * mac-address is deprecated and will be removed 160 - * in 2.6.25. Only recent versions of 161 - * U-Boot support local-mac-address, however. 162 - */ 163 - mac-address = [ 00 00 00 00 00 00 ]; 164 171 local-mac-address = [ 00 00 00 00 00 00 ]; 165 172 interrupts = <1F 2 20 2 21 2>; 166 173 interrupt-parent = <&mpic>; ··· 162 183 }; 163 184 164 185 enet3: ethernet@27000 { 165 - #address-cells = <1>; 166 - #size-cells = <0>; 186 + cell-index = <3>; 167 187 device_type = "network"; 168 188 model = "TSEC"; 169 189 compatible = "gianfar"; 170 190 reg = <27000 1000>; 171 - /* 172 - * mac-address is deprecated and will be removed 173 - * in 2.6.25. Only recent versions of 174 - * U-Boot support local-mac-address, however. 175 - */ 176 - mac-address = [ 00 00 00 00 00 00 ]; 177 191 local-mac-address = [ 00 00 00 00 00 00 ]; 178 192 interrupts = <25 2 26 2 27 2>; 179 193 interrupt-parent = <&mpic>;
+10 -5
arch/powerpc/sysdev/fsl_soc.c
··· 132 132 133 133 static int __init gfar_mdio_of_init(void) 134 134 { 135 - struct device_node *np; 136 - unsigned int i; 135 + struct device_node *np = NULL; 137 136 struct platform_device *mdio_dev; 138 137 struct resource res; 139 138 int ret; 140 139 141 - for (np = NULL, i = 0; 142 - (np = of_find_compatible_node(np, "mdio", "gianfar")) != NULL; 143 - i++) { 140 + np = of_find_compatible_node(np, NULL, "fsl,gianfar-mdio"); 141 + 142 + /* try the deprecated version */ 143 + if (!np) 144 + np = of_find_compatible_node(np, "mdio", "gianfar"); 145 + 146 + if (np) { 144 147 int k; 145 148 struct device_node *child = NULL; 146 149 struct gianfar_mdio_data mdio_data; ··· 182 179 goto unreg; 183 180 } 184 181 182 + of_node_put(np); 185 183 return 0; 186 184 187 185 unreg: 188 186 platform_device_unregister(mdio_dev); 189 187 err: 188 + of_node_put(np); 190 189 return ret; 191 190 } 192 191