^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) LEDs connected to Spreadtrum SC27XX PMIC breathing light controller
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) The SC27xx breathing light controller supports to 3 outputs:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) red LED, green LED and blue LED. Each LED can work at normal
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) PWM mode or breath light mode.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) Required properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) - compatible: Should be "sprd,sc2731-bltc".
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) - #address-cells: Must be 1.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) - #size-cells: Must be 0.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) - reg: Specify the controller address.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) Required child properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) - reg: Port this LED is connected to.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) Optional child properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) - function: See Documentation/devicetree/bindings/leds/common.txt.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) - color: See Documentation/devicetree/bindings/leds/common.txt.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) - label: See Documentation/devicetree/bindings/leds/common.txt (deprecated).
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) Examples:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) led-controller@200 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) compatible = "sprd,sc2731-bltc";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) #address-cells = <1>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) #size-cells = <0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) reg = <0x200>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) led@0 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) color = <LED_COLOR_ID_RED>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) reg = <0x0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) led@1 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) color = <LED_COLOR_ID_GREEN>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) reg = <0x1>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) led@2 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) color = <LED_COLOR_ID_BLUE>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) reg = <0x2>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) };