blob: 28e98adf6414476aef9c1092919ce686b054c3ca (
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
|
/* 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>
/ {
adc0: adc {
compatible = "zephyr,adc-emul";
nchannels = <1>;
ref-internal-mv = <3300>;
#io-channel-cells = <1>;
status = "okay";
};
named-adc-channels {
compatible = "named-adc-channels";
adc_charger: charger {
enum-name = "ADC_TEMP_SENSOR_CHARGER";
io-channels = <&adc0 0>;
};
};
name_temp_charger: charger {
compatible = "cros-ec,temp-sensor-thermistor";
thermistor = <&thermistor_rt9490>;
adc = <&adc_charger>;
};
named-temp-sensors {
compatible = "cros-ec,temp-sensors";
temp_charger: charger {
status = "okay";
sensor = <&name_temp_charger>;
};
};
};
|