ARM: dts: AM33XX: Add user-leds device tree data to am335x-evmsk
authorAnilKumar Ch <anilkumar@ti.com>
Tue, 6 Nov 2012 13:48:36 +0000 (19:18 +0530)
committerBenoit Cousson <b-cousson@ti.com>
Tue, 6 Nov 2012 14:45:52 +0000 (15:45 +0100)
Add gpio-leds device tree data to am335x-evmsk device to enable gpio
based user-leds (USR0, USR1, USR2 and USR3) present on am335x starter
kit.

Signed-off-by: AnilKumar Ch <anilkumar@ti.com>
Signed-off-by: Benoit Cousson <b-cousson@ti.com>
arch/arm/boot/dts/am335x-evmsk.dts

index 659ec5b73ab44449635cd70c107192c6e87a01d7..7262fa83b8d1ea00121692da758bc01417eb18e5 100644 (file)
                regulator-name = "lis3_reg";
                regulator-boot-on;
        };
+
+       leds {
+               compatible = "gpio-leds";
+
+               led@1 {
+                       label = "evmsk:green:usr0";
+                       gpios = <&gpio2 4 0>;
+                       default-state = "off";
+               };
+
+               led@2 {
+                       label = "evmsk:green:usr1";
+                       gpios = <&gpio2 5 0>;
+                       default-state = "off";
+               };
+
+               led@3 {
+                       label = "evmsk:green:mmc0";
+                       gpios = <&gpio2 6 0>;
+                       linux,default-trigger = "mmc0";
+                       default-state = "off";
+               };
+
+               led@4 {
+                       label = "evmsk:green:heartbeat";
+                       gpios = <&gpio2 7 0>;
+                       linux,default-trigger = "heartbeat";
+                       default-state = "off";
+               };
+       };
 };
 
 /include/ "tps65910.dtsi"