]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: dts: pfla02: Add GPIO LEDs
authorPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 14 Apr 2014 15:37:25 +0000 (17:37 +0200)
committerShawn Guo <shawn.guo@freescale.com>
Fri, 16 May 2014 15:01:53 +0000 (23:01 +0800)
This patch enables the red and green GPIO LEDs on Phytec phyFLEX i.MX6 modules.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi

index 8ab2c448b56c48ddc9469a76dab934bc29aa3a17..713893702122f58a967f628eaa10ba74605f6f82 100644 (file)
                        gpio = <&gpio1 0 0>;
                };
        };
+
+       gpio_leds: leds {
+               compatible = "gpio-leds";
+
+               green {
+                       label = "phyflex:green";
+                       gpios = <&gpio1 30 0>;
+               };
+
+               red {
+                       label = "phyflex:red";
+                       gpios = <&gpio2 31 0>;
+               };
+       };
 };
 
 &ecspi3 {
                                MX6QDL_PAD_EIM_D23__GPIO3_IO23 0x80000000
                                MX6QDL_PAD_DISP0_DAT3__GPIO4_IO24 0x80000000 /* SPI NOR chipselect */
                                MX6QDL_PAD_DI0_PIN15__GPIO4_IO17  0x80000000 /* PMIC interrupt */
+                               MX6QDL_PAD_ENET_TXD0__GPIO1_IO30 0x80000000 /* Green LED */
+                               MX6QDL_PAD_EIM_EB3__GPIO2_IO31 0x80000000 /* Red LED */
                        >;
                };