xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/leds/leds-sc27xx-bltc.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunLEDs connected to Spreadtrum SC27XX PMIC breathing light controller
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunThe SC27xx breathing light controller supports to 3 outputs:
4*4882a593Smuzhiyunred LED, green LED and blue LED. Each LED can work at normal
5*4882a593SmuzhiyunPWM mode or breath light mode.
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunRequired properties:
8*4882a593Smuzhiyun- compatible: Should be "sprd,sc2731-bltc".
9*4882a593Smuzhiyun- #address-cells: Must be 1.
10*4882a593Smuzhiyun- #size-cells: Must be 0.
11*4882a593Smuzhiyun- reg: Specify the controller address.
12*4882a593Smuzhiyun
13*4882a593SmuzhiyunRequired child properties:
14*4882a593Smuzhiyun- reg: Port this LED is connected to.
15*4882a593Smuzhiyun
16*4882a593SmuzhiyunOptional child properties:
17*4882a593Smuzhiyun- function: See Documentation/devicetree/bindings/leds/common.txt.
18*4882a593Smuzhiyun- color: See Documentation/devicetree/bindings/leds/common.txt.
19*4882a593Smuzhiyun- label: See Documentation/devicetree/bindings/leds/common.txt (deprecated).
20*4882a593Smuzhiyun
21*4882a593SmuzhiyunExamples:
22*4882a593Smuzhiyun
23*4882a593Smuzhiyunled-controller@200 {
24*4882a593Smuzhiyun	compatible = "sprd,sc2731-bltc";
25*4882a593Smuzhiyun	#address-cells = <1>;
26*4882a593Smuzhiyun	#size-cells = <0>;
27*4882a593Smuzhiyun	reg = <0x200>;
28*4882a593Smuzhiyun
29*4882a593Smuzhiyun	led@0 {
30*4882a593Smuzhiyun		color = <LED_COLOR_ID_RED>;
31*4882a593Smuzhiyun		reg = <0x0>;
32*4882a593Smuzhiyun	};
33*4882a593Smuzhiyun
34*4882a593Smuzhiyun	led@1 {
35*4882a593Smuzhiyun		color = <LED_COLOR_ID_GREEN>;
36*4882a593Smuzhiyun		reg = <0x1>;
37*4882a593Smuzhiyun	};
38*4882a593Smuzhiyun
39*4882a593Smuzhiyun	led@2 {
40*4882a593Smuzhiyun		color = <LED_COLOR_ID_BLUE>;
41*4882a593Smuzhiyun		reg = <0x2>;
42*4882a593Smuzhiyun	};
43*4882a593Smuzhiyun};
44