Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3849260ybl; Mon, 12 Aug 2019 07:24:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqwS6iwF4r4RllLvNF+EVeA0ebTk4cJKEjZGvYUJn6Ho92+gs8l50waQEI6G/DnpNmBhCdP2 X-Received: by 2002:a63:704:: with SMTP id 4mr30363779pgh.242.1565619877378; Mon, 12 Aug 2019 07:24:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1565619877; cv=pass; d=google.com; s=arc-20160816; b=keJgE8eRraM+/jsFYtYmrqKQztyYbK+9n80pm45qPo+Z79XyFT17LE8rrYktRI9Uxo ZjdPJ8sslomD0SKn9GPOsR9Gs8fGwGezTzQOjyVcjjNLy5eWdRMawCQSK64DX+C/KTfG TEqs0T2GJ1Bv1UR7qxVdPD3GmA4ywaGfzf4uocOVEeyBKmqSuxE1/fuuqODaYlUrsLbn K7uJNr6brpzjT2rUg4zvaIc4uHI9fONNGqu6p8TDzCkfYSanrTWCO264i7XBWcmCvhTO TFAtu8UlGKz075j6OxqktkPmtsnb+A8BSBGgEMXuRWZfaMNB/bt7NZHc3jMUID4csb7o KmtA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=ati69vc/IEtW6C7qm9hgCH0JoiIhxhuPHUQVbzz099M=; b=lFhYsf5rMsaWFjy2eH8fBCZbF14f0O0v059oe3lFSP2ktDu9jtBA0OFEgTdRGwwk27 S1aT6Loqm39/mjC87u1UwEADn2gExsL2BOm77XZwA8380XXl42eO03e/v1K4msn6qouT wMs/2T/SXMGzj5DvuxKgMtYOy/Ebtp28zQwuJMF0veZbrGSyYLf3oRiLYjNQGO2mFiKF bFqy0eEr/bDssD7yJK9d1KDzemkMbIRCy7VcBVPp+b+1aF4Gqb2vUnJJ7A/c9dtAmMFk GmaL/uTzA2Ycm5ESQxM6Q6ZlkDyAlYjy2arjdB2yswevqrzxowEbbDw74NIiKZWVXp+4 mwNA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@toradex.com header.s=selector2 header.b=FCzhPMAN; arc=pass (i=1 spf=pass spfdomain=toradex.com dkim=pass dkdomain=toradex.com dmarc=pass fromdomain=toradex.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=toradex.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g1si57641629plg.353.2019.08.12.07.24.21; Mon, 12 Aug 2019 07:24:37 -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=@toradex.com header.s=selector2 header.b=FCzhPMAN; arc=pass (i=1 spf=pass spfdomain=toradex.com dkim=pass dkdomain=toradex.com dmarc=pass fromdomain=toradex.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=toradex.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728822AbfHLOWB (ORCPT + 99 others); Mon, 12 Aug 2019 10:22:01 -0400 Received: from mail-eopbgr150112.outbound.protection.outlook.com ([40.107.15.112]:51614 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728552AbfHLOV6 (ORCPT ); Mon, 12 Aug 2019 10:21:58 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YLCVMnyFe3nRb7+gJ7erbudHA7WFbRIlCfOLyFygKhezHiC27quUvXRKW/+TA6H+e/EhcEPXbP3Ni3/J6dEi4CNcf1JpRircfCnYBHdBKriENjTc9wLjOgKHCJPpDcJwhLon46IHo5catCnkI3V7O5GKMQ/CgHSOV2dA4I/R3d2ykZ3xy7bm3cde2zV3N6a3oil5DgSDE3AwTQYdfcv0GiN9YxbN+Ybgy8iGUYP44MmeV9NAF2Jrl77V+rquM0vJnBkf42/13IyH2qoGXFDelWw4zlc+wGyFzWTU8pjWp2JlEICXYRYZewd8OorJuSiAsmvqgD9fz1gngK5w57xgdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ati69vc/IEtW6C7qm9hgCH0JoiIhxhuPHUQVbzz099M=; b=bVt5NVrqFJB+IzhhZ/26z7+x4jNU/m3WoJpF5+vyElQkFCIK4Oz49oPTxUGsNdWrwHSqcR8HDFgzqC4PKvM/5lPImqty5uoM3zmM4BllwR5g5QiZnMLSJiI4ygrhmrklaWEw8a69ZnmYkVcL6FnrY7pMhupfDz5sWgh1m2+PJHzLRz6rb3/LWXJSVlvDGSO6KWe/CbYzHU0CGydfrPINnB183+4D53+JPARaIt2WkfyFYmBS7UJ5wsfniAG4lL/h+Q9YuIsyp+U5gN6Vid46XrBn6AdJHNYoasdGWsZxww5m3l3/MjrOrtcnhkUftthAPwrplJkwSDDmiIBlDxlCuQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=toradex.com; dmarc=pass action=none header.from=toradex.com; dkim=pass header.d=toradex.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toradex.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ati69vc/IEtW6C7qm9hgCH0JoiIhxhuPHUQVbzz099M=; b=FCzhPMANAvqmrBv7jvuCieKTSNaK5wpn2iTApdf0r5X52zmnfY8Vj5TTsDCh79n+rb3etUl+oibbZIzRRxyaPOHsFT5E7mcC6loKGSBlwfavgoXFi9y/OfTpk4r5tVGxNTEU8yCRNcgj+hSO0ZoSZ65BJIH6tAzG1C0G5wn/nTM= Received: from VI1PR0502MB3965.eurprd05.prod.outlook.com (52.134.17.157) by VI1PR0502MB2942.eurprd05.prod.outlook.com (10.175.26.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2157.21; Mon, 12 Aug 2019 14:21:33 +0000 Received: from VI1PR0502MB3965.eurprd05.prod.outlook.com ([fe80::8405:5b51:b25d:39a2]) by VI1PR0502MB3965.eurprd05.prod.outlook.com ([fe80::8405:5b51:b25d:39a2%6]) with mapi id 15.20.2157.022; Mon, 12 Aug 2019 14:21:33 +0000 From: Philippe Schenker To: Marcel Ziswiler , Max Krummenacher , "stefan@agner.ch" , "devicetree@vger.kernel.org" , Rob Herring , Shawn Guo , Mark Rutland , =?iso-8859-2?Q?Michal_Vok=E1=E8?= , Fabio Estevam CC: Philippe Schenker , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , Pengutronix Kernel Team , NXP Linux Team , Sascha Hauer Subject: [PATCH v4 12/21] ARM: dts: imx6-apalis: Add touchscreens used on Toradex eval boards Thread-Topic: [PATCH v4 12/21] ARM: dts: imx6-apalis: Add touchscreens used on Toradex eval boards Thread-Index: AQHVURk9KiEmkulJgEy0xZA4FCn/Tw== Date: Mon, 12 Aug 2019 14:21:33 +0000 Message-ID: <20190812142105.1995-13-philippe.schenker@toradex.com> References: <20190812142105.1995-1-philippe.schenker@toradex.com> In-Reply-To: <20190812142105.1995-1-philippe.schenker@toradex.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: VI1P194CA0055.EURP194.PROD.OUTLOOK.COM (2603:10a6:803:3c::44) To VI1PR0502MB3965.eurprd05.prod.outlook.com (2603:10a6:803:23::29) authentication-results: spf=none (sender IP is ) smtp.mailfrom=philippe.schenker@toradex.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.22.0 x-originating-ip: [46.140.72.82] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 743f2c4f-ee74-4799-49b9-08d71f306031 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020);SRVR:VI1PR0502MB2942; x-ms-traffictypediagnostic: VI1PR0502MB2942: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:741; x-forefront-prvs: 012792EC17 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(4636009)(376002)(136003)(39850400004)(346002)(366004)(396003)(199004)(189003)(5660300002)(54906003)(110136005)(316002)(478600001)(6486002)(86362001)(2201001)(66066001)(53936002)(6116002)(1076003)(3846002)(2906002)(4326008)(25786009)(66446008)(64756008)(66556008)(66946007)(66476007)(6436002)(8676002)(11346002)(476003)(2616005)(446003)(256004)(81166006)(81156014)(2501003)(44832011)(6512007)(14444005)(486006)(50226002)(71200400001)(71190400001)(7416002)(8936002)(36756003)(52116002)(7736002)(305945005)(99286004)(102836004)(386003)(14454004)(76176011)(186003)(6506007)(26005);DIR:OUT;SFP:1102;SCL:1;SRVR:VI1PR0502MB2942;H:VI1PR0502MB3965.eurprd05.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: toradex.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: VyXoJXteNxvCL8P/kMSsN+hgQhSjCCUr17zrn6pwpaG2e/Zc4iKW+eMNz7rxbjxVgMeCoRPLVNeIeg9673ll4WoEFzq2ZPGN0y/JFJorqTtCc9zGrpTtDtz5SOfYl4rAnbhLVJXuz3g1H6RrJZh2+x9Tx4YcIlfilF1xBcpMs1fZMMYdqzTbonjfEIRfQEhwOVNCInRL7bViNLRvKBcyiPhNO58+wvAorx93I43yVDC4Rj4/rCRuM2yRPI58Lk6y8mSf5H3+3azDzeGZl3UusJ+NJ6BdWjPCpH84UOAZt2NCvNul/6faUAa+ELBxipv4gpQfm3K3yP5MdV/vr6Aqwt6ZDDXxGj/CRYFkC79eqR+oONqZA85/SKw5KpRgRS+Aigx1bxUsamXP/3e+O+P6vulsOkH2MEmt6z03eG+KCRg= Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: 743f2c4f-ee74-4799-49b9-08d71f306031 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Aug 2019 14:21:33.1127 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: d9995866-0d9b-4251-8315-093f062abab4 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: stiPfjP7xqrnTJmCUEqOsZgK4VCzwmvk/q9JyxAQYh2EJi88LAoWPOwur4oZbNT9J19ULL65DyT0NhNwGq/UI/RYP1JdY2ojV2WxdE8GbYI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0502MB2942 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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/d= ts/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 =3D "okay"; =20 + /* + * 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 =3D "atmel,maxtouch"; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&pinctrl_pcap_1>; + reg =3D <0x4a>; + interrupt-parent =3D <&gpio1>; + interrupts =3D <9 IRQ_TYPE_EDGE_FALLING>; /* SODIMM 28 */ + reset-gpios =3D <&gpio2 10 GPIO_ACTIVE_HIGH>; /* SODIMM 30 */ + status =3D "disabled"; + }; + /* M41T0M6 real time clock on carrier board */ rtc_i2c: rtc@68 { compatible =3D "st,m41t0"; @@ -175,6 +190,22 @@ }; }; =20 +&iomuxc { + pinctrl_pcap_1: pcap-1 { + fsl,pins =3D < + 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 =3D < + MX6QDL_PAD_EIM_CS1__GPIO2_IO24 0x130b0 /* SODIMM 107 */ + MX6QDL_PAD_SD2_DAT1__GPIO1_IO14 0x130b0 /* SODIMM 106 */ + >; + }; +}; + &ipu1_di0_disp0 { remote-endpoint =3D <&lcd_display_in>; }; diff --git a/arch/arm/boot/dts/imx6q-apalis-eval.dts b/arch/arm/boot/dts/im= x6q-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 =3D "okay"; =20 + /* + * 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 =3D "atmel,maxtouch"; + reg =3D <0x4a>; + interrupt-parent =3D <&gpio6>; + interrupts =3D <10 IRQ_TYPE_EDGE_FALLING>; + reset-gpios =3D <&gpio6 9 GPIO_ACTIVE_HIGH>; /* SODIMM 13 */ + status =3D "disabled"; + }; + pcie-switch@58 { compatible =3D "plx,pex8605"; reg =3D <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 =3D "okay"; =20 + /* + * 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 =3D "atmel,maxtouch"; + reg =3D <0x4a>; + interrupt-parent =3D <&gpio6>; + interrupts =3D <10 IRQ_TYPE_EDGE_FALLING>; + reset-gpios =3D <&gpio6 9 GPIO_ACTIVE_HIGH>; /* SODIMM 13 */ + status =3D "disabled"; + }; + /* M41T0M6 real time clock on carrier board */ rtc_i2c: rtc@68 { compatible =3D "st,m41t0"; diff --git a/arch/arm/boot/dts/imx6q-apalis-ixora.dts b/arch/arm/boot/dts/i= mx6q-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 =3D "okay"; =20 + /* + * 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 =3D "atmel,maxtouch"; + reg =3D <0x4a>; + interrupt-parent =3D <&gpio6>; + interrupts =3D <10 IRQ_TYPE_EDGE_FALLING>; + reset-gpios =3D <&gpio6 9 GPIO_ACTIVE_HIGH>; /* SODIMM 13 */ + status =3D "disabled"; + }; + eeprom@50 { compatible =3D "atmel,24c02"; reg =3D <0x50>; --=20 2.22.0