blob: 721c48e1b5e6c56ea4c5f6646f07f50b7490626b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
|
// SPDX-License-Identifier: GPL-2.0
/*
* Google GS101 Passport-specific thermal device tree source
*
* Copyright (c) 2021 Google, LLC
* https://www.google.com
*/
#include <dt-bindings/thermal/thermal.h>
&acpm_mfd_bus1 {
s2mpg11mfd@00 {
gs101_tm1: gs101_spmic_tm1 {
compatible = "google,gs101-spmic-thermal";
#thermal-sensor-cells = <1>;
adc_chan_en = /bits/ 8 <0xff>;
stats_en = /bits/ 8 <0x43>;
};
};
};
/* Thermal Zones */
&thermal_zones {
neutral_therm {
polling-delay-passive = <0>;
polling-delay = <0>;
thermal-governor = "user_space";
thermal-sensors = <&gs101_tm1 0>;
trips {
trip_config0: trip-config0 {
temperature = <56000>;
hysteresis = <1000>;
type = "passive";
};
backup_shutdown_sw: backup-shutdown-sw {
temperature = <57000>;
hysteresis = <1000>;
type = "critical";
};
backup_shutdown_hw: backup-shutdown-hw {
temperature = <59000>;
hysteresis = <1000>;
type = "hot";
};
};
};
quiet_therm {
polling-delay-passive = <0>;
polling-delay = <0>;
thermal-governor = "user_space";
thermal-sensors = <&gs101_tm1 1>;
trips {
trip_config1: trip-config1 {
temperature = <125000>;
hysteresis = <1000>;
type = "passive";
};
};
};
charger_skin_therm {
polling-delay-passive = <0>;
polling-delay = <0>;
thermal-governor = "user_space";
thermal-sensors = <&gs101_tm1 2>;
trips {
trip_config2: trip-config2 {
temperature = <125000>;
hysteresis = <1000>;
type = "passive";
};
};
};
skin_therm1 {
polling-delay-passive = <0>;
polling-delay = <0>;
thermal-governor = "user_space";
thermal-sensors = <&gs101_tm1 3>;
trips {
trip_config3: trip-config3 {
temperature = <125000>;
hysteresis = <1000>;
type = "passive";
};
};
};
usb_pwr_therm2 {
polling-delay-passive = <0>;
polling-delay = <0>;
thermal-governor = "user_space";
thermal-sensors = <&gs101_tm1 4>;
trips {
trip_config4: trip-config4 {
temperature = <125000>;
hysteresis = <1000>;
type = "passive";
};
};
};
disp_therm {
polling-delay-passive = <0>;
polling-delay = <0>;
thermal-governor = "step_wise";
thermal-sensors = <&gs101_tm1 5>;
trips {
trip_config5: trip-config5 {
temperature = <125000>;
hysteresis = <1000>;
type = "passive";
};
};
};
skin_therm2 {
polling-delay-passive = <0>;
polling-delay = <0>;
thermal-governor = "user_space";
thermal-sensors = <&gs101_tm1 6>;
trips {
trip_config6: trip-config6 {
temperature = <125000>;
hysteresis = <1000>;
type = "passive";
};
};
};
gnss_tcxo_therm {
polling-delay-passive = <0>;
polling-delay = <0>;
thermal-governor = "user_space";
thermal-sensors = <&gs101_tm1 7>;
trips {
trip_config7: trip-config7 {
temperature = <125000>;
hysteresis = <1000>;
type = "passive";
};
};
};
};
|