diff options
Diffstat (limited to 'zephyr/program/it8xxx2_evb/fan.dts')
-rw-r--r-- | zephyr/program/it8xxx2_evb/fan.dts | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/zephyr/program/it8xxx2_evb/fan.dts b/zephyr/program/it8xxx2_evb/fan.dts new file mode 100644 index 0000000000..2551507ec3 --- /dev/null +++ b/zephyr/program/it8xxx2_evb/fan.dts @@ -0,0 +1,27 @@ +/* Copyright 2022 The ChromiumOS Authors + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +/ { + fans { + compatible = "cros-ec,fans"; + + fan_0 { + pwms = <&pwm7 PWM_CHANNEL_7 PWM_KHZ(30) PWM_POLARITY_NORMAL>; + tach = <&tach0>; + rpm_min = <1500>; + rpm_start = <1500>; + rpm_max = <6500>; + }; + }; +}; + +/* fan tachometer sensor */ +&tach0 { + status = "okay"; + channel = <IT8XXX2_TACH_CHANNEL_A>; + pulses-per-round = <2>; + pinctrl-0 = <&tach0a_gpd6_default>; + pinctrl-names = "default"; +}; |