Linux-libre 5.4.49-gnu
[librecmc/linux-libre.git] / Documentation / devicetree / bindings / leds / leds-sc27xx-bltc.txt
1 LEDs connected to Spreadtrum SC27XX PMIC breathing light controller
2
3 The SC27xx breathing light controller supports to 3 outputs:
4 red LED, green LED and blue LED. Each LED can work at normal
5 PWM mode or breath light mode.
6
7 Required properties:
8 - compatible: Should be "sprd,sc2731-bltc".
9 - #address-cells: Must be 1.
10 - #size-cells: Must be 0.
11 - reg: Specify the controller address.
12
13 Required child properties:
14 - reg: Port this LED is connected to.
15
16 Optional child properties:
17 - function: See Documentation/devicetree/bindings/leds/common.txt.
18 - color: See Documentation/devicetree/bindings/leds/common.txt.
19 - label: See Documentation/devicetree/bindings/leds/common.txt (deprecated).
20
21 Examples:
22
23 led-controller@200 {
24         compatible = "sprd,sc2731-bltc";
25         #address-cells = <1>;
26         #size-cells = <0>;
27         reg = <0x200>;
28
29         led@0 {
30                 color = <LED_COLOR_ID_RED>;
31                 reg = <0x0>;
32         };
33
34         led@1 {
35                 color = <LED_COLOR_ID_GREEN>;
36                 reg = <0x1>;
37         };
38
39         led@2 {
40                 color = <LED_COLOR_ID_BLUE>;
41                 reg = <0x2>;
42         };
43 };