1// SPDX-License-Identifier: BSD-3-Clause
2/*
3 * Copyright (c) 2022, Linaro Limited
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_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		};
30
31		pm8010-n-thermal {
32			polling-delay-passive = <100>;
33
34			thermal-sensors = <&pm8010_n_temp_alarm>;
35
36			trips {
37				trip0 {
38					temperature = <95000>;
39					hysteresis = <0>;
40					type = "passive";
41				};
42
43				trip1 {
44					temperature = <115000>;
45					hysteresis = <0>;
46					type = "hot";
47				};
48			};
49		};
50	};
51};
52
53
54&spmi_bus {
55	pm8010_m: pmic@c {
56		compatible = "qcom,pm8010", "qcom,spmi-pmic";
57		reg = <0xc SPMI_USID>;
58		#address-cells = <1>;
59		#size-cells = <0>;
60
61		pm8010_m_temp_alarm: temp-alarm@2400 {
62			compatible = "qcom,spmi-temp-alarm";
63			reg = <0x2400>;
64			interrupts = <0xc 0x24 0x0 IRQ_TYPE_EDGE_BOTH>;
65			#thermal-sensor-cells = <0>;
66		};
67	};
68
69	pm8010_n: pmic@d {
70		compatible = "qcom,pm8010", "qcom,spmi-pmic";
71		reg = <0xd SPMI_USID>;
72		#address-cells = <1>;
73		#size-cells = <0>;
74
75		pm8010_n_temp_alarm: temp-alarm@2400 {
76			compatible = "qcom,spmi-temp-alarm";
77			reg = <0x2400>;
78			interrupts = <0xd 0x24 0x0 IRQ_TYPE_EDGE_BOTH>;
79			#thermal-sensor-cells = <0>;
80		};
81	};
82};
83