ARM: dts: add PM8058 LEDs to the APQ8060 Dragonboard
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 19 Aug 2016 08:46:47 +0000 (10:46 +0200)
committerAndy Gross <andy.gross@linaro.org>
Fri, 2 Sep 2016 18:48:21 +0000 (13:48 -0500)
This adds the PM8058 LEDs as used in the platform.

Cc: linux-arm-msm@vger.kernel.org
Cc: linux-leds@vger.kernel.org
Cc: Andy Gross <andy.gross@linaro.org>
Cc: Stephen Boyd <sboyd@codeaurora.org>
Cc: Jacek Anaszewski <j.anaszewski@samsung.com>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
arch/arm/boot/dts/qcom-apq8060-dragonboard.dts

index 0abc93e5bb00cf525bbf0432d8b57473c2c3a29a..6c0038398ef280f6dad863f030b1c5ed9a5b5144 100644 (file)
                                                };
                                        };
                                };
+
+                               led@48 {
+                                       /*
+                                        * The keypad LED @0x48 is routed to
+                                        * the sensor board where it is
+                                        * connected to an infrared LED
+                                        * SFH4650 (60mW, @850nm) next to the
+                                        * ambient light and proximity sensor
+                                        * Capella Microsystems CM3605.
+                                        */
+                                       compatible = "qcom,pm8058-keypad-led";
+                                       reg = <0x48>;
+                                       label = "pm8058:infrared:proximitysensor";
+                                       default-state = "off";
+                               };
+                               led@131 {
+                                       compatible = "qcom,pm8058-led";
+                                       reg = <0x131>;
+                                       label = "pm8058:red";
+                                       default-state = "off";
+                               };
+                               led@132 {
+                                       /*
+                                        * This is actually green too on my
+                                        * board, but documented as yellow.
+                                        */
+                                       compatible = "qcom,pm8058-led";
+                                       reg = <0x132>;
+                                       label = "pm8058:yellow";
+                                       default-state = "off";
+                                       linux,default-trigger = "mmc0";
+                               };
+                               led@133 {
+                                       compatible = "qcom,pm8058-led";
+                                       reg = <0x133>;
+                                       label = "pm8058:green";
+                                       default-state = "on";
+                                       linux,default-trigger = "heartbeat";
+                               };
                        };
                };