[PATCH v2 08/14] aiodev: rockchip_saradc: Add RK3562 support
Ahmad Fatoum
a.fatoum at pengutronix.de
Fri Jan 30 00:01:07 PST 2026
On 1/30/26 06:17, Sohaib Mohamed wrote:
> The RK3562 has a SARADC v2 with 8 channels and 12 bit resolution.
> compile-tested Only.
>
> Signed-off-by: Sohaib Mohamed <sohaib.amhmd at gmail.com>
Reviewed-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
> ---
> drivers/aiodev/rockchip_saradc.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/drivers/aiodev/rockchip_saradc.c b/drivers/aiodev/rockchip_saradc.c
> index f1efab5233..d4cb1f4fbe 100644
> --- a/drivers/aiodev/rockchip_saradc.c
> +++ b/drivers/aiodev/rockchip_saradc.c
> @@ -256,6 +256,12 @@ static int rockchip_saradc_probe(struct device *dev)
> return ret;
> }
>
> +static const struct rockchip_saradc_cfg rk3562_saradc_cfg = {
> + .num_bits = 12,
> + .num_channels = 8,
> + .read = rockchip_saradc_read_v2,
> +};
> +
> static const struct rockchip_saradc_cfg rk3568_saradc_cfg = {
> .num_bits = 10,
> .num_channels = 8,
> @@ -276,6 +282,7 @@ static const struct rockchip_saradc_cfg rk3588_saradc_cfg = {
> };
>
> static const struct of_device_id of_rockchip_saradc_match[] = {
> + { .compatible = "rockchip,rk3562-saradc", .data = &rk3562_saradc_cfg },
> { .compatible = "rockchip,rk3568-saradc", .data = &rk3568_saradc_cfg },
> { .compatible = "rockchip,rk3576-saradc", .data = &rk3576_saradc_cfg },
> { .compatible = "rockchip,rk3588-saradc", .data = &rk3588_saradc_cfg },
>
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list