Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: iio: add missing reset-gpios constrain

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>

authored by

Krzysztof Kozlowski and committed by
Jonathan Cameron
7b695ef6 ffd1f150

+8 -4
+2 -1
Documentation/devicetree/bindings/iio/addac/adi,ad74115.yaml
··· 32 32 33 33 spi-cpol: true 34 34 35 - reset-gpios: true 35 + reset-gpios: 36 + maxItems: 1 36 37 37 38 interrupts: 38 39 minItems: 1
+2 -1
Documentation/devicetree/bindings/iio/dac/adi,ad5758.yaml
··· 78 78 - const: -1000 79 79 - const: 22000 80 80 81 - reset-gpios: true 81 + reset-gpios: 82 + maxItems: 1 82 83 83 84 adi,dc-dc-ilim-microamp: 84 85 enum: [150000, 200000, 250000, 300000, 350000, 400000]
+2 -1
Documentation/devicetree/bindings/iio/health/ti,afe4403.yaml
··· 23 23 maxItems: 1 24 24 description: Connected to ADC_RDY pin. 25 25 26 - reset-gpios: true 26 + reset-gpios: 27 + maxItems: 1 27 28 28 29 required: 29 30 - compatible
+2 -1
Documentation/devicetree/bindings/iio/health/ti,afe4404.yaml
··· 23 23 maxItems: 1 24 24 description: Connected to ADC_RDY pin. 25 25 26 - reset-gpios: true 26 + reset-gpios: 27 + maxItems: 1 27 28 28 29 additionalProperties: false 29 30