]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
arm64: dts: sprd: Add SC27XX breathing light controller device
authorBaolin Wang <baolin.wang@linaro.org>
Mon, 23 Jul 2018 06:10:16 +0000 (14:10 +0800)
committerOlof Johansson <olof@lixom.net>
Thu, 26 Jul 2018 06:51:16 +0000 (23:51 -0700)
The SC27xx breathing light controller can support 3 outputs:
red LED, green LED and blue LED.

Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Olof Johansson <olof@lixom.net>
arch/arm64/boot/dts/sprd/sc2731.dtsi

index 98d3b4fdb9adc9d71f5b747c4dd16c6c5d4639fa..7d53ca6b4ecceee3e3c01dded6075b5e3ecfcb7c 100644 (file)
@@ -17,6 +17,28 @@ sc2731_pmic: pmic@0 {
                #address-cells = <1>;
                #size-cells = <0>;
 
+               led-controller@200 {
+                       compatible = "sprd,sc27xx-bltc", "sprd,sc2731-bltc";
+                       reg = <0x200>;
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
+                       led@0 {
+                               label = "red";
+                               reg = <0x0>;
+                       };
+
+                       led@1 {
+                               label = "green";
+                               reg = <0x1>;
+                       };
+
+                       led@2 {
+                               label = "blue";
+                               reg = <0x2>;
+                       };
+               };
+
                rtc@280 {
                        compatible = "sprd,sc27xx-rtc", "sprd,sc2731-rtc";
                        reg = <0x280>;