aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/am335x-bone.dts
diff options
context:
space:
mode:
authorAnilKumar Ch <anilkumar@ti.com>2012-11-06 19:18:34 +0530
committerBenoit Cousson <b-cousson@ti.com>2012-11-06 15:45:50 +0100
commit5d4e17063fa8d0af63e356089a321c482cbd7603 (patch)
treeb686c86cd83c1b919619ee2be7207a15750288c6 /arch/arm/boot/dts/am335x-bone.dts
parent7e782c41da0148af457e474b8744e002af869227 (diff)
ARM: dts: AM33XX: Add user-leds device tree data to am335x-bone
Add gpio-leds device tree data to am335x-bone device to enable gpio based user-leds (USR0, USR1, USR2 and USR3) present on BeagleBone. [koen@dominion.thruhere.net: led0, led1 suggested by koen] Signed-off-by: AnilKumar Ch <anilkumar@ti.com> Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Diffstat (limited to 'arch/arm/boot/dts/am335x-bone.dts')
-rw-r--r--arch/arm/boot/dts/am335x-bone.dts30
1 files changed, 30 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/am335x-bone.dts b/arch/arm/boot/dts/am335x-bone.dts
index 1aac58bfb4a..2c338889df1 100644
--- a/arch/arm/boot/dts/am335x-bone.dts
+++ b/arch/arm/boot/dts/am335x-bone.dts
@@ -53,6 +53,36 @@
};
};
+
+ leds {
+ compatible = "gpio-leds";
+
+ led@2 {
+ label = "beaglebone:green:heartbeat";
+ gpios = <&gpio2 21 0>;
+ linux,default-trigger = "heartbeat";
+ default-state = "off";
+ };
+
+ led@3 {
+ label = "beaglebone:green:mmc0";
+ gpios = <&gpio2 22 0>;
+ linux,default-trigger = "mmc0";
+ default-state = "off";
+ };
+
+ led@4 {
+ label = "beaglebone:green:usr2";
+ gpios = <&gpio2 23 0>;
+ default-state = "off";
+ };
+
+ led@5 {
+ label = "beaglebone:green:usr3";
+ gpios = <&gpio2 24 0>;
+ default-state = "off";
+ };
+ };
};
/include/ "tps65217.dtsi"