summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/r7s9210-rza2mevb.dts
diff options
context:
space:
mode:
authorChris Brandt <chris.brandt@renesas.com>2019-06-04 15:09:14 -0500
committerSimon Horman <horms+renesas@verge.net.au>2019-06-21 09:45:35 +0200
commit4592e49225cd40dcbc4c1e91772caa80da10f785 (patch)
tree3678729ea352d78e85ccb89d09bada3ea3d99207 /arch/arm/boot/dts/r7s9210-rza2mevb.dts
parente23391f36ce14719768ad5395e93a54fec7edf5a (diff)
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@renesas.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'arch/arm/boot/dts/r7s9210-rza2mevb.dts')
-rw-r--r--arch/arm/boot/dts/r7s9210-rza2mevb.dts20
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/r7s9210-rza2mevb.dts b/arch/arm/boot/dts/r7s9210-rza2mevb.dts
index 49c40065741b..d062d02865e7 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>
/ {
@@ -26,6 +27,21 @@
stdout-path = "serial0:115200n8";
};
+ 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>;
@@ -121,6 +137,10 @@
<RZA2_PINMUX(PORTL, 1, 5)>; /* IRQ5 */
};
+ keyboard_pins: keyboard {
+ pinmux = <RZA2_PINMUX(PORTJ, 1, 6)>; /* IRQ0 */
+ };
+
/* Serial Console */
scif4_pins: serial4 {
pinmux = <RZA2_PINMUX(PORT9, 0, 4)>, /* TxD4 */