[PATCH 4/5] dt-bindings: iio: ad74413r: add optional reset-gpios

Rasmus Villemoes posted 5 patches 3 years, 5 months ago
[PATCH 4/5] dt-bindings: iio: ad74413r: add optional reset-gpios
Posted by Rasmus Villemoes 3 years, 5 months ago
The ad74412 and ad74413 devices have an active-low reset pin. Add a
binding allowing one to specify a gpio tied to that.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
---
 Documentation/devicetree/bindings/iio/addac/adi,ad74413r.yaml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Documentation/devicetree/bindings/iio/addac/adi,ad74413r.yaml b/Documentation/devicetree/bindings/iio/addac/adi,ad74413r.yaml
index e954d5ae4f4f..70f82cc716ae 100644
--- a/Documentation/devicetree/bindings/iio/addac/adi,ad74413r.yaml
+++ b/Documentation/devicetree/bindings/iio/addac/adi,ad74413r.yaml
@@ -51,6 +51,9 @@ properties:
       Shunt (sense) resistor value in micro-Ohms.
     default: 100000000
 
+  reset-gpios:
+    maxItems: 1
+
 required:
   - compatible
   - reg
-- 
2.37.2
Re: [PATCH 4/5] dt-bindings: iio: ad74413r: add optional reset-gpios
Posted by Jonathan Cameron 3 years, 5 months ago
On Fri, 11 Nov 2022 15:39:20 +0100
Rasmus Villemoes <linux@rasmusvillemoes.dk> wrote:

> The ad74412 and ad74413 devices have an active-low reset pin. Add a
> binding allowing one to specify a gpio tied to that.
> 
> Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
> ---
>  Documentation/devicetree/bindings/iio/addac/adi,ad74413r.yaml | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/iio/addac/adi,ad74413r.yaml b/Documentation/devicetree/bindings/iio/addac/adi,ad74413r.yaml
> index e954d5ae4f4f..70f82cc716ae 100644
> --- a/Documentation/devicetree/bindings/iio/addac/adi,ad74413r.yaml
> +++ b/Documentation/devicetree/bindings/iio/addac/adi,ad74413r.yaml
> @@ -51,6 +51,9 @@ properties:
>        Shunt (sense) resistor value in micro-Ohms.
>      default: 100000000
>  
> +  reset-gpios:
> +    maxItems: 1
> +

Probably good to add to the example as well.

>  required:
>    - compatible
>    - reg