Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: iwg22d-sodimm: Enable touchscreen

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

Signed-off-by: Marian-Cristian Rotariu <marian-cristian.rotariu.rb@bp.renesas.com>
Link: https://lore.kernel.org/r/1583336650-25848-1-git-send-email-marian-cristian.rotariu.rb@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>

authored by

Marian-Cristian Rotariu and committed by
Geert Uytterhoeven
99ae78f1 7f61dff1

+33
+33
arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts
··· 171 171 status = "okay"; 172 172 clock-frequency = <400000>; 173 173 174 + stmpe811@44 { 175 + compatible = "st,stmpe811"; 176 + reg = <0x44>; 177 + interrupt-parent = <&gpio4>; 178 + interrupts = <4 IRQ_TYPE_LEVEL_LOW>; 179 + 180 + /* 3.25 MHz ADC clock speed */ 181 + st,adc-freq = <1>; 182 + /* ADC converstion time: 80 clocks */ 183 + st,sample-time = <4>; 184 + /* 12-bit ADC */ 185 + st,mod-12b = <1>; 186 + /* internal ADC reference */ 187 + st,ref-sel = <0>; 188 + 189 + stmpe_touchscreen { 190 + compatible = "st,stmpe-ts"; 191 + /* 8 sample average control */ 192 + st,ave-ctrl = <3>; 193 + /* 7 length fractional part in z */ 194 + st,fraction-z = <7>; 195 + /* 196 + * 50 mA typical 80 mA max touchscreen drivers 197 + * current limit value 198 + */ 199 + st,i-drive = <1>; 200 + /* 1 ms panel driver settling time */ 201 + st,settling = <3>; 202 + /* 5 ms touch detect interrupt delay */ 203 + st,touch-det-delay = <5>; 204 + }; 205 + }; 206 + 174 207 sgtl5000: codec@a { 175 208 compatible = "fsl,sgtl5000"; 176 209 #sound-dai-cells = <0>;