Back to home page

OSCL-LXR

 
 

    


0001 LEDs connected to Spreadtrum SC27XX PMIC breathing light controller
0002 
0003 The SC27xx breathing light controller supports to 3 outputs:
0004 red LED, green LED and blue LED. Each LED can work at normal
0005 PWM mode or breath light mode.
0006 
0007 Required properties:
0008 - compatible: Should be "sprd,sc2731-bltc".
0009 - #address-cells: Must be 1.
0010 - #size-cells: Must be 0.
0011 - reg: Specify the controller address.
0012 
0013 Required child properties:
0014 - reg: Port this LED is connected to.
0015 
0016 Optional child properties:
0017 - function: See Documentation/devicetree/bindings/leds/common.txt.
0018 - color: See Documentation/devicetree/bindings/leds/common.txt.
0019 - label: See Documentation/devicetree/bindings/leds/common.txt (deprecated).
0020 
0021 Examples:
0022 
0023 led-controller@200 {
0024         compatible = "sprd,sc2731-bltc";
0025         #address-cells = <1>;
0026         #size-cells = <0>;
0027         reg = <0x200>;
0028 
0029         led@0 {
0030                 color = <LED_COLOR_ID_RED>;
0031                 reg = <0x0>;
0032         };
0033 
0034         led@1 {
0035                 color = <LED_COLOR_ID_GREEN>;
0036                 reg = <0x1>;
0037         };
0038 
0039         led@2 {
0040                 color = <LED_COLOR_ID_BLUE>;
0041                 reg = <0x2>;
0042         };
0043 };