-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dts: bindings: adc: add shunt sensor
Add bindings for a current sensor using a shunt resistor. Signed-off-by: Jason Yuan <[email protected]>
- Loading branch information
1 parent
9a8502e
commit 71119ac
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Copyright 2023 The ChromiumOS Authors | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
description: | | ||
When an io-channel measures the voltage over a current sense shunt, | ||
the interesting measurement is almost always the current through the | ||
shunt, not the voltage over it. This binding describes such a current | ||
sense circuit. | ||
This is based on Linux, documentation: | ||
https://www.kernel.org/doc/Documentation/devicetree/bindings/iio/afe/ | ||
current-sense-shunt.yaml | ||
compatible: "current-sense-shunt" | ||
|
||
include: base.yaml | ||
|
||
properties: | ||
io-channels: | ||
required: true | ||
description: | | ||
Channels available with this divider configuration. | ||
shunt-resistor-micro-ohms: | ||
type: int | ||
required: true | ||
description: | | ||
Resistance of the shunt resistor in micro-ohms | ||
gain: | ||
type: int | ||
default: 1 | ||
description: | | ||
Gain used to amplify the voltage measured across the shunt resistor. |