blob: fc8e0b169b1c91cae01c477ff346c06d0861d397 (
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
|
/* 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";
/* NOTE: &pwm number needs same with channel number */
led1 {
pwms = <&pwm0 PWM_CHANNEL_0 PWM_POLARITY_INVERTED>;
label = "LED1";
/*
* If we need pwm output in ITE chip power saving
* mode, then we should set frequency <=324Hz.
*/
frequency = <324>;
};
led2 {
pwms = <&pwm1 PWM_CHANNEL_1 PWM_POLARITY_INVERTED>;
label = "LED2";
frequency = <324>;
};
led3 {
pwms = <&pwm2 PWM_CHANNEL_2 PWM_POLARITY_INVERTED>;
label = "LED3";
frequency = <324>;
};
};
};
/* LED1 */
&pwm0 {
status = "okay";
prescaler-cx = <PWM_PRESCALER_C4>;
};
/* LED2 */
&pwm1 {
status = "okay";
prescaler-cx = <PWM_PRESCALER_C4>;
};
/* LED3 */
&pwm2 {
status = "okay";
prescaler-cx = <PWM_PRESCALER_C4>;
};
|