All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hans de Goede <hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.org>,
	Maxime Ripard
	<maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
	devicetree <devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	Hans de Goede <hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Subject: [PATCH 3/5] ARM: dts: sun8i: Add touchscreen node for sun8i-a23-polaroid-mid2407pxe03
Date: Sun, 11 Sep 2016 20:23:25 +0200	[thread overview]
Message-ID: <20160911182327.824-4-hdegoede@redhat.com> (raw)
In-Reply-To: <20160911182327.824-1-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>

Add a node enabling the gsl1680 touchscreen controller found on
sun8i-a23-polaroid-mid2407pxe03 tablets.

Signed-off-by: Hans de Goede <hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
---
Changes in v2:
-Make ldo_io1 vddio-supply for the touchscreen rather then marking it as
 regulator-always-on
---
 arch/arm/boot/dts/sun8i-a23-polaroid-mid2407pxe03.dts | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/arch/arm/boot/dts/sun8i-a23-polaroid-mid2407pxe03.dts b/arch/arm/boot/dts/sun8i-a23-polaroid-mid2407pxe03.dts
index 4789aac..6662127 100644
--- a/arch/arm/boot/dts/sun8i-a23-polaroid-mid2407pxe03.dts
+++ b/arch/arm/boot/dts/sun8i-a23-polaroid-mid2407pxe03.dts
@@ -90,3 +90,22 @@
 		allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
 	};
 };
+
+&reg_ldo_io1 {
+	regulator-min-microvolt = <3300000>;
+	regulator-max-microvolt = <3300000>;
+	regulator-name = "vcc-touchscreen";
+	status = "okay";
+};
+
+&touchscreen {
+	reg = <0x40>;
+	compatible = "silead,gsl1680";
+	firmware-name = "gsl1680-polaroid-mid2407pxe03.fw";
+	touchscreen-size-x = <960>;
+	touchscreen-size-y = <640>;
+	touchscreen-inverted-x;
+	touchscreen-inverted-y;
+	vddio-supply = <&reg_ldo_io1>;
+	status = "okay";
+};
-- 
2.9.3

--
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

WARNING: multiple messages have this Message-ID (diff)
From: hdegoede@redhat.com (Hans de Goede)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/5] ARM: dts: sun8i: Add touchscreen node for sun8i-a23-polaroid-mid2407pxe03
Date: Sun, 11 Sep 2016 20:23:25 +0200	[thread overview]
Message-ID: <20160911182327.824-4-hdegoede@redhat.com> (raw)
In-Reply-To: <20160911182327.824-1-hdegoede@redhat.com>

Add a node enabling the gsl1680 touchscreen controller found on
sun8i-a23-polaroid-mid2407pxe03 tablets.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
Changes in v2:
-Make ldo_io1 vddio-supply for the touchscreen rather then marking it as
 regulator-always-on
---
 arch/arm/boot/dts/sun8i-a23-polaroid-mid2407pxe03.dts | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/arch/arm/boot/dts/sun8i-a23-polaroid-mid2407pxe03.dts b/arch/arm/boot/dts/sun8i-a23-polaroid-mid2407pxe03.dts
index 4789aac..6662127 100644
--- a/arch/arm/boot/dts/sun8i-a23-polaroid-mid2407pxe03.dts
+++ b/arch/arm/boot/dts/sun8i-a23-polaroid-mid2407pxe03.dts
@@ -90,3 +90,22 @@
 		allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
 	};
 };
+
+&reg_ldo_io1 {
+	regulator-min-microvolt = <3300000>;
+	regulator-max-microvolt = <3300000>;
+	regulator-name = "vcc-touchscreen";
+	status = "okay";
+};
+
+&touchscreen {
+	reg = <0x40>;
+	compatible = "silead,gsl1680";
+	firmware-name = "gsl1680-polaroid-mid2407pxe03.fw";
+	touchscreen-size-x = <960>;
+	touchscreen-size-y = <640>;
+	touchscreen-inverted-x;
+	touchscreen-inverted-y;
+	vddio-supply = <&reg_ldo_io1>;
+	status = "okay";
+};
-- 
2.9.3

  parent reply	other threads:[~2016-09-11 18:23 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-11 18:23 [PATCH 0/5] ARM: dts: sun8i: Add touchscreen node to various tablets Hans de Goede
2016-09-11 18:23 ` Hans de Goede
     [not found] ` <20160911182327.824-1-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-09-11 18:23   ` [PATCH 1/5] ARM: dts: sun8i: Add touchscreen node for sun8i-a23-gt90h Hans de Goede
2016-09-11 18:23     ` Hans de Goede
2016-09-11 18:23   ` [PATCH 2/5] ARM: dts: sun8i: Add touchscreen node for sun8i-a23-inet86dz Hans de Goede
2016-09-11 18:23     ` Hans de Goede
2016-09-11 18:23   ` Hans de Goede [this message]
2016-09-11 18:23     ` [PATCH 3/5] ARM: dts: sun8i: Add touchscreen node for sun8i-a23-polaroid-mid2407pxe03 Hans de Goede
2016-09-11 18:23   ` [PATCH 4/5] ARM: dts: sun8i: Add touchscreen node for sun8i-a23-polaroid-mid2809pxe04 Hans de Goede
2016-09-11 18:23     ` Hans de Goede
2016-09-11 18:23   ` [PATCH 5/5] ARM: dts: sun8i: Add touchscreen node for sun8i-a33-ga10h Hans de Goede
2016-09-11 18:23     ` Hans de Goede
2016-09-12  6:09   ` [PATCH 0/5] ARM: dts: sun8i: Add touchscreen node to various tablets Chen-Yu Tsai
2016-09-12  6:09     ` Chen-Yu Tsai
2016-09-13  7:59   ` Maxime Ripard
2016-09-13  7:59     ` Maxime Ripard
2016-09-13  8:06     ` Hans de Goede
2016-09-13  8:06       ` Hans de Goede
     [not found]       ` <fee7e6fe-d22b-9233-121e-b403d6ee20f1-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-09-14 16:14         ` Maxime Ripard
2016-09-14 16:14           ` Maxime Ripard

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=20160911182327.824-4-hdegoede@redhat.com \
    --to=hdegoede-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
    --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
    --cc=maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org \
    --cc=wens-jdAy2FN1RRM@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.