Thread (57 messages) 57 messages, 8 authors, 2025-11-01

Re: [PATCH 09/15] dt-bindings: net: mediatek,net: Correct bindings for MT7981

From: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Date: 2025-10-16 11:29:04
Also in: linux-arm-kernel, linux-devicetree, linux-mediatek, linux-pci, linux-phy, lkml

Il 16/10/25 12:08, Sjoerd Simons ha scritto:
quoted hunk ↗ jump to hunk
Different SoCs have different numbers of Wireless Ethernet
Dispatch (WED) units:
- MT7981: Has 1 WED unit
- MT7986: Has 2 WED units
- MT7988: Has 2 WED units

Update the binding to reflect these hardware differences. The MT7981
also uses infracfg for PHY switching, so allow that property.

Signed-off-by: Sjoerd Simons <redacted>
---
  Documentation/devicetree/bindings/net/mediatek,net.yaml | 16 +++++++++++++---
  1 file changed, 13 insertions(+), 3 deletions(-)
diff --git a/Documentation/devicetree/bindings/net/mediatek,net.yaml b/Documentation/devicetree/bindings/net/mediatek,net.yaml
index b45f67f92e80d..453e6bb34094a 100644
--- a/Documentation/devicetree/bindings/net/mediatek,net.yaml
+++ b/Documentation/devicetree/bindings/net/mediatek,net.yaml
@@ -112,7 +112,7 @@ properties:
  
    mediatek,wed:
      $ref: /schemas/types.yaml#/definitions/phandle-array
-    minItems: 2
+    minItems: 1
If minItems is 1 here
quoted hunk ↗ jump to hunk
      maxItems: 2
      items:
        maxItems: 1
@@ -338,12 +338,14 @@ allOf:
              - const: netsys0
              - const: netsys1
  
-        mediatek,infracfg: false
-
          mediatek,sgmiisys:
            minItems: 2
            maxItems: 2
  
+        mediatek,wed:
+          minItems: 1
You just need maxItems here.
quoted hunk ↗ jump to hunk
+          maxItems: 1
+
    - if:
        properties:
          compatible:
@@ -385,6 +387,10 @@ allOf:
            minItems: 2
            maxItems: 2
  
+        mediatek,wed:
+          minItems: 2
+          maxItems: 2
+
    - if:
        properties:
          compatible:
@@ -429,6 +435,10 @@ allOf:
              - const: xgp2
              - const: xgp3
  
+        mediatek,wed:
+          minItems: 2
+          maxItems: 2
Analogously, you should be needing just minItems here if I'm not wrong.

Cheers,
Angelo
+
  patternProperties:
    "^mac@[0-2]$":
      type: object
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help