blob: 9ee879b404ba9f453be08b4454e34cad59bab246 (
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
|
/* 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.
*/
/ {
pwmleds {
compatible = "pwm-leds";
/* NOTE: &pwm number needs same with channel number */
led_power_white: ec_led1_odl {
pwms = <&pwm0 PWM_CHANNEL_0 PWM_HZ(324) PWM_POLARITY_INVERTED>;
};
led_battery_amber: ec_led2_odl {
pwms = <&pwm1 PWM_CHANNEL_1 PWM_HZ(324) PWM_POLARITY_INVERTED>;
};
led_battery_white: ec_led3_odl {
pwms = <&pwm2 PWM_CHANNEL_2 PWM_HZ(324) PWM_POLARITY_INVERTED>;
};
};
};
/* LED1 */
&pwm0 {
status = "okay";
prescaler-cx = <PWM_PRESCALER_C4>;
pinctrl-0 = <&pwm0_gpa0_default>;
pinctrl-names = "default";
};
/* LED2 */
&pwm1 {
status = "okay";
prescaler-cx = <PWM_PRESCALER_C4>;
pinctrl-0 = <&pwm1_gpa1_default>;
pinctrl-names = "default";
};
/* LED3 */
&pwm2 {
status = "okay";
prescaler-cx = <PWM_PRESCALER_C4>;
pinctrl-0 = <&pwm2_gpa2_default>;
pinctrl-names = "default";
};
|