]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ARM: dts: i.MX51 babbage: Support diagnostic LED
authorLiu Ying <Ying.Liu@freescale.com>
Mon, 10 Feb 2014 07:05:46 +0000 (15:05 +0800)
committerShawn Guo <shawn.guo@linaro.org>
Mon, 10 Feb 2014 08:11:14 +0000 (16:11 +0800)
The D25 LED controlled by gpio on the i.MX51 babbage
board is a diagnostic LED according to the board design.
This patch adds the relevant device tree nodes to the
i.MX51 babbage 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/imx51-babbage.dts

index ea5c67e2e0f63dd6e3b9433f21219654924f0a47..121dadd125c0a28d35d3b0f46606f906bb31cd0e 100644 (file)
                };
        };
 
+       leds {
+               compatible = "gpio-leds";
+               pinctrl-names = "default";
+               pinctrl-0 = <&pinctrl_gpio_leds>;
+
+               led-diagnostic {
+                       label = "diagnostic";
+                       gpios = <&gpio2 6 GPIO_ACTIVE_HIGH>;
+               };
+       };
+
        sound {
                compatible = "fsl,imx51-babbage-sgtl5000",
                             "fsl,imx-audio-sgtl5000";
                        >;
                };
 
+               pinctrl_gpio_leds: gpioledsgrp {
+                       fsl,pins = <
+                               MX51_PAD_EIM_D22__GPIO2_6               0x80000000
+                       >;
+               };
+
                pinctrl_i2c2: i2c2grp {
                        fsl,pins = <
                                MX51_PAD_KEY_COL4__I2C2_SCL             0x400001ed