4b36167d668ba58aacef7044fcb9b3069cb8cae3
[openwrt/staging/blocktrron.git] /
1 From c3eeabe0b8d22d7c869278cc0cb35b83512fbed5 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Marek=20Beh=C3=BAn?= <kabel@kernel.org>
3 Date: Mon, 1 Jul 2024 13:30:10 +0200
4 Subject: [PATCH 08/11] ARM: dts: turris-omnia: Add GPIO key node for front
5 button
6 MIME-Version: 1.0
7 Content-Type: text/plain; charset=UTF-8
8 Content-Transfer-Encoding: 8bit
9
10 Now that we have the MCU device-tree node, which acts as a GPIO
11 controller, add GPIO key node for the front button.
12
13 Signed-off-by: Marek BehĂșn <kabel@kernel.org>
14 Reviewed-by: Andrew Lunn <andrew@lunn.ch>
15 Reviewed-by: Andy Shevchenko <andy@kernel.org>
16 Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
17 Acked-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
18 Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
19 Link: https://lore.kernel.org/r/20240701113010.16447-9-kabel@kernel.org
20 Signed-off-by: Arnd Bergmann <arnd@arndb.de>
21 ---
22 .../boot/dts/marvell/armada-385-turris-omnia.dts | 13 +++++++++++++
23 1 file changed, 13 insertions(+)
24
25 --- a/arch/arm/boot/dts/marvell/armada-385-turris-omnia.dts
26 +++ b/arch/arm/boot/dts/marvell/armada-385-turris-omnia.dts
27 @@ -112,6 +112,19 @@
28 status = "disabled";
29 };
30
31 + gpio-keys {
32 + compatible = "gpio-keys";
33 +
34 + front-button {
35 + label = "Front Button";
36 + linux,code = <KEY_VENDOR>;
37 + linux,can-disable;
38 + gpios = <&mcu 0 12 GPIO_ACTIVE_HIGH>;
39 + /* debouncing is done by the microcontroller */
40 + debounce-interval = <0>;
41 + };
42 + };
43 +
44 sound {
45 compatible = "simple-audio-card";
46 simple-audio-card,name = "SPDIF";