diff options
Diffstat (limited to 'zephyr/projects/it8xxx2_evb/pwm.dts')
-rw-r--r-- | zephyr/projects/it8xxx2_evb/pwm.dts | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/zephyr/projects/it8xxx2_evb/pwm.dts b/zephyr/projects/it8xxx2_evb/pwm.dts new file mode 100644 index 0000000000..c566e5c029 --- /dev/null +++ b/zephyr/projects/it8xxx2_evb/pwm.dts @@ -0,0 +1,31 @@ +/* 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. + */ + +/ { + pwmleds { + compatible = "pwm-leds"; + + /* NOTE: &pwm number needs same with channel number */ + pwm_led_test: pwm_led_test { + pwms = <&pwm0 PWM_CHANNEL_0 PWM_MSEC(20) PWM_POLARITY_NORMAL>; + }; + }; +}; + +/* pwm for test */ +&pwm0 { + status = "okay"; + prescaler-cx = <PWM_PRESCALER_C6>; + pinctrl-0 = <&pwm0_gpa0_default>; + pinctrl-names = "default"; +}; + +/* pwm for fan */ +&pwm7 { + status = "okay"; + prescaler-cx = <PWM_PRESCALER_C4>; + pinctrl-0 = <&pwm7_gpa7_default>; + pinctrl-names = "default"; +}; |