summaryrefslogtreecommitdiff
path: root/zephyr/boards/arm
diff options
context:
space:
mode:
authorAaron Massey <aaronmassey@google.com>2021-09-24 11:22:12 -0600
committerCommit Bot <commit-bot@chromium.org>2021-09-24 19:47:45 +0000
commit465c9dc87a353f48b969da0631c4fd2b6df32a4f (patch)
treeeae7fa5a0f92cb81af315eb7912267167ed078e1 /zephyr/boards/arm
parentfc2b67a878f6c57c02569253032fc5d09f6c581e (diff)
downloadchrome-ec-465c9dc87a353f48b969da0631c4fd2b6df32a4f.tar.gz
zephyr: drivers: thermistors are device tree nodes
Thermistor drivers now query the device tree for configuration. Thermistor tests have been updated to be parameterized on all thermistors enabled in the device tree. BRANCH=none BUG=b:184374937 TEST= 1) zmake testall 2) make runhosttests Cq-Depend: chromium:3161332 Signed-off-by: Aaron Massey <aaronmassey@chromium.org> Change-Id: Ic5330cd5c33e79e192428ca857651de9a225856e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3133812 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Tested-by: Aaron Massey <aaronmassey@google.com> Commit-Queue: Aaron Massey <aaronmassey@google.com>
Diffstat (limited to 'zephyr/boards/arm')
-rw-r--r--zephyr/boards/arm/volteer/volteer.dts17
1 files changed, 13 insertions, 4 deletions
diff --git a/zephyr/boards/arm/volteer/volteer.dts b/zephyr/boards/arm/volteer/volteer.dts
index 3c32feaf20..d837f8ab55 100644
--- a/zephyr/boards/arm/volteer/volteer.dts
+++ b/zephyr/boards/arm/volteer/volteer.dts
@@ -11,6 +11,7 @@
#include <dt-bindings/charger/intersil_isl9241.h>
#include <dt-bindings/gpio_defines.h>
#include <nuvoton/npcx7m7fc.dtsi>
+#include <cros/thermistor/thermistor.dtsi>
/ {
model = "Google Volteer EC";
@@ -124,7 +125,8 @@
named-temp-sensors {
charger {
- compatible = "temp-3v3-30k9-47k-4050b";
+ compatible = "cros-ec,temp-sensor";
+ thermistor = <&thermistor_3V3_30K9_47K_4050B>;
label = "TEMP_SENSOR_CHARGER";
enum-name = "TEMP_SENSOR_CHARGER";
temp_fan_off = <40>;
@@ -135,7 +137,8 @@
adc = <&adc_charger>;
};
pp3300_regulator {
- compatible = "temp-3v3-30k9-47k-4050b";
+ compatible = "cros-ec,temp-sensor";
+ thermistor = <&thermistor_3V3_30K9_47K_4050B>;
label = "TEMP_SENSOR_PP3300_REGULATOR";
enum-name = "TEMP_SENSOR_PP3300_REGULATOR";
temp_fan_off = <40>;
@@ -146,7 +149,8 @@
adc = <&adc_pp3300_regulator>;
};
ddr_soc {
- compatible = "temp-3v3-30k9-47k-4050b";
+ compatible = "cros-ec,temp-sensor";
+ thermistor = <&thermistor_3V3_30K9_47K_4050B>;
label = "TEMP_SENSOR_DDR_SOC";
enum-name = "TEMP_SENSOR_DDR_SOC";
temp_fan_off = <35>;
@@ -157,7 +161,8 @@
adc = <&adc_ddr_soc>;
};
fan {
- compatible = "temp-3v3-30k9-47k-4050b";
+ compatible = "cros-ec,temp-sensor";
+ thermistor = <&thermistor_3V3_30K9_47K_4050B>;
label = "TEMP_SENSOR_FAN";
enum-name = "TEMP_SENSOR_FAN";
temp_fan_off = <35>;
@@ -311,3 +316,7 @@
&psl_in4 {
flag = <NPCX_PSL_RISING_EDGE>;
};
+
+&thermistor_3V3_30K9_47K_4050B {
+ status = "okay";
+};