From: hdegoede@redhat.com (Hans de Goede)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/8] ARM: dts: sun8i: reference-design-tablet: Add gsl1680 touchscreen node
Date: Mon, 8 Aug 2016 21:43:13 +0200 [thread overview]
Message-ID: <1470685398-14568-3-git-send-email-hdegoede@redhat.com> (raw)
In-Reply-To: <1470685398-14568-1-git-send-email-hdegoede@redhat.com>
Almost all sun8i tablets use a gsl1680 touchscreen controller, so add
a node describing it to reference-design-tablet.dtsi.
Almost all, but not all, so mark it as disabled by default (dts files
will also need to supply a firmware-name and resolution info).
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
.../boot/dts/sun8i-reference-design-tablet.dtsi | 28 ++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/arch/arm/boot/dts/sun8i-reference-design-tablet.dtsi b/arch/arm/boot/dts/sun8i-reference-design-tablet.dtsi
index 9d90361..f29897c 100644
--- a/arch/arm/boot/dts/sun8i-reference-design-tablet.dtsi
+++ b/arch/arm/boot/dts/sun8i-reference-design-tablet.dtsi
@@ -63,6 +63,27 @@
};
};
+&i2c0 {
+ /*
+ * The gsl1680 is rated at 400KHz and it will not work reliable at
+ * 100KHz, this has been confirmed on multiple different q8 tablets.
+ * The gsl1680 is the only device on this bus.
+ */
+ clock-frequency = <400000>;
+
+ gsl1680: touchscreen at 40 {
+ compatible = "silead,gsl1680";
+ reg = <0x40>;
+ interrupt-parent = <&pio>;
+ interrupts = <1 5 IRQ_TYPE_EDGE_FALLING>; /* PB5 */
+ pinctrl-names = "default";
+ pinctrl-0 = <&ts_power_pin>;
+ power-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */
+ /* Most tablets use this touchscreen, but not all */
+ status = "disabled";
+ };
+};
+
&mmc0 {
pinctrl-names = "default";
pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin>;
@@ -88,6 +109,13 @@
allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
};
+ ts_power_pin: ts_power_pin at 0 {
+ allwinner,pins = "PH1";
+ allwinner,function = "gpio_out";
+ allwinner,drive = <SUN4I_PINCTRL_10_MA>;
+ allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
+ };
+
usb0_id_detect_pin: usb0_id_detect_pin at 0 {
allwinner,pins = "PH8";
allwinner,function = "gpio_in";
--
2.7.4
next prev parent reply other threads:[~2016-08-08 19:43 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-08 19:43 [PATCH 1/8] ARM: dts: sun8i: Use sun8i-reference-design-tablet for gt90h dts Hans de Goede
2016-08-08 19:43 ` [PATCH 2/8] ARM: dts: sun8i: Add dt node for rtl8703as wifi chip on ga10h Hans de Goede
2016-08-16 2:43 ` Chen-Yu Tsai
2016-08-16 8:41 ` Hans de Goede
2016-08-08 19:43 ` Hans de Goede [this message]
2016-08-16 2:45 ` [PATCH 3/8] ARM: dts: sun8i: reference-design-tablet: Add gsl1680 touchscreen node Chen-Yu Tsai
2016-08-22 18:31 ` Maxime Ripard
2016-08-08 19:43 ` [PATCH 4/8] ARM: dts: sun8i: Add touchscreen node for sun8i-a23-gt90h Hans de Goede
2016-08-16 2:47 ` Chen-Yu Tsai
2016-08-16 9:02 ` Hans de Goede
2016-08-22 18:30 ` Maxime Ripard
2016-08-22 19:03 ` Hans de Goede
2016-08-23 2:05 ` Icenowy Zheng
2016-08-23 9:26 ` Maxime Ripard
2016-08-23 9:39 ` Hans de Goede
2016-08-23 15:17 ` Maxime Ripard
2016-08-23 15:59 ` Hans de Goede
2016-08-26 20:46 ` Maxime Ripard
2016-08-27 8:32 ` Hans de Goede
2016-08-30 16:33 ` Maxime Ripard
2016-08-08 19:43 ` [PATCH 5/8] ARM: dts: sun8i: Add touchscreen node for sun8i-a23-inet86dz Hans de Goede
2016-08-16 2:48 ` Chen-Yu Tsai
2016-08-08 19:43 ` [PATCH 6/8] ARM: dts: sun8i: Add touchscreen node for sun8i-a23-polaroid-mid2407pxe03 Hans de Goede
2016-08-16 3:03 ` Chen-Yu Tsai
2016-08-08 19:43 ` [PATCH 7/8] ARM: dts: sun8i: Add touchscreen node for sun8i-a23-polaroid-mid2809pxe04 Hans de Goede
2016-08-16 2:49 ` Chen-Yu Tsai
2016-08-08 19:43 ` [PATCH 8/8] ARM: dts: sun8i: Add touchscreen node for sun8i-a33-ga10h Hans de Goede
2016-08-16 2:49 ` Chen-Yu Tsai
2016-08-16 2:40 ` [PATCH 1/8] ARM: dts: sun8i: Use sun8i-reference-design-tablet for gt90h dts Chen-Yu Tsai
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=1470685398-14568-3-git-send-email-hdegoede@redhat.com \
--to=hdegoede@redhat.com \
--cc=linux-arm-kernel@lists.infradead.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).