xref: /openbmc/linux/arch/arm64/boot/dts/qcom/pm8010.dtsi (revision 47aab533)
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			polling-delay = <0>;
14
15			thermal-sensors = <&pm8010_m_temp_alarm>;
16
17			trips {
18				trip0 {
19					temperature = <95000>;
20					hysteresis = <0>;
21					type = "passive";
22				};
23
24				trip1 {
25					temperature = <115000>;
26					hysteresis = <0>;
27					type = "hot";
28				};
29			};
30		};
31
32		pm8010-n-thermal {
33			polling-delay-passive = <100>;
34			polling-delay = <0>;
35
36			thermal-sensors = <&pm8010_n_temp_alarm>;
37
38			trips {
39				trip0 {
40					temperature = <95000>;
41					hysteresis = <0>;
42					type = "passive";
43				};
44
45				trip1 {
46					temperature = <115000>;
47					hysteresis = <0>;
48					type = "hot";
49				};
50			};
51		};
52	};
53};
54
55
56&spmi_bus {
57	pm8010_m: pmic@c {
58		compatible = "qcom,pm8010", "qcom,spmi-pmic";
59		reg = <0xc SPMI_USID>;
60		#address-cells = <1>;
61		#size-cells = <0>;
62
63		pm8010_m_temp_alarm: temp-alarm@2400 {
64			compatible = "qcom,spmi-temp-alarm";
65			reg = <0x2400>;
66			interrupts = <0xc 0x24 0x0 IRQ_TYPE_EDGE_BOTH>;
67			#thermal-sensor-cells = <0>;
68		};
69	};
70
71	pm8010_n: pmic@d {
72		compatible = "qcom,pm8010", "qcom,spmi-pmic";
73		reg = <0xd SPMI_USID>;
74		#address-cells = <1>;
75		#size-cells = <0>;
76
77		pm8010_n_temp_alarm: temp-alarm@2400 {
78			compatible = "qcom,spmi-temp-alarm";
79			reg = <0x2400>;
80			interrupts = <0xd 0x24 0x0 IRQ_TYPE_EDGE_BOTH>;
81			#thermal-sensor-cells = <0>;
82		};
83	};
84};
85