On Sat, 3 Jul 2021 10:42:20 +0200
Andreas Kemnade [off-list ref] wrote:
Add devicetree support so that consumers can reference the channels
via devicetree, especially the power subdevice can make use of that
to provide voltage_now properties.
Does the mapping vary from board to board? Often these mappings are
internal to the chip so might as well be provided hard coded in the
relevant drivers rather than via DT. See drivers that have iio_map
structure arrays.
Andreas Kemnade (4):
dt-bindings: mfd: ricoh,rn5t618: ADC related nodes and properties
mfd: rn5t618: Add of compatibles for ADC and power
iio: rn5t618: Add devicetree support
power: supply: rn5t618: Add voltage_now property
.../bindings/mfd/ricoh,rn5t618.yaml | 53 ++++++++++++++++++
drivers/iio/adc/rn5t618-adc.c | 14 ++++-
drivers/mfd/rn5t618.c | 6 +-
drivers/power/supply/rn5t618_power.c | 56 +++++++++++++++++++
4 files changed, 126 insertions(+), 3 deletions(-)