]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
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)
committerGregory CLEMENT <gregory.clement@bootlin.com>
Fri, 5 Jul 2024 12:45:47 +0000 (14:45 +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>
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
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";