Skip to content

Commit 4cb5a0b

Browse files
aushasre123Raj Aryan
authored andcommitted
FROMLIST: arm64: dts: qcom: monaco-pmics: Add ADC support for PMM8620AU
Add ADC nodes for PMM8620AU PMIC instances (SID 0 and SID 2) present on the Monaco platform. Each ADC node exposes the following ADC channels: - DIE_TEMP: PMIC die temperature channel - VPH_PWR: Battery/supply voltage channel Signed-off-by: Ayyagari Ushasreevalli <aushasre@qti.qualcomm.com> Signed-off-by: Jishnu Prakash <jishnu.prakash@oss.qualcomm.com>
1 parent a48a40c commit 4cb5a0b

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

arch/arm64/boot/dts/qcom/monaco-pmics.dtsi

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
#include <dt-bindings/input/input.h>
77
#include <dt-bindings/spmi/spmi.h>
8+
#include "qcom-adc5-gen3.h"
89

910
&spmi_bus {
1011
pmm8620au_0: pmic@0 {
@@ -21,6 +22,27 @@
2122
allow-set-time;
2223
};
2324

25+
pmm8620au_0_adc: adc@8000 {
26+
compatible = "qcom,spmi-adc5-gen3";
27+
reg = <0x8000>;
28+
#address-cells = <1>;
29+
#size-cells = <0>;
30+
interrupts = <0x0 0x80 0x1 IRQ_TYPE_EDGE_RISING>;
31+
#io-channel-cells = <1>;
32+
33+
channel@3 {
34+
reg = <ADC5_GEN3_DIE_TEMP(0)>;
35+
label = "pmm8620au_0_die_temp";
36+
qcom,pre-scaling = <1 1>;
37+
};
38+
39+
channel@8e {
40+
reg = <ADC5_GEN3_VPH_PWR(0)>;
41+
label = "pmm8620au_0_vph_pwr";
42+
qcom,pre-scaling = <1 3>;
43+
};
44+
};
45+
2446
pmm8620au_0_gpios: gpio@8800 {
2547
compatible = "qcom,pmm8654au-gpio", "qcom,spmi-gpio";
2648
reg = <0x8800>;
@@ -38,6 +60,27 @@
3860
#address-cells = <1>;
3961
#size-cells = <0>;
4062

63+
pmm8650au_1_adc: adc@8000 {
64+
compatible = "qcom,spmi-adc5-gen3";
65+
reg = <0x8000>;
66+
#address-cells = <1>;
67+
#size-cells = <0>;
68+
interrupts = <0x2 0x80 0x1 IRQ_TYPE_EDGE_RISING>;
69+
#io-channel-cells = <1>;
70+
71+
channel@203 {
72+
reg = <ADC5_GEN3_DIE_TEMP(2)>;
73+
label = "pmm8650au_1_die_temp";
74+
qcom,pre-scaling = <1 1>;
75+
};
76+
77+
channel@28e {
78+
reg = <ADC5_GEN3_VPH_PWR(2)>;
79+
label = "pmm8650au_1_vph_pwr";
80+
qcom,pre-scaling = <1 3>;
81+
};
82+
};
83+
4184
pmm8650au_1_gpios: gpio@8800 {
4285
compatible = "qcom,pmm8654au-gpio", "qcom,spmi-gpio";
4386
reg = <0x8800>;

0 commit comments

Comments
 (0)