From 02050da4a9a21e68131e3086a8a21b5bd806226d Mon Sep 17 00:00:00 2001 From: Benjamin Gaignard Date: Tue, 27 Feb 2018 15:00:41 +0100 Subject: [PATCH] ARM: dts: stm32: Add push button to stm32f469 Discovery board Add node for user push button. Signed-off-by: Benjamin Gaignard Signed-off-by: Alexandre Torgue --- arch/arm/boot/dts/stm32f469-disco.dts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/stm32f469-disco.dts b/arch/arm/boot/dts/stm32f469-disco.dts index f8b0f1d5aaaa..2f76726bf335 100644 --- a/arch/arm/boot/dts/stm32f469-disco.dts +++ b/arch/arm/boot/dts/stm32f469-disco.dts @@ -49,6 +49,7 @@ #include "stm32f429.dtsi" #include "stm32f469-pinctrl.dtsi" #include +#include / { model = "STMicroelectronics STM32F469i-DISCO board"; @@ -95,6 +96,18 @@ }; }; + gpio_keys { + compatible = "gpio-keys"; + #address-cells = <1>; + #size-cells = <0>; + autorepeat; + button@0 { + label = "User"; + linux,code = ; + gpios = <&gpioa 0 GPIO_ACTIVE_HIGH>; + }; + }; + /* This turns on vbus for otg for host mode (dwc2) */ vcc5v_otg: vcc5v-otg-regulator { compatible = "regulator-fixed"; -- 2.34.1