xref: /openbmc/linux/arch/arm64/boot/dts/qcom/pmp8074.dtsi (revision 2d99a7ec)
1// SPDX-License-Identifier: GPL-2.0-only OR BSD-3-Clause
2
3#include <dt-bindings/spmi/spmi.h>
4#include <dt-bindings/iio/qcom,spmi-vadc.h>
5
6&spmi_bus {
7	pmic@0 {
8		compatible = "qcom,pmp8074", "qcom,spmi-pmic";
9		reg = <0x0 SPMI_USID>;
10		#address-cells = <1>;
11		#size-cells = <0>;
12
13		pmp8074_adc: adc@3100 {
14			compatible = "qcom,spmi-adc-rev2";
15			reg = <0x3100>;
16			interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
17			#address-cells = <1>;
18			#size-cells = <0>;
19			#io-channel-cells = <1>;
20
21			ref-gnd@0 {
22				reg = <ADC5_REF_GND>;
23				qcom,pre-scaling = <1 1>;
24			};
25
26			vref-1p25@1 {
27				reg = <ADC5_1P25VREF>;
28				qcom,pre-scaling = <1 1>;
29			};
30
31			vref-vadc@2 {
32				reg = <ADC5_VREF_VADC>;
33				qcom,pre-scaling = <1 1>;
34			};
35
36			pmic_die: die-temp@6 {
37				reg = <ADC5_DIE_TEMP>;
38				qcom,pre-scaling = <1 1>;
39			};
40
41			xo_therm: xo-temp@76 {
42				reg = <ADC5_XO_THERM_100K_PU>;
43				qcom,ratiometric;
44				qcom,hw-settle-time = <200>;
45				qcom,pre-scaling = <1 1>;
46			};
47
48			pa_therm1: thermistor1@77 {
49				reg = <ADC5_AMUX_THM1_100K_PU>;
50				qcom,ratiometric;
51				qcom,hw-settle-time = <200>;
52				qcom,pre-scaling = <1 1>;
53			};
54
55			pa_therm2: thermistor2@78 {
56				reg = <ADC5_AMUX_THM2_100K_PU>;
57				qcom,ratiometric;
58				qcom,hw-settle-time = <200>;
59				qcom,pre-scaling = <1 1>;
60			};
61
62			pa_therm3: thermistor3@79 {
63				reg = <ADC5_AMUX_THM3_100K_PU>;
64				qcom,ratiometric;
65				qcom,hw-settle-time = <200>;
66				qcom,pre-scaling = <1 1>;
67			};
68
69			vph-pwr@131 {
70				reg = <ADC5_VPH_PWR>;
71				qcom,pre-scaling = <1 3>;
72			};
73		};
74
75		pmp8074_rtc: rtc@6000 {
76			compatible = "qcom,pm8941-rtc";
77			reg = <0x6000>, <0x6100>;
78			reg-names = "rtc", "alarm";
79			interrupts = <0x0 0x61 0x1 IRQ_TYPE_NONE>;
80			allow-set-time;
81			status = "disabled";
82		};
83
84		pmp8074_gpios: gpio@c000 {
85			compatible = "qcom,pmp8074-gpio", "qcom,spmi-gpio";
86			reg = <0xc000>;
87			gpio-controller;
88			#gpio-cells = <2>;
89			gpio-ranges = <&pmp8074_gpios 0 0 12>;
90			interrupt-controller;
91			#interrupt-cells = <2>;
92		};
93	};
94
95	pmic@1 {
96		compatible = "qcom,pmp8074", "qcom,spmi-pmic";
97		reg = <0x1 SPMI_USID>;
98
99		regulators {
100			compatible = "qcom,pmp8074-regulators";
101
102			s3: s3 {
103				regulator-name = "vdd_s3";
104				regulator-min-microvolt = <592000>;
105				regulator-max-microvolt = <1064000>;
106				regulator-always-on;
107				regulator-boot-on;
108			};
109
110			s4: s4 {
111				regulator-name = "vdd_s4";
112				regulator-min-microvolt = <712000>;
113				regulator-max-microvolt = <992000>;
114				regulator-always-on;
115				regulator-boot-on;
116			};
117
118			l11: l11 {
119				regulator-name = "l11";
120				regulator-min-microvolt = <1800000>;
121				regulator-max-microvolt = <3300000>;
122			};
123		};
124	};
125};
126