Linux Audio

Check our new training course

Open-source upstreaming

Need help get the support for your hardware in upstream Linux?
Loading...
v6.13.7
 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};
v6.8
 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};