dt-bindings: spmi: Correct 'reg' schema
authorRob Herring <robh@kernel.org>
Tue, 15 Jun 2021 17:20:24 +0000 (11:20 -0600)
committerRob Herring <robh@kernel.org>
Mon, 21 Jun 2021 19:56:46 +0000 (13:56 -0600)
'reg' is defined to be N address entries of M cells each. For SPMI, N is 1
and M is 1 or 2. The schema fails to define the number of entries as it
only specifies the inner cell(s). To fix, add an outer items list with 1
entry.

Cc: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20210615172024.856360-1-robh@kernel.org
Documentation/devicetree/bindings/spmi/spmi.yaml

index 1739409..1d243fa 100644 (file)
@@ -40,14 +40,15 @@ patternProperties:
 
     properties:
       reg:
-        minItems: 1
-        maxItems: 2
         items:
-          - minimum: 0
-            maximum: 0xf
-          - enum: [ 0 ]
-            description: |
-              0 means user ID address. 1 is reserved for group ID address.
+          - minItems: 1
+            items:
+              - minimum: 0
+                maximum: 0xf
+              - enum: [ 0 ]
+                description:
+                  0 means user ID address. 1 is reserved for group ID
+                  address.
 
     required:
       - reg