summaryrefslogtreecommitdiff
path: root/zephyr/projects/npcx_evb/npcx7/pwm.dts
blob: 144b4d96b961ecb2c69490890ac6705c501fa819 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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";

		pwm_fan: 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";
};