diff options
Diffstat (limited to 'zephyr/projects/npcx_evb/npcx7/pwm.dts')
-rw-r--r-- | zephyr/projects/npcx_evb/npcx7/pwm.dts | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/zephyr/projects/npcx_evb/npcx7/pwm.dts b/zephyr/projects/npcx_evb/npcx7/pwm.dts new file mode 100644 index 0000000000..3b7b88c235 --- /dev/null +++ b/zephyr/projects/npcx_evb/npcx7/pwm.dts @@ -0,0 +1,32 @@ +/* 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. + */ + +/ { + named-pwms { + compatible = "named-pwms"; + + fan { + pwms = <&pwm0 0 0>; + label = "FAN"; + frequency = <25000>; + }; + kblight { + pwms = <&pwm2 0 0>; + label = "KBLIGHT"; + frequency = <10000>; + }; + }; +}; + +/* fan */ +&pwm0 { + status = "okay"; + drive-open-drain; +}; + +/* kblight */ +&pwm2 { + status = "okay"; +}; |