[PATCH 2/4] hwmon: adc: rp1: Add Raspberry Pi's RP1 ADC driver

Guenter Roeck linux at roeck-us.net
Wed Sep 24 19:42:49 PDT 2025


On Thu, Sep 25, 2025 at 03:04:14AM +0300, Stanimir Varbanov wrote:
> A five-input successive-approximation analogue-to-digital converter
> with 12-bit (effective number of 9.5 bits) resolution at 500kSPS.
> The ADC has four external inputs and one internal temperature sensor.
> 
> Signed-off-by: Phil Elwell <phil at raspberrypi.com>
> Signed-off-by: Jonathan Bell <jonathan at raspberrypi.com>
> Signed-off-by: Stanimir Varbanov <svarbanov at suse.de>

I just realized that there is already a hwmon driver for
Rasperri Pi - drivers/hwmon/raspberrypi-hwmon.c.

Please add this code to that driver.

> ---
>  drivers/hwmon/Kconfig   |  10 ++
>  drivers/hwmon/Makefile  |   1 +
>  drivers/hwmon/rp1-adc.c | 301 ++++++++++++++++++++++++++++++++++++++++

Also, this needs documentation.

Thanks,
Guenter



More information about the linux-arm-kernel mailing list