]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: dts: imx6sl-evk: Add debug LED support
authorFabio Estevam <fabio.estevam@freescale.com>
Thu, 6 Feb 2014 15:08:08 +0000 (13:08 -0200)
committerShawn Guo <shawn.guo@linaro.org>
Mon, 10 Feb 2014 08:27:47 +0000 (16:27 +0800)
GPIO3_20 is connected to a debug LED.

Add support for it.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
arch/arm/boot/dts/imx6sl-evk.dts

index 3216edec46e9e5ff8c0167da93208e7e6288ea57..889422cc2c2416bf2d5f3f0272f24c05d3373521 100644 (file)
@@ -8,6 +8,7 @@
 
 /dts-v1/;
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 #include "imx6sl.dtsi"
 
                reg = <0x80000000 0x40000000>;
        };
 
+       leds {
+               compatible = "gpio-leds";
+               pinctrl-names = "default";
+               pinctrl-0 = <&pinctrl_led>;
+
+               user {
+                       label = "debug";
+                       gpios = <&gpio3 20 GPIO_ACTIVE_HIGH>;
+                       linux,default-trigger = "heartbeat";
+               };
+       };
+
        regulators {
                compatible = "simple-bus";
                #address-cells = <1>;
                        >;
                };
 
+               pinctrl_led: ledgrp {
+                       fsl,pins = <
+                               MX6SL_PAD_HSIC_STROBE__GPIO3_IO20 0x17059
+                       >;
+               };
+
                pinctrl_kpp: kppgrp {
                        fsl,pins = <
                                MX6SL_PAD_KEY_ROW0__KEY_ROW0    0x1b010