Commit 0499220d authored by Rob Herring's avatar Rob Herring

dt-bindings: Add missing array size constraints

DT properties which can have multiple entries need to specify what the
entries are and define how many entries there can be. In the case of
only a single entry, just 'maxItems: 1' is sufficient.

Add the missing entry constraints. These were found with a modified
meta-schema. Unfortunately, there are a few cases where the size
constraints are not defined such as common bindings, so the meta-schema
can't be part of the normal checks.

Cc: Jens Axboe <axboe@kernel.dk>
Cc: Stephen Boyd <sboyd@kernel.org>
Cc: Thierry Reding <thierry.reding@gmail.com>
Cc: MyungJoo Ham <myungjoo.ham@samsung.com>
Cc: Chanwoo Choi <cw00.choi@samsung.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Cc: Jonathan Cameron <jic23@kernel.org>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Marc Zyngier <maz@kernel.org>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: Chen-Yu Tsai <wens@csie.org>
Cc: Ulf Hansson <ulf.hansson@linaro.org>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Jakub Kicinski <kuba@kernel.org>
Cc: Sebastian Reichel <sre@kernel.org>
Cc: Ohad Ben-Cohen <ohad@wizery.com>
Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: default avatarSebastian Reichel <sre@kernel.org>
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> #for-iio
Acked-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
Reviewed-by: default avatarSuman Anna <s-anna@ti.com>
Acked-by: default avatarPaul Cercueil <paul@crapouillou.net>
Acked-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
Acked-by: default avatarBartosz Golaszewski <bgolaszewski@baylibre.com>
Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20210104230253.2805217-1-robh@kernel.orgSigned-off-by: default avatarRob Herring <robh@kernel.org>
parent ca880a15
...@@ -30,8 +30,8 @@ properties: ...@@ -30,8 +30,8 @@ properties:
Interrupts can be used to notify the completion of cache operations. Interrupts can be used to notify the completion of cache operations.
The number of interrupts should match to the number of CPU cores. The number of interrupts should match to the number of CPU cores.
The specified interrupts correspond to CPU0, CPU1, ... in this order. The specified interrupts correspond to CPU0, CPU1, ... in this order.
minItems: 1 minItems: 1
maxItems: 4 maxItems: 4
cache-unified: true cache-unified: true
......
...@@ -61,6 +61,7 @@ properties: ...@@ -61,6 +61,7 @@ properties:
maxItems: 8 maxItems: 8
calxeda,sgpio-gpio: calxeda,sgpio-gpio:
maxItems: 3
description: | description: |
phandle-gpio bank, bit offset, and default on or off, which indicates phandle-gpio bank, bit offset, and default on or off, which indicates
that the driver supports SGPIO indicator lights using the indicated that the driver supports SGPIO indicator lights using the indicated
......
...@@ -22,6 +22,7 @@ properties: ...@@ -22,6 +22,7 @@ properties:
const: canaan,k210-clk const: canaan,k210-clk
clocks: clocks:
maxItems: 1
description: description:
Phandle of the SoC 26MHz fixed-rate oscillator clock. Phandle of the SoC 26MHz fixed-rate oscillator clock.
......
...@@ -60,6 +60,7 @@ properties: ...@@ -60,6 +60,7 @@ properties:
Phandle of the I2C controller used for DDC EDID probing Phandle of the I2C controller used for DDC EDID probing
hpd-gpios: hpd-gpios:
maxItems: 1
description: > description: >
The GPIO pin for the HDMI hotplug detect (if it doesn't appear The GPIO pin for the HDMI hotplug detect (if it doesn't appear
as an interrupt/status bit in the HDMI controller itself) as an interrupt/status bit in the HDMI controller itself)
......
...@@ -37,6 +37,7 @@ properties: ...@@ -37,6 +37,7 @@ properties:
Phandle of the I2C controller used for DDC EDID probing Phandle of the I2C controller used for DDC EDID probing
hpd-gpios: hpd-gpios:
maxItems: 1
description: > description: >
The GPIO pin for the HDMI hotplug detect (if it doesn't appear The GPIO pin for the HDMI hotplug detect (if it doesn't appear
as an interrupt/status bit in the HDMI controller itself) as an interrupt/status bit in the HDMI controller itself)
......
...@@ -30,6 +30,7 @@ properties: ...@@ -30,6 +30,7 @@ properties:
power supply for LCM (1.8V) power supply for LCM (1.8V)
dcdc-en-gpios: dcdc-en-gpios:
maxItems: 1
description: | description: |
phandle of the gpio for power ic line phandle of the gpio for power ic line
Power IC supply enable, High active Power IC supply enable, High active
......
...@@ -37,7 +37,8 @@ properties: ...@@ -37,7 +37,8 @@ properties:
reset-gpios: true reset-gpios: true
'mantix,tp-rstn-gpios': mantix,tp-rstn-gpios:
maxItems: 1
description: second reset line that triggers DSI config load description: second reset line that triggers DSI config load
backlight: true backlight: true
......
...@@ -30,6 +30,7 @@ properties: ...@@ -30,6 +30,7 @@ properties:
panel. The novatek,nt36672a compatible shall always be provided as a fallback. panel. The novatek,nt36672a compatible shall always be provided as a fallback.
reset-gpios: reset-gpios:
maxItems: 1
description: phandle of gpio for reset line - This should be 8mA, gpio description: phandle of gpio for reset line - This should be 8mA, gpio
can be configured using mux, pinctrl, pinctrl-names (active high) can be configured using mux, pinctrl, pinctrl-names (active high)
......
...@@ -21,7 +21,7 @@ properties: ...@@ -21,7 +21,7 @@ properties:
- fsl,imx8mp-dsp - fsl,imx8mp-dsp
reg: reg:
description: Should contain register location and length maxItems: 1
clocks: clocks:
items: items:
......
...@@ -39,8 +39,7 @@ properties: ...@@ -39,8 +39,7 @@ properties:
- const: atmel,at25 - const: atmel,at25
reg: reg:
description: maxItems: 1
Chip select number.
spi-max-frequency: true spi-max-frequency: true
......
...@@ -19,6 +19,7 @@ properties: ...@@ -19,6 +19,7 @@ properties:
const: nxp,ptn5150 const: nxp,ptn5150
int-gpios: int-gpios:
maxItems: 1
deprecated: true deprecated: true
description: description:
GPIO pin (input) connected to the PTN5150's INTB pin. GPIO pin (input) connected to the PTN5150's INTB pin.
...@@ -31,6 +32,7 @@ properties: ...@@ -31,6 +32,7 @@ properties:
maxItems: 1 maxItems: 1
vbus-gpios: vbus-gpios:
maxItems: 1
description: description:
GPIO pin (output) used to control VBUS. If skipped, no such control GPIO pin (output) used to control VBUS. If skipped, no such control
takes place. takes place.
......
...@@ -81,6 +81,7 @@ properties: ...@@ -81,6 +81,7 @@ properties:
const: 2 const: 2
reset-gpios: reset-gpios:
maxItems: 1
description: description:
GPIO specification for the RESET input. This is an active low signal to GPIO specification for the RESET input. This is an active low signal to
the PCA953x. Not valid for Maxim MAX732x devices. the PCA953x. Not valid for Maxim MAX732x devices.
......
...@@ -40,6 +40,7 @@ properties: ...@@ -40,6 +40,7 @@ properties:
ADC reference voltage supply ADC reference voltage supply
adi,sync-in-gpios: adi,sync-in-gpios:
maxItems: 1
description: description:
Enables synchronization of multiple devices that require simultaneous Enables synchronization of multiple devices that require simultaneous
sampling. A pulse is always required if the configuration is changed sampling. A pulse is always required if the configuration is changed
...@@ -76,6 +77,7 @@ patternProperties: ...@@ -76,6 +77,7 @@ patternProperties:
properties: properties:
reg: reg:
maxItems: 1
description: | description: |
The channel number. The channel number.
......
...@@ -23,6 +23,7 @@ properties: ...@@ -23,6 +23,7 @@ properties:
maxItems: 1 maxItems: 1
clocks: clocks:
maxItems: 1
description: description:
Input clock used to derive the sample clock. Expected to be the Input clock used to derive the sample clock. Expected to be the
SoC's APB clock. SoC's APB clock.
......
...@@ -20,7 +20,7 @@ properties: ...@@ -20,7 +20,7 @@ properties:
description: Power supply for the reference voltage description: Power supply for the reference voltage
reg: reg:
description: spi chipselect number according to the usual spi bindings maxItems: 1
spi-max-frequency: spi-max-frequency:
description: maximal spi bus frequency supported description: maximal spi bus frequency supported
......
...@@ -68,6 +68,7 @@ patternProperties: ...@@ -68,6 +68,7 @@ patternProperties:
properties: properties:
reg: reg:
maxItems: 1
description: | description: |
ADC channel number. ADC channel number.
See include/dt-bindings/iio/qcom,spmi-vadc.h See include/dt-bindings/iio/qcom,spmi-vadc.h
......
...@@ -41,6 +41,8 @@ properties: ...@@ -41,6 +41,8 @@ properties:
maxItems: 2 maxItems: 2
clocks: clocks:
minItems: 1
maxItems: 2
description: | description: |
Core can use up to two clocks, depending on part used: Core can use up to two clocks, depending on part used:
- "adc" clock: for the analog circuitry, common to all ADCs. - "adc" clock: for the analog circuitry, common to all ADCs.
......
...@@ -47,6 +47,7 @@ properties: ...@@ -47,6 +47,7 @@ properties:
description: an optional 3x3 mounting rotation matrix. description: an optional 3x3 mounting rotation matrix.
reset-gpios: reset-gpios:
maxItems: 1
description: | description: |
an optional pin needed for AK09911 to set the reset state. This should an optional pin needed for AK09911 to set the reset state. This should
be usually active low be usually active low
......
...@@ -25,6 +25,7 @@ properties: ...@@ -25,6 +25,7 @@ properties:
maxItems: 1 maxItems: 1
reset-gpios: reset-gpios:
maxItems: 1
description: description:
Active low signal to the AD5272 RESET input. Active low signal to the AD5272 RESET input.
......
...@@ -29,6 +29,7 @@ properties: ...@@ -29,6 +29,7 @@ properties:
description: touchscreen can be used as a wakeup source. description: touchscreen can be used as a wakeup source.
reset-gpios: reset-gpios:
maxItems: 1
description: reset gpio the chip is connected to. description: reset gpio the chip is connected to.
vcc33-supply: vcc33-supply:
......
...@@ -31,7 +31,7 @@ properties: ...@@ -31,7 +31,7 @@ properties:
The 1st cell is hw interrupt number, the 2nd cell is channel index. The 1st cell is hw interrupt number, the 2nd cell is channel index.
clocks: clocks:
description: ipg clock. maxItems: 1
clock-names: clock-names:
const: ipg const: ipg
......
...@@ -36,6 +36,8 @@ properties: ...@@ -36,6 +36,8 @@ properties:
Reference to a phandle of a hardware spinlock provider node. Reference to a phandle of a hardware spinlock provider node.
interrupts: interrupts:
minItems: 1
maxItems: 96
description: description:
Interrupts references to primary interrupt controller Interrupts references to primary interrupt controller
......
...@@ -53,6 +53,7 @@ properties: ...@@ -53,6 +53,7 @@ properties:
maxItems: 1 maxItems: 1
memory-region: memory-region:
maxItems: 1
description: description:
CMA pool to use for buffers allocation instead of the default CMA pool to use for buffers allocation instead of the default
CMA pool. CMA pool.
......
...@@ -40,6 +40,7 @@ properties: ...@@ -40,6 +40,7 @@ properties:
Digital core voltage supply, 1.2 volts Digital core voltage supply, 1.2 volts
reset-gpios: reset-gpios:
maxItems: 1
description: |- description: |-
Reference to the GPIO connected to the xclr pin, if any. Reference to the GPIO connected to the xclr pin, if any.
Must be released (set high) after all supplies are applied. Must be released (set high) after all supplies are applied.
......
...@@ -28,6 +28,8 @@ properties: ...@@ -28,6 +28,8 @@ properties:
const: 1 const: 1
ranges: ranges:
minItems: 1
maxItems: 4
description: | description: |
Reflects the memory layout with four integer values per bank. Format: Reflects the memory layout with four integer values per bank. Format:
<bank-number> 0 <parent address of bank> <size> <bank-number> 0 <parent address of bank> <size>
......
...@@ -15,6 +15,7 @@ properties: ...@@ -15,6 +15,7 @@ properties:
const: "fsl,dpaa2-console" const: "fsl,dpaa2-console"
reg: reg:
maxItems: 1
description: A standard property. Specifies the region where the MCFBA description: A standard property. Specifies the region where the MCFBA
(MC firmware base address) register can be found. (MC firmware base address) register can be found.
......
...@@ -40,6 +40,7 @@ properties: ...@@ -40,6 +40,7 @@ properties:
There is no card detection available; polling must be used. There is no card detection available; polling must be used.
cd-gpios: cd-gpios:
maxItems: 1
description: description:
The card detection will be done using the GPIO provided. The card detection will be done using the GPIO provided.
...@@ -104,6 +105,7 @@ properties: ...@@ -104,6 +105,7 @@ properties:
line. Not used in combination with eMMC or SDIO. line. Not used in combination with eMMC or SDIO.
wp-gpios: wp-gpios:
maxItems: 1
description: description:
GPIO to use for the write-protect detection. GPIO to use for the write-protect detection.
......
...@@ -66,6 +66,7 @@ properties: ...@@ -66,6 +66,7 @@ properties:
dma-coherent: true dma-coherent: true
clocks: clocks:
maxItems: 1
description: CPSW2G NUSS functional clock description: CPSW2G NUSS functional clock
clock-names: clock-names:
......
...@@ -59,6 +59,7 @@ properties: ...@@ -59,6 +59,7 @@ properties:
- const: cpts - const: cpts
clocks: clocks:
maxItems: 1
description: CPTS reference clock description: CPTS reference clock
clock-names: clock-names:
......
...@@ -51,9 +51,11 @@ properties: ...@@ -51,9 +51,11 @@ properties:
- const: usb2_reset - const: usb2_reset
usb0_id_det-gpios: usb0_id_det-gpios:
maxItems: 1
description: GPIO to the USB OTG ID pin description: GPIO to the USB OTG ID pin
usb0_vbus_det-gpios: usb0_vbus_det-gpios:
maxItems: 1
description: GPIO to the USB OTG VBUS detect pin description: GPIO to the USB OTG VBUS detect pin
usb0_vbus_power-supply: usb0_vbus_power-supply:
......
...@@ -50,9 +50,11 @@ properties: ...@@ -50,9 +50,11 @@ properties:
- const: usb1_reset - const: usb1_reset
usb0_id_det-gpios: usb0_id_det-gpios:
maxItems: 1
description: GPIO to the USB OTG ID pin description: GPIO to the USB OTG ID pin
usb0_vbus_det-gpios: usb0_vbus_det-gpios:
maxItems: 1
description: GPIO to the USB OTG VBUS detect pin description: GPIO to the USB OTG VBUS detect pin
usb0_vbus_power-supply: usb0_vbus_power-supply:
......
...@@ -50,9 +50,11 @@ properties: ...@@ -50,9 +50,11 @@ properties:
- const: usb3_reset - const: usb3_reset
usb0_id_det-gpios: usb0_id_det-gpios:
maxItems: 1
description: GPIO to the USB OTG ID pin description: GPIO to the USB OTG ID pin
usb0_vbus_det-gpios: usb0_vbus_det-gpios:
maxItems: 1
description: GPIO to the USB OTG VBUS detect pin description: GPIO to the USB OTG VBUS detect pin
usb0_vbus_power-supply: usb0_vbus_power-supply:
......
...@@ -45,9 +45,11 @@ properties: ...@@ -45,9 +45,11 @@ properties:
- const: usb1_reset - const: usb1_reset
usb0_id_det-gpios: usb0_id_det-gpios:
maxItems: 1
description: GPIO to the USB OTG ID pin description: GPIO to the USB OTG ID pin
usb0_vbus_det-gpios: usb0_vbus_det-gpios:
maxItems: 1
description: GPIO to the USB OTG VBUS detect pin description: GPIO to the USB OTG VBUS detect pin
usb0_vbus_power-supply: usb0_vbus_power-supply:
......
...@@ -54,9 +54,11 @@ properties: ...@@ -54,9 +54,11 @@ properties:
- const: usb2_reset - const: usb2_reset
usb0_id_det-gpios: usb0_id_det-gpios:
maxItems: 1
description: GPIO to the USB OTG ID pin description: GPIO to the USB OTG ID pin
usb0_vbus_det-gpios: usb0_vbus_det-gpios:
maxItems: 1
description: GPIO to the USB OTG VBUS detect pin description: GPIO to the USB OTG VBUS detect pin
usb0_vbus_power-supply: usb0_vbus_power-supply:
......
...@@ -50,9 +50,11 @@ properties: ...@@ -50,9 +50,11 @@ properties:
- const: usb1_reset - const: usb1_reset
usb0_id_det-gpios: usb0_id_det-gpios:
maxItems: 1
description: GPIO to the USB OTG ID pin description: GPIO to the USB OTG ID pin
usb0_vbus_det-gpios: usb0_vbus_det-gpios:
maxItems: 1
description: GPIO to the USB OTG VBUS detect pin description: GPIO to the USB OTG VBUS detect pin
usb0_vbus_power-supply: usb0_vbus_power-supply:
......
...@@ -56,9 +56,11 @@ properties: ...@@ -56,9 +56,11 @@ properties:
- const: usb2_reset - const: usb2_reset
usb0_id_det-gpios: usb0_id_det-gpios:
maxItems: 1
description: GPIO to the USB OTG ID pin description: GPIO to the USB OTG ID pin
usb0_vbus_det-gpios: usb0_vbus_det-gpios:
maxItems: 1
description: GPIO to the USB OTG VBUS detect pin description: GPIO to the USB OTG VBUS detect pin
usb0_vbus_power-supply: usb0_vbus_power-supply:
......
...@@ -62,9 +62,11 @@ properties: ...@@ -62,9 +62,11 @@ properties:
- const: usb3_reset - const: usb3_reset
usb0_id_det-gpios: usb0_id_det-gpios:
maxItems: 1
description: GPIO to the USB OTG ID pin description: GPIO to the USB OTG ID pin
usb0_vbus_det-gpios: usb0_vbus_det-gpios:
maxItems: 1
description: GPIO to the USB OTG VBUS detect pin description: GPIO to the USB OTG VBUS detect pin
usb0_vbus_power-supply: usb0_vbus_power-supply:
......
...@@ -56,9 +56,11 @@ properties: ...@@ -56,9 +56,11 @@ properties:
- const: usb2_reset - const: usb2_reset
usb0_id_det-gpios: usb0_id_det-gpios:
maxItems: 1
description: GPIO to the USB OTG ID pin description: GPIO to the USB OTG ID pin
usb0_vbus_det-gpios: usb0_vbus_det-gpios:
maxItems: 1
description: GPIO to the USB OTG VBUS detect pin description: GPIO to the USB OTG VBUS detect pin
usb0_vbus_power-supply: usb0_vbus_power-supply:
......
...@@ -42,9 +42,11 @@ properties: ...@@ -42,9 +42,11 @@ properties:
const: usb0_reset const: usb0_reset
usb0_id_det-gpios: usb0_id_det-gpios:
maxItems: 1
description: GPIO to the USB OTG ID pin description: GPIO to the USB OTG ID pin
usb0_vbus_det-gpios: usb0_vbus_det-gpios:
maxItems: 1
description: GPIO to the USB OTG VBUS detect pin description: GPIO to the USB OTG VBUS detect pin
usb0_vbus_power-supply: usb0_vbus_power-supply:
......
...@@ -22,7 +22,8 @@ properties: ...@@ -22,7 +22,8 @@ properties:
clocks: clocks:
anyOf: anyOf:
- description: Main PHY Clock - maxItems: 1
description: Main PHY Clock
- items: - items:
- description: Main PHY clock - description: Main PHY clock
...@@ -39,20 +40,16 @@ properties: ...@@ -39,20 +40,16 @@ properties:
- const: hsic_480M - const: hsic_480M
resets: resets:
anyOf: minItems: 1
items:
- description: Normal USB PHY reset - description: Normal USB PHY reset
- description: HSIC Reset
- items:
- description: Normal USB PHY reset
- description: HSIC Reset
reset-names: reset-names:
oneOf: minItems: 1
items:
- const: phy - const: phy
- const: hsic
- items:
- const: phy
- const: hsic
phy_type: phy_type:
const: hsic const: hsic
......
...@@ -20,7 +20,7 @@ properties: ...@@ -20,7 +20,7 @@ properties:
- socionext,uniphier-pxs3-ahci-phy - socionext,uniphier-pxs3-ahci-phy
reg: reg:
description: PHY register region (offset and length) maxItems: 1
"#phy-cells": "#phy-cells":
const: 0 const: 0
......
...@@ -21,7 +21,7 @@ properties: ...@@ -21,7 +21,7 @@ properties:
- socionext,uniphier-pxs3-pcie-phy - socionext,uniphier-pxs3-pcie-phy
reg: reg:
description: PHY register region (offset and length) maxItems: 1
"#phy-cells": "#phy-cells":
const: 0 const: 0
......
...@@ -24,7 +24,7 @@ properties: ...@@ -24,7 +24,7 @@ properties:
- socionext,uniphier-pxs3-usb3-hsphy - socionext,uniphier-pxs3-usb3-hsphy
reg: reg:
description: PHY register region (offset and length) maxItems: 1
"#phy-cells": "#phy-cells":
const: 0 const: 0
......
...@@ -25,7 +25,7 @@ properties: ...@@ -25,7 +25,7 @@ properties:
- socionext,uniphier-pxs3-usb3-ssphy - socionext,uniphier-pxs3-usb3-ssphy
reg: reg:
description: PHY register region (offset and length) maxItems: 1
"#phy-cells": "#phy-cells":
const: 0 const: 0
......
...@@ -55,7 +55,7 @@ properties: ...@@ -55,7 +55,7 @@ properties:
- ti,am654-phy-gmii-sel - ti,am654-phy-gmii-sel
reg: reg:
description: Address and length of the register set for the device maxItems: 1
'#phy-cells': true '#phy-cells': true
......
...@@ -23,8 +23,7 @@ properties: ...@@ -23,8 +23,7 @@ properties:
compatible: compatible:
const: aspeed,ast2400-pinctrl const: aspeed,ast2400-pinctrl
reg: reg:
description: | maxItems: 2
A hint for the memory regions associated with the pin-controller
patternProperties: patternProperties:
'^.*$': '^.*$':
......
...@@ -24,8 +24,8 @@ properties: ...@@ -24,8 +24,8 @@ properties:
compatible: compatible:
const: aspeed,ast2500-pinctrl const: aspeed,ast2500-pinctrl
reg: reg:
description: | maxItems: 2
A hint for the memory regions associated with the pin-controller
aspeed,external-nodes: aspeed,external-nodes:
minItems: 2 minItems: 2
maxItems: 2 maxItems: 2
......
...@@ -70,6 +70,7 @@ properties: ...@@ -70,6 +70,7 @@ properties:
description: Enables bypass mode at boot time description: Enables bypass mode at boot time
interrupts: interrupts:
maxItems: 1
description: | description: |
Indicates that the device state has changed. Indicates that the device state has changed.
......
...@@ -44,7 +44,7 @@ properties: ...@@ -44,7 +44,7 @@ properties:
- const: vpu - const: vpu
interrupts: interrupts:
description: VPU hardware interrupt maxItems: 1
required: required:
- compatible - compatible
......
...@@ -70,10 +70,13 @@ properties: ...@@ -70,10 +70,13 @@ properties:
the firmware image. the firmware image.
clocks: clocks:
maxItems: 1
description: | description: |
Main functional clock for the remote processor Main functional clock for the remote processor
resets: resets:
minItems: 1
maxItems: 2
description: | description: |
Reset handles for the remote processor Reset handles for the remote processor
......
...@@ -63,6 +63,7 @@ properties: ...@@ -63,6 +63,7 @@ properties:
next-level-cache: true next-level-cache: true
memory-region: memory-region:
maxItems: 1
description: | description: |
The reference to the reserved-memory for the L2 Loosely Integrated Memory region. The reference to the reserved-memory for the L2 Loosely Integrated Memory region.
The reserved memory node should be defined as per the bindings in reserved-memory.txt. The reserved memory node should be defined as per the bindings in reserved-memory.txt.
......
...@@ -81,6 +81,8 @@ properties: ...@@ -81,6 +81,8 @@ properties:
maxItems: 1 maxItems: 1
dmas: dmas:
minItems: 2
maxItems: 4
description: description:
Must contain a list of pairs of references to DMA specifiers, one for Must contain a list of pairs of references to DMA specifiers, one for
transmission, and one for reception. transmission, and one for reception.
......
...@@ -120,6 +120,8 @@ properties: ...@@ -120,6 +120,8 @@ properties:
maxItems: 1 maxItems: 1
dmas: dmas:
minItems: 2
maxItems: 4
description: description:
Must contain a list of pairs of references to DMA specifiers, one for Must contain a list of pairs of references to DMA specifiers, one for
transmission, and one for reception. transmission, and one for reception.
......
...@@ -55,6 +55,8 @@ properties: ...@@ -55,6 +55,8 @@ properties:
maxItems: 1 maxItems: 1
dmas: dmas:
minItems: 2
maxItems: 4
description: description:
Must contain a list of pairs of references to DMA specifiers, one for Must contain a list of pairs of references to DMA specifiers, one for
transmission, and one for reception. transmission, and one for reception.
......
...@@ -55,6 +55,8 @@ properties: ...@@ -55,6 +55,8 @@ properties:
maxItems: 1 maxItems: 1
dmas: dmas:
minItems: 2
maxItems: 4
description: description:
Must contain a list of pairs of references to DMA specifiers, one for Must contain a list of pairs of references to DMA specifiers, one for
transmission, and one for reception. transmission, and one for reception.
......
...@@ -88,6 +88,7 @@ properties: ...@@ -88,6 +88,7 @@ properties:
description: Phandle to the codec analog controls in the PRCM description: Phandle to the codec analog controls in the PRCM
allwinner,pa-gpios: allwinner,pa-gpios:
maxItems: 1
description: GPIO to enable the external amplifier description: GPIO to enable the external amplifier
required: required:
......
...@@ -55,6 +55,7 @@ patternProperties: ...@@ -55,6 +55,7 @@ patternProperties:
maxItems: 1 maxItems: 1
reg: reg:
maxItems: 1
description: dai link address. description: dai link address.
cpu: cpu:
......
...@@ -62,12 +62,15 @@ properties: ...@@ -62,12 +62,15 @@ properties:
description: Supply for the micbias on the headset mic description: Supply for the micbias on the headset mic
earpath-sel-gpios: earpath-sel-gpios:
maxItems: 1
description: GPIO for switching between tv-out and mic paths description: GPIO for switching between tv-out and mic paths
headset-detect-gpios: headset-detect-gpios:
maxItems: 1
description: GPIO for detection of headset insertion description: GPIO for detection of headset insertion
headset-key-gpios: headset-key-gpios:
maxItems: 1
description: GPIO for detection of headset key press description: GPIO for detection of headset key press
io-channels: io-channels:
......
...@@ -53,9 +53,11 @@ properties: ...@@ -53,9 +53,11 @@ properties:
description: Supply for the micbias on the Sub microphone description: Supply for the micbias on the Sub microphone
fm-sel-gpios: fm-sel-gpios:
maxItems: 1
description: GPIO pin for FM selection description: GPIO pin for FM selection
lineout-sel-gpios: lineout-sel-gpios:
maxItems: 1
description: GPIO pin for line out selection description: GPIO pin for line out selection
required: required:
......
...@@ -36,10 +36,12 @@ properties: ...@@ -36,10 +36,12 @@ properties:
I2C address of the device can be one of these 0x4c, 0x4d, 0x4e or 0x4f I2C address of the device can be one of these 0x4c, 0x4d, 0x4e or 0x4f
shut-down-gpios: shut-down-gpios:
maxItems: 1
description: GPIO used to control the state of the device. description: GPIO used to control the state of the device.
deprecated: true deprecated: true
shutdown-gpios: shutdown-gpios:
maxItems: 1
description: GPIO used to control the state of the device. description: GPIO used to control the state of the device.
interrupts: interrupts:
......
...@@ -27,9 +27,11 @@ properties: ...@@ -27,9 +27,11 @@ properties:
I2C address of the device can be between 0x41 to 0x48. I2C address of the device can be between 0x41 to 0x48.
reset-gpio: reset-gpio:
maxItems: 1
description: GPIO used to reset the device. description: GPIO used to reset the device.
shutdown-gpios: shutdown-gpios:
maxItems: 1
description: GPIO used to control the state of the device. description: GPIO used to control the state of the device.
interrupts: interrupts:
......
...@@ -35,6 +35,7 @@ properties: ...@@ -35,6 +35,7 @@ properties:
I2C addresss of the device can be one of these 0x4c, 0x4d, 0x4e or 0x4f I2C addresss of the device can be one of these 0x4c, 0x4d, 0x4e or 0x4f
reset-gpios: reset-gpios:
maxItems: 1
description: | description: |
GPIO used for hardware reset. GPIO used for hardware reset.
......
...@@ -68,6 +68,8 @@ properties: ...@@ -68,6 +68,8 @@ properties:
maxItems: 1 maxItems: 1
dmas: dmas:
minItems: 2
maxItems: 4
description: description:
Must contain a list of pairs of references to DMA specifiers, one for Must contain a list of pairs of references to DMA specifiers, one for
transmission, and one for reception. transmission, and one for reception.
......
...@@ -35,6 +35,7 @@ properties: ...@@ -35,6 +35,7 @@ properties:
maxItems: 1 maxItems: 1
clocks: clocks:
maxItems: 1
description: description:
A list of phandle and clock specifier pair that controls the single A list of phandle and clock specifier pair that controls the single
SRAM clock. SRAM clock.
...@@ -46,6 +47,7 @@ properties: ...@@ -46,6 +47,7 @@ properties:
const: 1 const: 1
ranges: ranges:
maxItems: 1
description: description:
Should translate from local addresses within the sram to bus addresses. Should translate from local addresses within the sram to bus addresses.
......
...@@ -22,6 +22,8 @@ properties: ...@@ -22,6 +22,8 @@ properties:
maxItems: 1 maxItems: 1
interrupts: interrupts:
minItems: 2
maxItems: 6
description: description:
List of timers interrupts List of timers interrupts
......
...@@ -18,7 +18,7 @@ properties: ...@@ -18,7 +18,7 @@ properties:
- const: intel,ixp4xx-timer - const: intel,ixp4xx-timer
reg: reg:
description: Should contain registers location and length maxItems: 1
interrupts: interrupts:
minItems: 1 minItems: 1
......
...@@ -39,7 +39,7 @@ properties: ...@@ -39,7 +39,7 @@ properties:
maxItems: 1 maxItems: 1
phys: phys:
description: PHY specifier for the OTG PHY maxItems: 1
phy-names: phy-names:
const: usb const: usb
......
...@@ -22,6 +22,8 @@ properties: ...@@ -22,6 +22,8 @@ properties:
description: Interrupt for signals mirrored to out-gpios. description: Interrupt for signals mirrored to out-gpios.
in-gpios: in-gpios:
minItems: 1
maxItems: 2
description: Array of one or two GPIO pins used for input signals. description: Array of one or two GPIO pins used for input signals.
brcm,in-functions: brcm,in-functions:
...@@ -33,6 +35,7 @@ properties: ...@@ -33,6 +35,7 @@ properties:
description: Array of enable and mask pairs, one per gpio in-gpios. description: Array of enable and mask pairs, one per gpio in-gpios.
out-gpios: out-gpios:
maxItems: 1
description: Array of one GPIO pin used for output signals. description: Array of one GPIO pin used for output signals.
brcm,out-functions: brcm,out-functions:
......
...@@ -83,7 +83,7 @@ properties: ...@@ -83,7 +83,7 @@ properties:
Phandle of a companion. Phandle of a companion.
phys: phys:
description: PHY specifier for the USB PHY maxItems: 1
phy-names: phy-names:
const: usb const: usb
......
...@@ -71,7 +71,7 @@ properties: ...@@ -71,7 +71,7 @@ properties:
Overrides the detected port count Overrides the detected port count
phys: phys:
description: PHY specifier for the USB PHY maxItems: 1
phy-names: phy-names:
const: usb const: usb
......
...@@ -40,7 +40,7 @@ properties: ...@@ -40,7 +40,7 @@ properties:
- const: mc - const: mc
phys: phys:
description: PHY specifier for the USB PHY maxItems: 1
usb-role-switch: usb-role-switch:
type: boolean type: boolean
......
...@@ -68,6 +68,7 @@ properties: ...@@ -68,6 +68,7 @@ properties:
Integer to use BUSWAIT register. Integer to use BUSWAIT register.
renesas,enable-gpio: renesas,enable-gpio:
maxItems: 1
description: | description: |
gpio specifier to check GPIO determining if USB function should be gpio specifier to check GPIO determining if USB function should be
enabled. enabled.
......
...@@ -15,13 +15,14 @@ properties: ...@@ -15,13 +15,14 @@ properties:
- const: ti,j721e-usb - const: ti,j721e-usb
reg: reg:
description: module registers maxItems: 1
power-domains: power-domains:
description: description:
PM domain provider node and an args specifier containing PM domain provider node and an args specifier containing
the USB device id value. See, the USB device id value. See,
Documentation/devicetree/bindings/soc/ti/sci-pm-domain.txt Documentation/devicetree/bindings/soc/ti/sci-pm-domain.txt
maxItems: 1
clocks: clocks:
description: Clock phandles to usb2_refclk and lpm_clk description: Clock phandles to usb2_refclk and lpm_clk
......
...@@ -43,12 +43,14 @@ properties: ...@@ -43,12 +43,14 @@ properties:
maxItems: 2 maxItems: 2
power-domains: power-domains:
maxItems: 1
description: Should contain a phandle to a PM domain provider node description: Should contain a phandle to a PM domain provider node
and an args specifier containing the USB device id and an args specifier containing the USB device id
value. This property is as per the binding, value. This property is as per the binding,
Documentation/devicetree/bindings/soc/ti/sci-pm-domain.txt Documentation/devicetree/bindings/soc/ti/sci-pm-domain.txt
phys: phys:
maxItems: 1
description: description:
PHY specifier for the USB3.0 PHY. Some SoCs need the USB3.0 PHY PHY specifier for the USB3.0 PHY. Some SoCs need the USB3.0 PHY
to be turned on before the controller. to be turned on before the controller.
......
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