blob: 93ecaa02f65a55e7bdac43814fccbfca19636448 (
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
|
/* 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>
/ {
temp_ambient: ambient {
compatible = "cros-ec,temp-sensor-thermistor";
thermistor = <&thermistor_3V0_22K6_47K_4050B>;
adc = <&adc_ambient>;
};
temp_ddr: ddr {
compatible = "cros-ec,temp-sensor-thermistor";
thermistor = <&thermistor_3V0_22K6_47K_4050B>;
adc = <&adc_ddr>;
};
temp_skin: skin {
compatible = "cros-ec,temp-sensor-thermistor";
thermistor = <&thermistor_3V0_22K6_47K_4050B>;
adc = <&adc_skin>;
};
temp_vr: vr {
compatible = "cros-ec,temp-sensor-thermistor";
thermistor = <&thermistor_3V0_22K6_47K_4050B>;
adc = <&adc_vr>;
};
named-temp-sensors {
compatible = "cros-ec,temp-sensors";
ambient {
temp_fan_off = <15>;
temp_fan_max = <50>;
temp_host_high = <75>;
temp_host_halt = <80>;
temp_host_release_high = <65>;
sensor = <&temp_ambient>;
};
/*
* TDB: battery temp read api is not using thermistor and
* zephyr shim layer doesn't support to configure custom read
* function.
*
* battery {
* compatible = "cros-ec,temp-sensor-thermistor",
* "cros-ec,temp-sensor";
* thermistor = < >;
* enum-name = "";
* temp_fan_off = <15>;
* temp_fan_max = <50>;
* temp_host_high = <75>;
* temp_host_halt = <80>;
* temp_host_release_high = <65>;
* adc = <&adc_battery>;
* };
*/
ddr {
temp_fan_off = <15>;
temp_fan_max = <50>;
temp_host_high = <75>;
temp_host_halt = <80>;
temp_host_release_high = <65>;
sensor = <&temp_ddr>;
};
skin {
temp_fan_off = <15>;
temp_fan_max = <50>;
temp_host_high = <75>;
temp_host_halt = <80>;
temp_host_release_high = <65>;
sensor = <&temp_skin>;
};
vr {
temp_fan_off = <15>;
temp_fan_max = <50>;
temp_host_high = <75>;
temp_host_halt = <80>;
temp_host_release_high = <65>;
sensor = <&temp_vr>;
};
};
};
&thermistor_3V0_22K6_47K_4050B {
status = "okay";
};
|