From patchwork Thu Nov 12 23:30:54 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: 11902303 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 4508DC2D0E4 for ; Thu, 12 Nov 2020 23:32:50 +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 AA603216C4 for ; Thu, 12 Nov 2020 23:32:49 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="v5GPS2JP"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=gmx.net header.i=@gmx.net header.b="Nv3EWAaY" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AA603216C4 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: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:In-Reply-To:References:List-Owner; bh=gkuq/zievd/1L9AvVrC+ULjLT2/F/HtxbdKw4zoltx0=; b=v5GPS2JPf4S+AN08UPnhHAtRxs WtJMLfWilyRpYgWdo7+uw18DULviKI+Ly/b0q9O3KahAcncthv8GisfrMloNkS2Kj9npuebBydg1R Mvjob6qhd8VCwj/pqzMvffPOvzLEYi5W3JSN9G01c+iWak5z1ZpjdxpkFgBL2Qc+j3hBDWJkgLysB bF2dYOTqS3HpQOYUJrt+L2FVn0cU20FMSIsbiVmMFgqZQid2p3944NI+xoglQsq46jVUiC9Se7j1Z qq51cvG7nQ5b6bV8A7vz3MV/RBlIB78fk/llvFt3IGi4pLGm9JBwbvQOioCXZiwJZLNJJqwUsJxd+ p89fSAvQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kdM3p-0007QY-QI; Thu, 12 Nov 2020 23:31:25 +0000 Received: from mout.gmx.net ([212.227.15.18]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kdM3m-0007PW-2B for linux-arm-kernel@lists.infradead.org; Thu, 12 Nov 2020 23:31:23 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1605223871; bh=CdJMCH63lCU/DX0aU+Lzcr/mdjo2e/7o4vxJsSxA9oE=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=Nv3EWAaYbZjvPKAKCIaH6GflQ+3K6ngd1Zv2J14+LK8P5g4eSSbELb/XrMcHG7Y/T pT8pl98Mf3qbVjtQR9f1YT2BZjXjOYee7ljmBV67Tj+v57TWAn3lFydFzC+vQ4fUEL yV9KNh3pvJqG3lfHPcF7Krzu3c82C7nn4pzFG8S0= 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 1MAwXr-1kS7de0w5B-00BNPG; Fri, 13 Nov 2020 00:31:11 +0100 From: =?utf-8?q?Jonathan_Neusch=C3=A4fer?= To: linux-input@vger.kernel.org Subject: [PATCH v2] ARM: dts: imx50-kobo-aura: Enable eKTF2132 touchscreen Date: Fri, 13 Nov 2020 00:30:54 +0100 Message-Id: <20201112233054.3837465-1-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 X-Provags-ID: V03:K1:/2hvDUrpEcLQPLUwNRXXVjzm9d2LhtPJf6RxQ1jqI1i7wV/0+jx KkH4z3ivuf/pWe/BYfWfV0JC2rwyU63Xi6ZHvqgKKHdDmga4SVGsEHLqMWTmu1t6pxOvFjl fHiUJFYA1id7wSIwddXGUznAZ6zphYNOcffPPqHFa96Qt7wyei0EvJHNnoNiowjKoi06m3V s3hSPTCuyam8SqLr3DG6Q== X-UI-Out-Filterresults: notjunk:1;V03:K0:hWiCK0EAw5k=:h7oJ9j4+CujP3BWS9O3hby VXbzXA2zHVXTIIy3jS7nVBDuAIwsIm7Yww+XzA+23JPznGrux2J3Qnn3pQJLD3s3scuKHw4xi Z0jwulyGJIcZsPUZRml6Ew/0B3dizaw/UxlhcA4Lxw/Om8RfQovgMuBChX3MEXw0C0Se8Fsgi 5jTxoBced6/t64mBSP8kgOMPK97Z5Nane7fWDP8D/GMcOv2SW3oW3mPXY7LqR1Xe1spHOg1SI E1Jltm6mXEsSP91k4VJ04BFyEaQFMCiod9oPuZ3vI6CqTcYxcqDQIekFPXHR1Ui6Q4oMngXT7 wajQCn1+9tWPlzUk5SXO1r+0MFLhRmGQAmim6SV02dqpBxWflyWsUvYWrgPet6+M0jQrxjckl Uhwvt7o6VL+qroa2XcV8Fka6E+aV/C2ghu90pgZ0njOgRSejQ5ol/UpmkuHf7cBmfwi2w+BVU 9qmsIO2j50S/Pybe6HoGYdpBihqCMiuUUD32FVGl7qOeVSzsu4APaHy/IkzhVuMly3rz6ezU7 McGIkKsj0ic2LkcmTZcWtr9BDrPNbLSorvQmZiSDGNiyoBiLIhaGL6L7pvp8nPtRKn4zGM5dv 2XUrlwPStovQ5mXv1eufLMkLWDF3BC/mDabqbh1sjwlKPhxpX8XT+QimGSm4oGB8r5D2l1te9 l7UMNRtMYkN0ZG9J6fqETCrucBtMIOXoSGhJWXd8pSz9tYIOKGmg6MpQ6Th48zAuFvuiv2I0K JWd47YOL+TmvDBkYwlYKKJV0a1x9EJdY3ekTtyiZhSKoJZSbPVZQeECxRi+tG+D0kMxoWFRxw 3oUwRYUVpDeSYU0TDyKeLDNUbUTHoAg9tdXbA0+Kt/RueLWMyde89j+oNlE1pPaHiD8O6/EQd R+YNTX2LE095QfxsIcY6ZGcxByz8r+88rI6CZYWZw= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201112_183122_425727_DDA19924 X-CRM114-Status: GOOD ( 11.80 ) 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 --- v2: - Fix devicetree build by adding #include - Drop the first two patches, which been applied in the meantime v1: - https://lore.kernel.org/lkml/20201106112412.390724-4-j.neuschaefer@gmx.net/ --- arch/arm/boot/dts/imx50-kobo-aura.dts | 17 ++++++++++++++++- 1 file changed, 16 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 53b3995d37e7f..97cfd970fe742 100644 --- a/arch/arm/boot/dts/imx50-kobo-aura.dts +++ b/arch/arm/boot/dts/imx50-kobo-aura.dts @@ -6,6 +6,7 @@ /dts-v1/; #include "imx50.dtsi" #include +#include / { model = "Kobo Aura (N514)"; @@ -119,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 { @@ -225,6 +233,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