Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>
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>

authored by

Marek Behún and committed by
Arnd Bergmann
ade99061 04515932

+13
+13
arch/arm/boot/dts/marvell/armada-385-turris-omnia.dts
··· 112 112 status = "disabled"; 113 113 }; 114 114 115 + gpio-keys { 116 + compatible = "gpio-keys"; 117 + 118 + front-button { 119 + label = "Front Button"; 120 + linux,code = <KEY_VENDOR>; 121 + linux,can-disable; 122 + gpios = <&mcu 0 12 GPIO_ACTIVE_HIGH>; 123 + /* debouncing is done by the microcontroller */ 124 + debounce-interval = <0>; 125 + }; 126 + }; 127 + 115 128 sound { 116 129 compatible = "simple-audio-card"; 117 130 simple-audio-card,name = "SPDIF";