ARM: dts: imx6qdl-sabresd.dtsi: Add red led
authorVincent Stehlé <vincent.stehle@freescale.com>
Wed, 5 Mar 2014 18:58:39 +0000 (19:58 +0100)
committerShawn Guo <shawn.guo@freescale.com>
Wed, 30 Apr 2014 05:35:18 +0000 (13:35 +0800)
Make the red gpio led available to the user.

This can be toggled with the sysfs for example, or used as a heartbeat or mmc
activity light by changing the trigger.

Signed-off-by: Vincent Stehlé <vincent.stehle@freescale.com>
Cc: Sascha Hauer <kernel@pengutronix.de>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
arch/arm/boot/dts/imx6qdl-sabresd.dtsi

index 0d816d3be4b697a30998506be266244b78d45590..7a88d9ae8daa8d2909005be85fea9c0e74e87ac1 100644 (file)
                default-brightness-level = <7>;
                status = "okay";
        };
+
+       leds {
+               compatible = "gpio-leds";
+               pinctrl-names = "default";
+               pinctrl-0 = <&pinctrl_gpio_leds>;
+
+               red {
+                       gpios = <&gpio1 2 0>;
+                       default-state = "on";
+               };
+       };
 };
 
 &audmux {
                        >;
                };
        };
+
+       gpio_leds {
+               pinctrl_gpio_leds: gpioledsgrp {
+                       fsl,pins = <
+                               MX6QDL_PAD_GPIO_2__GPIO1_IO02 0x80000000
+                       >;
+               };
+       };
 };
 
 &ldb {