lkml.org 
[lkml]   [2020]   [Feb]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH AUTOSEL 5.5 072/542] dt-bindings: iio: adc: ad7606: Fix wrong maxItems value
    Date
    From: Beniamin Bia <beniamin.bia@analog.com>

    [ Upstream commit a6c4f77cb3b11f81077b53c4a38f21b92d41f21e ]

    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: 416f882c3b40 ("dt-bindings: iio: adc: Migrate AD7606 documentation to yaml")
    Signed-off-by: Beniamin Bia <beniamin.bia@analog.com>
    Signed-off-by: Rob Herring <robh@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    Documentation/devicetree/bindings/iio/adc/adi,ad7606.yaml | 8 ++++----
    1 file changed, 4 insertions(+), 4 deletions(-)

    diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7606.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad7606.yaml
    index 6eb33207a1674..5117ad68a5840 100644
    --- a/Documentation/devicetree/bindings/iio/adc/adi,ad7606.yaml
    +++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7606.yaml
    @@ -82,7 +82,7 @@ properties:
    Must be the device tree identifier of the over-sampling
    mode pins. As the line is active high, it should be marked
    GPIO_ACTIVE_HIGH.
    - maxItems: 1
    + maxItems: 3

    adi,sw-mode:
    description:
    @@ -125,9 +125,9 @@ examples:
    adi,conversion-start-gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
    reset-gpios = <&gpio 27 GPIO_ACTIVE_HIGH>;
    adi,first-data-gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
    - adi,oversampling-ratio-gpios = <&gpio 18 GPIO_ACTIVE_HIGH
    - &gpio 23 GPIO_ACTIVE_HIGH
    - &gpio 26 GPIO_ACTIVE_HIGH>;
    + adi,oversampling-ratio-gpios = <&gpio 18 GPIO_ACTIVE_HIGH>,
    + <&gpio 23 GPIO_ACTIVE_HIGH>,
    + <&gpio 26 GPIO_ACTIVE_HIGH>;
    standby-gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
    adi,sw-mode;
    };
    --
    2.20.1
    \
     
     \ /
      Last update: 2020-02-14 16:50    [W:4.100 / U:0.092 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site