mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 05:44:11 +00:00
dt-bindings: iio: afe: voltage-divider: Add io-channel-cells
Enable the voltage divider to both receive and provide measurement services by adding #io-channel-cells. This is especially valuable in scenarios where an ADC has an analog frontend, like a voltage divider, and obtaining its raw value isn't interesting. It is desired to get the real voltage before the voltage divider. Signed-off-by: Naresh Solanki <naresh.solanki@9elements.com> Reviewed-by: Conor Dooley <conor.dooley@microchip.com> Link: https://lore.kernel.org/r/20240206105502.648255-1-naresh.solanki@9elements.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
parent
2ec17b1950
commit
f1f99fcbf9
1 changed files with 11 additions and 0 deletions
|
@ -39,6 +39,17 @@ properties:
|
||||||
description: |
|
description: |
|
||||||
Channel node of a voltage io-channel.
|
Channel node of a voltage io-channel.
|
||||||
|
|
||||||
|
'#io-channel-cells':
|
||||||
|
description:
|
||||||
|
In addition to consuming the measurement services of a voltage
|
||||||
|
output channel, the voltage divider can act as a provider of
|
||||||
|
measurement services to other devices. This is particularly
|
||||||
|
useful in scenarios wherein an ADC has an analog frontend,
|
||||||
|
such as a voltage divider, and then consuming its raw value
|
||||||
|
isn't interesting. In this case, the voltage before the divider
|
||||||
|
is desired.
|
||||||
|
const: 1
|
||||||
|
|
||||||
output-ohms:
|
output-ohms:
|
||||||
description:
|
description:
|
||||||
Resistance Rout over which the output voltage is measured. See full-ohms.
|
Resistance Rout over which the output voltage is measured. See full-ohms.
|
||||||
|
|
Loading…
Reference in a new issue