diff options
author | Rob Herring <robh@kernel.org> | 2021-06-15 20:20:24 +0300 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2021-06-21 22:56:46 +0300 |
commit | dc4014752eb7489eff43d426bf6b1caeb4092699 (patch) | |
tree | 1f00eb5f0b067e28afec94442faca553aea87006 /Documentation/devicetree/bindings | |
parent | 67a066b35765d13a55a56edd9b1f54dee9e441e1 (diff) | |
download | linux-dc4014752eb7489eff43d426bf6b1caeb4092699.tar.xz |
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 <sboyd@kernel.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20210615172024.856360-1-robh@kernel.org
Diffstat (limited to 'Documentation/devicetree/bindings')
-rw-r--r-- | Documentation/devicetree/bindings/spmi/spmi.yaml | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/Documentation/devicetree/bindings/spmi/spmi.yaml b/Documentation/devicetree/bindings/spmi/spmi.yaml index 173940930719..1d243faef2f8 100644 --- a/Documentation/devicetree/bindings/spmi/spmi.yaml +++ b/Documentation/devicetree/bindings/spmi/spmi.yaml @@ -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 |