From: Hans de Goede <hdegoede@redhat.com>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>,
Rob Herring <robh+dt@kernel.org>
Cc: Maxime Ripard <maxime.ripard@free-electrons.com>,
Chen-Yu Tsai <wens@csie.org>,
linux-input@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
devicetree <devicetree@vger.kernel.org>,
Hans de Goede <hdegoede@redhat.com>
Subject: [PATCH 4/4] ARM: dts: sun4i: Describe softbuttons in dserve-dsrv9703c touchscreen node
Date: Sun, 31 Jul 2016 17:23:10 +0200 [thread overview]
Message-ID: <1469978590-14081-5-git-send-email-hdegoede@redhat.com> (raw)
In-Reply-To: <1469978590-14081-1-git-send-email-hdegoede@redhat.com>
The dserve-dsrv9703c touchscreen has 3 softbuttons, describe these
in the dts.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
arch/arm/boot/dts/sun4i-a10-dserve-dsrv9703c.dts | 49 ++++++++++++++++++++++++
1 file changed, 49 insertions(+)
diff --git a/arch/arm/boot/dts/sun4i-a10-dserve-dsrv9703c.dts b/arch/arm/boot/dts/sun4i-a10-dserve-dsrv9703c.dts
index 893497e..92e15e4 100644
--- a/arch/arm/boot/dts/sun4i-a10-dserve-dsrv9703c.dts
+++ b/arch/arm/boot/dts/sun4i-a10-dserve-dsrv9703c.dts
@@ -78,6 +78,18 @@
max-microvolt = <3000000>;
};
+ leds {
+ compatible = "gpio-leds";
+ pinctrl-names = "default";
+ pinctrl-0 = <&led_pins>;
+
+ touchscreen_softbuttons_led {
+ label = "dsrv9703c:white:touschscreen-softbuttons";
+ gpios = <&pio 0 5 GPIO_ACTIVE_HIGH>; /* PA5 */
+ linux,default-trigger = "touschscreen-softbuttons";
+ };
+ };
+
reg_motor: reg_motor {
compatible = "regulator-fixed";
pinctrl-names = "default";
@@ -140,6 +152,36 @@
reset-gpios = <&pio 1 13 GPIO_ACTIVE_LOW>;
touchscreen-size-x = <1024>;
touchscreen-size-y = <768>;
+
+ button@0 {
+ label = "Esc";
+ linux,code = <KEY_ESC>;
+ softbutton-min-x = <1084>;
+ softbutton-max-x = <1098>;
+ softbutton-min-y = <0>;
+ softbutton-max-y = <49>;
+ linux,led-trigger = "touschscreen-softbuttons";
+ };
+
+ button@1 {
+ label = "Home";
+ linux,code = <KEY_HOMEPAGE>;
+ softbutton-min-x = <1084>;
+ softbutton-max-x = <1098>;
+ softbutton-min-y = <50>;
+ softbutton-max-y = <99>;
+ linux,led-trigger = "touschscreen-softbuttons";
+ };
+
+ button@2 {
+ label = "Menu";
+ linux,code = <KEY_MENU>;
+ softbutton-min-x = <1084>;
+ softbutton-max-x = <1098>;
+ softbutton-min-y = <100>;
+ softbutton-max-y = <149>;
+ linux,led-trigger = "touschscreen-softbuttons";
+ };
};
};
@@ -191,6 +233,13 @@
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
};
+ led_pins: led_pins@0 {
+ allwinner,pins = "PA5";
+ allwinner,function = "gpio_out";
+ allwinner,drive = <SUN4I_PINCTRL_10_MA>;
+ allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
+ };
+
motor_pins: motor_pins@0 {
allwinner,pins = "PB3";
allwinner,function = "gpio_out";
--
2.7.4
prev parent reply other threads:[~2016-07-31 15:23 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-31 15:23 [PATCH 0/4] input: touchscreen: Add generic touchscreen softbutton support Hans de Goede
2016-07-31 15:23 ` [PATCH 1/4] input: touchscreen: Add generic touchscreen softbutton handling code Hans de Goede
2016-08-01 16:54 ` Rob Herring
2016-08-01 17:41 ` Dmitry Torokhov
2016-08-02 8:33 ` Hans de Goede
2016-08-11 9:21 ` Hans de Goede
2016-08-02 8:19 ` Hans de Goede
[not found] ` <1469978590-14081-1-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-07-31 15:23 ` [PATCH 2/4] input: touchscreen: Add LED trigger support to the softbutton code Hans de Goede
2016-07-31 15:23 ` [PATCH 3/4] input: touchscreen: edt-ft5x06: Add support for softbuttons Hans de Goede
2016-07-31 15:23 ` Hans de Goede [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=1469978590-14081-5-git-send-email-hdegoede@redhat.com \
--to=hdegoede@redhat.com \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.torokhov@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-input@vger.kernel.org \
--cc=maxime.ripard@free-electrons.com \
--cc=robh+dt@kernel.org \
--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;
as well as URLs for NNTP newsgroup(s).