summaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/ste-nomadik-s8815.dts
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2013-05-18 23:55:13 +0200
committerLinus Walleij <linus.walleij@linaro.org>2013-05-26 22:24:42 +0200
commit175210a842e2c05cb5dc606ad43a5dbefe12977f (patch)
tree2a17f6e76065300357260d27a73726c36e807980 /arch/arm/boot/dts/ste-nomadik-s8815.dts
parent7690fbb293df83025cffb608f9c2e81414c468a8 (diff)
downloadblackbird-op-linux-175210a842e2c05cb5dc606ad43a5dbefe12977f.tar.gz
blackbird-op-linux-175210a842e2c05cb5dc606ad43a5dbefe12977f.zip
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 @@
gpios = <&gpio3 16 0x1>;
};
};
+
+ /* The user LED on the board is set up to be used for heartbeat */
+ leds {
+ compatible = "gpio-leds";
+ user-led {
+ label = "user_led";
+ gpios = <&gpio0 2 0x1>;
+ default-state = "off";
+ linux,default-trigger = "heartbeat";
+ };
+ };
+
+ /* User key mapped in as "escape" */
+ gpio-keys {
+ compatible = "gpio-keys";
+ user-button {
+ label = "user_button";
+ gpios = <&gpio0 3 0x1>;
+ linux,code = <1>; /* KEY_ESC */
+ gpio-key,wakeup;
+ };
+ };
};
OpenPOWER on IntegriCloud