iio: adc: Add Allwinner D1/T113s/R329/T507 SoCs GPADC
authorMaksim Kiselev <bigunclemax@gmail.com>
Mon, 19 Jun 2023 15:42:25 +0000 (18:42 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 20 Jul 2023 18:21:29 +0000 (19:21 +0100)
commit046dd089eb382becb1bce5758757660c809802f5
tree3aa5a6043a268398cb6cc07535efad99bf5d78ee
parent83e961298013e5354373637381ea285fd7cced6f
iio: adc: Add Allwinner D1/T113s/R329/T507 SoCs GPADC

The General Purpose ADC (GPADC) can convert the external signal into
a certain proportion of digital value, to realize the measurement of
analog signal, which can be applied to power detection and key detection.

Theoretically, this ADC can support up to 16 channels. All SoCs below
contain this GPADC IP. The only difference between them is the number
of available channels:

 T113 - 1 channel
 D1   - 2 channels
 R329 - 4 channels
 T507 - 4 channels

Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Maksim Kiselev <bigunclemax@gmail.com>
Link: https://lore.kernel.org/r/20230619154252.3951913-3-bigunclemax@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/Kconfig
drivers/iio/adc/Makefile
drivers/iio/adc/sun20i-gpadc-iio.c [new file with mode: 0644]