summaryrefslogtreecommitdiff
path: root/zephyr/projects/volteer/volteer/pwm.dts
blob: f8a0fef7df2308773d365ffa7af32d757d96d12c (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/* 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";

		led1_blue: led1_blue {
			#pwm-cells = <0>;
			pwms = <&pwm2 0 PWM_POLARITY_INVERTED>;
			label = "LED1_BLUE";
			frequency = <4800>;
		};
		led2_green: led2_green  {
			#pwm-cells = <0>;
			pwms = <&pwm0 0 PWM_POLARITY_INVERTED>;
			label = "LED2_GREEN";
			frequency = <4800>;
		};
		led3_red: led3_red {
			#pwm-cells = <0>;
			pwms = <&pwm1 0 PWM_POLARITY_INVERTED>;
			label = "LED3_RED";
			frequency = <4800>;
		};
		led3_sidesel: led3_sidesel {
			#pwm-cells = <0>;
			pwms = <&pwm7 0 PWM_POLARITY_INVERTED>;
			label = "LED4_SIDESEL";
			frequency = <2400>;
		};
		kblight {
			pwms = <&pwm3 0 0>;
			label = "KBLIGHT";
			frequency = <2400>;
		};
		pwm_fan: fan {
			pwms = <&pwm5 0 0>;
			label = "FAN";
			frequency = <25000>;
		};
	};
};

/* Green LED */
&pwm0 {
	status = "okay";
	clock-bus = "NPCX_CLOCK_BUS_LFCLK";
};

/* Red LED */
&pwm1 {
	status = "okay";
	clock-bus = "NPCX_CLOCK_BUS_LFCLK";
};

/* Blue LED */
&pwm2 {
	status = "okay";
	clock-bus = "NPCX_CLOCK_BUS_LFCLK";
};

/* Keyboard backlight */
&pwm3 {
	status = "okay";
};

/* Fan control */
&pwm5 {
	status = "okay";
	drive-open-drain;
};

/* Side selection LED */
&pwm7 {
	status = "okay";
	clock-bus = "NPCX_CLOCK_BUS_LFCLK";
};