Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Naresh Solanki and committed by
Jonathan Cameron
f1f99fcb 2ec17b19

+11
+11
Documentation/devicetree/bindings/iio/afe/voltage-divider.yaml
··· 39 39 description: | 40 40 Channel node of a voltage io-channel. 41 41 42 + '#io-channel-cells': 43 + description: 44 + In addition to consuming the measurement services of a voltage 45 + output channel, the voltage divider can act as a provider of 46 + measurement services to other devices. This is particularly 47 + useful in scenarios wherein an ADC has an analog frontend, 48 + such as a voltage divider, and then consuming its raw value 49 + isn't interesting. In this case, the voltage before the divider 50 + is desired. 51 + const: 1 52 + 42 53 output-ohms: 43 54 description: 44 55 Resistance Rout over which the output voltage is measured. See full-ohms.