dt-bindings: spmi: Correct 'reg' schema
Subsystems (2)
Rob Herring
maintainerPATCH 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.
Cc Stephen Boyd <[email protected]>
Signed-off-by Rob Herring <[email protected]>
--- Documentation/devicetree/bindings/spmi/spmi.yaml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-)
Documentation/devicetree/bindings/spmi/spmi.yaml +8 -7
@@ -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
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.
Cc Stephen Boyd <[email protected]>Signed-off-by Rob Herring <[email protected]>--- Documentation/devicetree/bindings/spmi/spmi.yaml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-)
Applied, thanks!