summaryrefslogtreecommitdiff
path: root/zephyr/boards/riscv
diff options
context:
space:
mode:
authorFabio Baltieri <fabiobaltieri@google.com>2022-03-01 13:23:45 +0000
committerCommit Bot <commit-bot@chromium.org>2022-03-14 15:56:52 +0000
commit69955023ac1806613e740632642571bfaa50ea65 (patch)
tree1e93dcdee6edb7924747cd37d25bc540d8a37a6b /zephyr/boards/riscv
parentcf85710446f841b339905f25891e8f7fb734d083 (diff)
downloadchrome-ec-69955023ac1806613e740632642571bfaa50ea65.tar.gz
zephyr: pwm: de-shim the fan driver PWM APIs
Refactor the fan driver to drop the shimmed PWM code and use the Zephyr PWM APIs directly. Drop the corresponding dts entries, leaving few pwm.dts files empty, will clear those at a later stage. BRANCH=none BUG=b:217741090 TEST=zmake testall TEST=build and run on volteer, play with faninfo and fanset Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com> Change-Id: I7eac734938c3b30768544a60af52b37d39a164fc Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3497452 Reviewed-by: Tristan Honscheid <honscheid@google.com> Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/boards/riscv')
-rw-r--r--zephyr/boards/riscv/it8xxx2_evb/it8xxx2_evb.dts7
1 files changed, 2 insertions, 5 deletions
diff --git a/zephyr/boards/riscv/it8xxx2_evb/it8xxx2_evb.dts b/zephyr/boards/riscv/it8xxx2_evb/it8xxx2_evb.dts
index 3e675c61eb..c060a842f3 100644
--- a/zephyr/boards/riscv/it8xxx2_evb/it8xxx2_evb.dts
+++ b/zephyr/boards/riscv/it8xxx2_evb/it8xxx2_evb.dts
@@ -154,10 +154,6 @@
*/
frequency = <324>;
};
- pwm_fan: fan {
- pwms = <&pwm7 PWM_CHANNEL_7 PWM_POLARITY_NORMAL>;
- frequency = <30000>;
- };
};
named-fans {
@@ -165,7 +161,8 @@
fan_0 {
label = "FAN_0";
- pwm = <&pwm_fan>;
+ pwms = <&pwm7 PWM_CHANNEL_7 PWM_POLARITY_NORMAL>;
+ pwm-frequency = <30000>;
tach = <&tach0>;
rpm_min = <1500>;
rpm_start = <1500>;