diff options
author | Maxime Coquelin <mcoquelin.stm32@gmail.com> | 2016-09-02 15:45:53 +0200 |
---|---|---|
committer | Alexandre TORGUE <alexandre.torgue@st.com> | 2016-11-04 15:07:49 +0100 |
commit | 5670501c996955af681cfb674ce1fcdc3de10fc1 (patch) | |
tree | 5f1add50e0e3281a10129c4c0061cedd977d22af /arch/arm/boot/dts/stm32429i-eval.dts | |
parent | ed01154fe7dd1b199279892fde426ba7f7b6cd59 (diff) | |
download | linux-stable-5670501c996955af681cfb674ce1fcdc3de10fc1.tar.gz linux-stable-5670501c996955af681cfb674ce1fcdc3de10fc1.tar.bz2 linux-stable-5670501c996955af681cfb674ce1fcdc3de10fc1.zip |
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.dts | 18 |
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"; |