summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDawid Niedzwiecki <dn@semihalf.com>2021-02-22 10:20:41 +0100
committerCommit Bot <commit-bot@chromium.org>2021-02-24 20:10:41 +0000
commite50160404dec9cf520097eeabf9f6abfc6a7ab10 (patch)
tree3b33390528c699fdc5ec0f4f76f235fda356d1fc
parentf8c6b9acf233c2f3af8a22c6eb63ecbb93f2852c (diff)
downloadchrome-ec-e50160404dec9cf520097eeabf9f6abfc6a7ab10.tar.gz
zephyr: volteer: add thermal configs
Add thermal thresholds for Volteer in the dts file. BUG=b:179886912 BRANCH=none TEST=build Zephyr for Volteer TEST=Run "thermalget" command to check current thresholds. Change the thresholds with "thermalset" to verify if AP throttling is requested. Signed-off-by: Dawid Niedzwiecki <dn@semihalf.com> Change-Id: If0b860271c57adf3fa1543de0ff68ec5b48e5b8c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2712951 Reviewed-by: Simon Glass <sjg@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
-rw-r--r--zephyr/projects/volteer/boards/arm/volteer/volteer.dts20
1 files changed, 20 insertions, 0 deletions
diff --git a/zephyr/projects/volteer/boards/arm/volteer/volteer.dts b/zephyr/projects/volteer/boards/arm/volteer/volteer.dts
index 835cbf2f7b..e4138f702f 100644
--- a/zephyr/projects/volteer/boards/arm/volteer/volteer.dts
+++ b/zephyr/projects/volteer/boards/arm/volteer/volteer.dts
@@ -124,21 +124,41 @@
charger {
compatible = "temp-3v3-30k9-47k-4050b";
label = "TEMP_SENSOR_CHARGER";
+ temp_fan_off = <40>;
+ temp_fan_max = <55>;
+ temp_host_high = <75>;
+ temp_host_halt = <80>;
+ temp_host_release_high = <65>;
adc = <&adc_charger>;
};
pp3300_regulator {
compatible = "temp-3v3-30k9-47k-4050b";
label = "TEMP_SENSOR_PP3300_REGULATOR";
+ temp_fan_off = <40>;
+ temp_fan_max = <55>;
+ temp_host_high = <75>;
+ temp_host_halt = <80>;
+ temp_host_release_high = <65>;
adc = <&adc_pp3300_regulator>;
};
ddr_soc {
compatible = "temp-3v3-30k9-47k-4050b";
label = "TEMP_SENSOR_DDR_SOC";
+ temp_fan_off = <35>;
+ temp_fan_max = <50>;
+ temp_host_high = <70>;
+ temp_host_halt = <80>;
+ temp_host_release_high = <65>;
adc = <&adc_ddr_soc>;
};
fan {
compatible = "temp-3v3-30k9-47k-4050b";
label = "TEMP_SENSOR_FAN";
+ temp_fan_off = <35>;
+ temp_fan_max = <50>;
+ temp_host_high = <70>;
+ temp_host_halt = <80>;
+ temp_host_release_high = <65>;
adc = <&adc_fan>;
};
};