summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/stm32429i-eval.dts
diff options
context:
space:
mode:
authorMaxime Coquelin <mcoquelin.stm32@gmail.com>2016-09-02 16:45:53 +0300
committerAlexandre TORGUE <alexandre.torgue@st.com>2016-11-04 17:07:49 +0300
commit5670501c996955af681cfb674ce1fcdc3de10fc1 (patch)
tree5f1add50e0e3281a10129c4c0061cedd977d22af /arch/arm/boot/dts/stm32429i-eval.dts
parented01154fe7dd1b199279892fde426ba7f7b6cd59 (diff)
downloadlinux-5670501c996955af681cfb674ce1fcdc3de10fc1.tar.xz
ARM: dts: Declare push button as GPIO key on stm32f429 boards
Signed-off-by: Maxime Coquelin <mcoquelin.stm32@gmail.com> Signed-off-by: Alexandre TORGUE <alexandre.torgue@st.com>
Diffstat (limited to 'arch/arm/boot/dts/stm32429i-eval.dts')
-rw-r--r--arch/arm/boot/dts/stm32429i-eval.dts18
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/stm32429i-eval.dts b/arch/arm/boot/dts/stm32429i-eval.dts
index 6bfc5959dac3..0fd78e4e8a45 100644
--- a/arch/arm/boot/dts/stm32429i-eval.dts
+++ b/arch/arm/boot/dts/stm32429i-eval.dts
@@ -47,6 +47,7 @@
/dts-v1/;
#include "stm32f429.dtsi"
+#include <dt-bindings/input/input.h>
/ {
model = "STMicroelectronics STM32429i-EVAL board";
@@ -82,6 +83,23 @@
};
};
+ gpio_keys {
+ compatible = "gpio-keys";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ autorepeat;
+ button@0 {
+ label = "Wake up";
+ linux,code = <KEY_WAKEUP>;
+ gpios = <&gpioa 0 0>;
+ };
+ button@1 {
+ label = "Tamper";
+ linux,code = <KEY_RESTART>;
+ gpios = <&gpioc 13 0>;
+ };
+ };
+
usbotg_hs_phy: usbphy {
#phy-cells = <0>;
compatible = "usb-nop-xceiv";