ARM: dts: apq8064-ifc6410: add notify led support.
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Fri, 18 Sep 2015 12:32:11 +0000 (13:32 +0100)
committerAndy Gross <agross@codeaurora.org>
Tue, 13 Oct 2015 21:40:00 +0000 (16:40 -0500)
This patch adds notify led support on IFC6410, whose trigger can be
configured from userspace.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Andy Gross <agross@codeaurora.org>
arch/arm/boot/dts/qcom-apq8064-ifc6410.dts

index 9c71a51a707913fcd75fd1ffc3be9bc37367d36f..11ac608b6d50e716e6fc2aabf47839ce1b871d96 100644 (file)
                };
        };
 
+       leds {
+               compatible = "gpio-leds";
+               pinctrl-names = "default";
+               pinctrl-0 = <&notify_led>;
+
+               led@1 {
+                       label = "apq8064:green:user1";
+                       gpios = <&pm8921_gpio 18 GPIO_ACTIVE_HIGH>;
+                       default-state = "on";
+               };
+       };
+
        soc {
                pinctrl@800000 {
                        card_detect: card_detect {
                                                        power-source = <PM8921_GPIO_S4>;
                                                };
                                        };
+
+                                       notify_led: nled {
+                                               pios {
+                                                       pins = "gpio18";
+                                                       function = "normal";
+                                                       bias-disable;
+                                                       power-source = <PM8921_GPIO_S4>;
+                                               };
+                                       };
                                };
                        };
                };