dt-bindings: net: lan966x: Accept standard ethernet prefixes
Subsystems (3)
PATCH 1/1 dt-bindings: net: lan966x: Accept standard ethernet prefixes
The dsa.yaml and ethernet-switch.yaml bindings recommend prefixing ethernet switches and ports with "ethernet-" so make the LAN966x do the same.
--- .../devicetree/bindings/net/microchip,lan966x-switch.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
Documentation/devicetree/bindings/net/microchip,lan966x-switch.yaml +5 -5
@@ -17,7 +17,7 @@ description: | properties: $nodename: - pattern: "^switch@[0-9a-f]+$" + pattern: "^(ethernet-)?switch@[0-9a-f]+$" compatible: const: microchip,lan966x-switch
@@ -70,7 +70,7 @@ properties: additionalProperties: false patternProperties: - "^port@[0-9a-f]+$": + "^(ethernet-)?port@[0-9a-f]+$": type: object $ref: /schemas/net/ethernet-controller.yaml#
@@ -138,7 +138,7 @@ additionalProperties: false examples: - | #include <dt-bindings/interrupt-controller/arm-gic.h> - switch: switch@e0000000 { + switch: ethernet-switch@e0000000 { compatible = "microchip,lan966x-switch"; reg = <0xe0000000 0x0100000>, <0xe2000000 0x0800000>;
@@ -151,14 +151,14 @@ examples: #address-cells = <1>; #size-cells = <0>; - port0: port@0 { + port0: ethernet-port@0 { reg = <0>; phy-handle = <&phy0>; phys = <&serdes 0 0>; phy-mode = "gmii"; }; - port1: port@1 { + port1: ethernet-port@1 { reg = <1>; sfp = <&sfp_eth1>; managed = "in-band-status";
---
base-commit: 254f49634ee16a731174d2ae34bc50bd5f45e731
change-id: 20260507-lan966-binding-0df62a018509
Best regards,
Signature · 1 line
Linus Walleij <[email protected]>
Hi Linus,
Quoted 63 lines · On Thu, 07 May 2026 11:26:01 +0200 Linus Walleij <[email protected]> wrote:
The
dsa.yamlandethernet-switch.yamlbindings recommend prefixing ethernet switches and ports with "ethernet-" so make the LAN966x do the same.Reported-by Herve Codina <[email protected]>Signed-off-by Linus Walleij <[email protected]>--- .../devicetree/bindings/net/microchip,lan966x-switch.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)Documentation/devicetree/bindings/net/microchip,lan966x-switch.yaml +5
-6@@ -17,7 +17,7 @@ description: | properties: $nodename: - pattern: "^switch@[0-9a-f]+$" + pattern: "^(ethernet-)?switch@[0-9a-f]+$" compatible: const: microchip,lan966x-switch@@ -70,7 +70,7 @@ properties: additionalProperties: false patternProperties: - "^port@[0-9a-f]+$": + "^(ethernet-)?port@[0-9a-f]+$": type: object $ref: /schemas/net/ethernet-controller.yaml#@@ -138,7 +138,7 @@ additionalProperties: false examples: - | #include <dt-bindings/interrupt-controller/arm-gic.h> - switch: switch@e0000000 { + switch: ethernet-switch@e0000000 { compatible = "microchip,lan966x-switch"; reg = <0xe0000000 0x0100000>, <0xe2000000 0x0800000>;@@ -151,14 +151,14 @@ examples: #address-cells = <1>; #size-cells = <0>; - port0: port@0 { + port0: ethernet-port@0 { reg = <0>; phy-handle = <&phy0>; phys = <&serdes 0 0>; phy-mode = "gmii"; }; - port1: port@1 { + port1: ethernet-port@1 { reg = <1>; sfp = <&sfp_eth1>; managed = "in-band-status"; ---base-commit:
254f49634ee16a731174d2ae34bc50bd5f45e731
change-id: 20260507-lan966-binding-0df62a018509
Quoted 4 lines
Best regards,
Signature · 1 line
Linus Walleij <[email protected]>
With those changes, dtb_check will not be happy when following dtsi/dts are involved:
- arch/arm/boot/dts/microchip/lan966x.dtsi
- arch/arm/boot/dts/microchip/lan966x-kontron-kswitch-d10-mmt.dtsi
- arch/arm/boot/dts/microchip/lan966x-pcb8290.dts
- arch/arm/boot/dts/microchip/lan966x-kontron-kswitch-d10-mmt-6g-2gs.dts
- arch/arm/boot/dts/microchip/lan966x-kontron-kswitch-d10-mmt-8g.dts
IMHO they should be updated as part of the series.
Best regards,
Hervé
Rob Herring
maintainerQuoted 68 lines · Herve Codina
Hi Linus,
Quoted 63 lines · On Thu, 07 May 2026 11:26:01 +0200 Linus Walleij <[email protected]> wrote:
The
dsa.yamlandethernet-switch.yamlbindings recommend prefixing ethernet switches and ports with "ethernet-" so make the LAN966x do the same.Reported-by Herve Codina <[email protected]>Signed-off-by Linus Walleij <[email protected]>--- .../devicetree/bindings/net/microchip,lan966x-switch.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)Documentation/devicetree/bindings/net/microchip,lan966x-switch.yaml +5
-6@@ -17,7 +17,7 @@ description: | properties: $nodename: - pattern: "^switch@[0-9a-f]+$" + pattern: "^(ethernet-)?switch@[0-9a-f]+$" compatible: const: microchip,lan966x-switch@@ -70,7 +70,7 @@ properties: additionalProperties: false patternProperties: - "^port@[0-9a-f]+$": + "^(ethernet-)?port@[0-9a-f]+$": type: object $ref: /schemas/net/ethernet-controller.yaml#@@ -138,7 +138,7 @@ additionalProperties: false examples: - | #include <dt-bindings/interrupt-controller/arm-gic.h> - switch: switch@e0000000 { + switch: ethernet-switch@e0000000 { compatible = "microchip,lan966x-switch"; reg = <0xe0000000 0x0100000>, <0xe2000000 0x0800000>;@@ -151,14 +151,14 @@ examples: #address-cells = <1>; #size-cells = <0>; - port0: port@0 { + port0: ethernet-port@0 { reg = <0>; phy-handle = <&phy0>; phys = <&serdes 0 0>; phy-mode = "gmii"; }; - port1: port@1 { + port1: ethernet-port@1 { reg = <1>; sfp = <&sfp_eth1>; managed = "in-band-status"; ---base-commit:
254f49634ee16a731174d2ae34bc50bd5f45e731
change-id: 20260507-lan966-binding-0df62a018509
Quoted 12 lines
Quoted 4 lines
Best regards,
Signature · 1 line
Linus Walleij <[email protected]>With those changes,
dtb_checkwill not be happy when following dtsi/dts are involved:
-arch/arm/boot/dts/microchip/lan966x.dtsi
-arch/arm/boot/dts/microchip/lan966x-kontron-kswitch-d10-mmt.dtsi
-arch/arm/boot/dts/microchip/lan966x-pcb8290.dts
-arch/arm/boot/dts/microchip/lan966x-kontron-kswitch-d10-mmt-6g-2gs.dts
-arch/arm/boot/dts/microchip/lan966x-kontron-kswitch-d10-mmt-8g.dts
How so? the added prefix is optional.
Rob
Herve Codina
Reviewed-byHi Rob, Linus,
Quoted 82 lines · On Thu, 7 May 2026 06:59:35 -0500 Rob Herring <[email protected]> wrote:
Quoted 68 lines · Herve Codina
Hi Linus,
Quoted 63 lines · On Thu, 07 May 2026 11:26:01 +0200 Linus Walleij <[email protected]> wrote:
The
dsa.yamlandethernet-switch.yamlbindings recommend prefixing ethernet switches and ports with "ethernet-" so make the LAN966x do the same.Reported-by Herve Codina <[email protected]>Signed-off-by Linus Walleij <[email protected]>--- .../devicetree/bindings/net/microchip,lan966x-switch.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)Documentation/devicetree/bindings/net/microchip,lan966x-switch.yaml +5
-6@@ -17,7 +17,7 @@ description: | properties: $nodename: - pattern: "^switch@[0-9a-f]+$" + pattern: "^(ethernet-)?switch@[0-9a-f]+$" compatible: const: microchip,lan966x-switch@@ -70,7 +70,7 @@ properties: additionalProperties: false patternProperties: - "^port@[0-9a-f]+$": + "^(ethernet-)?port@[0-9a-f]+$": type: object $ref: /schemas/net/ethernet-controller.yaml#@@ -138,7 +138,7 @@ additionalProperties: false examples: - | #include <dt-bindings/interrupt-controller/arm-gic.h> - switch: switch@e0000000 { + switch: ethernet-switch@e0000000 { compatible = "microchip,lan966x-switch"; reg = <0xe0000000 0x0100000>, <0xe2000000 0x0800000>;@@ -151,14 +151,14 @@ examples: #address-cells = <1>; #size-cells = <0>; - port0: port@0 { + port0: ethernet-port@0 { reg = <0>; phy-handle = <&phy0>; phys = <&serdes 0 0>; phy-mode = "gmii"; }; - port1: port@1 { + port1: ethernet-port@1 { reg = <1>; sfp = <&sfp_eth1>; managed = "in-band-status"; ---base-commit:
254f49634ee16a731174d2ae34bc50bd5f45e731
change-id: 20260507-lan966-binding-0df62a018509Quoted 12 lines
Quoted 4 lines
Best regards,
Signature · 1 line
Linus Walleij <[email protected]>With those changes,
dtb_checkwill not be happy when following dtsi/dts are involved:
-arch/arm/boot/dts/microchip/lan966x.dtsi
-arch/arm/boot/dts/microchip/lan966x-kontron-kswitch-d10-mmt.dtsi
-arch/arm/boot/dts/microchip/lan966x-pcb8290.dts
-arch/arm/boot/dts/microchip/lan966x-kontron-kswitch-d10-mmt-6g-2gs.dts
-arch/arm/boot/dts/microchip/lan966x-kontron-kswitch-d10-mmt-8g.dts
Quoted 1 line
How so? the added prefix is optional.
Oups, I've missed that. My bad.
Sorry for the noise.
Best regards,
Hervé
Quoted 10 lines · Linus Walleij
The
dsa.yamlandethernet-switch.yamlbindings recommend prefixing ethernet switches and ports with "ethernet-" so make the LAN966x do the same.Reported-by Herve Codina <[email protected]>Signed-off-by Linus Walleij <[email protected]>--- .../devicetree/bindings/net/microchip,lan966x-switch.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Quoted 8 lines · On Thu, 07 May 2026 11:26:01 +0200 you wrote:
The
dsa.yamlandethernet-switch.yamlbindings recommend prefixing ethernet switches and ports with "ethernet-" so make the LAN966x do the same.Reported-by Herve Codina <[email protected]>Signed-off-by Linus Walleij <[email protected]>[...]
Here is the summary with links:
- dt-bindings: net: lan966x: Accept standard ethernet prefixes
https://git.kernel.org/netdev/net-next/c/4374fc0b89ff
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html