[PATCH 5/7] arm64: dts: qcom: pmk8850: Add ADC5 Gen4 peripheral
Jishnu Prakash <[email protected]> Fri, 31 Jul 2026 23:36:18 +0530
| Newsgroups | org.kernel.vger.linux-pm,org.kernel.vger.linux-arm-msm,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-iio,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
PMK8850 has an ADC5 Gen4 peripheral that acts as the master ADC for the platform, communicating with ADC peripherals on other PMICs on the system. Add the ADC peripheral node with PMK8850 die_temp and xo_therm channel nodes under it initially. Signed-off-by: Jishnu Prakash <[email protected]> --- arch/arm64/boot/dts/qcom/pmk8850.dtsi | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/pmk8850.dtsi b/arch/arm64/boot/dts/qcom/pmk8850.dtsi index c7ba72fd48bc..44d1d1957f8a 100644 --- a/arch/arm64/boot/dts/qcom/pmk8850.dtsi +++ b/arch/arm64/boot/dts/qcom/pmk8850.dtsi @@ -7,6 +7,7 @@ #include <dt-bindings/input/linux-event-codes.h> #include <dt-bindings/interrupt-controller/irq.h> #include <dt-bindings/spmi/spmi.h> +#include "qcom-adc5-gen4.h" &spmi_bus0 { pmic@0 { @@ -45,6 +46,30 @@ pmk8850_gpios: gpio@b800 { #interrupt-cells = <2>; }; + pmk8850_vadc: adc@9000 { + compatible = "qcom,spmi-adc5-gen4"; + reg = <0x9000>, <0x9100>; + #address-cells = <1>; + #size-cells = <0>; + interrupts = <0x0 0x90 0x1 IRQ_TYPE_EDGE_RISING>, + <0x0 0x91 0x1 IRQ_TYPE_EDGE_RISING>; + #thermal-sensor-cells = <1>; + #io-channel-cells = <1>; + + channel@3 { + reg = <ADC5_GEN4_DIE_TEMP(0, 0)>; + label = "pmk8850_die_temp"; + }; + + channel@44 { + reg = <ADC5_GEN4_AMUX1_THM_100K_PU(0, 0)>; + label = "pmk8850_therm_0"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,adc-tm; + }; + }; + pmk8850_rtc: rtc@6100 { compatible = "qcom,pmk8350-rtc"; reg = <0x6100>, -- 2.43.0