]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: renesas: r9a09g077m44-rzt2h-evk: Add GPIO keys
authorCosmin Tanislav <cosmin-gabriel.tanislav.xa@renesas.com>
Fri, 5 Dec 2025 15:02:33 +0000 (17:02 +0200)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 9 Jan 2026 10:46:52 +0000 (11:46 +0100)
The Renesas RZ/T2H Evaluation Kit has three user buttons connected to
GPIOs that can be used as input keys.

Add support for them.

Signed-off-by: Cosmin Tanislav <cosmin-gabriel.tanislav.xa@renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://patch.msgid.link/20251205150234.2958140-8-cosmin-gabriel.tanislav.xa@renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
arch/arm64/boot/dts/renesas/r9a09g077m44-rzt2h-evk.dts

index d1474f1bd5236f2d7d1cf9a03d01c155c6833bce..c8e983b4367571fb37f54faf525be0ea5cc4c7d4 100644 (file)
@@ -7,6 +7,8 @@
 
 /dts-v1/;
 
+#include <dt-bindings/input/input.h>
+
 #include "r9a09g077m44.dtsi"
 
 /*
        model = "Renesas RZ/T2H EVK Board based on r9a09g077m44";
        compatible = "renesas,rzt2h-evk", "renesas,r9a09g077m44", "renesas,r9a09g077";
 
+       keys {
+               compatible = "gpio-keys";
+
+#if (!SD1_MICRO_SD)
+               /* SW2-3: OFF */
+               key-1 {
+                       interrupts-extended = <&pinctrl RZT2H_GPIO(8, 6) IRQ_TYPE_EDGE_FALLING>;
+                       linux,code = <KEY_1>;
+                       label = "SW9";
+                       wakeup-source;
+                       debounce-interval = <20>;
+               };
+#endif
+
+               key-2 {
+                       interrupts-extended = <&pinctrl RZT2H_GPIO(0, 3) IRQ_TYPE_EDGE_FALLING>;
+                       linux,code = <KEY_2>;
+                       label = "SW10";
+                       wakeup-source;
+                       debounce-interval = <20>;
+               };
+
+               key-3 {
+                       interrupts-extended = <&pinctrl RZT2H_GPIO(8, 7) IRQ_TYPE_EDGE_FALLING>;
+                       linux,code = <KEY_3>;
+                       label = "SW11";
+                       wakeup-source;
+                       debounce-interval = <20>;
+               };
+       };
+
        leds {
                compatible = "gpio-leds";