blob: dd9fc94eaac07479af555640ec94dd9159ab3f12 (
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
|
/* 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: kblight {
pwms = <&pwm1 0 0>;
label = "KBLIGHT";
frequency = <100>;
};
led_charge: led_charge {
pwms = <&pwm2 0 0>;
label = "LED_CHARGE";
frequency = <100>;
};
led_full: led_full {
pwms = <&pwm3 0 0>;
label = "LED_FULL";
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";
};
|