xref: /freebsd/sys/contrib/device-tree/src/arm64/qcom/sm8750-pmics.dtsi (revision 2846c90520eb4cc74e24d586a0ea0f4a0006bc73)
1*2846c905SEmmanuel Vadot// SPDX-License-Identifier: BSD-3-Clause
2*2846c905SEmmanuel Vadot/*
3*2846c905SEmmanuel Vadot * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
4*2846c905SEmmanuel Vadot */
5*2846c905SEmmanuel Vadot
6*2846c905SEmmanuel Vadot/ {
7*2846c905SEmmanuel Vadot	thermal-zones {
8*2846c905SEmmanuel Vadot		pm8550ve-d-thermal {
9*2846c905SEmmanuel Vadot			polling-delay-passive = <100>;
10*2846c905SEmmanuel Vadot
11*2846c905SEmmanuel Vadot			thermal-sensors = <&pm8550ve_d_temp_alarm>;
12*2846c905SEmmanuel Vadot
13*2846c905SEmmanuel Vadot			trips {
14*2846c905SEmmanuel Vadot				trip0 {
15*2846c905SEmmanuel Vadot					temperature = <95000>;
16*2846c905SEmmanuel Vadot					hysteresis = <0>;
17*2846c905SEmmanuel Vadot					type = "passive";
18*2846c905SEmmanuel Vadot				};
19*2846c905SEmmanuel Vadot
20*2846c905SEmmanuel Vadot				trip1 {
21*2846c905SEmmanuel Vadot					temperature = <115000>;
22*2846c905SEmmanuel Vadot					hysteresis = <0>;
23*2846c905SEmmanuel Vadot					type = "hot";
24*2846c905SEmmanuel Vadot				};
25*2846c905SEmmanuel Vadot			};
26*2846c905SEmmanuel Vadot		};
27*2846c905SEmmanuel Vadot
28*2846c905SEmmanuel Vadot		pm8550ve-f-thermal {
29*2846c905SEmmanuel Vadot			polling-delay-passive = <100>;
30*2846c905SEmmanuel Vadot
31*2846c905SEmmanuel Vadot			thermal-sensors = <&pm8550ve_f_temp_alarm>;
32*2846c905SEmmanuel Vadot
33*2846c905SEmmanuel Vadot			trips {
34*2846c905SEmmanuel Vadot				trip0 {
35*2846c905SEmmanuel Vadot					temperature = <95000>;
36*2846c905SEmmanuel Vadot					hysteresis = <0>;
37*2846c905SEmmanuel Vadot					type = "passive";
38*2846c905SEmmanuel Vadot				};
39*2846c905SEmmanuel Vadot
40*2846c905SEmmanuel Vadot				trip1 {
41*2846c905SEmmanuel Vadot					temperature = <115000>;
42*2846c905SEmmanuel Vadot					hysteresis = <0>;
43*2846c905SEmmanuel Vadot					type = "hot";
44*2846c905SEmmanuel Vadot				};
45*2846c905SEmmanuel Vadot			};
46*2846c905SEmmanuel Vadot		};
47*2846c905SEmmanuel Vadot
48*2846c905SEmmanuel Vadot		pm8550ve-g-thermal {
49*2846c905SEmmanuel Vadot			polling-delay-passive = <100>;
50*2846c905SEmmanuel Vadot
51*2846c905SEmmanuel Vadot			thermal-sensors = <&pm8550ve_g_temp_alarm>;
52*2846c905SEmmanuel Vadot
53*2846c905SEmmanuel Vadot			trips {
54*2846c905SEmmanuel Vadot				trip0 {
55*2846c905SEmmanuel Vadot					temperature = <95000>;
56*2846c905SEmmanuel Vadot					hysteresis = <0>;
57*2846c905SEmmanuel Vadot					type = "passive";
58*2846c905SEmmanuel Vadot				};
59*2846c905SEmmanuel Vadot
60*2846c905SEmmanuel Vadot				trip1 {
61*2846c905SEmmanuel Vadot					temperature = <115000>;
62*2846c905SEmmanuel Vadot					hysteresis = <0>;
63*2846c905SEmmanuel Vadot					type = "hot";
64*2846c905SEmmanuel Vadot				};
65*2846c905SEmmanuel Vadot			};
66*2846c905SEmmanuel Vadot		};
67*2846c905SEmmanuel Vadot
68*2846c905SEmmanuel Vadot		pm8550vs-j-thermal {
69*2846c905SEmmanuel Vadot			polling-delay-passive = <100>;
70*2846c905SEmmanuel Vadot
71*2846c905SEmmanuel Vadot			thermal-sensors = <&pm8550vs_j_temp_alarm>;
72*2846c905SEmmanuel Vadot
73*2846c905SEmmanuel Vadot			trips {
74*2846c905SEmmanuel Vadot				trip0 {
75*2846c905SEmmanuel Vadot					temperature = <95000>;
76*2846c905SEmmanuel Vadot					hysteresis = <0>;
77*2846c905SEmmanuel Vadot					type = "passive";
78*2846c905SEmmanuel Vadot				};
79*2846c905SEmmanuel Vadot
80*2846c905SEmmanuel Vadot				trip1 {
81*2846c905SEmmanuel Vadot					temperature = <115000>;
82*2846c905SEmmanuel Vadot					hysteresis = <0>;
83*2846c905SEmmanuel Vadot					type = "hot";
84*2846c905SEmmanuel Vadot				};
85*2846c905SEmmanuel Vadot			};
86*2846c905SEmmanuel Vadot		};
87*2846c905SEmmanuel Vadot	};
88*2846c905SEmmanuel Vadot};
89*2846c905SEmmanuel Vadot
90*2846c905SEmmanuel Vadot&spmi_bus {
91*2846c905SEmmanuel Vadot	/* PM8550VE */
92*2846c905SEmmanuel Vadot	pm8550ve_d: pmic@3 {
93*2846c905SEmmanuel Vadot		compatible = "qcom,pm8550ve", "qcom,spmi-pmic";
94*2846c905SEmmanuel Vadot		reg = <0x3 SPMI_USID>;
95*2846c905SEmmanuel Vadot		#address-cells = <1>;
96*2846c905SEmmanuel Vadot		#size-cells = <0>;
97*2846c905SEmmanuel Vadot
98*2846c905SEmmanuel Vadot		pm8550ve_d_temp_alarm: temp-alarm@a00 {
99*2846c905SEmmanuel Vadot			compatible = "qcom,spmi-temp-alarm";
100*2846c905SEmmanuel Vadot			reg = <0xa00>;
101*2846c905SEmmanuel Vadot			interrupts = <0x3 0xa 0x0 IRQ_TYPE_EDGE_BOTH>;
102*2846c905SEmmanuel Vadot			#thermal-sensor-cells = <0>;
103*2846c905SEmmanuel Vadot		};
104*2846c905SEmmanuel Vadot
105*2846c905SEmmanuel Vadot		pm8550ve_d_gpios: gpio@8800 {
106*2846c905SEmmanuel Vadot			compatible = "qcom,pm8550ve-gpio", "qcom,spmi-gpio";
107*2846c905SEmmanuel Vadot			reg = <0x8800>;
108*2846c905SEmmanuel Vadot			gpio-controller;
109*2846c905SEmmanuel Vadot			gpio-ranges = <&pm8550ve_d_gpios 0 0 8>;
110*2846c905SEmmanuel Vadot			#gpio-cells = <2>;
111*2846c905SEmmanuel Vadot			interrupt-controller;
112*2846c905SEmmanuel Vadot			#interrupt-cells = <2>;
113*2846c905SEmmanuel Vadot		};
114*2846c905SEmmanuel Vadot	};
115*2846c905SEmmanuel Vadot
116*2846c905SEmmanuel Vadot	pm8550ve_f: pmic@5 {
117*2846c905SEmmanuel Vadot		compatible = "qcom,pm8550ve", "qcom,spmi-pmic";
118*2846c905SEmmanuel Vadot		reg = <0x5 SPMI_USID>;
119*2846c905SEmmanuel Vadot		#address-cells = <1>;
120*2846c905SEmmanuel Vadot		#size-cells = <0>;
121*2846c905SEmmanuel Vadot
122*2846c905SEmmanuel Vadot		pm8550ve_f_temp_alarm: temp-alarm@a00 {
123*2846c905SEmmanuel Vadot			compatible = "qcom,spmi-temp-alarm";
124*2846c905SEmmanuel Vadot			reg = <0xa00>;
125*2846c905SEmmanuel Vadot			interrupts = <0x5 0xa 0x0 IRQ_TYPE_EDGE_BOTH>;
126*2846c905SEmmanuel Vadot			#thermal-sensor-cells = <0>;
127*2846c905SEmmanuel Vadot		};
128*2846c905SEmmanuel Vadot
129*2846c905SEmmanuel Vadot		pm8550ve_f_gpios: gpio@8800 {
130*2846c905SEmmanuel Vadot			compatible = "qcom,pm8550ve-gpio", "qcom,spmi-gpio";
131*2846c905SEmmanuel Vadot			reg = <0x8800>;
132*2846c905SEmmanuel Vadot			gpio-controller;
133*2846c905SEmmanuel Vadot			gpio-ranges = <&pm8550ve_f_gpios 0 0 6>;
134*2846c905SEmmanuel Vadot			#gpio-cells = <2>;
135*2846c905SEmmanuel Vadot			interrupt-controller;
136*2846c905SEmmanuel Vadot			#interrupt-cells = <2>;
137*2846c905SEmmanuel Vadot		};
138*2846c905SEmmanuel Vadot	};
139*2846c905SEmmanuel Vadot
140*2846c905SEmmanuel Vadot	pm8550ve_g: pmic@6 {
141*2846c905SEmmanuel Vadot		compatible = "qcom,pm8550ve", "qcom,spmi-pmic";
142*2846c905SEmmanuel Vadot		reg = <0x6 SPMI_USID>;
143*2846c905SEmmanuel Vadot		#address-cells = <1>;
144*2846c905SEmmanuel Vadot		#size-cells = <0>;
145*2846c905SEmmanuel Vadot
146*2846c905SEmmanuel Vadot		pm8550ve_g_temp_alarm: temp-alarm@a00 {
147*2846c905SEmmanuel Vadot			compatible = "qcom,spmi-temp-alarm";
148*2846c905SEmmanuel Vadot			reg = <0xa00>;
149*2846c905SEmmanuel Vadot			interrupts = <0x6 0xa 0x0 IRQ_TYPE_EDGE_BOTH>;
150*2846c905SEmmanuel Vadot			#thermal-sensor-cells = <0>;
151*2846c905SEmmanuel Vadot		};
152*2846c905SEmmanuel Vadot
153*2846c905SEmmanuel Vadot		pm8550ve_g_gpios: gpio@8800 {
154*2846c905SEmmanuel Vadot			compatible = "qcom,pm8550ve-gpio", "qcom,spmi-gpio";
155*2846c905SEmmanuel Vadot			reg = <0x8800>;
156*2846c905SEmmanuel Vadot			gpio-controller;
157*2846c905SEmmanuel Vadot			gpio-ranges = <&pm8550ve_g_gpios 0 0 8>;
158*2846c905SEmmanuel Vadot			#gpio-cells = <2>;
159*2846c905SEmmanuel Vadot			interrupt-controller;
160*2846c905SEmmanuel Vadot			#interrupt-cells = <2>;
161*2846c905SEmmanuel Vadot		};
162*2846c905SEmmanuel Vadot	};
163*2846c905SEmmanuel Vadot
164*2846c905SEmmanuel Vadot	/* PM8550VS */
165*2846c905SEmmanuel Vadot	pm8550vs_j: pmic@9 {
166*2846c905SEmmanuel Vadot		compatible = "qcom,pm8550vs", "qcom,spmi-pmic";
167*2846c905SEmmanuel Vadot		reg = <0x9 SPMI_USID>;
168*2846c905SEmmanuel Vadot		#address-cells = <1>;
169*2846c905SEmmanuel Vadot		#size-cells = <0>;
170*2846c905SEmmanuel Vadot
171*2846c905SEmmanuel Vadot		pm8550vs_j_temp_alarm: temp-alarm@a00 {
172*2846c905SEmmanuel Vadot			compatible = "qcom,spmi-temp-alarm";
173*2846c905SEmmanuel Vadot			reg = <0xa00>;
174*2846c905SEmmanuel Vadot			interrupts = <0x9 0xa 0x0 IRQ_TYPE_EDGE_BOTH>;
175*2846c905SEmmanuel Vadot			#thermal-sensor-cells = <0>;
176*2846c905SEmmanuel Vadot		};
177*2846c905SEmmanuel Vadot
178*2846c905SEmmanuel Vadot		pm8550vs_j_gpios: gpio@8800 {
179*2846c905SEmmanuel Vadot			compatible = "qcom,pm8550vs-gpio", "qcom,spmi-gpio";
180*2846c905SEmmanuel Vadot			reg = <0x8800>;
181*2846c905SEmmanuel Vadot			gpio-controller;
182*2846c905SEmmanuel Vadot			gpio-ranges = <&pm8550vs_j_gpios 0 0 6>;
183*2846c905SEmmanuel Vadot			#gpio-cells = <2>;
184*2846c905SEmmanuel Vadot			interrupt-controller;
185*2846c905SEmmanuel Vadot			#interrupt-cells = <2>;
186*2846c905SEmmanuel Vadot		};
187*2846c905SEmmanuel Vadot	};
188*2846c905SEmmanuel Vadot};
189