dt-bindings: iio: add missing reset-gpios constrain
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Thu, 5 Oct 2023 08:36:50 +0000 (10:36 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 10 Oct 2023 16:28:36 +0000 (17:28 +0100)
The Documentation/devicetree/bindings/gpio/gpio-consumer-common.yaml
schema does not enforce number of reset GPIOs, thus each device binding
must do it.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20231005083650.92222-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Documentation/devicetree/bindings/iio/addac/adi,ad74115.yaml
Documentation/devicetree/bindings/iio/dac/adi,ad5758.yaml
Documentation/devicetree/bindings/iio/health/ti,afe4403.yaml
Documentation/devicetree/bindings/iio/health/ti,afe4404.yaml

index 2594fa192f93d0d298cc3a9e7171a584e78b756d..2a04906531fb0ea254a121ee0595130298f11a73 100644 (file)
@@ -32,7 +32,8 @@ properties:
 
   spi-cpol: true
 
-  reset-gpios: true
+  reset-gpios:
+    maxItems: 1
 
   interrupts:
     minItems: 1
index 4e508bfcc9d87e46e5c5fb3c561304fba2acba41..5121685337b5ed090d0a266ce8bc5154280f8ed3 100644 (file)
@@ -78,7 +78,8 @@ properties:
           - const: -1000
           - const: 22000
 
-  reset-gpios: true
+  reset-gpios:
+    maxItems: 1
 
   adi,dc-dc-ilim-microamp:
     enum: [150000, 200000, 250000, 300000, 350000, 400000]
index b9b5beac33b2e926f1610257a115f19870145cb6..5b6cde86b5a5cbda886b576e49e762d6be02e837 100644 (file)
@@ -23,7 +23,8 @@ properties:
     maxItems: 1
     description: Connected to ADC_RDY pin.
 
-  reset-gpios: true
+  reset-gpios:
+    maxItems: 1
 
 required:
   - compatible
index 2958c4ca75b4851c06d4521a9c6b166f2ded0c54..167d10bd60af973a73403925456736b223783670 100644 (file)
@@ -23,7 +23,8 @@ properties:
     maxItems: 1
     description: Connected to ADC_RDY pin.
 
-  reset-gpios: true
+  reset-gpios:
+    maxItems: 1
 
 additionalProperties: false