diff options
author | Zick Wei <zick.wei@quanta.corp-partner.google.com> | 2022-11-02 09:55:37 +0800 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-11-08 07:04:48 +0000 |
commit | b33d0923d0965cc478ef43ec1c2e4eac6f20e4b4 (patch) | |
tree | a7405d26c987dbb15ed47de259fcf115a818584b /zephyr/program/nissa/yaviks/overlay.dtsi | |
parent | 54e6e96e64196737aa491b1d647cb765d5170b84 (diff) | |
download | chrome-ec-b33d0923d0965cc478ef43ec1c2e4eac6f20e4b4.tar.gz |
yaviks: update fan table to v1-1
Implement fan steps table V1-1_20221015,
and enable config CONFIG_PLATFORM_EC_CUSTOM_FAN_CONTROL,
set fan rpm deviation to 1.
BUG=b:253557900
BRANCH=none
TEST=make sure fan follow fan steps.
Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com>
Change-Id: Ie9876af7a0cb85b9bd8dfa85a9b3b4950c24c50f
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3997773
Code-Coverage: Andrew McRae <amcrae@google.com>
Reviewed-by: Andrew McRae <amcrae@google.com>
Commit-Queue: Andrew McRae <amcrae@google.com>
Tested-by: Andrew McRae <amcrae@google.com>
Diffstat (limited to 'zephyr/program/nissa/yaviks/overlay.dtsi')
-rw-r--r-- | zephyr/program/nissa/yaviks/overlay.dtsi | 46 |
1 files changed, 9 insertions, 37 deletions
diff --git a/zephyr/program/nissa/yaviks/overlay.dtsi b/zephyr/program/nissa/yaviks/overlay.dtsi index d768116444..2a5a8561a0 100644 --- a/zephyr/program/nissa/yaviks/overlay.dtsi +++ b/zephyr/program/nissa/yaviks/overlay.dtsi @@ -130,17 +130,17 @@ }; }; - temp_cpu: cpu { + temp_cpu_thermistor: cpu { compatible = "cros-ec,temp-sensor-thermistor"; thermistor = <&thermistor_3V3_51K1_47K_4050B>; adc = <&adc_temp_sensor_1>; }; - temp_5v_regulator: 5v_regulator { + temp_5v_regulator_thermistor: 5v-regulator { compatible = "cros-ec,temp-sensor-thermistor"; thermistor = <&thermistor_3V3_51K1_47K_4050B>; adc = <&adc_temp_sensor_2>; }; - temp_charger: charger { + temp_charger_thermistor: charger { compatible = "cros-ec,temp-sensor-thermistor"; thermistor = <&thermistor_3V3_51K1_47K_4050B>; adc = <&adc_temp_sensor_3>; @@ -148,32 +148,32 @@ named-temp-sensors { compatible = "cros-ec,temp-sensors"; - cpu { + temp_cpu: cpu { temp_fan_off = <45>; temp_fan_max = <60>; temp_host_high = <75>; temp_host_halt = <85>; temp_host_release_high = <65>; power-good-pin = <&gpio_ec_soc_dsw_pwrok>; - sensor = <&temp_cpu>; + sensor = <&temp_cpu_thermistor>; }; - 5v_regulator { + temp_5v_regulator: 5v-regulator { temp_fan_off = <50>; temp_fan_max = <65>; temp_host_high = <75>; temp_host_halt = <85>; temp_host_release_high = <65>; power-good-pin = <&gpio_ec_soc_dsw_pwrok>; - sensor = <&temp_5v_regulator>; + sensor = <&temp_5v_regulator_thermistor>; }; - charger { + temp_charger: charger { temp_fan_off = <50>; temp_fan_max = <65>; temp_host_high = <80>; temp_host_halt = <85>; temp_host_release_high = <75>; power-good-pin = <&gpio_ec_soc_dsw_pwrok>; - sensor = <&temp_charger>; + sensor = <&temp_charger_thermistor>; }; }; @@ -235,18 +235,6 @@ }; }; }; - - fans { - compatible = "cros-ec,fans"; - fan_0 { - pwms = <&pwm2 PWM_CHANNEL_2 PWM_KHZ(25) PWM_POLARITY_NORMAL>; - tach = <&tach1>; - rpm_min = <2600>; - rpm_start = <2600>; - rpm_max = <4100>; - enable_gpio = <&gpio_fan_enable>; - }; - }; }; &thermistor_3V3_51K1_47K_4050B { @@ -384,19 +372,3 @@ &usbpd0 { status = "okay"; }; - -/* pwm for fan */ -&pwm2 { - status = "okay"; - prescaler-cx = <PWM_PRESCALER_C6>; - pinctrl-0 = <&pwm2_gpa2_default>; - pinctrl-names = "default"; -}; -/* fan tachometer sensor */ -&tach1 { - status = "okay"; - channel = <IT8XXX2_TACH_CHANNEL_A>; - pulses-per-round = <2>; - pinctrl-0 = <&tach1a_gpd7_default>; - pinctrl-names = "default"; -}; |