820-v6.11-08-ARM-dts-turris-omnia-Add-GPIO-key-node-for-front-but.patch 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. From c3eeabe0b8d22d7c869278cc0cb35b83512fbed5 Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Marek=20Beh=C3=BAn?= <[email protected]>
  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. Now that we have the MCU device-tree node, which acts as a GPIO
  10. controller, add GPIO key node for the front button.
  11. Signed-off-by: Marek Behún <[email protected]>
  12. Reviewed-by: Andrew Lunn <[email protected]>
  13. Reviewed-by: Andy Shevchenko <[email protected]>
  14. Reviewed-by: Conor Dooley <[email protected]>
  15. Acked-by: Bartosz Golaszewski <[email protected]>
  16. Acked-by: Alexandre Belloni <[email protected]>
  17. Link: https://lore.kernel.org/r/[email protected]
  18. Signed-off-by: Arnd Bergmann <[email protected]>
  19. ---
  20. .../boot/dts/marvell/armada-385-turris-omnia.dts | 13 +++++++++++++
  21. 1 file changed, 13 insertions(+)
  22. --- a/arch/arm/boot/dts/marvell/armada-385-turris-omnia.dts
  23. +++ b/arch/arm/boot/dts/marvell/armada-385-turris-omnia.dts
  24. @@ -112,6 +112,19 @@
  25. status = "disabled";
  26. };
  27. + gpio-keys {
  28. + compatible = "gpio-keys";
  29. +
  30. + front-button {
  31. + label = "Front Button";
  32. + linux,code = <KEY_VENDOR>;
  33. + linux,can-disable;
  34. + gpios = <&mcu 0 12 GPIO_ACTIVE_HIGH>;
  35. + /* debouncing is done by the microcontroller */
  36. + debounce-interval = <0>;
  37. + };
  38. + };
  39. +
  40. sound {
  41. compatible = "simple-audio-card";
  42. simple-audio-card,name = "SPDIF";