[PATCH V2 3/4] ARM: dts: omap5-uevm: Add LED support for uEVM blue LED
Sricharan R
r.sricharan at ti.com
Thu Jun 6 13:48:38 EDT 2013
From: Dan Murphy <dmurphy at ti.com>
Add support for blue LED 1 off of GPIO 153.
Make the LED a heartbeat LED
Configure the MUX for GPIO output.
Cc: Dan Murphy <dmurphy at ti.com>
Signed-off-by: Dan Murphy <dmurphy at ti.com>
[Sricharan R <r.sricharan at ti.com>: Replaced constants with preprocessor macros]
Signed-off-by: Sricharan R <r.sricharan at ti.com>
---
[V2] Removed the redundant comments
arch/arm/boot/dts/omap5-uevm.dts | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/arch/arm/boot/dts/omap5-uevm.dts b/arch/arm/boot/dts/omap5-uevm.dts
index a31e42f..6e8bb86 100644
--- a/arch/arm/boot/dts/omap5-uevm.dts
+++ b/arch/arm/boot/dts/omap5-uevm.dts
@@ -59,6 +59,15 @@
reset-supply = <&hsusb3_reset>;
};
+ leds {
+ compatible = "gpio-leds";
+ led at 1 {
+ label = "omap5:blue:usr1";
+ gpios = <&gpio5 25 GPIO_ACTIVE_HIGH>; /* gpio5_153 D1 LED */
+ linux,default-trigger = "heartbeat";
+ default-state = "off";
+ };
+ };
};
&omap5_pmx_core {
@@ -70,6 +79,7 @@
&mcbsp1_pins
&mcbsp2_pins
&usbhost_pins
+ &led_gpio_pins
>;
twl6040_pins: pinmux_twl6040_pins {
@@ -168,6 +178,12 @@
0x6e (PIN_OUTPUT | MUX_MODE6) /* gpio3_79 ETH_NRESET */
>;
};
+
+ led_gpio_pins: pinmux_led_gpio_pins {
+ pinctrl-single,pins = <
+ 0x196 (PIN_OUTPUT | MUX_MODE6) /* uart3_cts_rctx.gpio5_153 */
+ >;
+ };
};
&omap5_pmx_wkup {
--
1.7.9.5
More information about the linux-arm-kernel
mailing list