Re: [PATCH v2 08/20] ARM: dts: imx7-colibri: Add touch controllers

2019-07-31 Thread Philippe Schenker
On Wed, 2019-07-31 at 09:42 -0300, Fabio Estevam wrote:
> On Wed, Jul 31, 2019 at 9:38 AM Philippe Schenker
>  wrote:
> > Add atmel mxt multitouch controller and TouchRevolution multitouch
> 
> You missed to updated the commit log ;-)

Ah, shoot! :-) Thanks.

I will send a v3 then, next week.


Re: [PATCH v2 08/20] ARM: dts: imx7-colibri: Add touch controllers

2019-07-31 Thread Fabio Estevam
On Wed, Jul 31, 2019 at 9:38 AM Philippe Schenker
 wrote:
>
> Add atmel mxt multitouch controller and TouchRevolution multitouch

You missed to updated the commit log ;-)


[PATCH v2 08/20] ARM: dts: imx7-colibri: Add touch controllers

2019-07-31 Thread Philippe Schenker
Add atmel mxt multitouch controller and TouchRevolution multitouch
controller which are connected over an I2C bus.

Signed-off-by: Philippe Schenker 

---

Changes in v2:
- Deleted touchrevolution downstream stuff
- Use generic node name
- Better comment

 arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi | 24 +
 1 file changed, 24 insertions(+)

diff --git a/arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi 
b/arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi
index d4dbc4fc1adf..576dec9ff81c 100644
--- a/arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi
+++ b/arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi
@@ -145,6 +145,21 @@
  {
status = "okay";
 
+   /*
+* Touchscreen is using SODIMM 28/30, also used for PWM, PWM,
+* aka pwm2, pwm3. so if you enable touchscreen, disable the pwms
+*/
+   touchscreen@4a {
+   compatible = "atmel,maxtouch";
+   pinctrl-names = "default";
+   pinctrl-0 = <_gpiotouch>;
+   reg = <0x4a>;
+   interrupt-parent = <>;
+   interrupts = <9 IRQ_TYPE_EDGE_FALLING>; /* SODIMM 28 */
+   reset-gpios = < 10 GPIO_ACTIVE_HIGH>; /* SODIMM 30 */
+   status = "disabled";
+   };
+
/* M41T0M6 real time clock on carrier board */
rtc: m41t0m6@68 {
compatible = "st,m41t0";
@@ -200,3 +215,12 @@
vmmc-supply = <_3v3>;
status = "okay";
 };
+
+ {
+   pinctrl_gpiotouch: touchgpios {
+   fsl,pins = <
+   MX7D_PAD_GPIO1_IO09__GPIO1_IO9  0x74
+   MX7D_PAD_GPIO1_IO10__GPIO1_IO10 0x14
+   >;
+   };
+};
-- 
2.22.0