dt-bindings: iio: afe: voltage-divider: Add io-channel-cells
authorNaresh Solanki <naresh.solanki@9elements.com>
Tue, 6 Feb 2024 10:55:01 +0000 (16:25 +0530)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 17 Feb 2024 16:16:12 +0000 (16:16 +0000)
commitf1f99fcbf997b50a32844c31523ed41da0428f08
tree0cdee8bb39ac34955ed2f2786b994eebb9bf3749
parent2ec17b1950bb824f9a8d5f055e466d02c40eb64c
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>
Documentation/devicetree/bindings/iio/afe/voltage-divider.yaml