From: megous@megous.com
To: maxime.ripard@free-electrons.com, wens@csie.org, robh@kernel.org,
Dmitry Torokhov <dmitry.torokhov@gmail.com>,
mark.rutland@arm.com
Cc: Ondrej Jirman <megous@megous.com>,
devicetree@vger.kernel.org, linux-sunxi@googlegroups.com,
linux-kernel@vger.kernel.org, hdegoede@redhat.com,
Ziping Chen <techping.chan@gmail.com>,
linux-input@vger.kernel.org,
linux-arm-kernel@lists.infradead.org
Subject: [PATCH RESEND v4 4/4] ARM: dts: sun8i: tbs-a711: Add support for volume keys input
Date: Wed, 27 Mar 2019 03:33:39 +0100 [thread overview]
Message-ID: <20190327023339.25975-5-megous@megous.com> (raw)
In-Reply-To: <20190327023339.25975-1-megous@megous.com>
From: Ondrej Jirman <megous@megous.com>
TBS A711 tablet has volume up/down keys connected to r_lradc. Add
support for these keys.
Signed-off-by: Ondrej Jirman <megous@megous.com>
---
arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts b/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts
index 1e840ab5a541..6ecdc11b7059 100644
--- a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts
+++ b/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts
@@ -46,6 +46,7 @@
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/pwm/pwm.h>
+#include <dt-bindings/input/input.h>
/ {
model = "TBS A711 Tablet";
@@ -200,6 +201,25 @@
status = "okay";
};
+&r_lradc {
+ vref-supply = <®_aldo2>;
+ status = "okay";
+
+ button@210 {
+ label = "Volume Up";
+ linux,code = <KEY_VOLUMEUP>;
+ channel = <0>;
+ voltage = <210000>;
+ };
+
+ button@410 {
+ label = "Volume Down";
+ linux,code = <KEY_VOLUMEDOWN>;
+ channel = <0>;
+ voltage = <410000>;
+ };
+};
+
&r_rsb {
status = "okay";
--
2.21.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
prev parent reply other threads:[~2019-03-27 2:34 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-27 2:33 [PATCH RESEND v4 0/4] Add support for lradc on A83T megous
2019-03-27 2:33 ` [PATCH RESEND v4 1/4] input: sun4i-a10-lradc-keys: Add support for A83T megous
2019-04-04 18:49 ` Dmitry Torokhov
2019-04-06 16:57 ` [linux-sunxi] " Ondřej Jirman
2019-03-27 2:33 ` [PATCH RESEND v4 2/4] dt-bindings: input: Add R_LRADC " megous
2019-03-27 2:33 ` [PATCH RESEND v4 3/4] ARM: dts: sunxi: " megous
2019-04-08 8:00 ` Maxime Ripard
2019-04-08 12:09 ` Ondřej Jirman
2019-04-09 7:43 ` Maxime Ripard
2019-03-27 2:33 ` megous [this message]
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=20190327023339.25975-5-megous@megous.com \
--to=megous@megous.com \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.torokhov@gmail.com \
--cc=hdegoede@redhat.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sunxi@googlegroups.com \
--cc=mark.rutland@arm.com \
--cc=maxime.ripard@free-electrons.com \
--cc=robh@kernel.org \
--cc=techping.chan@gmail.com \
--cc=wens@csie.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