ARM: dts: turris-omnia: Add GPIO key node for front button
authorMarek Behún <kabel@kernel.org>
Mon, 1 Jul 2024 11:30:10 +0000 (13:30 +0200)
committerArnd Bergmann <arnd@arndb.de>
Mon, 1 Jul 2024 13:47:15 +0000 (15:47 +0200)
Now that we have the MCU device-tree node, which acts as a GPIO
controller, add GPIO key node for the front button.

Signed-off-by: Marek Behún <kabel@kernel.org>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Acked-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20240701113010.16447-9-kabel@kernel.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/boot/dts/marvell/armada-385-turris-omnia.dts

index 59079d63fe27673719a6b72335331420eca57d84..43202890c959590f43814d745c948830d4acbd7d 100644 (file)
                status = "disabled";
        };
 
+       gpio-keys {
+               compatible = "gpio-keys";
+
+               front-button {
+                       label = "Front Button";
+                       linux,code = <KEY_VENDOR>;
+                       linux,can-disable;
+                       gpios = <&mcu 0 12 GPIO_ACTIVE_HIGH>;
+                       /* debouncing is done by the microcontroller */
+                       debounce-interval = <0>;
+               };
+       };
+
        sound {
                compatible = "simple-audio-card";
                simple-audio-card,name = "SPDIF";