From: Sergei Shtylyov <sergei.shtylyov-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org>
To: horms-/R6kz+dDXgpPR4JQBCEnsQ@public.gmane.org,
linux-renesas-soc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org,
mark.rutland-5wv7dgnIgG8@public.gmane.org,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: magnus.damm-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
Subject: [PATCH] ARM: dts: blanche: add support for general purpose switches
Date: Wed, 17 Aug 2016 22:03:06 +0300 [thread overview]
Message-ID: <10166368.YKl2X2iyOO@wasted.cogentembedded.com> (raw)
In-Reply-To: <5383928.8UnDsUpmkz-gHKXc3Y1Z8zGSmamagVegGFoWSdPRAKMAL8bYrjMMd8@public.gmane.org>
Add support for the general purpose software switches SW2 and tactile
switches SW24/25 as a virtual keyboard (like it was done with the Lager/
Koelsch boards).
Signed-off-by: Sergei Shtylyov <sergei.shtylyov-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org>
---
This patch is against the 'renesas-devel-20160817-v4.8-rc2' of Simon Horman's
'renesas.git' repo.
arch/arm/boot/dts/r8a7792-blanche.dts | 49 ++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
Index: renesas/arch/arm/boot/dts/r8a7792-blanche.dts
===================================================================
--- renesas.orig/arch/arm/boot/dts/r8a7792-blanche.dts
+++ renesas/arch/arm/boot/dts/r8a7792-blanche.dts
@@ -11,6 +11,8 @@
/dts-v1/;
#include "r8a7792.dtsi"
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
/ {
model = "Blanche";
@@ -54,6 +56,53 @@
pinctrl-0 = <&lan89218_pins>;
pinctrl-names = "default";
};
+
+ keyboard {
+ compatible = "gpio-keys";
+
+ key-1 {
+ linux,code = <KEY_1>;
+ label = "SW2-1";
+ wakeup-source;
+ debounce-interval = <20>;
+ gpios = <&gpio3 10 GPIO_ACTIVE_LOW>;
+ };
+ key-2 {
+ linux,code = <KEY_2>;
+ label = "SW2-2";
+ wakeup-source;
+ debounce-interval = <20>;
+ gpios = <&gpio3 11 GPIO_ACTIVE_LOW>;
+ };
+ key-3 {
+ linux,code = <KEY_3>;
+ label = "SW2-3";
+ wakeup-source;
+ debounce-interval = <20>;
+ gpios = <&gpio3 12 GPIO_ACTIVE_LOW>;
+ };
+ key-4 {
+ linux,code = <KEY_4>;
+ label = "SW2-4";
+ wakeup-source;
+ debounce-interval = <20>;
+ gpios = <&gpio3 15 GPIO_ACTIVE_LOW>;
+ };
+ key-a {
+ linux,code = <KEY_A>;
+ label = "SW24";
+ wakeup-source;
+ debounce-interval = <20>;
+ gpios = <&gpio3 20 GPIO_ACTIVE_LOW>;
+ };
+ key-b {
+ linux,code = <KEY_B>;
+ label = "SW25";
+ wakeup-source;
+ debounce-interval = <20>;
+ gpios = <&gpio11 2 GPIO_ACTIVE_LOW>;
+ };
+ };
};
&extal_clk {
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2016-08-17 19:03 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-14 20:58 [PATCH v2 0/3] Add R8A7792/Blanche PFC support Sergei Shtylyov
2016-07-14 21:00 ` [PATCH v3 1/3] ARM: dts: r8a7792: add " Sergei Shtylyov
2016-07-14 21:00 ` [PATCH v3 2/3] ARM: dts: blanche: add SCIF0/3 pins Sergei Shtylyov
2016-07-14 21:02 ` [PATCH v3 3/3] ARM: dts: blanche: add Ethernet pins Sergei Shtylyov
2016-07-18 2:09 ` [PATCH v2 0/3] Add R8A7792/Blanche PFC support Simon Horman
2016-08-18 18:31 ` [PATCH] ARM: dts: blanche: add SDHI0 support Sergei Shtylyov
2016-08-22 7:33 ` Simon Horman
2016-08-22 14:04 ` Sergei Shtylyov
2016-08-23 7:23 ` Simon Horman
[not found] ` <5383928.8UnDsUpmkz-gHKXc3Y1Z8zGSmamagVegGFoWSdPRAKMAL8bYrjMMd8@public.gmane.org>
2016-08-17 19:03 ` Sergei Shtylyov [this message]
2016-08-22 7:18 ` [PATCH] ARM: dts: blanche: add support for general purpose switches Simon Horman
2016-08-19 20:42 ` [PATCH] ARM: dts: blanche: add DU support Sergei Shtylyov
2016-08-22 7:41 ` Simon Horman
2016-08-22 8:10 ` Geert Uytterhoeven
2016-08-22 10:34 ` Sergei Shtylyov
2016-08-23 7:24 ` Simon Horman
2016-08-22 20:39 ` [PATCH] ARM: dts: blanche: add support for general purpose LEDs Sergei Shtylyov
2016-08-23 7:39 ` Simon Horman
2016-08-23 22:23 ` Sergei Shtylyov
2016-08-24 19:22 ` [PATCH v2] " Sergei Shtylyov
2016-08-26 13:40 ` Simon Horman
2016-09-05 21:33 ` [PATCH] ARM: dts: wheat: add support for tactile switches Sergei Shtylyov
2016-09-06 7:11 ` Geert Uytterhoeven
[not found] ` <CAMuHMdUyF6+T3EumGy5eyfqcio+n506fCTn1N40LEsbD2o_UYg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-09-06 10:15 ` Simon Horman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=10166368.YKl2X2iyOO@wasted.cogentembedded.com \
--to=sergei.shtylyov-m4dtvfq/zs1mrggop+s0pdbpr1lh4cv8@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=horms-/R6kz+dDXgpPR4JQBCEnsQ@public.gmane.org \
--cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org \
--cc=linux-renesas-soc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=magnus.damm-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=mark.rutland-5wv7dgnIgG8@public.gmane.org \
--cc=robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).