Skip to contentSkip to conversation

dt-bindings: net: micrel: Fix KSZ8041RNLI dtbs_check warnings

PATCH Superseded Geert Uytterhoeven 5 participants 10 messages Mar 12 – Mar 16

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover dt-bindings: net: micrel: Fix KSZ8041RNLI dtbs_check warnings

Hi all,

"make dtbs_check" reports several warnings due to some KSZ8041RNLI PHY nodes having the "micrel,led-mode" property, while the DT bindings prohibit this.

Apparently the DT bindings are incorrect, so this patch series fixes that, after a customary cleanup.

Thanks for your comments!

Geert Uytterhoeven (2):
dt-bindings: net: micrel: Sort lists
dt-bindings: net: micrel: KSZ8041RNLI supports LED mode

 Documentation/devicetree/bindings/net/micrel.yaml | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
Signature · 12 lines
2.43.0

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds
#1 lore raw

PATCH 1/2 dt-bindings: net: micrel: Sort lists

Sort lists of PHY models and compatible values alphabetically.

---
 Documentation/devicetree/bindings/net/micrel.yaml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/net/micrel.yaml +2 -2
index ecc00169ef805dc2..5d25f0d0a508a6df 100644
@@ -51,9 +51,9 @@ properties:
       bits that are currently supported:
 
       KSZ8001: register 0x1e, bits 15..14
-      KSZ8041: register 0x1e, bits 15..14
       KSZ8021: register 0x1f, bits 5..4
       KSZ8031: register 0x1f, bits 5..4
+      KSZ8041: register 0x1e, bits 15..14
       KSZ8051: register 0x1f, bits 5..4
       KSZ8081: register 0x1f, bits 5..4
       KSZ8091: register 0x1f, bits 5..4
@@ -80,9 +80,9 @@ allOf:
             contains:
               enum:
                 - ethernet-phy-id0022.1510
+                - ethernet-phy-id0022.1550
                 - ethernet-phy-id0022.1555
                 - ethernet-phy-id0022.1556
-                - ethernet-phy-id0022.1550
                 - ethernet-phy-id0022.1560
                 - ethernet-phy-id0022.161a
     then:
Signature · 1 line
2.43.0
Reviewed-by on v1 1/2
#2 lore raw

Re: [PATCH 1/2] dt-bindings: net: micrel: Sort lists

Quoted 23 lines · Geert Uytterhoeven

Sort lists of PHY models and compatible values alphabetically.

---
 Documentation/devicetree/bindings/net/micrel.yaml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/net/micrel.yaml +1 -1
index ecc00169ef805dc2..5d25f0d0a508a6df 100644
@@ -51,9 +51,9 @@ properties:
       bits that are currently supported:
 
       KSZ8001: register 0x1e, bits 15..14
-      KSZ8041: register 0x1e, bits 15..14
       KSZ8021: register 0x1f, bits 5..4
       KSZ8031: register 0x1f, bits 5..4
+      KSZ8041: register 0x1e, bits 15..14
       KSZ8051: register 0x1f, bits 5..4
       KSZ8081: register 0x1f, bits 5..4
       KSZ8091: register 0x1f, bits 5..4

Documentation/devicetree/bindings/net/micrel.yaml allOf: · line 88

Quoted 10 lines
Documentation/devicetree/bindings/net/micrel.yaml +1 -1
@@ -80,9 +80,9 @@ allOf:
             contains:
               enum:
                 - ethernet-phy-id0022.1510
+                - ethernet-phy-id0022.1550
                 - ethernet-phy-id0022.1555
                 - ethernet-phy-id0022.1556
-                - ethernet-phy-id0022.1550
                 - ethernet-phy-id0022.1560
                 - ethernet-phy-id0022.161a
     then:

Looks good to me, thanks for the cleanup.

#4 lore raw

PATCH 2/2 dt-bindings: net: micrel: KSZ8041RNLI supports LED mode

In reply to Geert Uytterhoeven

Micrel KSZ8041RNLI supports LED mode, just like KSZ8041.

This fixes (a.o.) the following "make dtbs_check" warning:

arch/arm/boot/dts/renesas/r8a7791-koelsch.dtb: ethernet-phy@1 (ethernet-phy-id0022.1537): False schema does not allow 1
from schema $id: http://devicetree.org/schemas/net/micrel.yaml

---
 Documentation/devicetree/bindings/net/micrel.yaml | 2 ++
 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/net/micrel.yaml +2 -0
index 5d25f0d0a508a6df..7fb61c78d16cd801 100644
@@ -54,6 +54,7 @@ properties:
       KSZ8021: register 0x1f, bits 5..4
       KSZ8031: register 0x1f, bits 5..4
       KSZ8041: register 0x1e, bits 15..14
+      KSZ8041RLNI: register 0x1e, bits 15..14
       KSZ8051: register 0x1f, bits 5..4
       KSZ8081: register 0x1f, bits 5..4
       KSZ8091: register 0x1f, bits 5..4
@@ -80,6 +81,7 @@ allOf:
             contains:
               enum:
                 - ethernet-phy-id0022.1510
+                - ethernet-phy-id0022.1537
                 - ethernet-phy-id0022.1550
                 - ethernet-phy-id0022.1555
                 - ethernet-phy-id0022.1556
Signature · 1 line
2.43.0
Reviewed-by on v1 2/2
#5 lore raw

Re: [PATCH 2/2] dt-bindings: net: micrel: KSZ8041RNLI supports LED mode

Quoted 25 lines · Geert Uytterhoeven

Micrel KSZ8041RNLI supports LED mode, just like KSZ8041.

This fixes (a.o.) the following "make dtbs_check" warning:

arch/arm/boot/dts/renesas/r8a7791-koelsch.dtb: ethernet-phy@1 (ethernet-phy-id0022.1537): False schema does not allow 1
from schema $id: http://devicetree.org/schemas/net/micrel.yaml

---
 Documentation/devicetree/bindings/net/micrel.yaml | 2 ++
 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/net/micrel.yaml +1 -0
index 5d25f0d0a508a6df..7fb61c78d16cd801 100644
@@ -54,6 +54,7 @@ properties:
       KSZ8021: register 0x1f, bits 5..4
       KSZ8031: register 0x1f, bits 5..4
       KSZ8041: register 0x1e, bits 15..14
+      KSZ8041RLNI: register 0x1e, bits 15..14
       KSZ8051: register 0x1f, bits 5..4
       KSZ8081: register 0x1f, bits 5..4
       KSZ8091: register 0x1f, bits 5..4

Documentation/devicetree/bindings/net/micrel.yaml allOf: · line 87

Quoted 7 lines
Documentation/devicetree/bindings/net/micrel.yaml +1 -0
@@ -80,6 +81,7 @@ allOf:
             contains:
               enum:
                 - ethernet-phy-id0022.1510
+                - ethernet-phy-id0022.1537
                 - ethernet-phy-id0022.1550
                 - ethernet-phy-id0022.1555
                 - ethernet-phy-id0022.1556

Looks also good to me, thanks for the fix.

maintainer
#7 lore raw

Re: [2/2] dt-bindings: net: micrel: KSZ8041RNLI supports LED mode

In reply to Geert Uytterhoeven

This is an AI-generated review of your patch. The human sending this email has considered the AI review valid, or at least plausible.

For local reproduction steps see https://netdev-ai.bots.linux.dev/ai-local.html
---
dt-bindings: net: micrel: KSZ8041RNLI supports LED mode

Micrel KSZ8041RNLI supports LED mode, just like KSZ8041. This fixes (a.o.) the following "make dtbs_check" warning for the r8a7791-koelsch device tree.

Documentation/devicetree/bindings/net/micrel.yaml line 57

Quoted 8 lines
Documentation/devicetree/bindings/net/micrel.yaml +1 -0
@@ -54,6 +54,7 @@
       KSZ8021: register 0x1f, bits 5..4
       KSZ8031: register 0x1f, bits 5..4
       KSZ8041: register 0x1e, bits 15..14
+      KSZ8041RLNI: register 0x1e, bits 15..14
                  ^^^^

This isn't a bug, but there's a typo here. Should this be KSZ8041RNLI instead of KSZ8041RLNI?

The chip is called KSZ8041RNLI in the commit subject and in the compatible string definition:

Quoted 3 lines
Documentation/devicetree/bindings/net/micrel.yaml +0 -0
       KSZ8051: register 0x1f, bits 5..4
       KSZ8081: register 0x1f, bits 5..4
       KSZ8091: register 0x1f, bits 5..4

[ ... ]

Quoted 8 lines
Documentation/devicetree/bindings/net/micrel.yaml +1 -0
@@ -80,6 +81,7 @@
             contains:
               enum:
                 - ethernet-phy-id0022.1510
+                - ethernet-phy-id0022.1537
                 - ethernet-phy-id0022.1555
                 - ethernet-phy-id0022.1556
                 - ethernet-phy-id0022.1560
Signature · 1 line
pw-bot: cr
#8 lore raw

Re: [2/2] dt-bindings: net: micrel: KSZ8041RNLI supports LED mode

Hi Jakub(ot ;-),

Quoted 19 lines · Jakub Kicinski

This is an AI-generated review of your patch. The human sending this email has considered the AI review valid, or at least plausible.

For local reproduction steps see https://netdev-ai.bots.linux.dev/ai-local.html
---
dt-bindings: net: micrel: KSZ8041RNLI supports LED mode

Micrel KSZ8041RNLI supports LED mode, just like KSZ8041. This fixes (a.o.) the following "make dtbs_check" warning for the r8a7791-koelsch device tree.

Documentation/devicetree/bindings/net/micrel.yaml line 57

Quoted 8 lines
Documentation/devicetree/bindings/net/micrel.yaml +1 -0
@@ -54,6 +54,7 @@
       KSZ8021: register 0x1f, bits 5..4
       KSZ8031: register 0x1f, bits 5..4
       KSZ8041: register 0x1e, bits 15..14
+      KSZ8041RLNI: register 0x1e, bits 15..14
                  ^^^^
Quoted 2 lines

This isn't a bug, but there's a typo here. Should this be KSZ8041RNLI instead of KSZ8041RLNI?

Yes, it is a typo. Shall I send a v2 with this fixed? Thanks!

Gr{oetje,eeting}s,

Geert

Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
maintainer
#9 lore raw

Re: [2/2] dt-bindings: net: micrel: KSZ8041RNLI supports LED mode

Quoted 12 lines · On Mon, 16 Mar 2026 09:22:19 +0100 Geert Uytterhoeven wrote:
Quoted 11 lines

Documentation/devicetree/bindings/net/micrel.yaml line 57

Quoted 8 lines
Documentation/devicetree/bindings/net/micrel.yaml +1 -0
@@ -54,6 +54,7 @@
       KSZ8021: register 0x1f, bits 5..4
       KSZ8031: register 0x1f, bits 5..4
       KSZ8041: register 0x1e, bits 15..14
+      KSZ8041RLNI: register 0x1e, bits 15..14  
                  ^^^^

This isn't a bug, but there's a typo here. Should this be KSZ8041RNLI instead of KSZ8041RLNI?

Quoted 1 line

Yes, it is a typo. Shall I send a v2 with this fixed?

Yes, please