aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/ste-nomadik-s8815.dts
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2013-05-18 17:55:13 -0400
committerLinus Walleij <linus.walleij@linaro.org>2013-05-26 16:24:42 -0400
commit175210a842e2c05cb5dc606ad43a5dbefe12977f (patch)
tree2a17f6e76065300357260d27a73726c36e807980 /arch/arm/boot/dts/ste-nomadik-s8815.dts
parent7690fbb293df83025cffb608f9c2e81414c468a8 (diff)
ARM: nomadik: add led and key for S8815
This adds device tree hunks for the LED and userbutton on the USB S8815 board, and set up a heartbeat trigger on the LED and an escape key on the user button. Alter the defconfig to enable these standard DT-enabled GPIO drivers. Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'arch/arm/boot/dts/ste-nomadik-s8815.dts')
-rw-r--r--arch/arm/boot/dts/ste-nomadik-s8815.dts22
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/ste-nomadik-s8815.dts b/arch/arm/boot/dts/ste-nomadik-s8815.dts
index b28fbf3408e3..666945adc120 100644
--- a/arch/arm/boot/dts/ste-nomadik-s8815.dts
+++ b/arch/arm/boot/dts/ste-nomadik-s8815.dts
@@ -27,4 +27,26 @@
27 gpios = <&gpio3 16 0x1>; 27 gpios = <&gpio3 16 0x1>;
28 }; 28 };
29 }; 29 };
30
31 /* The user LED on the board is set up to be used for heartbeat */
32 leds {
33 compatible = "gpio-leds";
34 user-led {
35 label = "user_led";
36 gpios = <&gpio0 2 0x1>;
37 default-state = "off";
38 linux,default-trigger = "heartbeat";
39 };
40 };
41
42 /* User key mapped in as "escape" */
43 gpio-keys {
44 compatible = "gpio-keys";
45 user-button {
46 label = "user_button";
47 gpios = <&gpio0 3 0x1>;
48 linux,code = <1>; /* KEY_ESC */
49 gpio-key,wakeup;
50 };
51 };
30}; 52};