diff mbox series

[2/2] ARM: dts: stm32: add push button to stm32f746 Discovery board

Message ID 20250217114332.1098482-2-dario.binacchi@amarulasolutions.com (mailing list archive)
State New
Headers show
Series [1/2] ARM: dts: stm32: add led to stm32f746 Discovery board | expand

Commit Message

Dario Binacchi Feb. 17, 2025, 11:43 a.m. UTC
Add node for user push button.

Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
---

 arch/arm/boot/dts/st/stm32f746-disco.dts | 10 ++++++++++
 1 file changed, 10 insertions(+)
diff mbox series

Patch

diff --git a/arch/arm/boot/dts/st/stm32f746-disco.dts b/arch/arm/boot/dts/st/stm32f746-disco.dts
index 8bdd10644bf1..b57dbdce2f40 100644
--- a/arch/arm/boot/dts/st/stm32f746-disco.dts
+++ b/arch/arm/boot/dts/st/stm32f746-disco.dts
@@ -86,6 +86,16 @@  led-usr {
 		};
 	};
 
+	gpio-keys {
+		compatible = "gpio-keys";
+		autorepeat;
+		button-0 {
+			label = "User";
+			linux,code = <KEY_HOME>;
+			gpios = <&gpioi 11 GPIO_ACTIVE_HIGH>;
+		};
+	};
+
 	usbotg_hs_phy: usb-phy {
 		#phy-cells = <0>;
 		compatible = "usb-nop-xceiv";