Commit a6c4f77c authored by Beniamin Bia's avatar Beniamin Bia Committed by Rob Herring

dt-bindings: iio: adc: ad7606: Fix wrong maxItems value

This patch set the correct value for oversampling maxItems. In the
original example, appears 3 items for oversampling while the maxItems
is set to 1, this patch fixes those issues.

Fixes: 416f882c ("dt-bindings: iio: adc: Migrate AD7606 documentation to yaml")
Signed-off-by: default avatarBeniamin Bia <beniamin.bia@analog.com>
Signed-off-by: default avatarRob Herring <robh@kernel.org>
parent db0d39aa
...@@ -82,7 +82,7 @@ properties: ...@@ -82,7 +82,7 @@ properties:
Must be the device tree identifier of the over-sampling Must be the device tree identifier of the over-sampling
mode pins. As the line is active high, it should be marked mode pins. As the line is active high, it should be marked
GPIO_ACTIVE_HIGH. GPIO_ACTIVE_HIGH.
maxItems: 1 maxItems: 3
adi,sw-mode: adi,sw-mode:
description: description:
...@@ -125,9 +125,9 @@ examples: ...@@ -125,9 +125,9 @@ examples:
adi,conversion-start-gpios = <&gpio 17 GPIO_ACTIVE_HIGH>; adi,conversion-start-gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
reset-gpios = <&gpio 27 GPIO_ACTIVE_HIGH>; reset-gpios = <&gpio 27 GPIO_ACTIVE_HIGH>;
adi,first-data-gpios = <&gpio 22 GPIO_ACTIVE_HIGH>; adi,first-data-gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
adi,oversampling-ratio-gpios = <&gpio 18 GPIO_ACTIVE_HIGH adi,oversampling-ratio-gpios = <&gpio 18 GPIO_ACTIVE_HIGH>,
&gpio 23 GPIO_ACTIVE_HIGH <&gpio 23 GPIO_ACTIVE_HIGH>,
&gpio 26 GPIO_ACTIVE_HIGH>; <&gpio 26 GPIO_ACTIVE_HIGH>;
standby-gpios = <&gpio 24 GPIO_ACTIVE_LOW>; standby-gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
adi,sw-mode; adi,sw-mode;
}; };
......
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