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

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: net: realtek: Use proper node names

We eventually want to get to a place where we fix all DTS files
so that we can simply disallow switch/port/ports without the
ethernet-* prefix so the DTS files are more readable.

Replace:
- switch with ethernet-switch
- ports with ethernet-ports
- port with ethernet-port

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://patch.msgid.link/20241004-realtek-bindings-fixup-v2-1-667afa08d184@linaro.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Linus Walleij and committed by
Jakub Kicinski
7651f114 58ec6857

+23 -23
+23 -23
Documentation/devicetree/bindings/net/dsa/realtek.yaml
··· 147 147 #include <dt-bindings/interrupt-controller/irq.h> 148 148 149 149 platform { 150 - switch { 150 + ethernet-switch { 151 151 compatible = "realtek,rtl8366rb"; 152 152 /* 22 = MDIO (has input reads), 21 = MDC (clock, output only) */ 153 153 mdc-gpios = <&gpio0 21 GPIO_ACTIVE_HIGH>; ··· 163 163 #interrupt-cells = <1>; 164 164 }; 165 165 166 - ports { 166 + ethernet-ports { 167 167 #address-cells = <1>; 168 168 #size-cells = <0>; 169 - port@0 { 169 + ethernet-port@0 { 170 170 reg = <0>; 171 171 label = "lan0"; 172 172 phy-handle = <&phy0>; 173 173 }; 174 - port@1 { 174 + ethernet-port@1 { 175 175 reg = <1>; 176 176 label = "lan1"; 177 177 phy-handle = <&phy1>; 178 178 }; 179 - port@2 { 179 + ethernet-port@2 { 180 180 reg = <2>; 181 181 label = "lan2"; 182 182 phy-handle = <&phy2>; 183 183 }; 184 - port@3 { 184 + ethernet-port@3 { 185 185 reg = <3>; 186 186 label = "lan3"; 187 187 phy-handle = <&phy3>; 188 188 }; 189 - port@4 { 189 + ethernet-port@4 { 190 190 reg = <4>; 191 191 label = "wan"; 192 192 phy-handle = <&phy4>; 193 193 }; 194 - port@5 { 194 + ethernet-port@5 { 195 195 reg = <5>; 196 196 ethernet = <&gmac0>; 197 197 phy-mode = "rgmii"; ··· 241 241 #include <dt-bindings/interrupt-controller/irq.h> 242 242 243 243 platform { 244 - switch { 244 + ethernet-switch { 245 245 compatible = "realtek,rtl8365mb"; 246 246 mdc-gpios = <&gpio1 16 GPIO_ACTIVE_HIGH>; 247 247 mdio-gpios = <&gpio1 17 GPIO_ACTIVE_HIGH>; ··· 255 255 #interrupt-cells = <1>; 256 256 }; 257 257 258 - ports { 258 + ethernet-ports { 259 259 #address-cells = <1>; 260 260 #size-cells = <0>; 261 - port@0 { 261 + ethernet-port@0 { 262 262 reg = <0>; 263 263 label = "swp0"; 264 264 phy-handle = <&ethphy0>; 265 265 }; 266 - port@1 { 266 + ethernet-port@1 { 267 267 reg = <1>; 268 268 label = "swp1"; 269 269 phy-handle = <&ethphy1>; 270 270 }; 271 - port@2 { 271 + ethernet-port@2 { 272 272 reg = <2>; 273 273 label = "swp2"; 274 274 phy-handle = <&ethphy2>; 275 275 }; 276 - port@3 { 276 + ethernet-port@3 { 277 277 reg = <3>; 278 278 label = "swp3"; 279 279 phy-handle = <&ethphy3>; 280 280 }; 281 - port@6 { 281 + ethernet-port@6 { 282 282 reg = <6>; 283 283 ethernet = <&fec1>; 284 284 phy-mode = "rgmii"; ··· 330 330 #address-cells = <1>; 331 331 #size-cells = <0>; 332 332 333 - switch@29 { 333 + ethernet-switch@29 { 334 334 compatible = "realtek,rtl8365mb"; 335 335 reg = <29>; 336 336 ··· 344 344 #interrupt-cells = <1>; 345 345 }; 346 346 347 - ports { 347 + ethernet-ports { 348 348 #address-cells = <1>; 349 349 #size-cells = <0>; 350 350 351 - port@0 { 351 + ethernet-port@0 { 352 352 reg = <0>; 353 353 label = "lan4"; 354 354 }; 355 355 356 - port@1 { 356 + ethernet-port@1 { 357 357 reg = <1>; 358 358 label = "lan3"; 359 359 }; 360 360 361 - port@2 { 361 + ethernet-port@2 { 362 362 reg = <2>; 363 363 label = "lan2"; 364 364 }; 365 365 366 - port@3 { 366 + ethernet-port@3 { 367 367 reg = <3>; 368 368 label = "lan1"; 369 369 }; 370 370 371 - port@4 { 371 + ethernet-port@4 { 372 372 reg = <4>; 373 373 label = "wan"; 374 374 }; 375 375 376 - port@7 { 376 + ethernet-port@7 { 377 377 reg = <7>; 378 378 ethernet = <&ethernet>; 379 379 phy-mode = "rgmii";