Commit 5a674d9d authored by Rob Herring's avatar Rob Herring

dt-bindings: Fix array constraints on scalar properties

Scalar properties shouldn't have array constraints (minItems, maxItems,
items). These constraints can simply be dropped with any constraints under
'items' moved up a level.

Cc: Agathe Porte <agathe.porte@nokia.com>
Cc: Guenter Roeck <linux@roeck-us.net>
Cc: Jean Delvare <jdelvare@suse.com>
Cc: Krzysztof Kozlowski <krzk+dt@kernel.org>
Cc: Olivier Moysan <olivier.moysan@foss.st.com>
Cc: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
Cc: Jonathan Cameron <jic23@kernel.org>
Cc: Lars-Peter Clausen <lars@metafoo.de>
Cc: Philipp Zabel <p.zabel@pengutronix.de>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Cc: Mark Brown <broonie@kernel.org>
Cc: Fabrice Gasnier <fabrice.gasnier@foss.st.com>
Cc: Yunfei Dong <yunfei.dong@mediatek.com>
Cc: Geert Uytterhoeven <geert+renesas@glider.be>
Cc: linux-hwmon@vger.kernel.org
Cc: alsa-devel@alsa-project.org
Cc: linux-iio@vger.kernel.org
Cc: linux-media@vger.kernel.org
Cc: linux-remoteproc@vger.kernel.org
Cc: linux-spi@vger.kernel.org
Signed-off-by: default avatarRob Herring <robh@kernel.org>
Acked-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
Acked-by: default avatarMark Brown <broonie@kernel.org>
Reviewed-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Acked-by: default avatarGuenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20220413140121.3132837-1-robh@kernel.org
parent 5dc6ce76
...@@ -58,9 +58,8 @@ patternProperties: ...@@ -58,9 +58,8 @@ patternProperties:
The value (two's complement) to be programmed in the channel specific N correction register. The value (two's complement) to be programmed in the channel specific N correction register.
For remote channels only. For remote channels only.
$ref: /schemas/types.yaml#/definitions/int32 $ref: /schemas/types.yaml#/definitions/int32
items: minimum: -128
minimum: -128 maximum: 127
maximum: 127
required: required:
- reg - reg
......
...@@ -108,9 +108,7 @@ patternProperties: ...@@ -108,9 +108,7 @@ patternProperties:
- [1-5]: order 1 to 5. - [1-5]: order 1 to 5.
For audio purpose it is recommended to use order 3 to 5. For audio purpose it is recommended to use order 3 to 5.
$ref: /schemas/types.yaml#/definitions/uint32 $ref: /schemas/types.yaml#/definitions/uint32
items: maximum: 5
minimum: 0
maximum: 5
"#io-channel-cells": "#io-channel-cells":
const: 1 const: 1
......
...@@ -65,7 +65,6 @@ properties: ...@@ -65,7 +65,6 @@ properties:
iram: iram:
$ref: /schemas/types.yaml#/definitions/phandle $ref: /schemas/types.yaml#/definitions/phandle
description: phandle pointing to the SRAM device node description: phandle pointing to the SRAM device node
maxItems: 1
required: required:
- compatible - compatible
......
...@@ -63,13 +63,11 @@ properties: ...@@ -63,13 +63,11 @@ properties:
mediatek,vpu: mediatek,vpu:
$ref: /schemas/types.yaml#/definitions/phandle $ref: /schemas/types.yaml#/definitions/phandle
maxItems: 1
description: description:
Describes point to vpu. Describes point to vpu.
mediatek,scp: mediatek,scp:
$ref: /schemas/types.yaml#/definitions/phandle $ref: /schemas/types.yaml#/definitions/phandle
maxItems: 1
description: description:
Describes point to scp. Describes point to scp.
......
...@@ -55,13 +55,11 @@ properties: ...@@ -55,13 +55,11 @@ properties:
mediatek,vpu: mediatek,vpu:
$ref: /schemas/types.yaml#/definitions/phandle $ref: /schemas/types.yaml#/definitions/phandle
maxItems: 1
description: description:
Describes point to vpu. Describes point to vpu.
mediatek,scp: mediatek,scp:
$ref: /schemas/types.yaml#/definitions/phandle $ref: /schemas/types.yaml#/definitions/phandle
maxItems: 1
description: description:
Describes point to scp. Describes point to scp.
......
...@@ -61,7 +61,6 @@ properties: ...@@ -61,7 +61,6 @@ properties:
mediatek,scp: mediatek,scp:
$ref: /schemas/types.yaml#/definitions/phandle $ref: /schemas/types.yaml#/definitions/phandle
maxItems: 1
description: | description: |
The node of system control processor (SCP), using The node of system control processor (SCP), using
the remoteproc & rpmsg framework. the remoteproc & rpmsg framework.
......
...@@ -104,8 +104,7 @@ properties: ...@@ -104,8 +104,7 @@ properties:
qcom,smem-state-names: qcom,smem-state-names:
$ref: /schemas/types.yaml#/definitions/string $ref: /schemas/types.yaml#/definitions/string
description: The names of the state bits used for SMP2P output description: The names of the state bits used for SMP2P output
items: const: stop
- const: stop
glink-edge: glink-edge:
type: object type: object
...@@ -130,7 +129,6 @@ properties: ...@@ -130,7 +129,6 @@ properties:
qcom,remote-pid: qcom,remote-pid:
$ref: /schemas/types.yaml#/definitions/uint32 $ref: /schemas/types.yaml#/definitions/uint32
description: ID of the shared memory used by GLINK for communication with WPSS description: ID of the shared memory used by GLINK for communication with WPSS
maxItems: 1
required: required:
- interrupts - interrupts
......
...@@ -124,7 +124,6 @@ properties: ...@@ -124,7 +124,6 @@ properties:
description: | description: |
Override the default TX fifo size. Unit is words. Ignored if 0. Override the default TX fifo size. Unit is words. Ignored if 0.
$ref: /schemas/types.yaml#/definitions/uint32 $ref: /schemas/types.yaml#/definitions/uint32
maxItems: 1
default: 64 default: 64
renesas,rx-fifo-size: renesas,rx-fifo-size:
...@@ -132,7 +131,6 @@ properties: ...@@ -132,7 +131,6 @@ properties:
description: | description: |
Override the default RX fifo size. Unit is words. Ignored if 0. Override the default RX fifo size. Unit is words. Ignored if 0.
$ref: /schemas/types.yaml#/definitions/uint32 $ref: /schemas/types.yaml#/definitions/uint32
maxItems: 1
default: 64 default: 64
required: required:
......
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