Skip to content

Commit

Permalink
dt-bindings: iio: add missing reset-gpios constrain
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Krzysztof Kozlowski authored and Jonathan Cameron committed Oct 10, 2023
1 parent ffd1f15 commit 7b695ef
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion Documentation/devicetree/bindings/iio/addac/adi,ad74115.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ properties:

spi-cpol: true

reset-gpios: true
reset-gpios:
maxItems: 1

interrupts:
minItems: 1
Expand Down
3 changes: 2 additions & 1 deletion Documentation/devicetree/bindings/iio/dac/adi,ad5758.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
3 changes: 2 additions & 1 deletion Documentation/devicetree/bindings/iio/health/ti,afe4403.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ properties:
maxItems: 1
description: Connected to ADC_RDY pin.

reset-gpios: true
reset-gpios:
maxItems: 1

required:
- compatible
Expand Down
3 changes: 2 additions & 1 deletion Documentation/devicetree/bindings/iio/health/ti,afe4404.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ properties:
maxItems: 1
description: Connected to ADC_RDY pin.

reset-gpios: true
reset-gpios:
maxItems: 1

additionalProperties: false

Expand Down

0 comments on commit 7b695ef

Please sign in to comment.