diff options
author | Aaron Massey <aaronmassey@google.com> | 2021-09-24 11:22:12 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-09-24 19:47:45 +0000 |
commit | 465c9dc87a353f48b969da0631c4fd2b6df32a4f (patch) | |
tree | eae7fa5a0f92cb81af315eb7912267167ed078e1 /zephyr/dts/bindings/temp/cros_ec_temp_sensor.yaml | |
parent | fc2b67a878f6c57c02569253032fc5d09f6c581e (diff) | |
download | chrome-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/dts/bindings/temp/cros_ec_temp_sensor.yaml')
-rw-r--r-- | zephyr/dts/bindings/temp/cros_ec_temp_sensor.yaml | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/zephyr/dts/bindings/temp/cros_ec_temp_sensor.yaml b/zephyr/dts/bindings/temp/cros_ec_temp_sensor.yaml new file mode 100644 index 0000000000..288dc2d1c8 --- /dev/null +++ b/zephyr/dts/bindings/temp/cros_ec_temp_sensor.yaml @@ -0,0 +1,86 @@ +# Copyright 2021 The Chromium OS Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +description: > + Common properties for temperature sensors + Zero values in degrees K(-273 in degrees C)in thermal thresholds will + be ignored + +compatible: cros-ec,temp-sensor + +properties: + adc: + required: true + type: phandle + description: The named adc channel + + thermistor: + type: phandle + description: Underlying thermistor device if used + + label: + required: true + type: string + description: + Human-readable string describing the device (used as + device_get_binding() argument) + + enum-name: + type: string + required: true + description: + Enum values used in the source code to refer to the temperature sensors + enum: + - TEMP_SENSOR_CHARGER + - TEMP_SENSOR_DDR_SOC + - TEMP_SENSOR_FAN + - TEMP_SENSOR_PP3300_REGULATOR + + temp_fan_off: + type: int + description: + Temperature threshold in degrees C when no active cooling + is needed + + temp_fan_max: + type: int + description: + Temperature threshold in degrees C when max active cooling + is needed + + temp_host_warn: + type: int + description: + Temperature threshold in degrees C of thermal warn. + Temperatures above the thermal warn threshold generate a + request to the AP to throttle itself. + + temp_host_high: + type: int + description: + Temperature threshold in degrees C of thermal high. + Temperatures above the thermal high threshold cause the EC to + assert a signal (usually PROCHOT) to the AP and force the AP to + throttle. + + temp_host_halt: + type: int + description: + Temperature threshold in degrees C that forces AP to shutdown + due to thermal reason + + temp_host_release_warn: + type: int + description: + Temperature release threshold in degrees C of thermal warn + + temp_host_release_high: + type: int + description: + Temperature release threshold in degrees C of thermal high + + temp_host_release_halt: + type: int + description: + Temperature release threshold in degrees C of thermal shutdown |