From patchwork Fri Nov 6 11:24:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?J=2E_Neusch=C3=A4fer?= X-Patchwork-Id: 11886921 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.5 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9A692C2D0A3 for ; Fri, 6 Nov 2020 11:26:09 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DABA42064B for ; Fri, 6 Nov 2020 11:26:08 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Ma6PEZcd"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=gmx.net header.i=@gmx.net header.b="aOyFj+ih" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DABA42064B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmx.net Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=/4jZOa4INtkRKTim2+x/avw2SKoSm1yDsn8bJaaviS8=; b=Ma6PEZcdN++/MdC8cCRuqCjSa xi8nVikijgxYOCaVmM7q2/qvio2tfjS8c4TxjG/oaaU6NcW0UmwRaoV+wvanA/Xt93EDdakqbFQDB cv1notqN9Z8wwWXWKVUfNyIGMQIdoBcYLF0ENmCdTWmhpad3NN0nbYVFFhhdvF7r1mOl8UQAjX7uN VY3AvpOOP39sTCz6qLatTT5EZR9Z18ZAQtyqNcG3xxoG2JDaUMxjYw1t6mF4vApalRcC9Qtnn/xpP LWfBVGnOQDHplHF5FTcPgUp1hBHFZMqrv97BxVJlbi1srl0Skpp9SPWCpGFGEyQnOlK/9pSmcKz6w oiNfv3sDw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kazrX-0002cC-PW; Fri, 06 Nov 2020 11:24:59 +0000 Received: from mout.gmx.net ([212.227.15.15]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kazrU-0002an-CE for linux-arm-kernel@lists.infradead.org; Fri, 06 Nov 2020 11:24:57 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1604661893; bh=h353MSDKnlc8XqUZeAyhas+YODqkJ+e9pssvf3FjUok=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=aOyFj+ihLNo8vNR9NmndGcVTXCZxT7uI61RkrFne59UM60AeURY4gINR/U4aGc1wV JGYwUuDSH4+bx1d8HxYowaKqLVrdFisMVV/cxwXyfDM19MozMROzLd/OrvPHi7GHKq lJVHrB3trnuz+2GhRW/Ja9of6I2XxgzhE6n2sWpE= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from longitude ([37.201.214.162]) by mail.gmx.com (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N5VHM-1kHuQQ4ArS-016wEu; Fri, 06 Nov 2020 12:24:53 +0100 From: =?utf-8?q?Jonathan_Neusch=C3=A4fer?= To: linux-input@vger.kernel.org Subject: [PATCH 3/3] ARM: dts: imx50-kobo-aura: Enable eKTF2132 touchscreen Date: Fri, 6 Nov 2020 12:24:12 +0100 Message-Id: <20201106112412.390724-4-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201106112412.390724-1-j.neuschaefer@gmx.net> References: <20201106112412.390724-1-j.neuschaefer@gmx.net> MIME-Version: 1.0 X-Provags-ID: V03:K1:Eb/mcNh+2C3ChXXzq4O8bBzixHexY7F7ebnCPUuzp8adYY8PHb8 n+jg1ro2q3wch1bs8eNLfUhN1uK0jv5/95w7l9kD36ePUkIXxF6/FC6NEN7Ddvgm0FQjWzF 8LNpimBG9tRWA4TxPk9e6fi48+BP+LNEC8BXuLzGXmQFwh/vzZzJXGjmIpb8Deja1avtaJB d/j7/6SewIyn7+tu0Xt1w== X-UI-Out-Filterresults: notjunk:1;V03:K0:K85UTosfvTo=:Kdq+p7usASgZEEWfOffCZO 3UOnagOb19HiiVSQrSNS32zdAvIUTU9cZrMqleCgARdtR/QdIhpRcXShtp6Y+uqBMt+vQBZdD cbihIunTRj5YJEom+ayGoJl+AeHBOziN9wy/azTLQcssQ7ezgO3XC/4B1sq5ZmceWsr4Qe1xe Z0+uBrjcN/CNoR0HnygpiOsbvmz0xYIP2dedpbJQhxJgdSpaJWhsbTSSedFbK+/+Ea2Bw8A0n wJrlcy7ZxrEKHJ/saXkdKKNulDH/NNDw08qJzDoGjtWxQjPCW61sT+QFjfiRR02793bJIXl5i KJpXWO0r22Tm0M+2hQaz/wkLrWstITjeS+ibK7zbPKQhN3ZJPv/2ZvUvWuKoi9OWP4U6+aF3F 4ySTRylPqO/8L7VTEFXwezOXiTYBBJcmkVYpA4GE81in5NPpNPARCiGh41v4K/Ow628cXngkV H4xQosYKYFII/UY/PR84WfOdf6UaCSh4I7IjbVOk3IhLARp5cZXGWqpbXEkLKAeBe+2J+60yJ Ar5/1FuKknK1b4JP0FhkD+twsACKcmHE7qSFIoXOw1W6yxba/G4+d9QNvW0VC9PqUnxbEI8hL enze9Fo4L5QMETf+tiAhPjeGkZv0XSYvtlRlDoxS30aoNT47hqPV/cDgXnPHBZBd+97z2qDJ/ jo4RFE2Ku8EsEobTn58BKztr40a/1QNMlXbJBsMZi8ckcWbpio0jAkpmmC/ch36nGUiN5FXJR TbmRj+8tYHbxmZW05AU7wFWEGDWiWJC7r9k1eQArmrXM3RZWXkLFoWYbKgeIYmefM3vl33Bp0 xOr0AcEiT0tDfSrQ04j14B8t6GeR+vWbXqq/RzW+7Haidx50TdZjyLVwIUaYf1QeMN6rOQEtl IzK719hMyRlozZiKYDN512y8ycBSVF+PtPne7OsDs= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201106_062456_624702_C8DD769E X-CRM114-Status: GOOD ( 11.82 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Shawn Guo , Sascha Hauer , Dmitry Torokhov , =?utf-8?q?Jonathan_Neusch?= =?utf-8?q?=C3=A4fer?= , linux-kernel@vger.kernel.org, Rob Herring , NXP Linux Team , Pengutronix Kernel Team , Fabio Estevam , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The Kobo Aura has an eKTF2132 touchscreen controller. Although the vendor kernel toggles a reset pin (GPIO5-12) during the startup sequence, the touchscreen works without it. Signed-off-by: Jonathan Neuschäfer --- This patch requires "[PATCH] ARM: dts: imx50-kobo-aura: Add 'grp' suffix to pinctrl node names" in order to apply cleanly. (https://lore.kernel.org/lkml/20201031210729.2804471-1-j.neuschaefer@gmx.net/) --- arch/arm/boot/dts/imx50-kobo-aura.dts | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) -- 2.28.0 diff --git a/arch/arm/boot/dts/imx50-kobo-aura.dts b/arch/arm/boot/dts/imx50-kobo-aura.dts index b2fbee60271f2..82ce8c43be867 100644 --- a/arch/arm/boot/dts/imx50-kobo-aura.dts +++ b/arch/arm/boot/dts/imx50-kobo-aura.dts @@ -120,7 +120,14 @@ &i2c1 { pinctrl-0 = <&pinctrl_i2c1>; status = "okay"; - /* TODO: ektf2132 touch controller at 0x15 */ + touchscreen@15 { + reg = <0x15>; + compatible = "elan,ektf2132"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_ts>; + power-gpios = <&gpio4 9 GPIO_ACTIVE_HIGH>; + interrupts-extended = <&gpio5 13 IRQ_TYPE_EDGE_FALLING>; + }; }; &i2c2 { @@ -240,6 +247,13 @@ MX50_PAD_SD3_D7__ESDHC3_DAT7 0x1d4 >; }; + pinctrl_ts: tsgrp { + fsl,pins = < + MX50_PAD_CSPI_MOSI__GPIO4_9 0x0 + MX50_PAD_SD2_D5__GPIO5_13 0x0 + >; + }; + pinctrl_uart2: uart2grp { fsl,pins = < MX50_PAD_UART2_TXD__UART2_TXD_MUX 0x1e4