linux-renesas-soc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] ARM: dts: iwg22d-sodimm: Enable touchscreen
@ 2020-03-04 15:44 Marian-Cristian Rotariu
  2020-03-06 13:04 ` Geert Uytterhoeven
  2020-03-09  9:20 ` Patchwork summary for: linux-renesas-soc patchwork-bot+linux-renesas-soc
  0 siblings, 2 replies; 3+ messages in thread
From: Marian-Cristian Rotariu @ 2020-03-04 15:44 UTC (permalink / raw)
  To: geert
  Cc: linux-renesas-soc, Chris Paterson, prabhakar.mahadev-lad.rj,
	dmitry.torokhov, linux-input, robh+dt, devicetree

In one of the iWave-G22D development board variants, called Generic SODIMM
Development Platform, we have an LCD with touchscreen. The resistive touch
controller, STMPE811 is on the development board and is connected through
the i2c5 of the RZ-G1E.

Additionally, this controller should generate an interrupt to the CPU and
it is connected through GPIO4,4 to the GIC.

Touch was tested with one of our iW-RainboW-G22D-SODIMM RZ/G1E development
platforms.

More details on the iWave website:
https://www.iwavesystems.com/rz-g1e-sodimm-development-kit.html

Changes from v1:
 -remove redundant GPIO code
 -remove obsolete and unused properties
 -sync property values with the comments & the bindings

Signed-off-by: Marian-Cristian Rotariu <marian-cristian.rotariu.rb@bp.renesas.com>
---
 arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts | 33 +++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts b/arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts
index 872f8a6..ab38b39 100644
--- a/arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts
+++ b/arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts
@@ -172,6 +172,39 @@
 	status = "okay";
 	clock-frequency = <400000>;
 
+	stmpe811@44 {
+		compatible = "st,stmpe811";
+		reg = <0x44>;
+		interrupt-parent = <&gpio4>;
+		interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
+
+		/* 3.25 MHz ADC clock speed */
+		st,adc-freq = <1>;
+		/* ADC converstion time: 80 clocks */
+		st,sample-time = <4>;
+		/* 12-bit ADC */
+		st,mod-12b = <1>;
+		/* internal ADC reference */
+		st,ref-sel = <0>;
+
+		stmpe_touchscreen {
+			compatible = "st,stmpe-ts";
+			/* 8 sample average control */
+			st,ave-ctrl = <3>;
+			/* 7 length fractional part in z */
+			st,fraction-z = <7>;
+			/*
+			 * 50 mA typical 80 mA max touchscreen drivers
+			 * current limit value
+			 */
+			st,i-drive = <1>;
+			/* 1 ms panel driver settling time */
+			st,settling = <3>;
+			/* 5 ms touch detect interrupt delay */
+			st,touch-det-delay = <5>;
+		};
+	};
+
 	sgtl5000: codec@a {
 		compatible = "fsl,sgtl5000";
 		#sound-dai-cells = <0>;
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] ARM: dts: iwg22d-sodimm: Enable touchscreen
  2020-03-04 15:44 [PATCH v2] ARM: dts: iwg22d-sodimm: Enable touchscreen Marian-Cristian Rotariu
@ 2020-03-06 13:04 ` Geert Uytterhoeven
  2020-03-09  9:20 ` Patchwork summary for: linux-renesas-soc patchwork-bot+linux-renesas-soc
  1 sibling, 0 replies; 3+ messages in thread
From: Geert Uytterhoeven @ 2020-03-06 13:04 UTC (permalink / raw)
  To: Marian-Cristian Rotariu
  Cc: Linux-Renesas, Chris Paterson, Lad, Prabhakar, Dmitry Torokhov,
	linux-input, Rob Herring,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS

Hi Marian,

On Wed, Mar 4, 2020 at 4:44 PM Marian-Cristian Rotariu
<marian-cristian.rotariu.rb@bp.renesas.com> wrote:
> In one of the iWave-G22D development board variants, called Generic SODIMM
> Development Platform, we have an LCD with touchscreen. The resistive touch
> controller, STMPE811 is on the development board and is connected through
> the i2c5 of the RZ-G1E.
>
> Additionally, this controller should generate an interrupt to the CPU and
> it is connected through GPIO4,4 to the GIC.
>
> Touch was tested with one of our iW-RainboW-G22D-SODIMM RZ/G1E development
> platforms.
>
> More details on the iWave website:
> https://www.iwavesystems.com/rz-g1e-sodimm-development-kit.html
>
> Changes from v1:
>  -remove redundant GPIO code
>  -remove obsolete and unused properties
>  -sync property values with the comments & the bindings

Thanks for the update!

> Signed-off-by: Marian-Cristian Rotariu <marian-cristian.rotariu.rb@bp.renesas.com>

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
i.e. will queue in renesas-devel for v5.7.


Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Patchwork summary for: linux-renesas-soc
  2020-03-04 15:44 [PATCH v2] ARM: dts: iwg22d-sodimm: Enable touchscreen Marian-Cristian Rotariu
  2020-03-06 13:04 ` Geert Uytterhoeven
@ 2020-03-09  9:20 ` patchwork-bot+linux-renesas-soc
  1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+linux-renesas-soc @ 2020-03-09  9:20 UTC (permalink / raw)
  To: linux-renesas-soc

Hello:

The following patches were marked "accepted", because they were applied to
geert/renesas-devel (refs/heads/next):

Patch: [v2] ARM: dts: iwg22d-sodimm: Enable touchscreen
  Submitter: Marian-Cristian Rotariu <marian-cristian.rotariu.rb@bp.renesas.com>
  Patchwork: https://patchwork.kernel.org/project/linux-renesas-soc/list/?series=251331

Total patches: 1

-- 
Deet-doot-dot, I am a bot.
https://korg.wiki.kernel.org/userdoc/pwbot

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-03-09  9:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-04 15:44 [PATCH v2] ARM: dts: iwg22d-sodimm: Enable touchscreen Marian-Cristian Rotariu
2020-03-06 13:04 ` Geert Uytterhoeven
2020-03-09  9:20 ` Patchwork summary for: linux-renesas-soc patchwork-bot+linux-renesas-soc

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