]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ARM: dts: stm32: add UserPA13 button on stm32mp135f-dk
authorFabien Dessenne <fabien.dessenne@foss.st.com>
Tue, 3 May 2022 09:41:33 +0000 (11:41 +0200)
committerAlexandre Torgue <alexandre.torgue@foss.st.com>
Tue, 3 May 2022 13:41:58 +0000 (15:41 +0200)
The PA13 user button is connected to the PA13 pin of the stm32mp135f-dk
board. It requires an internal pull-up configuration.

Signed-off-by: Fabien Dessenne <fabien.dessenne@foss.st.com>
Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>
arch/arm/boot/dts/stm32mp135f-dk.dts

index 65acee0f68b70aa664f85c6e10e34f2715a67cd3..09d6226d598f433e3c53e18aea06069d3c88865e 100644 (file)
@@ -7,6 +7,7 @@
 /dts-v1/;
 
 #include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
 #include <dt-bindings/leds/common.h>
 #include "stm32mp135.dtsi"
 #include "stm32mp13xf.dtsi"
                reg = <0xc0000000 0x20000000>;
        };
 
+       gpio-keys {
+               compatible = "gpio-keys";
+
+               user-pa13 {
+                       label = "User-PA13";
+                       linux,code = <BTN_1>;
+                       gpios = <&gpioa 13 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
+               };
+       };
+
        leds {
                compatible = "gpio-leds";