blob: f4747b96a543fb51ede32b6a21a21597f61efdb3 (
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
|
/* Copyright 2022 The ChromiumOS Authors
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include <cros/thermistor/thermistor.dtsi>
/ {
named-adc-channels {
/delete-node/ temp_sensor_1;
/delete-node/ temp_sensor_2;
/delete-node/ temp_sensor_3;
/delete-node/ temp_sensor_4;
adc_ddr_soc: ddr_soc {
enum-name = "ADC_TEMP_SENSOR_1";
io-channels = <&adc0 0>;
};
adc_vcc: vcc {
enum-name = "ADC_TEMP_SENSOR_2";
io-channels = <&adc0 1>;
};
adc_ambient: ambient {
enum-name = "ADC_TEMP_SENSOR_3";
io-channels = <&adc0 8>;
};
adc_charger: charger {
enum-name = "ADC_TEMP_SENSOR_4";
io-channels = <&adc0 7>;
};
adc_hw_shutdown: hw_shutdown {
enum-name = "ADC_TEMP_SENSOR_5";
io-channels = <&adc0 3>;
};
adc_typec: typec {
enum-name = "ADC_TEMP_SENSOR_6";
io-channels = <&adc0 11>;
};
};
temp_ddr_soc: ddr_soc {
compatible = "cros-ec,temp-sensor-thermistor";
thermistor = <&thermistor_3V3_30K9_47K_4050B>;
adc = <&adc_ddr_soc>;
};
temp_ambient: ambient {
compatible = "cros-ec,temp-sensor-thermistor";
thermistor = <&thermistor_3V3_30K9_47K_4050B>;
adc = <&adc_ambient>;
};
temp_charger: charger {
compatible = "cros-ec,temp-sensor-thermistor";
thermistor = <&thermistor_3V3_30K9_47K_4050B>;
adc = <&adc_charger>;
};
temp_vcc: vcc {
compatible = "cros-ec,temp-sensor-thermistor";
thermistor = <&thermistor_3V3_30K9_47K_4050B>;
adc = <&adc_vcc>;
};
temp_hw_shutdown: hw_shutdown {
compatible = "cros-ec,temp-sensor-thermistor";
thermistor = <&thermistor_3V3_30K9_47K_4050B>;
adc = <&adc_hw_shutdown>;
};
temp_typec: typec {
compatible = "cros-ec,temp-sensor-thermistor";
thermistor = <&thermistor_3V3_30K9_47K_4050B>;
adc = <&adc_typec>;
};
named-temp-sensors {
compatible = "cros-ec,temp-sensors";
ddr_soc {
temp_fan_off = <35>;
temp_fan_max = <60>;
temp_host_high = <90>;
temp_host_halt = <95>;
temp_host_release_high = <85>;
sensor = <&temp_ddr_soc>;
};
ambient {
temp_fan_off = <30>;
temp_fan_max = <50>;
temp_host_high = <65>;
temp_host_halt = <75>;
temp_host_release_high = <60>;
sensor = <&temp_ambient>;
};
charger {
temp_fan_off = <35>;
temp_fan_max = <85>;
temp_host_high = <100>;
temp_host_halt = <110>;
temp_host_release_high = <95>;
sensor = <&temp_charger>;
};
};
};
&thermistor_3V3_30K9_47K_4050B {
status = "okay";
};
|