Skip to contentSkip to conversation

dt-bindings: spmi: Correct 'reg' schema

PATCH Applied Rob Herring 1 participant 2 messages Jun 15, 2021 – Jun 21, 2021

Subsystems (2)
lore
Share & tools
lore

Rob Herring

author maintainer
#0 lore raw

PATCH 1/1 dt-bindings: spmi: Correct 'reg' schema

'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.

---
 Documentation/devicetree/bindings/spmi/spmi.yaml | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)
Documentation/devicetree/bindings/spmi/spmi.yaml +8 -7
index 173940930719..1d243faef2f8 100644
@@ -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
Signature · 1 line
2.27.0
author maintainer Applied
#1 lore raw
Quoted 11 lines · Rob Herring

'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.

---
 Documentation/devicetree/bindings/spmi/spmi.yaml | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

Applied, thanks!