On Mon, 18 May 2026 16:18:50 +0800
Xingyu Wu <xingyu.wu@starfivetech.com> wrote:
> Hi all,
>
> This series adds an IIO ADC driver for the controller of StarFive
> Successive Approximation Register A/D converter (SAR-ADC).
>
> The StarFive SAR-ADC is a 12-bit converter with up to 8 input channels
> and a fixed 1.8V reference domain. The driver provides raw and processed
> voltage readouts via IIO, runtime PM support, and threshold-based
> voltage monitoring.
>
> Tested on StarFive JHB100 EVB with all ADC channels and monitor
> interrupt path.
Take a look at the AI bot feedback.
https://sashiko.dev/#/patchset/20260518081852.116909-1-xingyu.wu%40starfivetech.com
It won't necessarily all be correct but the hit rate tends to be good.
Jonathan
>
> Xingyu Wu (2):
> bindings: iio: adc: Add StarFive JHB100 SARADC
> iio: adc: Add StarFive SAR-ADC driver
>
> .../iio/adc/starfive,jhb100-saradc.yaml | 62 ++
> MAINTAINERS | 6 +
> drivers/iio/adc/Kconfig | 11 +
> drivers/iio/adc/Makefile | 1 +
> drivers/iio/adc/starfive-saradc.c | 978 ++++++++++++++++++
> 5 files changed, 1058 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/iio/adc/starfive,jhb100-saradc.yaml
> create mode 100644 drivers/iio/adc/starfive-saradc.c
>