summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/stm32f429-disco.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/stm32f429-disco.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/stm32f429-disco.dts')
-rw-r--r--arch/arm/boot/dts/stm32f429-disco.dts13
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/stm32f429-disco.dts b/arch/arm/boot/dts/stm32f429-disco.dts
index 01408073dd53..7d0415e80668 100644
--- a/arch/arm/boot/dts/stm32f429-disco.dts
+++ b/arch/arm/boot/dts/stm32f429-disco.dts
@@ -47,6 +47,7 @@
/dts-v1/;
#include "stm32f429.dtsi"
+#include <dt-bindings/input/input.h>
/ {
model = "STMicroelectronics STM32F429i-DISCO board";
@@ -75,6 +76,18 @@
linux,default-trigger = "heartbeat";
};
};
+
+ gpio_keys {
+ compatible = "gpio-keys";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ autorepeat;
+ button@0 {
+ label = "User";
+ linux,code = <KEY_HOME>;
+ gpios = <&gpioa 0 0>;
+ };
+ };
};
&clk_hse {