]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
dt-bindings: i2c: brcm,iproc-i2c: Allow 2 reg entries for brcm,iproc-nic-i2c
authorRob Herring (Arm) <robh@kernel.org>
Mon, 15 Dec 2025 21:28:05 +0000 (15:28 -0600)
committerWolfram Sang <wsa+renesas@sang-engineering.com>
Tue, 13 Jan 2026 15:30:22 +0000 (16:30 +0100)
The brcm,iproc-nic-i2c variant has 2 reg entries.

The second one is related to the brcm,ape-hsls-addr-mask property, but it's
not clear what a proper description would be.

Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Documentation/devicetree/bindings/i2c/brcm,iproc-i2c.yaml

index 2aa75b7add7bfc03732bcb923f3ae356c18eb365..daa70a8500e9b79da5242a30b9ee9bb1f8aaab59 100644 (file)
@@ -16,7 +16,8 @@ properties:
       - brcm,iproc-nic-i2c
 
   reg:
-    maxItems: 1
+    minItems: 1
+    maxItems: 2
 
   clock-frequency:
     enum: [ 100000, 400000 ]
@@ -41,8 +42,15 @@ allOf:
           contains:
             const: brcm,iproc-nic-i2c
     then:
+      properties:
+        reg:
+          minItems: 2
       required:
         - brcm,ape-hsls-addr-mask
+    else:
+      properties:
+        reg:
+          maxItems: 1
 
 unevaluatedProperties: false