leds-sc27xx-bltc.txt 810 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. LEDs connected to Spreadtrum SC27XX PMIC breathing light controller
  2. The SC27xx breathing light controller supports to 3 outputs:
  3. red LED, green LED and blue LED. Each LED can work at normal
  4. PWM mode or breath light mode.
  5. Required properties:
  6. - compatible: Should be "sprd,sc2731-bltc".
  7. - #address-cells: Must be 1.
  8. - #size-cells: Must be 0.
  9. - reg: Specify the controller address.
  10. Required child properties:
  11. - reg: Port this LED is connected to.
  12. Optional child properties:
  13. - label: See Documentation/devicetree/bindings/leds/common.txt.
  14. Examples:
  15. led-controller@200 {
  16. compatible = "sprd,sc2731-bltc";
  17. #address-cells = <1>;
  18. #size-cells = <0>;
  19. reg = <0x200>;
  20. led@0 {
  21. label = "red";
  22. reg = <0x0>;
  23. };
  24. led@1 {
  25. label = "green";
  26. reg = <0x1>;
  27. };
  28. led@2 {
  29. label = "blue";
  30. reg = <0x2>;
  31. };
  32. };