summaryrefslogtreecommitdiff
path: root/zephyr/projects/skyrim/pwm.dts
blob: 885361507436b14816c4800a067f0bf8c0fecbb2 (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
/* 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: ec_fan_pwm {
			pwms = <&pwm0 0 0>;
			frequency = <25000>;
		};
		kblight: pwm_kb_bl {
			pwms = <&pwm1 0 0>;
			frequency = <100>;
		};
		led_charge: ec_pwm_led_chrg_l {
			pwms = <&pwm2 0 0>;
			frequency = <100>;
		};
		led_full: ec_pwm_led_full_l {
			pwms = <&pwm3 0 0>;
			frequency = <100>;
		};
	};
};

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

/* Keyboard backlight */
&pwm1 {
	status = "okay";
	clock-bus = "NPCX_CLOCK_BUS_LFCLK";
};

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

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