ARM: dts: turris-omnia: Add GPIO key node for front button

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>
This commit is contained in:
Marek Behún 2024-07-01 13:30:10 +02:00 committed by Gregory CLEMENT
parent cfa65ef7c8
commit 731daaa509

View File

@ -112,6 +112,19 @@ sfp: sfp {
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";