[PATCH 1/4] ARM: at91: usb_a9g20/dt: add leds support

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Sun Feb 5 14:13:35 EST 2012


Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
Cc: Nicolas Ferre <nicolas.ferre at atmel.com>
---
 arch/arm/boot/dts/usb_a9g20.dts |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/arch/arm/boot/dts/usb_a9g20.dts b/arch/arm/boot/dts/usb_a9g20.dts
index fda27eb..27ab9bb 100644
--- a/arch/arm/boot/dts/usb_a9g20.dts
+++ b/arch/arm/boot/dts/usb_a9g20.dts
@@ -96,6 +96,17 @@
 					spi-max-frequency = <20000000>;
 				};
 			};
+
+			leds {
+				compatible = "gpio-leds";
+
+				user_led {
+					label = "user_led";
+					gpios = <&pioB 21 1>;
+					linux,default-trigger = "heartbeat";
+				};
+			};
+
 		};
 	};
 };
-- 
1.7.7




More information about the linux-arm-kernel mailing list