Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2583942ybl; Mon, 19 Aug 2019 04:33:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqxa81FSlIDhRSnLuefauUTZrMjXQTzj7qJ0rsFp8C4Mt9yoS3L8XwMRI/Qb9KNHk3a5vOyY X-Received: by 2002:a17:90a:9a90:: with SMTP id e16mr20561665pjp.71.1566214396806; Mon, 19 Aug 2019 04:33:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566214396; cv=none; d=google.com; s=arc-20160816; b=sc7Ghpp6gPsOA+At7RWJA+htBNQIrdpv4XFZiQB8GlHZ90krq5P3Ox+QL7HN3n6qCr EMLtTnDCRNkwxX2KAw+Won9XAJDk9wfyw8HzOQp7KwjbUREF9Z2vkBIx14p9s0NftVAw qbPLWhCX5hL+jzY13H/Bwl+mMnYxDQiBb40cf5u9ki74OZK+hTo3kaFAiGZuR+UCVOF/ n/6HlwAYm/yTlxR2sMz3HIFMhFsU1W1hfpX9gvrrDdvN1ZpDdp4SUQQPm9p/FbjjICn1 UQGZE3b9wqH8X52+4nFp4PVrpAad/4LRWGcNmYXODCKEK8O11A8sYrlJAUKEX7lbCVsP zfwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=5Y8XICv6szhnZOQGEjazN2ev+UK91XYDKlwZq2pWnTA=; b=X9ZA50c/pn51iTZ7J5DJBVaaxw5of6XXxDNKYI8yofEyrglrxCmXaGnkJDdR5G7+CE waEXuarM5H7774tnfBB6wYrZsB9GpFLmlUXGbVVG1HZD6bMKE5DynQiHxFkb3S7Ei8g2 v4XhiZezyNMDEl65lgmfeyJYjmtA9aX+mhi4Eku3pwqTj1o43yQPqzE+//t2su9d9Tak GibkxVcw1llxHd8w+fI347Q2dBtXCbc3AQZyWXJS5cK07zL4MpPu+IL6z9/kTSDIsUCE MxIcCXJCBTyGxsLvUoMUKkaXeH8I/d0WSTQlOozQ2y54bmySaCTrvW4F8LQhRSbhB+hC /BmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=oHRaYVkE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e2si9889746pgm.99.2019.08.19.04.33.01; Mon, 19 Aug 2019 04:33:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=oHRaYVkE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727461AbfHSLa6 (ORCPT + 99 others); Mon, 19 Aug 2019 07:30:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:37686 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726477AbfHSLa5 (ORCPT ); Mon, 19 Aug 2019 07:30:57 -0400 Received: from X250 (37.80-203-192.nextgentel.com [80.203.192.37]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 10E7620851; Mon, 19 Aug 2019 11:30:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566214256; bh=FQV5Xq+K1NWQNMFPHHsWUc0BPzvLcSph101rqifwyH4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=oHRaYVkEPNlPMj4BCnrKc6YmDgIsFLRpJHkQpRy9IGiFzivMTPza12JJcCziPko5C hOczRt3zVCJZxnfE9sBOX+Hiku+dpIFSqB6GgFTLUf5u1rcuGJMgD1p5A6pmwLOb1o F+2BGNF1E7E0R4t60gtXvdfpE3U/GP7q+n2pfIZQ= Date: Mon, 19 Aug 2019 13:30:44 +0200 From: Shawn Guo To: Philippe Schenker Cc: Marcel Ziswiler , Max Krummenacher , "stefan@agner.ch" , "devicetree@vger.kernel.org" , Rob Herring , Mark Rutland , Michal =?utf-8?B?Vm9rw6HEjQ==?= , Fabio Estevam , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , Pengutronix Kernel Team , NXP Linux Team , Sascha Hauer Subject: Re: [PATCH v4 12/21] ARM: dts: imx6-apalis: Add touchscreens used on Toradex eval boards Message-ID: <20190819113042.GV5999@X250> References: <20190812142105.1995-1-philippe.schenker@toradex.com> <20190812142105.1995-13-philippe.schenker@toradex.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190812142105.1995-13-philippe.schenker@toradex.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 12, 2019 at 02:21:33PM +0000, Philippe Schenker wrote: > This commit adds the touchscreens from Toradex so one can enable it. > > Signed-off-by: Philippe Schenker > Acked-by: Marcel Ziswiler > > --- > > Changes in v4: > - Add Marcel Ziswiler's Ack > > Changes in v3: > - Fix commit title to "...imx6-apalis:..." > > Changes in v2: > - Deleted touchrevolution downstream stuff > - Use generic node name > - Put a better comment in there > > arch/arm/boot/dts/imx6dl-colibri-eval-v3.dts | 31 +++++++++++++++++++ > arch/arm/boot/dts/imx6q-apalis-eval.dts | 13 ++++++++ > arch/arm/boot/dts/imx6q-apalis-ixora-v1.1.dts | 13 ++++++++ > arch/arm/boot/dts/imx6q-apalis-ixora.dts | 13 ++++++++ > 4 files changed, 70 insertions(+) > > diff --git a/arch/arm/boot/dts/imx6dl-colibri-eval-v3.dts b/arch/arm/boot/dts/imx6dl-colibri-eval-v3.dts > index 9a5d6c94cca4..763fb5e90bd3 100644 > --- a/arch/arm/boot/dts/imx6dl-colibri-eval-v3.dts > +++ b/arch/arm/boot/dts/imx6dl-colibri-eval-v3.dts > @@ -168,6 +168,21 @@ > &i2c3 { > 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 = <&pinctrl_pcap_1>; > + reg = <0x4a>; > + interrupt-parent = <&gpio1>; > + interrupts = <9 IRQ_TYPE_EDGE_FALLING>; /* SODIMM 28 */ > + reset-gpios = <&gpio2 10 GPIO_ACTIVE_HIGH>; /* SODIMM 30 */ > + status = "disabled"; If you have a reason to keep this disabled, please comment or state in the commit log. > + }; > + > /* M41T0M6 real time clock on carrier board */ > rtc_i2c: rtc@68 { > compatible = "st,m41t0"; > @@ -175,6 +190,22 @@ > }; > }; > > +&iomuxc { > + pinctrl_pcap_1: pcap-1 { Name pinctrl node more consistently like pinctrl_xxx: xxxgrp. Shawn > + fsl,pins = < > + MX6QDL_PAD_GPIO_9__GPIO1_IO09 0x1b0b0 /* SODIMM 28 */ > + MX6QDL_PAD_SD4_DAT2__GPIO2_IO10 0x1b0b0 /* SODIMM 30 */ > + >; > + }; > + > + pinctrl_mxt_ts: mxt-ts { > + fsl,pins = < > + MX6QDL_PAD_EIM_CS1__GPIO2_IO24 0x130b0 /* SODIMM 107 */ > + MX6QDL_PAD_SD2_DAT1__GPIO1_IO14 0x130b0 /* SODIMM 106 */ > + >; > + }; > +}; > + > &ipu1_di0_disp0 { > remote-endpoint = <&lcd_display_in>; > }; > diff --git a/arch/arm/boot/dts/imx6q-apalis-eval.dts b/arch/arm/boot/dts/imx6q-apalis-eval.dts > index 0edd3043d9c1..4665e15b196d 100644 > --- a/arch/arm/boot/dts/imx6q-apalis-eval.dts > +++ b/arch/arm/boot/dts/imx6q-apalis-eval.dts > @@ -167,6 +167,19 @@ > &i2c1 { > 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"; > + reg = <0x4a>; > + interrupt-parent = <&gpio6>; > + interrupts = <10 IRQ_TYPE_EDGE_FALLING>; > + reset-gpios = <&gpio6 9 GPIO_ACTIVE_HIGH>; /* SODIMM 13 */ > + status = "disabled"; > + }; > + > pcie-switch@58 { > compatible = "plx,pex8605"; > reg = <0x58>; > diff --git a/arch/arm/boot/dts/imx6q-apalis-ixora-v1.1.dts b/arch/arm/boot/dts/imx6q-apalis-ixora-v1.1.dts > index b94bb687be6b..a3fa04a97d81 100644 > --- a/arch/arm/boot/dts/imx6q-apalis-ixora-v1.1.dts > +++ b/arch/arm/boot/dts/imx6q-apalis-ixora-v1.1.dts > @@ -172,6 +172,19 @@ > &i2c1 { > 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"; > + reg = <0x4a>; > + interrupt-parent = <&gpio6>; > + interrupts = <10 IRQ_TYPE_EDGE_FALLING>; > + reset-gpios = <&gpio6 9 GPIO_ACTIVE_HIGH>; /* SODIMM 13 */ > + status = "disabled"; > + }; > + > /* M41T0M6 real time clock on carrier board */ > rtc_i2c: rtc@68 { > compatible = "st,m41t0"; > diff --git a/arch/arm/boot/dts/imx6q-apalis-ixora.dts b/arch/arm/boot/dts/imx6q-apalis-ixora.dts > index 302fd6adc8a7..5ba49d0f4880 100644 > --- a/arch/arm/boot/dts/imx6q-apalis-ixora.dts > +++ b/arch/arm/boot/dts/imx6q-apalis-ixora.dts > @@ -171,6 +171,19 @@ > &i2c1 { > 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"; > + reg = <0x4a>; > + interrupt-parent = <&gpio6>; > + interrupts = <10 IRQ_TYPE_EDGE_FALLING>; > + reset-gpios = <&gpio6 9 GPIO_ACTIVE_HIGH>; /* SODIMM 13 */ > + status = "disabled"; > + }; > + > eeprom@50 { > compatible = "atmel,24c02"; > reg = <0x50>; > -- > 2.22.0 >