Re: [PATCH v3 0/8] Add ADC driver support for RZ/V2H(P) and RZ/V2N SoCs
From: Jonathan Cameron
Date: Fri Oct 23 2026 - 16:51:04 EST
On Fri, 23 Oct 2026 18:59:11 +0100
Prabhakar <prabhakar.csengg@xxxxxxxxx> wrote:
> From: Lad Prabhakar <prabhakar.mahadev-lad.rj@xxxxxxxxxxxxxx>
>
> Hi all,
>
> This patch series aims to add ADC support for the RZ/V2H(P) and RZ/V2N
> SoCs. The ADC IP on these SoCs is similar to the one found on the RZ/T2H
> SoC but varies slightly in terms of available channels and configuration
> options.
>
Applied to the testing branch of iio.git.
Note I'll be rebasing that on rc1 once it is available.
In the meantime, additional feedback is still welcome.
(It's welcome after that but preferred as patches on top!)
Jonathan
> v2->v3:
> - Added Ack from Conor for the DT binding patch
> - Avoided splitting up the ndelay calculation into multiple lines
> in patch#2
> - rzt2h_adc_pm_runtime_suspend() now checks the return value of
> reset_control_assert() and returns if non-zero. This is to
> avoid churn in future patch.
> - In rzt2h_adc_write_scale() used multiplication() operation
> for comparison by dropping the div_u64_rem in patch #8
>
> v1->v2:
> - Dropped using DIV_ROUND_UP_ULL to DIV_ROUND_UP
> - Included time64.h
> - Returned -ENODATA in case device_get_match_data() returns NULL
> - Renamed RZT2H_ADC_VREF_MV to RZT2H_ADC_VREF_mV
> - Updated Kconfig description
> - Included array_size.h
> - Dropped unnecessary extra line in rzt2h_adc_write_scale
>
> v2: https://lore.kernel.org/all/20261009184122.1378797-1-prabhakar.mahadev-lad.rj@xxxxxxxxxxxxxx/
> v1: https://lore.kernel.org/all/20260929124248.237032-1-prabhakar.mahadev-lad.rj@xxxxxxxxxxxxxx/
>
> Cheers,
> Prabhakar
>
> Lad Prabhakar (8):
> dt-bindings: iio: adc: renesas,r9a09g077-adc: Add RZ/V2H(P) and RZ/V2N
> support
> iio: adc: rzt2h: Wait for the analog part to stop after a forced stop
> iio: adc: rzt2h: Add chip-specific configuration
> iio: adc: rzt2h: Add optional reset support
> iio: adc: rzt2h: Prepare for SoCs without sample state registers
> iio: adc: rzt2h: Prepare for SoCs with different ADC info
> iio: adc: rzt2h: Use scan type for ADC scale
> iio: adc: rzt2h: Add support for RZ/V2H(P) SoC
>
> .../iio/adc/renesas,r9a09g077-adc.yaml | 38 +-
> drivers/iio/adc/Kconfig | 10 +-
> drivers/iio/adc/rzt2h_adc.c | 327 ++++++++++++++++--
> 3 files changed, 346 insertions(+), 29 deletions(-)
>