xref: /linux/scripts/dtc/include-prefixes/arm64/qcom/pm8010-kaanapali.dtsi (revision 0fc8f6200d2313278fbf4539bbab74677c685531)
1// SPDX-License-Identifier: BSD-3-Clause
2/*
3 * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
4 */
5
6#include <dt-bindings/interrupt-controller/irq.h>
7#include <dt-bindings/spmi/spmi.h>
8
9/ {
10	thermal-zones {
11		pm8010-m-thermal {
12			polling-delay-passive = <100>;
13
14			thermal-sensors = <&pm8010_m_e1_temp_alarm>;
15
16			trips {
17				trip0 {
18					temperature = <95000>;
19					hysteresis = <0>;
20					type = "passive";
21				};
22
23				trip1 {
24					temperature = <115000>;
25					hysteresis = <0>;
26					type = "hot";
27				};
28
29				trip2 {
30					temperature = <145000>;
31					hysteresis = <0>;
32					type = "critical";
33				};
34			};
35		};
36
37		pm8010-n-thermal {
38			polling-delay-passive = <100>;
39
40			thermal-sensors = <&pm8010_n_e1_temp_alarm>;
41
42			trips {
43				trip0 {
44					temperature = <95000>;
45					hysteresis = <0>;
46					type = "passive";
47				};
48
49				trip1 {
50					temperature = <115000>;
51					hysteresis = <0>;
52					type = "hot";
53				};
54
55				trip2 {
56					temperature = <145000>;
57					hysteresis = <0>;
58					type = "critical";
59				};
60			};
61		};
62	};
63};
64
65&spmi_bus1 {
66	pm8010_m_e1: pmic@c {
67		compatible = "qcom,pm8010", "qcom,spmi-pmic";
68		reg = <0xc SPMI_USID>;
69		#address-cells = <1>;
70		#size-cells = <0>;
71
72		pm8010_m_e1_temp_alarm: temp-alarm@2400 {
73			compatible = "qcom,spmi-temp-alarm";
74			reg = <0x2400>;
75			interrupts = <0xc 0x24 0x0 IRQ_TYPE_EDGE_BOTH>;
76			#thermal-sensor-cells = <0>;
77		};
78	};
79
80	pm8010_n_e1: pmic@d {
81		compatible = "qcom,pm8010", "qcom,spmi-pmic";
82		reg = <0xd SPMI_USID>;
83		#address-cells = <1>;
84		#size-cells = <0>;
85
86		pm8010_n_e1_temp_alarm: temp-alarm@2400 {
87			compatible = "qcom,spmi-temp-alarm";
88			reg = <0x2400>;
89			interrupts = <0xd 0x24 0x0 IRQ_TYPE_EDGE_BOTH>;
90			#thermal-sensor-cells = <0>;
91		};
92	};
93};
94