On Tue, Jun 04, 2019 at 03:09:14PM -0500, Chris Brandt wrote: > Add support for input switch SW3 on the Renesas RZ/A2M EVB > development board. > > Note that this uses the IRQ interrupt, as the RZ/A2 GPIO controller > does not include interrupt support > > Signed-off-by: Chris Brandt <chris.brandt@xxxxxxxxxxx> Thanks Chris, I have applied this for inclusion in v5.3. There was a minor conflict when applying the pinctl portion of the patch which I have resolved. The result is as follows. >From 198120684b54efe8de4309b359d1ed36fdefa68c Mon Sep 17 00:00:00 2001 From: Chris Brandt <chris.brandt@xxxxxxxxxxx> Date: Tue, 4 Jun 2019 15:09:14 -0500 Subject: [PATCH] ARM: dts: rza2mevb: Add input switch Add support for input switch SW3 on the Renesas RZ/A2M EVB development board. Note that this uses the IRQ interrupt, as the RZ/A2 GPIO controller does not include interrupt support Signed-off-by: Chris Brandt <chris.brandt@xxxxxxxxxxx> Reviewed-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx> [simon: resolved minor merge conflict] Signed-off-by: Simon Horman <horms+renesas@xxxxxxxxxxxx> --- arch/arm/boot/dts/r7s9210-rza2mevb.dts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm/boot/dts/r7s9210-rza2mevb.dts b/arch/arm/boot/dts/r7s9210-rza2mevb.dts index 991e09de1219..25dd813d966e 100644 --- a/arch/arm/boot/dts/r7s9210-rza2mevb.dts +++ b/arch/arm/boot/dts/r7s9210-rza2mevb.dts @@ -9,6 +9,7 @@ /dts-v1/; #include "r7s9210.dtsi" #include <dt-bindings/gpio/gpio.h> +#include <dt-bindings/input/input.h> #include <dt-bindings/pinctrl/r7s9210-pinctrl.h> / { @@ -29,6 +30,21 @@ reg = <0x40000000 0x00800000>; /* HyperRAM */ }; + keyboard { + compatible = "gpio-keys"; + + pinctrl-names = "default"; + pinctrl-0 = <&keyboard_pins>; + + key-3 { + interrupt-parent = <&irqc>; + interrupts = <0 IRQ_TYPE_EDGE_BOTH>; + linux,code = <KEY_3>; + label = "SW3"; + wakeup-source; + }; + }; + lbsc { #address-cells = <1>; #size-cells = <1>; @@ -57,6 +73,10 @@ }; &pinctrl { + keyboard_pins: keyboard { + pinmux = <RZA2_PINMUX(PORTJ, 1, 6)>; /* IRQ0 */ + }; + /* Serial Console */ scif4_pins: serial4 { pinmux = <RZA2_PINMUX(PORT9, 0, 4)>, /* TxD4 */ -- 2.11.0