ARM: dts: stm32: Add push button to stm32f469 Discovery board
authorBenjamin Gaignard <benjamin.gaignard@st.com>
Tue, 27 Feb 2018 14:00:41 +0000 (15:00 +0100)
committerAlexandre Torgue <alexandre.torgue@st.com>
Tue, 27 Feb 2018 14:01:18 +0000 (15:01 +0100)
Add node for user push button.

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>
Signed-off-by: Alexandre Torgue <alexandre.torgue@st.com>
arch/arm/boot/dts/stm32f469-disco.dts

index f8b0f1d5aaaa74cac259e45b3f28b9550968cd34..2f76726bf335b4aee8654083fd47893b29cfd9af 100644 (file)
@@ -49,6 +49,7 @@
 #include "stm32f429.dtsi"
 #include "stm32f469-pinctrl.dtsi"
 #include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
 
 / {
        model = "STMicroelectronics STM32F469i-DISCO board";
                };
        };
 
+       gpio_keys {
+               compatible = "gpio-keys";
+               #address-cells = <1>;
+               #size-cells = <0>;
+               autorepeat;
+               button@0 {
+                       label = "User";
+                       linux,code = <KEY_WAKEUP>;
+                       gpios = <&gpioa 0 GPIO_ACTIVE_HIGH>;
+               };
+       };
+
        /* This turns on vbus for otg for host mode (dwc2) */
        vcc5v_otg: vcc5v-otg-regulator {
                compatible = "regulator-fixed";