xref: /freebsd/sys/contrib/device-tree/Bindings/leds/leds-sc27xx-bltc.txt (revision 2e3507c25e42292b45a5482e116d278f5515d04d)
1LEDs connected to Spreadtrum SC27XX PMIC breathing light controller
2
3The SC27xx breathing light controller supports to 3 outputs:
4red LED, green LED and blue LED. Each LED can work at normal
5PWM mode or breath light mode.
6
7Required 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
13Required child properties:
14- reg: Port this LED is connected to.
15
16Optional 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
21Examples:
22
23led-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};
44