Skip to content

Commit

Permalink
dt-bindings: iio: ad74413r: allow setting sink current for digital input
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Krzysztof Kozlowski <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Cameron <[email protected]>
  • Loading branch information
Villemoes authored and jic23 committed Mar 12, 2023
1 parent 5418805 commit 954ea91
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Documentation/devicetree/bindings/iio/addac/adi,ad74413r.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 954ea91

Please sign in to comment.