summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/nvmem/nvmem.yaml
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2022-01-18 19:56:26 -0600
committerRob Herring <robh@kernel.org>2022-01-20 12:52:50 -0600
commit986536b952fd7070f5137358df7b055f3081dd2b (patch)
treec8cbab35b2ceb2d7a730010293f1d7b5c3a9e002 /Documentation/devicetree/bindings/nvmem/nvmem.yaml
parent58dfff3e984dfb96dae98008e6ea0ab92248d003 (diff)
dt-bindings: Fix array schemas encoded as matrices
The YAML DT encoding has leaked into some array properties. Properties which are defined as an array should have a schema that's just an array. That means there should only be a single level of 'minItems', 'maxItems', and/or 'items'. Signed-off-by: Rob Herring <robh@kernel.org> Acked-by: Marc Kleine-Budde <mkl@pengutronix.de> Link: https://lore.kernel.org/r/20220119015627.2443334-1-robh@kernel.org
Diffstat (limited to 'Documentation/devicetree/bindings/nvmem/nvmem.yaml')
-rw-r--r--Documentation/devicetree/bindings/nvmem/nvmem.yaml17
1 files changed, 8 insertions, 9 deletions
diff --git a/Documentation/devicetree/bindings/nvmem/nvmem.yaml b/Documentation/devicetree/bindings/nvmem/nvmem.yaml
index 456fb808100a..43ed7e32e5ac 100644
--- a/Documentation/devicetree/bindings/nvmem/nvmem.yaml
+++ b/Documentation/devicetree/bindings/nvmem/nvmem.yaml
@@ -50,16 +50,15 @@ patternProperties:
Offset and size in bytes within the storage device.
bits:
- maxItems: 1
+ $ref: /schemas/types.yaml#/definitions/uint32-array
items:
- items:
- - minimum: 0
- maximum: 7
- description:
- Offset in bit within the address range specified by reg.
- - minimum: 1
- description:
- Size in bit within the address range specified by reg.
+ - minimum: 0
+ maximum: 7
+ description:
+ Offset in bit within the address range specified by reg.
+ - minimum: 1
+ description:
+ Size in bit within the address range specified by reg.
required:
- reg