Date
1 - 7 of 7
[PATCH 4.4.y-cip] ARM: dts: iwg22d-sodimm: Enable touchscreen
Biju Das <biju.das.jz@...>
From: Marian-Cristian Rotariu <marian-cristian.rotariu.rb@...>
commit 99ae78f1fc3a73c88fe726c676ae963ce722bf20 upstream. 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@...> 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@...> Signed-off-by: Biju Das <biju.das.jz@...> --- 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 1e331d1e414b..5cd989556b60 100644 --- a/arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts +++ b/arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts @@ -149,6 +149,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.17.1
|
|
Nobuhiro Iwamatsu
Hi,
toggle quoted messageShow quoted text
-----Original Message-----There seems to be no issue with this patch, but we also need to update defcofnig. If there is no other objection, I will apply this. Best regards, Nobuhiro ---
|
|
Pavel Machek
Hi!
Patch looks good to me, too.Subject: [PATCH 4.4.y-cip] ARM: dts: iwg22d-sodimm: Enable touchscreenThere seems to be no issue with this patch, but we also need to update defcofnig. Best regards, Pavel -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
|
|
Biju Das <biju.das.jz@...>
Hi Nobuhiro-san,
Thanks for the feedback. Subject: RE: [PATCH 4.4.y-cip] ARM: dts: iwg22d-sodimm: Enable touchscreenWe need to enable the below configs in shmobile_defconfig. Currently this configs are not enabled in Mainline. Not sure we should upstream this and backport it or Just enable it in cip-kernel-config? Please let me know. CONFIG_MFD_STMPE=y CONFIG_STMPE_I2C=y CONFIG_TOUCHSCREEN_STMPE=y Cheers, Biju Renesas Electronics Europe GmbH, Geschaeftsfuehrer/President: Carsten Jauch, Sitz der Gesellschaft/Registered office: Duesseldorf, Arcadiastrasse 10, 40472 Duesseldorf, Germany, Handelsregister/Commercial Register: Duesseldorf, HRB 3708 USt-IDNr./Tax identification no.: DE 119353406 WEEE-Reg.-Nr./WEEE reg. no.: DE 14978647
|
|
Nobuhiro Iwamatsu
Hi,
toggle quoted messageShow quoted text
-----Original Message-----First, I think it's a good to post the patch to enable this to Upstream. Best regards, Nobuhirio
|
|
Nobuhiro Iwamatsu
Hi,
toggle quoted messageShow quoted text
-----Original Message-----Applied, thanks. Best regards,Best regards, Nobuhiro --
|
|
Biju Das <biju.das.jz@...>
Hi Nobuhiro-San,
Thanks for the feedback. Subject: RE: [PATCH 4.4.y-cip] ARM: dts: iwg22d-sodimm: Enable touchscreenSure will do.Subject: RE: [PATCH 4.4.y-cip] ARM: dts: iwg22d-sodimm: EnableWC Cheers, Biju Renesas Electronics Europe GmbH, Geschaeftsfuehrer/President: Carsten Jauch, Sitz der Gesellschaft/Registered office: Duesseldorf, Arcadiastrasse 10, 40472 Duesseldorf, Germany, Handelsregister/Commercial Register: Duesseldorf, HRB 3708 USt-IDNr./Tax identification no.: DE 119353406 WEEE-Reg.-Nr./WEEE reg. no.: DE 14978647
|
|