[PATCH 0/7] Add support for QCOM SPMI PMIC5 Gen4 ADC
From: Jishnu Prakash
Date: Fri Jul 31 2026 - 14:21:20 EST
PMIC5 Gen4 ADC is the next generation following PMIC5 Gen3 ADC, with
several hardware changes for improved performance. In software
implementation, it is mostly similar to Gen3 ADC with the following
key differences:
- Increased ratiometric conversion resolution from 14 bits to 16 bits.
- Extended SID field from 4 to 5 bits and addition of a 2-bit bus index
field in the SID register, to support communication with up to 32 PMICs
per bus across up to 4 buses under the latest PMIC arbiter (v8).
This series adds support for the PMIC5 Gen4 ADC:
Patches 1-3 add the dt-bindings, IIO ADC driver, and thermal ADC-TM
driver support respectively, within the existing files.
Patch 4 adds a DT header file with macro definitions for Gen4 virtual
channel numbers, used in the "reg" property of ADC channel nodes.
Patch 5 adds the DT node for the Gen4 ADC peripheral under PMK8850.
Patches 6 and 7 add ADC support for Glymur and Kaanapali boards.
This includes ADC channels for die temperature, VPH power and
system thermistors, thermal zone nodes for thermistors and temp_alarm
node configurations to use ADC die_temp channels for temperature reads.
This series is dependent on the following series, which adds thermal
monitoring support for Gen3 ADC:
https://lore.kernel.org/all/20260722-gen3_adc_tm-v4-0-011981f756c8@xxxxxxxxxxxxxxxx/.
Signed-off-by: Jishnu Prakash <jishnu.prakash@xxxxxxxxxxxxxxxx>
---
Jishnu Prakash (7):
dt-bindings: iio: adc: Add support for QCOM PMIC5 Gen4 ADC
iio: adc: qcom-spmi-adc5-gen3: Add support for QCOM PMIC5 Gen4 ADC
thermal: qcom: qcom-spmi-adc-tm5-gen3: Add support for QCOM PMIC5 Gen4 ADC
arm64: dts: qcom: Add header file for ADC5 Gen4 channel macros
arm64: dts: qcom: pmk8850: Add ADC5 Gen4 peripheral
arm64: dts: qcom: glymur: Add ADC support for Glymur CRD
arm64: dts: qcom: kaanapali: Add ADC support for Kaanapali boards
.../bindings/iio/adc/qcom,spmi-adc5-gen3.yaml | 47 +++-
arch/arm64/boot/dts/qcom/glymur-crd.dtsi | 143 ++++++++++
arch/arm64/boot/dts/qcom/kaanapali-mtp.dts | 312 +++++++++++++++++++++
arch/arm64/boot/dts/qcom/kaanapali-qrd.dts | 312 +++++++++++++++++++++
arch/arm64/boot/dts/qcom/pmk8850.dtsi | 25 ++
arch/arm64/boot/dts/qcom/qcom-adc5-gen4.h | 96 +++++++
drivers/iio/adc/qcom-spmi-adc5-gen3.c | 165 ++++++++---
drivers/iio/adc/qcom-vadc-common.c | 43 +++
drivers/thermal/qcom/qcom-spmi-adc-tm5-gen3.c | 19 +-
include/linux/iio/adc/qcom-adc5-gen3-common.h | 44 ++-
include/linux/iio/adc/qcom-vadc-common.h | 6 +
11 files changed, 1156 insertions(+), 56 deletions(-)
---
base-commit: f5098b6bae761e346ebcd9da7f95622c04733cff
change-id: 20260730-pmic5_gen4_adc-f33d756bba5c
prerequisite-message-id: <20260722-gen3_adc_tm-v4-0-011981f756c8@xxxxxxxxxxxxxxxx>
prerequisite-patch-id: a11759e2d93f71e1512222baf904ced88a7b5262
prerequisite-patch-id: 3170107e11602d8c212f8a554db85860383b1e52
prerequisite-patch-id: 6b719c6c28e9572b9fef186a53c2c5fa6fbdf001
Best regards,
--
Jishnu Prakash <jishnu.prakash@xxxxxxxxxxxxxxxx>