]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ARM: dts: stm32: add push button to stm32f746 Discovery board
authorDario Binacchi <dario.binacchi@amarulasolutions.com>
Mon, 17 Feb 2025 11:43:23 +0000 (12:43 +0100)
committerAlexandre Torgue <alexandre.torgue@foss.st.com>
Thu, 27 Feb 2025 08:34:19 +0000 (09:34 +0100)
Add node for user push button.

Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Link: https://lore.kernel.org/r/20250217114332.1098482-2-dario.binacchi@amarulasolutions.com
Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>
arch/arm/boot/dts/st/stm32f746-disco.dts

index 8bdd10644bf167e25a2f93fb5bdc11dbc5604ded..b57dbdce2f405e813cda136de0dbff4ec8b0bce7 100644 (file)
                };
        };
 
+       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";