Commit 986536b9 authored by Rob Herring's avatar Rob Herring

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: default avatarRob Herring <robh@kernel.org>
Acked-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
Link: https://lore.kernel.org/r/20220119015627.2443334-1-robh@kernel.org
parent 58dfff3e
...@@ -81,9 +81,7 @@ properties: ...@@ -81,9 +81,7 @@ properties:
data-lanes: data-lanes:
description: description:
Note that 'fsl,imx7-mipi-csi2' only supports up to 2 data lines. Note that 'fsl,imx7-mipi-csi2' only supports up to 2 data lines.
items:
minItems: 1 minItems: 1
maxItems: 4
items: items:
- const: 1 - const: 1
- const: 2 - const: 2
......
...@@ -87,9 +87,7 @@ properties: ...@@ -87,9 +87,7 @@ properties:
properties: properties:
data-lanes: data-lanes:
items:
minItems: 1 minItems: 1
maxItems: 4
items: items:
- const: 1 - const: 1
- const: 2 - const: 2
......
...@@ -75,7 +75,6 @@ properties: ...@@ -75,7 +75,6 @@ properties:
Please refer to 2.4.1 Message RAM Configuration in Bosch Please refer to 2.4.1 Message RAM Configuration in Bosch
M_CAN user manual for details. M_CAN user manual for details.
$ref: /schemas/types.yaml#/definitions/int32-array $ref: /schemas/types.yaml#/definitions/int32-array
items:
items: items:
- description: The 'offset' is an address offset of the Message RAM where - description: The 'offset' is an address offset of the Message RAM where
the following elements start from. This is usually set to 0x0 if the following elements start from. This is usually set to 0x0 if
...@@ -102,7 +101,6 @@ properties: ...@@ -102,7 +101,6 @@ properties:
- description: Tx Buffers 0-32 elements / 0-576 words - description: Tx Buffers 0-32 elements / 0-576 words
minimum: 0 minimum: 0
maximum: 32 maximum: 32
maxItems: 1
power-domains: power-domains:
description: description:
......
...@@ -17,8 +17,7 @@ properties: ...@@ -17,8 +17,7 @@ properties:
description: description:
Specifies the MAC address that was assigned to the network device. Specifies the MAC address that was assigned to the network device.
$ref: /schemas/types.yaml#/definitions/uint8-array $ref: /schemas/types.yaml#/definitions/uint8-array
items: minItems: 6
- minItems: 6
maxItems: 6 maxItems: 6
mac-address: mac-address:
...@@ -28,8 +27,7 @@ properties: ...@@ -28,8 +27,7 @@ properties:
to the device by the boot program is different from the to the device by the boot program is different from the
local-mac-address property. local-mac-address property.
$ref: /schemas/types.yaml#/definitions/uint8-array $ref: /schemas/types.yaml#/definitions/uint8-array
items: minItems: 6
- minItems: 6
maxItems: 6 maxItems: 6
max-frame-size: max-frame-size:
...@@ -164,9 +162,6 @@ properties: ...@@ -164,9 +162,6 @@ properties:
type: array type: array
then: then:
deprecated: true deprecated: true
minItems: 1
maxItems: 1
items:
items: items:
- minimum: 0 - minimum: 0
maximum: 31 maximum: 31
......
...@@ -50,8 +50,7 @@ patternProperties: ...@@ -50,8 +50,7 @@ patternProperties:
Offset and size in bytes within the storage device. Offset and size in bytes within the storage device.
bits: bits:
maxItems: 1 $ref: /schemas/types.yaml#/definitions/uint32-array
items:
items: items:
- minimum: 0 - minimum: 0
maximum: 7 maximum: 7
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment