diff options
author | Baolin Wang <baolin.wang@linaro.org> | 2018-05-14 02:34:50 -0400 |
---|---|---|
committer | Jacek Anaszewski <jacek.anaszewski@gmail.com> | 2018-05-14 16:18:04 -0400 |
commit | a0258db6c933f9ecad2f06f039107801f5e76092 (patch) | |
tree | ba8a8df5dae2f0300ce913f5b29c6b80d8b2b945 | |
parent | d54e5b522202b287132b9f24569b9c107f6af36d (diff) |
dt-bindings: leds: Add SC27xx breathing light controller documentation
This patch adds the binding documentation for Spreadtrum SC27xx series
breathing light controller, which supports 3 outputs: red LED, green
LED and blue LED.
Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
-rw-r--r-- | Documentation/devicetree/bindings/leds/leds-sc27xx-bltc.txt | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/leds/leds-sc27xx-bltc.txt b/Documentation/devicetree/bindings/leds/leds-sc27xx-bltc.txt new file mode 100644 index 000000000000..dddf84f9c7ea --- /dev/null +++ b/Documentation/devicetree/bindings/leds/leds-sc27xx-bltc.txt | |||
@@ -0,0 +1,41 @@ | |||
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 | - label: See Documentation/devicetree/bindings/leds/common.txt. | ||
18 | |||
19 | Examples: | ||
20 | |||
21 | led-controller@200 { | ||
22 | compatible = "sprd,sc2731-bltc"; | ||
23 | #address-cells = <1>; | ||
24 | #size-cells = <0>; | ||
25 | reg = <0x200>; | ||
26 | |||
27 | led@0 { | ||
28 | label = "red"; | ||
29 | reg = <0x0>; | ||
30 | }; | ||
31 | |||
32 | led@1 { | ||
33 | label = "green"; | ||
34 | reg = <0x1>; | ||
35 | }; | ||
36 | |||
37 | led@2 { | ||
38 | label = "blue"; | ||
39 | reg = <0x2>; | ||
40 | }; | ||
41 | }; | ||