OSDN Git Service

dt-bindings: iio: ad74413r: allow setting sink current for digital input
authorRasmus Villemoes <linux@rasmusvillemoes.dk>
Mon, 6 Mar 2023 09:43:00 +0000 (10:43 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 12 Mar 2023 15:47:57 +0000 (15:47 +0000)
Depending on the actual hardware wired up to a digital input channel,
it may be necessary to configure the ad74413r to sink a small
current. For example, in the case of a simple mechanical switch, the
charge on the external 68 nF capacitor (cf. the data sheet's Figure
34) will keep the channel as reading high even after the switch is
turned off again.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230306094301.1357543-2-linux@rasmusvillemoes.dk
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Documentation/devicetree/bindings/iio/addac/adi,ad74413r.yaml

index 9eb3ecc..590ea79 100644 (file)
@@ -101,6 +101,15 @@ patternProperties:
           When not configured as a comparator, the GPO will be treated as an
           output-only GPIO.
 
+      drive-strength-microamp:
+        description: |
+          For channels configured as digital input, this configures the sink
+          current.
+        minimum: 0
+        maximum: 1800
+        default: 0
+        multipleOf: 120
+
     required:
       - reg