From: Wolfram Sang Date: Sat, 21 Sep 2024 11:48:17 +0000 (+0200) Subject: ARM: dts: renesas: genmai: Define keyboard switch X-Git-Tag: v6.13-rc1~140^2~37^2~46 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f3b1d5c46a02482c73d5d32181d99f4aaf582afc;p=thirdparty%2Fkernel%2Flinux.git ARM: dts: renesas: genmai: Define keyboard switch Signed-off-by: Wolfram Sang Reviewed-by: Geert Uytterhoeven Link: https://lore.kernel.org/20240921114813.4124-12-wsa+renesas@sang-engineering.com Link: https://lore.kernel.org/20240927095414.10241-8-wsa+renesas@sang-engineering.com Signed-off-by: Geert Uytterhoeven --- diff --git a/arch/arm/boot/dts/renesas/r7s72100-genmai.dts b/arch/arm/boot/dts/renesas/r7s72100-genmai.dts index c68eebb9092b3..d28ba9e3cbaed 100644 --- a/arch/arm/boot/dts/renesas/r7s72100-genmai.dts +++ b/arch/arm/boot/dts/renesas/r7s72100-genmai.dts @@ -9,6 +9,7 @@ /dts-v1/; #include "r7s72100.dtsi" #include +#include #include / { @@ -53,6 +54,21 @@ }; }; + keyboard { + compatible = "gpio-keys"; + + pinctrl-names = "default"; + pinctrl-0 = <&keyboard_pins>; + + key-1 { + /* JP3 must be set to 1-2 (default) */ + interrupts-extended = <&irqc 6 IRQ_TYPE_EDGE_BOTH>; + linux,code = ; + label = "SW6,SW7"; + wakeup-source; + }; + }; + leds { status = "okay"; compatible = "gpio-leds"; @@ -201,6 +217,11 @@ pinmux = , ; }; + keyboard_pins: keyboard { + /* P3_1 as IRQ6 */ + pinmux = ; + }; + scif2_pins: serial2 { /* P3_0 as TxD2; P3_2 as RxD2 */ pinmux = , ;