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

iio: adc: imx93: add four channels for imx93 adc

According to the spec, this ADC totally support 8 channels.
i.MX93 contain this ADC with 4 channels connected to pins in
the package. i.MX95 contain this ADC with 8 channels connected
to pins in the package.

Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Fixes: 7d02296ac8b8 ("iio: adc: add imx93 adc support")
Link: https://lore.kernel.org/r/20231116071026.611269-1-haibo.chen@nxp.com
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Haibo Chen and committed by
Jonathan Cameron
2475ecdb 60576e84

+4
+4
drivers/iio/adc/imx93_adc.c
··· 93 93 IMX93_ADC_CHAN(1), 94 94 IMX93_ADC_CHAN(2), 95 95 IMX93_ADC_CHAN(3), 96 + IMX93_ADC_CHAN(4), 97 + IMX93_ADC_CHAN(5), 98 + IMX93_ADC_CHAN(6), 99 + IMX93_ADC_CHAN(7), 96 100 }; 97 101 98 102 static void imx93_adc_power_down(struct imx93_adc *adc)