]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ARM: dts: imx6qdl-sabreauto: Support debug LED
authorLiu Ying <Ying.Liu@freescale.com>
Wed, 19 Feb 2014 07:15:48 +0000 (15:15 +0800)
committerShawn Guo <shawn.guo@linaro.org>
Thu, 20 Feb 2014 01:38:07 +0000 (09:38 +0800)
The D9 LED controlled by gpio on the imx6qdl-sabreauto
CPU board is a debug LED according to the board design.
This patch adds the relevant device tree nodes to the
imx6qdl-sabreauto device tree file to support this LED.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
arch/arm/boot/dts/imx6qdl-sabreauto.dtsi

index 33e9bff9b076bece76fb45d0f34051d75f6b0873..009abd69385d854c15c4b35bc98aca87a1ef8d84 100644 (file)
  * http://www.gnu.org/copyleft/gpl.html
  */
 
+#include <dt-bindings/gpio/gpio.h>
+
 / {
        memory {
                reg = <0x10000000 0x80000000>;
        };
 
+       leds {
+               compatible = "gpio-leds";
+               pinctrl-names = "default";
+               pinctrl-0 = <&pinctrl_gpio_leds>;
+
+               user {
+                       label = "debug";
+                       gpios = <&gpio5 15 GPIO_ACTIVE_HIGH>;
+               };
+       };
+
        sound-spdif {
                compatible = "fsl,imx-audio-spdif",
                           "fsl,imx-sabreauto-spdif";
                        >;
                };
 
+               pinctrl_gpio_leds: gpioledsgrp {
+                       fsl,pins = <
+                               MX6QDL_PAD_DISP0_DAT21__GPIO5_IO15      0x80000000
+                       >;
+               };
+
                pinctrl_gpmi_nand: gpminandgrp {
                        fsl,pins = <
                                MX6QDL_PAD_NANDF_CLE__NAND_CLE          0xb0b1