dt-bindings: Add missing array size constraints
authorRob Herring <robh@kernel.org>
Mon, 4 Jan 2021 23:02:53 +0000 (16:02 -0700)
committerRob Herring <robh@kernel.org>
Mon, 11 Jan 2021 23:42:25 +0000 (17:42 -0600)
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: Sebastian Reichel <sre@kernel.org>
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> #for-iio
Acked-by: Chanwoo Choi <cw00.choi@samsung.com>
Reviewed-by: Suman Anna <s-anna@ti.com>
Acked-by: Paul Cercueil <paul@crapouillou.net>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Acked-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20210104230253.2805217-1-robh@kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
74 files changed:
Documentation/devicetree/bindings/arm/socionext/socionext,uniphier-system-cache.yaml
Documentation/devicetree/bindings/ata/sata_highbank.yaml
Documentation/devicetree/bindings/clock/canaan,k210-clk.yaml
Documentation/devicetree/bindings/display/brcm,bcm2711-hdmi.yaml
Documentation/devicetree/bindings/display/brcm,bcm2835-hdmi.yaml
Documentation/devicetree/bindings/display/panel/jdi,lt070me05000.yaml
Documentation/devicetree/bindings/display/panel/mantix,mlaf057we51-x.yaml
Documentation/devicetree/bindings/display/panel/novatek,nt36672a.yaml
Documentation/devicetree/bindings/dsp/fsl,dsp.yaml
Documentation/devicetree/bindings/eeprom/at25.yaml
Documentation/devicetree/bindings/extcon/extcon-ptn5150.yaml
Documentation/devicetree/bindings/gpio/gpio-pca95xx.yaml
Documentation/devicetree/bindings/iio/adc/adi,ad7768-1.yaml
Documentation/devicetree/bindings/iio/adc/aspeed,ast2400-adc.yaml
Documentation/devicetree/bindings/iio/adc/lltc,ltc2496.yaml
Documentation/devicetree/bindings/iio/adc/qcom,spmi-vadc.yaml
Documentation/devicetree/bindings/iio/adc/st,stm32-adc.yaml
Documentation/devicetree/bindings/iio/magnetometer/asahi-kasei,ak8975.yaml
Documentation/devicetree/bindings/iio/potentiometer/adi,ad5272.yaml
Documentation/devicetree/bindings/input/touchscreen/elan,elants_i2c.yaml
Documentation/devicetree/bindings/interrupt-controller/fsl,intmux.yaml
Documentation/devicetree/bindings/interrupt-controller/st,stm32-exti.yaml
Documentation/devicetree/bindings/media/allwinner,sun4i-a10-video-engine.yaml
Documentation/devicetree/bindings/media/i2c/imx219.yaml
Documentation/devicetree/bindings/memory-controllers/exynos-srom.yaml
Documentation/devicetree/bindings/misc/fsl,dpaa2-console.yaml
Documentation/devicetree/bindings/mmc/mmc-controller.yaml
Documentation/devicetree/bindings/net/ti,k3-am654-cpsw-nuss.yaml
Documentation/devicetree/bindings/net/ti,k3-am654-cpts.yaml
Documentation/devicetree/bindings/phy/allwinner,sun4i-a10-usb-phy.yaml
Documentation/devicetree/bindings/phy/allwinner,sun50i-a64-usb-phy.yaml
Documentation/devicetree/bindings/phy/allwinner,sun50i-h6-usb-phy.yaml
Documentation/devicetree/bindings/phy/allwinner,sun5i-a13-usb-phy.yaml
Documentation/devicetree/bindings/phy/allwinner,sun6i-a31-usb-phy.yaml
Documentation/devicetree/bindings/phy/allwinner,sun8i-a23-usb-phy.yaml
Documentation/devicetree/bindings/phy/allwinner,sun8i-a83t-usb-phy.yaml
Documentation/devicetree/bindings/phy/allwinner,sun8i-h3-usb-phy.yaml
Documentation/devicetree/bindings/phy/allwinner,sun8i-r40-usb-phy.yaml
Documentation/devicetree/bindings/phy/allwinner,sun8i-v3s-usb-phy.yaml
Documentation/devicetree/bindings/phy/allwinner,sun9i-a80-usb-phy.yaml
Documentation/devicetree/bindings/phy/socionext,uniphier-ahci-phy.yaml
Documentation/devicetree/bindings/phy/socionext,uniphier-pcie-phy.yaml
Documentation/devicetree/bindings/phy/socionext,uniphier-usb3hs-phy.yaml
Documentation/devicetree/bindings/phy/socionext,uniphier-usb3ss-phy.yaml
Documentation/devicetree/bindings/phy/ti,phy-gmii-sel.yaml
Documentation/devicetree/bindings/pinctrl/aspeed,ast2400-pinctrl.yaml
Documentation/devicetree/bindings/pinctrl/aspeed,ast2500-pinctrl.yaml
Documentation/devicetree/bindings/power/supply/bq25980.yaml
Documentation/devicetree/bindings/remoteproc/ingenic,vpu.yaml
Documentation/devicetree/bindings/remoteproc/ti,omap-remoteproc.yaml
Documentation/devicetree/bindings/riscv/sifive-l2-cache.yaml
Documentation/devicetree/bindings/serial/renesas,hscif.yaml
Documentation/devicetree/bindings/serial/renesas,scif.yaml
Documentation/devicetree/bindings/serial/renesas,scifa.yaml
Documentation/devicetree/bindings/serial/renesas,scifb.yaml
Documentation/devicetree/bindings/sound/allwinner,sun4i-a10-codec.yaml
Documentation/devicetree/bindings/sound/google,sc7180-trogdor.yaml
Documentation/devicetree/bindings/sound/samsung,aries-wm8994.yaml
Documentation/devicetree/bindings/sound/samsung,midas-audio.yaml
Documentation/devicetree/bindings/sound/tas2562.yaml
Documentation/devicetree/bindings/sound/tas2770.yaml
Documentation/devicetree/bindings/sound/tlv320adcx140.yaml
Documentation/devicetree/bindings/spi/renesas,rspi.yaml
Documentation/devicetree/bindings/sram/sram.yaml
Documentation/devicetree/bindings/timer/allwinner,sun4i-a10-timer.yaml
Documentation/devicetree/bindings/timer/intel,ixp4xx-timer.yaml
Documentation/devicetree/bindings/usb/allwinner,sun4i-a10-musb.yaml
Documentation/devicetree/bindings/usb/brcm,usb-pinmap.yaml
Documentation/devicetree/bindings/usb/generic-ehci.yaml
Documentation/devicetree/bindings/usb/generic-ohci.yaml
Documentation/devicetree/bindings/usb/ingenic,musb.yaml
Documentation/devicetree/bindings/usb/renesas,usbhs.yaml
Documentation/devicetree/bindings/usb/ti,j721e-usb.yaml
Documentation/devicetree/bindings/usb/ti,keystone-dwc3.yaml

index 2e765bb3e6f67797d1fc9254df4fc577f4db6140..7ca5375f278f35e8035334481f5e61dbe3764c15 100644 (file)
@@ -30,8 +30,8 @@ properties:
       Interrupts can be used to notify the completion of cache operations.
       The number of interrupts should match to the number of CPU cores.
       The specified interrupts correspond to CPU0, CPU1, ... in this order.
-      minItems: 1
-      maxItems: 4
+    minItems: 1
+    maxItems: 4
 
   cache-unified: true
 
index 5e2a2394e600ee7bff46a0eda24284f202717f6e..ce75d77e92891cf8a49079c287fa0b296d795ad5 100644 (file)
@@ -61,6 +61,7 @@ properties:
     maxItems: 8
 
   calxeda,sgpio-gpio:
+    maxItems: 3
     description: |
       phandle-gpio bank, bit offset, and default on or off, which indicates
       that the driver supports SGPIO indicator lights using the indicated
index 565ca468cb448f02024546f85ed56161d97cfe9d..7f5cf4001f762baaa538cd654c541e6cd29e0a38 100644 (file)
@@ -22,6 +22,7 @@ properties:
     const: canaan,k210-clk
 
   clocks:
+    maxItems: 1
     description:
       Phandle of the SoC 26MHz fixed-rate oscillator clock.
 
index 7ce06f9f9f8ee70d8a3d2d817af4724539eada01..767edc0a7978cd1574c7c9fd16393dc483ba11a2 100644 (file)
@@ -60,6 +60,7 @@ properties:
       Phandle of the I2C controller used for DDC EDID probing
 
   hpd-gpios:
+    maxItems: 1
     description: >
       The GPIO pin for the HDMI hotplug detect (if it doesn't appear
       as an interrupt/status bit in the HDMI controller itself)
index f54b4e4808f075180d7326063fe2dbbaadf87436..031e35e76db2a812c0894b1375e5280e4ff7aef4 100644 (file)
@@ -37,6 +37,7 @@ properties:
       Phandle of the I2C controller used for DDC EDID probing
 
   hpd-gpios:
+    maxItems: 1
     description: >
       The GPIO pin for the HDMI hotplug detect (if it doesn't appear
       as an interrupt/status bit in the HDMI controller itself)
index b8b9435e464cab4f8dd285d071a51dce5a32a7cd..4f92365e888aeefb1730f8942ebfc3dafce747d1 100644 (file)
@@ -30,6 +30,7 @@ properties:
       power supply for LCM (1.8V)
 
   dcdc-en-gpios:
+    maxItems: 1
     description: |
       phandle of the gpio for power ic line
       Power IC supply enable, High active
index 51f423297ec8447b46575016d8b428644ba4822d..aa5a0dc391a49161a337f787fc2d5be46b545e2d 100644 (file)
@@ -37,7 +37,8 @@ properties:
 
   reset-gpios: true
 
-  'mantix,tp-rstn-gpios':
+  mantix,tp-rstn-gpios:
+    maxItems: 1
     description: second reset line that triggers DSI config load
 
   backlight: true
index 2f5df1d235aea8a30a5d9273a4e3c7142fcaa07a..ef4c0a24512dc81ee193240754211090c3414e7a 100644 (file)
@@ -30,6 +30,7 @@ properties:
       panel. The novatek,nt36672a compatible shall always be provided as a fallback.
 
   reset-gpios:
+    maxItems: 1
     description: phandle of gpio for reset line - This should be 8mA, gpio
       can be configured using mux, pinctrl, pinctrl-names (active high)
 
index 4cc0112301536201e48fc8b6b6f39d068997037e..7afc9f2be13ab90fceca8b949ad6b0058cb6aabf 100644 (file)
@@ -21,7 +21,7 @@ properties:
       - fsl,imx8mp-dsp
 
   reg:
-    description: Should contain register location and length
+    maxItems: 1
 
   clocks:
     items:
index 121a601db22e40ffb8eb9e87be1eef05bee78350..6a2dc8b3ed144fe971d43d8805327d9e0a12b3b6 100644 (file)
@@ -39,8 +39,7 @@ properties:
           - const: atmel,at25
 
   reg:
-    description:
-      Chip select number.
+    maxItems: 1
 
   spi-max-frequency: true
 
index 4b0f414486d281cd132a203b33f6d15276d4011c..d5cfa32ea52dd5858801e86da488f6d845b9ab54 100644 (file)
@@ -19,6 +19,7 @@ properties:
     const: nxp,ptn5150
 
   int-gpios:
+    maxItems: 1
     deprecated: true
     description:
       GPIO pin (input) connected to the PTN5150's INTB pin.
@@ -31,6 +32,7 @@ properties:
     maxItems: 1
 
   vbus-gpios:
+    maxItems: 1
     description:
       GPIO pin (output) used to control VBUS. If skipped, no such control
       takes place.
index f5ee23c2df605de2797dcfb01090c3427c57fc8c..57cdcfd4ff3ce2525b66cc1b54093a103d1da4d5 100644 (file)
@@ -81,6 +81,7 @@ properties:
     const: 2
 
   reset-gpios:
+    maxItems: 1
     description:
       GPIO specification for the RESET input. This is an active low signal to
       the PCA953x.  Not valid for Maxim MAX732x devices.
index 924477dfb833dd5491147b56d9e799a13db09197..a85a28145ef6b8f3f673524a52a0aa2483d7239c 100644 (file)
@@ -40,6 +40,7 @@ properties:
       ADC reference voltage supply
 
   adi,sync-in-gpios:
+    maxItems: 1
     description:
       Enables synchronization of multiple devices that require simultaneous
       sampling. A pulse is always required if the configuration is changed
@@ -76,6 +77,7 @@ patternProperties:
 
     properties:
       reg:
+        maxItems: 1
         description: |
           The channel number.
 
index 7f534a933e9246d9484fe794a67df74ce7c55a97..a726b6c2ab65a25024ae8f3153e089f6805384d3 100644 (file)
@@ -23,6 +23,7 @@ properties:
     maxItems: 1
 
   clocks:
+    maxItems: 1
     description:
       Input clock used to derive the sample clock. Expected to be the
       SoC's APB clock.
index 2716d4e953296adcf66507362947b3922b1aeea8..0bd2fc0356c86476eb12dbab07244ca57bd94e83 100644 (file)
@@ -20,7 +20,7 @@ properties:
     description: Power supply for the reference voltage
 
   reg:
-    description: spi chipselect number according to the usual spi bindings
+    maxItems: 1
 
   spi-max-frequency:
     description: maximal spi bus frequency supported
index 95cc705b961bf849620d8d964082521da7053be5..74a4a9d95798c8d771d553ea4ead04c17a8c728c 100644 (file)
@@ -68,6 +68,7 @@ patternProperties:
 
     properties:
       reg:
+        maxItems: 1
         description: |
           ADC channel number.
           See include/dt-bindings/iio/qcom,spmi-vadc.h
index 28417b31b5589b2bcb27e648643387a9a1500069..6364ede9bb5f63891c999bfd3fb21a2f35384bc5 100644 (file)
@@ -41,6 +41,8 @@ properties:
     maxItems: 2
 
   clocks:
+    minItems: 1
+    maxItems: 2
     description: |
       Core can use up to two clocks, depending on part used:
         - "adc" clock: for the analog circuitry, common to all ADCs.
index a25590a16ba7e95b7c2f438eb11ef87f55276c09..a0a1ffe017df85514869b5efb112795184b128c9 100644 (file)
@@ -47,6 +47,7 @@ properties:
     description: an optional 3x3 mounting rotation matrix.
 
   reset-gpios:
+    maxItems: 1
     description: |
       an optional pin needed for AK09911 to set the reset state. This should
       be usually active low
index 1aee9f9be951e8c0d6f0874ef3ccfadf17c4a831..0ebb6725a1af93b202b2b1f8a56bd989fb278fca 100644 (file)
@@ -25,6 +25,7 @@ properties:
     maxItems: 1
 
   reset-gpios:
+    maxItems: 1
     description:
       Active low signal to the AD5272 RESET input.
 
index a792d6377b1daf08e4d38dcf4c84343ce5013350..a9b53c2e6f0abc8e8bc495981995105322e7bfaa 100644 (file)
@@ -29,6 +29,7 @@ properties:
     description: touchscreen can be used as a wakeup source.
 
   reset-gpios:
+    maxItems: 1
     description: reset gpio the chip is connected to.
 
   vcc33-supply:
index 43c6effbb5bd8fb4e1590bd04a03e7522debfdbe..1d6e0f64a807a167755af494766fdf6c756cb6a9 100644 (file)
@@ -31,7 +31,7 @@ properties:
       The 1st cell is hw interrupt number, the 2nd cell is channel index.
 
   clocks:
-    description: ipg clock.
+    maxItems: 1
 
   clock-names:
     const: ipg
index 2a5b29567926cec646728eed08bad4ce59ce47ca..6d3e68eb2e8ba4af9d45013c4ea3ad00073a1f31 100644 (file)
@@ -36,6 +36,8 @@ properties:
       Reference to a phandle of a hardware spinlock provider node.
 
   interrupts:
+    minItems: 1
+    maxItems: 96
     description:
       Interrupts references to primary interrupt controller
 
index 2f7058f7760cd38e91c696f4bf350a9e21eecdef..c34303b87a5be81e5c6f48146936926641a3ad98 100644 (file)
@@ -53,6 +53,7 @@ properties:
     maxItems: 1
 
   memory-region:
+    maxItems: 1
     description:
       CMA pool to use for buffers allocation instead of the default
       CMA pool.
index dfc4d29a4f04c10f920f98efed0090dc6ccee9f9..184d33bd382827798ff2c6e7b6c0e057c4bf036d 100644 (file)
@@ -40,6 +40,7 @@ properties:
       Digital core voltage supply, 1.2 volts
 
   reset-gpios:
+    maxItems: 1
     description: |-
       Reference to the GPIO connected to the xclr pin, if any.
       Must be released (set high) after all supplies are applied.
index 637e24f0f73b44984dd5c70f27fc56b0f1f59eef..c6e44f47ce7cfca978fac48f936f33c30913855f 100644 (file)
@@ -28,6 +28,8 @@ properties:
     const: 1
 
   ranges:
+    minItems: 1
+    maxItems: 4
     description: |
       Reflects the memory layout with four integer values per bank. Format:
       <bank-number> 0 <parent address of bank> <size>
index 271a3eafc054e62947ef75c8745385fa2bb69eb3..8cc951feb7df4bd785c0b282b07abf1c3f27b4bd 100644 (file)
@@ -15,6 +15,7 @@ properties:
     const: "fsl,dpaa2-console"
 
   reg:
+    maxItems: 1
     description: A standard property. Specifies the region where the MCFBA
                 (MC firmware base address) register can be found.
 
index 186f04ba935796758e20fa94376ce7057a4a0886..df4ee4c778ae4d9cebbb9edfa4838f14411f426f 100644 (file)
@@ -40,6 +40,7 @@ properties:
       There is no card detection available; polling must be used.
 
   cd-gpios:
+    maxItems: 1
     description:
       The card detection will be done using the GPIO provided.
 
@@ -104,6 +105,7 @@ properties:
       line. Not used in combination with eMMC or SDIO.
 
   wp-gpios:
+    maxItems: 1
     description:
       GPIO to use for the write-protect detection.
 
index c47b58f3e3f6e62c38371ae5c54168511c1f527d..097c5cc6c8537576ecfb5e14921e4c6d650fb4d3 100644 (file)
@@ -66,6 +66,7 @@ properties:
   dma-coherent: true
 
   clocks:
+    maxItems: 1
     description: CPSW2G NUSS functional clock
 
   clock-names:
index 9b7117920d9060ae7a5f087f877ec730efa85c74..2a42a27fb911c90de53b8f78e39cfd2084b416eb 100644 (file)
@@ -59,6 +59,7 @@ properties:
       - const: cpts
 
   clocks:
+    maxItems: 1
     description: CPTS reference clock
 
   clock-names:
index 94ac23687b7eba99d846fdadc57acdd6c57cac6d..77606c899fe2bf622b2cf791db2f6ebc3ed81f26 100644 (file)
@@ -51,9 +51,11 @@ properties:
       - const: usb2_reset
 
   usb0_id_det-gpios:
+    maxItems: 1
     description: GPIO to the USB OTG ID pin
 
   usb0_vbus_det-gpios:
+    maxItems: 1
     description: GPIO to the USB OTG VBUS detect pin
 
   usb0_vbus_power-supply:
index fd6e126fcf18f2812140bb6d9d6b0bbe2fd521a7..078af52b16eddb37c5bf7ba0a0c4051bd9e1307a 100644 (file)
@@ -50,9 +50,11 @@ properties:
       - const: usb1_reset
 
   usb0_id_det-gpios:
+    maxItems: 1
     description: GPIO to the USB OTG ID pin
 
   usb0_vbus_det-gpios:
+    maxItems: 1
     description: GPIO to the USB OTG VBUS detect pin
 
   usb0_vbus_power-supply:
index 7670411002c95a21d5005de60ed6c2a24deca10b..e632140722a27c5a0a7f90319f4ccfd40693af64 100644 (file)
@@ -50,9 +50,11 @@ properties:
       - const: usb3_reset
 
   usb0_id_det-gpios:
+    maxItems: 1
     description: GPIO to the USB OTG ID pin
 
   usb0_vbus_det-gpios:
+    maxItems: 1
     description: GPIO to the USB OTG VBUS detect pin
 
   usb0_vbus_power-supply:
index 9b319381d1ad2e80f3358c64af2652f745af0007..5bad9b06e2e71a6f428e8ed86d5b35cd5a1ef696 100644 (file)
@@ -45,9 +45,11 @@ properties:
       - const: usb1_reset
 
   usb0_id_det-gpios:
+    maxItems: 1
     description: GPIO to the USB OTG ID pin
 
   usb0_vbus_det-gpios:
+    maxItems: 1
     description: GPIO to the USB OTG VBUS detect pin
 
   usb0_vbus_power-supply:
index b0ed01bbf3db95fa9682d73cbd80a9c4d8f3e779..922b4665e00d09be4eb84db7580f323db74ce83b 100644 (file)
@@ -54,9 +54,11 @@ properties:
       - const: usb2_reset
 
   usb0_id_det-gpios:
+    maxItems: 1
     description: GPIO to the USB OTG ID pin
 
   usb0_vbus_det-gpios:
+    maxItems: 1
     description: GPIO to the USB OTG VBUS detect pin
 
   usb0_vbus_power-supply:
index b0674406f8aaf3f03daf44a80a1aa14eb117cb53..a94019efc2f3a7c0357eedb05531782c1bd258c7 100644 (file)
@@ -50,9 +50,11 @@ properties:
       - const: usb1_reset
 
   usb0_id_det-gpios:
+    maxItems: 1
     description: GPIO to the USB OTG ID pin
 
   usb0_vbus_det-gpios:
+    maxItems: 1
     description: GPIO to the USB OTG VBUS detect pin
 
   usb0_vbus_power-supply:
index 48dc9c834a9bacc8e7295275854e8985f00b98e6..33f3ddc0492d7855155e1570789ff298219cc348 100644 (file)
@@ -56,9 +56,11 @@ properties:
       - const: usb2_reset
 
   usb0_id_det-gpios:
+    maxItems: 1
     description: GPIO to the USB OTG ID pin
 
   usb0_vbus_det-gpios:
+    maxItems: 1
     description: GPIO to the USB OTG VBUS detect pin
 
   usb0_vbus_power-supply:
index 60c344585276719312b689d21052f4fbeb887430..f8043106080392073aca98d15aa96fa1bcb546f3 100644 (file)
@@ -62,9 +62,11 @@ properties:
       - const: usb3_reset
 
   usb0_id_det-gpios:
+    maxItems: 1
     description: GPIO to the USB OTG ID pin
 
   usb0_vbus_det-gpios:
+    maxItems: 1
     description: GPIO to the USB OTG VBUS detect pin
 
   usb0_vbus_power-supply:
index a2bb36790fbde45e7d07ca588a2f9b0894083167..d947e50a49d26ac2970963707eb8649b11b60a48 100644 (file)
@@ -56,9 +56,11 @@ properties:
       - const: usb2_reset
 
   usb0_id_det-gpios:
+    maxItems: 1
     description: GPIO to the USB OTG ID pin
 
   usb0_vbus_det-gpios:
+    maxItems: 1
     description: GPIO to the USB OTG VBUS detect pin
 
   usb0_vbus_power-supply:
index eadfd0c9493c7d53fe0f7465dbc4c08b59667679..a2836c296cc47033c55e2ef7f48e776a44c4ef04 100644 (file)
@@ -42,9 +42,11 @@ properties:
     const: usb0_reset
 
   usb0_id_det-gpios:
+    maxItems: 1
     description: GPIO to the USB OTG ID pin
 
   usb0_vbus_det-gpios:
+    maxItems: 1
     description: GPIO to the USB OTG VBUS detect pin
 
   usb0_vbus_power-supply:
index ded7d6f0a119370a88ac8deae8c97e9d7aca91bf..2eb493fa64fd62eff7b713cdc089c1bb8752fde8 100644 (file)
@@ -22,7 +22,8 @@ properties:
 
   clocks:
     anyOf:
-      - description: Main PHY Clock
+      - maxItems: 1
+        description: Main PHY Clock
 
       - items:
           - description: Main PHY clock
@@ -39,20 +40,16 @@ properties:
           - const: hsic_480M
 
   resets:
-    anyOf:
+    minItems: 1
+    items:
       - description: Normal USB PHY reset
-
-      - items:
-          - description: Normal USB PHY reset
-          - description: HSIC Reset
+      - description: HSIC Reset
 
   reset-names:
-    oneOf:
+    minItems: 1
+    items:
       - const: phy
-
-      - items:
-          - const: phy
-          - const: hsic
+      - const: hsic
 
   phy_type:
     const: hsic
index 34756347a14ef59e5242f022a41e35fde3f77097..745c525ce6b903f1f8753341954f13fa01dcb36a 100644 (file)
@@ -20,7 +20,7 @@ properties:
       - socionext,uniphier-pxs3-ahci-phy
 
   reg:
-    description: PHY register region (offset and length)
+    maxItems: 1
 
   "#phy-cells":
     const: 0
index a06831fd64b9b3f7698dc2eb8bb8b70b07913668..3e05668990414191348d7d1b18923c1cba5ab6eb 100644 (file)
@@ -21,7 +21,7 @@ properties:
       - socionext,uniphier-pxs3-pcie-phy
 
   reg:
-    description: PHY register region (offset and length)
+    maxItems: 1
 
   "#phy-cells":
     const: 0
index 6fa5caab148760917a0f98ac8feac5a5cf1b4ba8..a681cbc3b4eff658b1b30efc9a8caabde4e07214 100644 (file)
@@ -24,7 +24,7 @@ properties:
       - socionext,uniphier-pxs3-usb3-hsphy
 
   reg:
-    description: PHY register region (offset and length)
+    maxItems: 1
 
   "#phy-cells":
     const: 0
index 9d46715ed03615a7b71893e9d1428dbdf7630a3e..41c0dd68ee258084fb32adb503a7cd5beaa17781 100644 (file)
@@ -25,7 +25,7 @@ properties:
       - socionext,uniphier-pxs3-usb3-ssphy
 
   reg:
-    description: PHY register region (offset and length)
+    maxItems: 1
 
   "#phy-cells":
     const: 0
index bcec422d77342083b5126fc677ac1b518ba3a82b..ff8a6d9eb15314897a76b9b81ebe472ab7f62189 100644 (file)
@@ -55,7 +55,7 @@ properties:
       - ti,am654-phy-gmii-sel
 
   reg:
-    description: Address and length of the register set for the device
+    maxItems: 1
 
   '#phy-cells': true
 
index 54631dc1adb045b79d56e97b266632472f83971b..91be5720d094ebf82734325f1ddc17a3893160a1 100644 (file)
@@ -23,8 +23,7 @@ properties:
   compatible:
     const: aspeed,ast2400-pinctrl
   reg:
-    description: |
-      A hint for the memory regions associated with the pin-controller
+    maxItems: 2
 
 patternProperties:
   '^.*$':
index a90c0fe0495f34213ab1b1bb82a510d637a1b24f..40e9e8d4be5a281b23ed2460ec3e0d52d8c45995 100644 (file)
@@ -24,8 +24,8 @@ properties:
   compatible:
     const: aspeed,ast2500-pinctrl
   reg:
-    description: |
-      A hint for the memory regions associated with the pin-controller
+    maxItems: 2
+
   aspeed,external-nodes:
     minItems: 2
     maxItems: 2
index f6b3dd4093caaf483a47e495c3dfa5bb907b6005..06eca6667f67899d0cfe8b10634957b3a1220ed5 100644 (file)
@@ -70,6 +70,7 @@ properties:
     description: Enables bypass mode at boot time
 
   interrupts:
+    maxItems: 1
     description: |
       Indicates that the device state has changed.
 
index c019f9fbe916b5b71664a2dbef77777315ee87ae..d0aa91bbf5e59c783710d569f0dd0af77fa72283 100644 (file)
@@ -44,7 +44,7 @@ properties:
       - const: vpu
 
   interrupts:
-    description: VPU hardware interrupt
+    maxItems: 1
 
 required:
   - compatible
index 084960a8f17ad2ce9d58a7c2761e2c3b7c0887fb..1a1159097a2a1e6731311b62ca1743cfe866dd42 100644 (file)
@@ -70,10 +70,13 @@ properties:
       the firmware image.
 
   clocks:
+    maxItems: 1
     description: |
       Main functional clock for the remote processor
 
   resets:
+    minItems: 1
+    maxItems: 2
     description: |
       Reset handles for the remote processor
 
index efc0198eeb74d8fdcdedd73ff511557bb4d1932b..2ece8630dc681fd76d4e23da96e905fb265077fb 100644 (file)
@@ -63,6 +63,7 @@ properties:
   next-level-cache: true
 
   memory-region:
+    maxItems: 1
     description: |
       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.
index c139c5edb93ef997a4572e786b0cc50c55b5dc1a..69533347aa57d9b95fe7b5902123e2ac82a22526 100644 (file)
@@ -81,6 +81,8 @@ properties:
     maxItems: 1
 
   dmas:
+    minItems: 2
+    maxItems: 4
     description:
       Must contain a list of pairs of references to DMA specifiers, one for
       transmission, and one for reception.
index 672158906c33aca17e570293a0212610b899eea6..22d76829f7ae18fd865f8105497deefbe919896a 100644 (file)
@@ -120,6 +120,8 @@ properties:
     maxItems: 1
 
   dmas:
+    minItems: 2
+    maxItems: 4
     description:
       Must contain a list of pairs of references to DMA specifiers, one for
       transmission, and one for reception.
index dbffb953483529cf4811edc1dbeb60c118450819..3c67d3202e1bfe56d946bd3108059064b727c5e6 100644 (file)
@@ -55,6 +55,8 @@ properties:
     maxItems: 1
 
   dmas:
+    minItems: 2
+    maxItems: 4
     description:
       Must contain a list of pairs of references to DMA specifiers, one for
       transmission, and one for reception.
index 147f8a37e02a80dc7ef1d492601b51927d845128..d5571c7a442484d29ffc1463e45d58ad31afe74b 100644 (file)
@@ -55,6 +55,8 @@ properties:
     maxItems: 1
 
   dmas:
+    minItems: 2
+    maxItems: 4
     description:
       Must contain a list of pairs of references to DMA specifiers, one for
       transmission, and one for reception.
index dd47fef9854d76bd9ff573d9dbcfbebd5b03c84e..559aff13ae232c785f12fec2c3f84de75fa2a9fd 100644 (file)
@@ -88,6 +88,7 @@ properties:
     description: Phandle to the codec analog controls in the PRCM
 
   allwinner,pa-gpios:
+    maxItems: 1
     description: GPIO to enable the external amplifier
 
 required:
index 5095b780e2c77f1883907562485bb7077664a9c2..837e3faa63a9161b371b6c268eefc7e08dbf8e27 100644 (file)
@@ -55,6 +55,7 @@ patternProperties:
         maxItems: 1
 
       reg:
+        maxItems: 1
         description: dai link address.
 
       cpu:
index 1c6947294825ecc2bbfbc09a2e194fbc9c021996..5fff586dc802983214a44010e9fc30ceaa3ff67f 100644 (file)
@@ -62,12 +62,15 @@ properties:
     description: Supply for the micbias on the headset mic
 
   earpath-sel-gpios:
+    maxItems: 1
     description: GPIO for switching between tv-out and mic paths
 
   headset-detect-gpios:
+    maxItems: 1
     description: GPIO for detection of headset insertion
 
   headset-key-gpios:
+    maxItems: 1
     description: GPIO for detection of headset key press
 
   io-channels:
index 578928e67e5c4fd4214125b6890383ac7d0c63c6..095775c598fa1d5b8110e747e9b34f8482e880c3 100644 (file)
@@ -53,9 +53,11 @@ properties:
     description: Supply for the micbias on the Sub microphone
 
   fm-sel-gpios:
+    maxItems: 1
     description: GPIO pin for FM selection
 
   lineout-sel-gpios:
+    maxItems: 1
     description: GPIO pin for line out selection
 
 required:
index 27f7132ba2ef069575a49a2a771eec56b44aa850..acd4bbe6973153b5a76c542fb1ae6463e7a8d653 100644 (file)
@@ -36,10 +36,12 @@ properties:
        I2C address of the device can be one of these 0x4c, 0x4d, 0x4e or 0x4f
 
   shut-down-gpios:
+    maxItems: 1
     description: GPIO used to control the state of the device.
     deprecated: true
 
   shutdown-gpios:
+    maxItems: 1
     description: GPIO used to control the state of the device.
 
   interrupts:
index 07e7f9951d2ed0fa0d15001e3e4aa9421d94bff8..027bebf4e8cf568101dd7dde614f0d17d07f80a2 100644 (file)
@@ -27,9 +27,11 @@ properties:
        I2C address of the device can be between 0x41 to 0x48.
 
   reset-gpio:
+    maxItems: 1
     description: GPIO used to reset the device.
 
   shutdown-gpios:
+    maxItems: 1
     description: GPIO used to control the state of the device.
 
   interrupts:
index df18be9d7b15f289b0e1ab2d7a0a372d182cd127..54d64785aad2432ae6721a2f6df39bc4bee89c08 100644 (file)
@@ -35,6 +35,7 @@ properties:
       I2C addresss of the device can be one of these 0x4c, 0x4d, 0x4e or 0x4f
 
   reset-gpios:
+    maxItems: 1
     description: |
       GPIO used for hardware reset.
 
index 10e83cb17e8dd771c48410f1a5ec4ea09c514495..8397f60d80a2e527337392d4227e2325e5bb2266 100644 (file)
@@ -68,6 +68,8 @@ properties:
     maxItems: 1
 
   dmas:
+    minItems: 2
+    maxItems: 4
     description:
       Must contain a list of pairs of references to DMA specifiers, one for
       transmission, and one for reception.
index 19d116ff9ddcb18a0b373269478920c9fa3f29e5..2a62bb204bbec4e91b65c2f411912eae9659c93c 100644 (file)
@@ -35,6 +35,7 @@ properties:
     maxItems: 1
 
   clocks:
+    maxItems: 1
     description:
       A list of phandle and clock specifier pair that controls the single
       SRAM clock.
@@ -46,6 +47,7 @@ properties:
     const: 1
 
   ranges:
+    maxItems: 1
     description:
       Should translate from local addresses within the sram to bus addresses.
 
index d918cee100aced4e31c4a0dddf5ec176ade12460..1c7cf32e7ac2a91da11a1061822112b17eca790a 100644 (file)
@@ -22,6 +22,8 @@ properties:
     maxItems: 1
 
   interrupts:
+    minItems: 2
+    maxItems: 6
     description:
       List of timers interrupts
 
index 1a721d8af67a5450021a5a9ba310ee0684654bff..a8de99b0c0f924718e33ae49e2f7e8f9d775f57c 100644 (file)
@@ -18,7 +18,7 @@ properties:
       - const: intel,ixp4xx-timer
 
   reg:
-    description: Should contain registers location and length
+    maxItems: 1
 
   interrupts:
     minItems: 1
index d9207bf9d8946e4ee9c799f1adc92ec5906d0359..0f520f17735ee63defae79979b75670aec9d9261 100644 (file)
@@ -39,7 +39,7 @@ properties:
     maxItems: 1
 
   phys:
-    description: PHY specifier for the OTG PHY
+    maxItems: 1
 
   phy-names:
     const: usb
index ffa148b9eaa8213951395b89148dd68a57c5b40d..d4618d15ecc1f791d1353d2d6b7c9724e7400a9f 100644 (file)
@@ -22,6 +22,8 @@ properties:
     description: Interrupt for signals mirrored to out-gpios.
 
   in-gpios:
+    minItems: 1
+    maxItems: 2
     description: Array of one or two GPIO pins used for input signals.
 
   brcm,in-functions:
@@ -33,6 +35,7 @@ properties:
     description: Array of enable and mask pairs, one per gpio in-gpios.
 
   out-gpios:
+    maxItems: 1
     description: Array of one GPIO pin used for output signals.
 
   brcm,out-functions:
index 247ef00381ea04892f31bd40e5c38b48665f5d27..573dd5879f95ffa4b9d87491113bb162bc8497c6 100644 (file)
@@ -83,7 +83,7 @@ properties:
       Phandle of a companion.
 
   phys:
-    description: PHY specifier for the USB PHY
+    maxItems: 1
 
   phy-names:
     const: usb
index 2178bcc401bcbe947fc87b6baa88655f4276f81c..56bca63e02b6d6d9ee194448b274f2dee3da4dd6 100644 (file)
@@ -71,7 +71,7 @@ properties:
       Overrides the detected port count
 
   phys:
-    description: PHY specifier for the USB PHY
+    maxItems: 1
 
   phy-names:
     const: usb
index 678396eeeb783b26e79e11560592141d357404b3..f506225a4d577d24a42d066a87a5ffa70940828f 100644 (file)
@@ -40,7 +40,7 @@ properties:
       - const: mc
 
   phys:
-    description: PHY specifier for the USB PHY
+    maxItems: 1
 
   usb-role-switch:
     type: boolean
index 54c361d4a7af0805da86d6c944e7770be0c3c1a3..e67223d90bb7cb04e5787931a809bd5fd70a5235 100644 (file)
@@ -68,6 +68,7 @@ properties:
       Integer to use BUSWAIT register.
 
   renesas,enable-gpio:
+    maxItems: 1
     description: |
       gpio specifier to check GPIO determining if USB function should be
       enabled.
index 388245b91a55b1c88640b772dd715d8e3809dca5..adce36e48bc9e9e5a681a1e43b9c935d97e245b7 100644 (file)
@@ -15,13 +15,14 @@ properties:
       - const: ti,j721e-usb
 
   reg:
-    description: module registers
+    maxItems: 1
 
   power-domains:
     description:
       PM domain provider node and an args specifier containing
       the USB device id value. See,
       Documentation/devicetree/bindings/soc/ti/sci-pm-domain.txt
+    maxItems: 1
 
   clocks:
     description: Clock phandles to usb2_refclk and lpm_clk
index c1b19fc5d0a2a8d231e6f1c840544acadddd654f..91ef374faba81a2e2591d3344ddca630a99a28fe 100644 (file)
@@ -43,12 +43,14 @@ properties:
     maxItems: 2
 
   power-domains:
+    maxItems: 1
     description: Should contain a phandle to a PM domain provider node
       and an args specifier containing the USB device id
       value. This property is as per the binding,
       Documentation/devicetree/bindings/soc/ti/sci-pm-domain.txt
 
   phys:
+    maxItems: 1
     description:
       PHY specifier for the USB3.0 PHY. Some SoCs need the USB3.0 PHY
       to be turned on before the controller.