xref: /freebsd/sys/contrib/device-tree/src/arm64/qcom/pmcx0102.dtsi (revision 69ed3df4f588860308677cda76cbcce1f19a54c9)
1*69ed3df4SEmmanuel Vadot// SPDX-License-Identifier: BSD-3-Clause
2*69ed3df4SEmmanuel Vadot/*
3*69ed3df4SEmmanuel Vadot * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
4*69ed3df4SEmmanuel Vadot */
5*69ed3df4SEmmanuel Vadot
6*69ed3df4SEmmanuel Vadot#include <dt-bindings/interrupt-controller/irq.h>
7*69ed3df4SEmmanuel Vadot#include <dt-bindings/spmi/spmi.h>
8*69ed3df4SEmmanuel Vadot
9*69ed3df4SEmmanuel Vadot/ {
10*69ed3df4SEmmanuel Vadot	thermal-zones {
11*69ed3df4SEmmanuel Vadot		pmcx0102-c0-thermal {
12*69ed3df4SEmmanuel Vadot			polling-delay-passive = <100>;
13*69ed3df4SEmmanuel Vadot			thermal-sensors = <&pmcx0102_c_e0_temp_alarm>;
14*69ed3df4SEmmanuel Vadot
15*69ed3df4SEmmanuel Vadot			trips {
16*69ed3df4SEmmanuel Vadot				trip0 {
17*69ed3df4SEmmanuel Vadot					temperature = <95000>;
18*69ed3df4SEmmanuel Vadot					hysteresis = <0>;
19*69ed3df4SEmmanuel Vadot					type = "passive";
20*69ed3df4SEmmanuel Vadot				};
21*69ed3df4SEmmanuel Vadot
22*69ed3df4SEmmanuel Vadot				trip1 {
23*69ed3df4SEmmanuel Vadot					temperature = <115000>;
24*69ed3df4SEmmanuel Vadot					hysteresis = <0>;
25*69ed3df4SEmmanuel Vadot					type = "critical";
26*69ed3df4SEmmanuel Vadot				};
27*69ed3df4SEmmanuel Vadot			};
28*69ed3df4SEmmanuel Vadot		};
29*69ed3df4SEmmanuel Vadot
30*69ed3df4SEmmanuel Vadot		pmcx0102-c1-thermal {
31*69ed3df4SEmmanuel Vadot			polling-delay-passive = <100>;
32*69ed3df4SEmmanuel Vadot			thermal-sensors = <&pmcx0102_c_e1_temp_alarm>;
33*69ed3df4SEmmanuel Vadot
34*69ed3df4SEmmanuel Vadot			trips {
35*69ed3df4SEmmanuel Vadot				trip0 {
36*69ed3df4SEmmanuel Vadot					temperature = <95000>;
37*69ed3df4SEmmanuel Vadot					hysteresis = <0>;
38*69ed3df4SEmmanuel Vadot					type = "passive";
39*69ed3df4SEmmanuel Vadot				};
40*69ed3df4SEmmanuel Vadot
41*69ed3df4SEmmanuel Vadot				trip1 {
42*69ed3df4SEmmanuel Vadot					temperature = <115000>;
43*69ed3df4SEmmanuel Vadot					hysteresis = <0>;
44*69ed3df4SEmmanuel Vadot					type = "critical";
45*69ed3df4SEmmanuel Vadot				};
46*69ed3df4SEmmanuel Vadot			};
47*69ed3df4SEmmanuel Vadot		};
48*69ed3df4SEmmanuel Vadot
49*69ed3df4SEmmanuel Vadot		pmcx0102_d0_thermal: pmcx0102-d0-thermal {
50*69ed3df4SEmmanuel Vadot			polling-delay-passive = <100>;
51*69ed3df4SEmmanuel Vadot			thermal-sensors = <&pmcx0102_d_e0_temp_alarm>;
52*69ed3df4SEmmanuel Vadot
53*69ed3df4SEmmanuel Vadot			trips {
54*69ed3df4SEmmanuel Vadot				trip0 {
55*69ed3df4SEmmanuel Vadot					temperature = <95000>;
56*69ed3df4SEmmanuel Vadot					hysteresis = <0>;
57*69ed3df4SEmmanuel Vadot					type = "passive";
58*69ed3df4SEmmanuel Vadot				};
59*69ed3df4SEmmanuel Vadot
60*69ed3df4SEmmanuel Vadot				trip1 {
61*69ed3df4SEmmanuel Vadot					temperature = <115000>;
62*69ed3df4SEmmanuel Vadot					hysteresis = <0>;
63*69ed3df4SEmmanuel Vadot					type = "critical";
64*69ed3df4SEmmanuel Vadot				};
65*69ed3df4SEmmanuel Vadot			};
66*69ed3df4SEmmanuel Vadot		};
67*69ed3df4SEmmanuel Vadot
68*69ed3df4SEmmanuel Vadot		pmcx0102-d1-thermal {
69*69ed3df4SEmmanuel Vadot			polling-delay-passive = <100>;
70*69ed3df4SEmmanuel Vadot			thermal-sensors = <&pmcx0102_d_e1_temp_alarm>;
71*69ed3df4SEmmanuel Vadot
72*69ed3df4SEmmanuel Vadot			trips {
73*69ed3df4SEmmanuel Vadot				trip0 {
74*69ed3df4SEmmanuel Vadot					temperature = <95000>;
75*69ed3df4SEmmanuel Vadot					hysteresis = <0>;
76*69ed3df4SEmmanuel Vadot					type = "passive";
77*69ed3df4SEmmanuel Vadot				};
78*69ed3df4SEmmanuel Vadot
79*69ed3df4SEmmanuel Vadot				trip1 {
80*69ed3df4SEmmanuel Vadot					temperature = <115000>;
81*69ed3df4SEmmanuel Vadot					hysteresis = <0>;
82*69ed3df4SEmmanuel Vadot					type = "critical";
83*69ed3df4SEmmanuel Vadot				};
84*69ed3df4SEmmanuel Vadot			};
85*69ed3df4SEmmanuel Vadot		};
86*69ed3df4SEmmanuel Vadot	};
87*69ed3df4SEmmanuel Vadot};
88*69ed3df4SEmmanuel Vadot
89*69ed3df4SEmmanuel Vadot&spmi_bus0 {
90*69ed3df4SEmmanuel Vadot	pmcx0102_c_e0: pmic@2 {
91*69ed3df4SEmmanuel Vadot		compatible = "qcom,pmcx0102", "qcom,spmi-pmic";
92*69ed3df4SEmmanuel Vadot		reg = <0x2 SPMI_USID>;
93*69ed3df4SEmmanuel Vadot		#address-cells = <1>;
94*69ed3df4SEmmanuel Vadot		#size-cells = <0>;
95*69ed3df4SEmmanuel Vadot
96*69ed3df4SEmmanuel Vadot		pmcx0102_c_e0_temp_alarm: temp-alarm@a00 {
97*69ed3df4SEmmanuel Vadot			compatible = "qcom,spmi-temp-alarm";
98*69ed3df4SEmmanuel Vadot			reg = <0xa00>;
99*69ed3df4SEmmanuel Vadot			interrupts = <0x2 0xa 0x0 IRQ_TYPE_EDGE_BOTH>;
100*69ed3df4SEmmanuel Vadot			#thermal-sensor-cells = <0>;
101*69ed3df4SEmmanuel Vadot		};
102*69ed3df4SEmmanuel Vadot
103*69ed3df4SEmmanuel Vadot		pmcx0102_c_e0_gpios: gpio@8800 {
104*69ed3df4SEmmanuel Vadot			compatible = "qcom,pmcx0102-gpio", "qcom,spmi-gpio";
105*69ed3df4SEmmanuel Vadot			reg = <0x8800>;
106*69ed3df4SEmmanuel Vadot			gpio-controller;
107*69ed3df4SEmmanuel Vadot			gpio-ranges = <&pmcx0102_c_e0_gpios 0 0 14>;
108*69ed3df4SEmmanuel Vadot			#gpio-cells = <2>;
109*69ed3df4SEmmanuel Vadot			interrupt-controller;
110*69ed3df4SEmmanuel Vadot			#interrupt-cells = <2>;
111*69ed3df4SEmmanuel Vadot		};
112*69ed3df4SEmmanuel Vadot	};
113*69ed3df4SEmmanuel Vadot
114*69ed3df4SEmmanuel Vadot	pmcx0102_d_e0: pmic@3 {
115*69ed3df4SEmmanuel Vadot		compatible = "qcom,pmcx0102", "qcom,spmi-pmic";
116*69ed3df4SEmmanuel Vadot		reg = <0x3 SPMI_USID>;
117*69ed3df4SEmmanuel Vadot		#address-cells = <1>;
118*69ed3df4SEmmanuel Vadot		#size-cells = <0>;
119*69ed3df4SEmmanuel Vadot
120*69ed3df4SEmmanuel Vadot		pmcx0102_d_e0_temp_alarm: temp-alarm@a00 {
121*69ed3df4SEmmanuel Vadot			compatible = "qcom,spmi-temp-alarm";
122*69ed3df4SEmmanuel Vadot			reg = <0xa00>;
123*69ed3df4SEmmanuel Vadot			interrupts = <0x3 0xa 0x0 IRQ_TYPE_EDGE_BOTH>;
124*69ed3df4SEmmanuel Vadot			#thermal-sensor-cells = <0>;
125*69ed3df4SEmmanuel Vadot		};
126*69ed3df4SEmmanuel Vadot
127*69ed3df4SEmmanuel Vadot		pmcx0102_d_e0_gpios: gpio@8800 {
128*69ed3df4SEmmanuel Vadot			compatible = "qcom,pmcx0102-gpio", "qcom,spmi-gpio";
129*69ed3df4SEmmanuel Vadot			reg = <0x8800>;
130*69ed3df4SEmmanuel Vadot			gpio-controller;
131*69ed3df4SEmmanuel Vadot			gpio-ranges = <&pmcx0102_d_e0_gpios 0 0 14>;
132*69ed3df4SEmmanuel Vadot			#gpio-cells = <2>;
133*69ed3df4SEmmanuel Vadot			interrupt-controller;
134*69ed3df4SEmmanuel Vadot			#interrupt-cells = <2>;
135*69ed3df4SEmmanuel Vadot		};
136*69ed3df4SEmmanuel Vadot	};
137*69ed3df4SEmmanuel Vadot};
138*69ed3df4SEmmanuel Vadot
139*69ed3df4SEmmanuel Vadot&spmi_bus1 {
140*69ed3df4SEmmanuel Vadot	pmcx0102_c_e1: pmic@2 {
141*69ed3df4SEmmanuel Vadot		compatible = "qcom,pmcx0102", "qcom,spmi-pmic";
142*69ed3df4SEmmanuel Vadot		reg = <0x2 SPMI_USID>;
143*69ed3df4SEmmanuel Vadot		#address-cells = <1>;
144*69ed3df4SEmmanuel Vadot		#size-cells = <0>;
145*69ed3df4SEmmanuel Vadot
146*69ed3df4SEmmanuel Vadot		pmcx0102_c_e1_temp_alarm: temp-alarm@a00 {
147*69ed3df4SEmmanuel Vadot			compatible = "qcom,spmi-temp-alarm";
148*69ed3df4SEmmanuel Vadot			reg = <0xa00>;
149*69ed3df4SEmmanuel Vadot			interrupts = <0x2 0xa 0x0 IRQ_TYPE_EDGE_BOTH>;
150*69ed3df4SEmmanuel Vadot			#thermal-sensor-cells = <0>;
151*69ed3df4SEmmanuel Vadot		};
152*69ed3df4SEmmanuel Vadot
153*69ed3df4SEmmanuel Vadot		pmcx0102_c_e1_gpios: gpio@8800 {
154*69ed3df4SEmmanuel Vadot			compatible = "qcom,pmcx0102-gpio", "qcom,spmi-gpio";
155*69ed3df4SEmmanuel Vadot			reg = <0x8800>;
156*69ed3df4SEmmanuel Vadot			gpio-controller;
157*69ed3df4SEmmanuel Vadot			gpio-ranges = <&pmcx0102_c_e1_gpios 0 0 14>;
158*69ed3df4SEmmanuel Vadot			#gpio-cells = <2>;
159*69ed3df4SEmmanuel Vadot			interrupt-controller;
160*69ed3df4SEmmanuel Vadot			#interrupt-cells = <2>;
161*69ed3df4SEmmanuel Vadot		};
162*69ed3df4SEmmanuel Vadot	};
163*69ed3df4SEmmanuel Vadot
164*69ed3df4SEmmanuel Vadot	pmcx0102_d_e1: pmic@3 {
165*69ed3df4SEmmanuel Vadot		compatible = "qcom,pmcx0102", "qcom,spmi-pmic";
166*69ed3df4SEmmanuel Vadot		reg = <0x3 SPMI_USID>;
167*69ed3df4SEmmanuel Vadot		#address-cells = <1>;
168*69ed3df4SEmmanuel Vadot		#size-cells = <0>;
169*69ed3df4SEmmanuel Vadot
170*69ed3df4SEmmanuel Vadot		pmcx0102_d_e1_temp_alarm: temp-alarm@a00 {
171*69ed3df4SEmmanuel Vadot			compatible = "qcom,spmi-temp-alarm";
172*69ed3df4SEmmanuel Vadot			reg = <0xa00>;
173*69ed3df4SEmmanuel Vadot			interrupts = <0x3 0xa 0x0 IRQ_TYPE_EDGE_BOTH>;
174*69ed3df4SEmmanuel Vadot			#thermal-sensor-cells = <0>;
175*69ed3df4SEmmanuel Vadot		};
176*69ed3df4SEmmanuel Vadot
177*69ed3df4SEmmanuel Vadot		pmcx0102_d_e1_gpios: gpio@8800 {
178*69ed3df4SEmmanuel Vadot			compatible = "qcom,pmcx0102-gpio", "qcom,spmi-gpio";
179*69ed3df4SEmmanuel Vadot			reg = <0x8800>;
180*69ed3df4SEmmanuel Vadot			gpio-controller;
181*69ed3df4SEmmanuel Vadot			gpio-ranges = <&pmcx0102_d_e1_gpios 0 0 14>;
182*69ed3df4SEmmanuel Vadot			#gpio-cells = <2>;
183*69ed3df4SEmmanuel Vadot			interrupt-controller;
184*69ed3df4SEmmanuel Vadot			#interrupt-cells = <2>;
185*69ed3df4SEmmanuel Vadot		};
186*69ed3df4SEmmanuel Vadot	};
187*69ed3df4SEmmanuel Vadot};
188