diff options
author | Andrew McRae <amcrae@google.com> | 2021-12-07 14:22:57 +1100 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-12-07 22:50:46 +0000 |
commit | bbbeff568e9fbe535808217988a0f3d1ca96441a (patch) | |
tree | a2f38f2eae0669a38b0c31940066eee4e6062eaf | |
parent | cd70a21773c7aee45fdb152c1da2830670aa25f6 (diff) | |
download | chrome-ec-bbbeff568e9fbe535808217988a0f3d1ca96441a.tar.gz |
nissa: Add temperature sensor config
Add ADC temperature sensor config to Nivviks
BUG=b:209515631
TEST=zmake configure -b nivviks
BRANCH=none
Signed-off-by: Andrew McRae <amcrae@google.com>
Change-Id: I04c9f6dfcb74abeb237fbe6aa2e16c9e569d24d1
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3319622
Reviewed-by: Wai-Hong Tam <waihong@google.com>
-rw-r--r-- | zephyr/projects/nissa/adc_nivviks.dts | 32 | ||||
-rw-r--r-- | zephyr/projects/nissa/prj_nivviks.conf | 2 |
2 files changed, 33 insertions, 1 deletions
diff --git a/zephyr/projects/nissa/adc_nivviks.dts b/zephyr/projects/nissa/adc_nivviks.dts index b53e7b444d..563a50b22e 100644 --- a/zephyr/projects/nissa/adc_nivviks.dts +++ b/zephyr/projects/nissa/adc_nivviks.dts @@ -3,6 +3,8 @@ * found in the LICENSE file. */ +#include <cros/thermistor/thermistor.dtsi> + / { named-adc-channels { compatible = "named-adc-channels"; @@ -19,8 +21,38 @@ }; }; + named-temp-sensors { + memory { + compatible = "cros-ec,temp-sensor"; + thermistor = <&thermistor_3V3_51K1_47K_4050B>; + label = "DDR and SOC"; + enum-name = "TEMP_SENSOR_1"; + temp_fan_off = <35>; + temp_fan_max = <60>; + temp_host_high = <85>; + temp_host_halt = <90>; + temp_host_release_high = <80>; + adc = <&adc_temp_1>; + }; + chassis { + compatible = "cros-ec,temp-sensor"; + thermistor = <&thermistor_3V3_51K1_47K_4050B>; + label = "Ambient"; + enum-name = "TEMP_SENSOR_2"; + temp_fan_off = <35>; + temp_fan_max = <60>; + temp_host_high = <85>; + temp_host_halt = <90>; + temp_host_release_high = <80>; + adc = <&adc_temp_1>; + }; + }; }; &adc0 { status = "okay"; }; + +&thermistor_3V3_51K1_47K_4050B { + status = "okay"; +}; diff --git a/zephyr/projects/nissa/prj_nivviks.conf b/zephyr/projects/nissa/prj_nivviks.conf index de422f3bb2..889b117601 100644 --- a/zephyr/projects/nissa/prj_nivviks.conf +++ b/zephyr/projects/nissa/prj_nivviks.conf @@ -37,7 +37,7 @@ CONFIG_PLATFORM_EC_HOSTCMD=y # Temperature sensors CONFIG_PLATFORM_EC_TEMP_SENSOR=y -CONFIG_PLATFORM_EC_DPTF=n +CONFIG_PLATFORM_EC_THERMISTOR=y # Miscellaneous configs CONFIG_PLATFORM_EC_HIBERNATE_PSL=y |