From patchwork Wed Dec 22 12:46:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 12697085 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2CB1BC433EF for ; Wed, 22 Dec 2021 12:48:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=fXQxfBS68yZz00SOYiMrAH0RsezpZiPOlORF+77Uwdk=; b=NaqSYT47nbR5Q3 +oUjHXP1J1okNgulpxZ+VvnTnTk5s108SB2lGpBeSuXRiY6zmbhUa7d5qtH0u9U2px+b1y3W3qX3D F/eeMkmdPAJGAUs1xb7H9Sr/Mc0ieDDF0rYz8ehsP1q2g3pT8UPrsoSWODnPK7Ha/KnrVRlHwHfdB DyKTOkqse9MjflC5hosZ4To1h/k32V3EIsMS2REOQjQpO+pqtTp/br/qz+HZ+HWDGhz15/ko1t3D0 88j6t1c3CJtEsJbWTVa3HjiEVFrgfkceNs4UDraAHpDWc5U0uyiajOKpyAzxsyLl3yuNPli7nxWjm g25XN1f3Crf7qQUY+nMA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n011R-00AJof-HF; Wed, 22 Dec 2021 12:47:09 +0000 Received: from new3-smtp.messagingengine.com ([66.111.4.229]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n010q-00AJdi-B4 for linux-arm-kernel@lists.infradead.org; Wed, 22 Dec 2021 12:46:33 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailnew.nyi.internal (Postfix) with ESMTP id AEA275803DA; Wed, 22 Dec 2021 07:46:31 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Wed, 22 Dec 2021 07:46:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alistair23.me; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm2; bh=liWNH9cngrKwH G/iQAoSwWAxTQqxW15kZvnIgwu8SwU=; b=N+IGqbnou+seL9Ny+yn3XiNkHPRRp Hab2YkcarkqS15cAYeD5hPSp2Jg4A5xdQd1JPQWGPWjJ3h4u0TSvfAOT6dzpBsyu +Etjap+fxYoTlWGAUcr5XTaIbvUCSUILsqx+l5cw5jjkheKQGGqjxR8Iawd9qOxD hs6ZTADSnZgSl+OV5rl88UM642fFe74T9KBckeHsvvXJ2qiQUOcG3mSmup/s95yy 1eymaTxziHjkIBws26QKlUaYj6CzpGLGb9v87eWtJW8rUMuynHrp4FPRg1hoJSwj fHymcfhtmzmKhuQS8Seq4BsjHqWXlRWvg07IbFhXu/Px8oud5/eb/puhA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=liWNH9cngrKwHG/iQAoSwWAxTQqxW15kZvnIgwu8SwU=; b=PBuJWE4G Z+ZVuYxsSrz1trfZ0WSTz1FfL1uJcKoCzMNGuB428SdMIYJzl2BgxCc3j/d2RqCI r7ylIp8iFbC9gGU+JwznKK2jmzORvH7OvKHBsCwmEoW6sCBSKuN/m9G8Qw8YjdPR xJPWtApch244ILnu2BKb43jQk+LFTi2zWPX6LUimPLp35ootBUYRWbVWHKJv+YCb cm9YB3wLAu/RvB85XrvjY9x/4xZqCkIoBgY0hoAQvLFdqSEeeRfzK1fpG2G08ME9 cSL2EeoB05LakQlhhSkdNwKspGt97XRv6HomHsj2N349FWPciwCjLUkTm2BrBup8 LQ/sRmyprXhTeA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddruddtiedgfeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgjfhgggfestdekre dtredttdenucfhrhhomheptehlihhsthgrihhrucfhrhgrnhgtihhsuceorghlihhsthgr ihhrsegrlhhishhtrghirhdvfedrmhgvqeenucggtffrrghtthgvrhhnpeeggedtteejke eggeeugfehueevudegvdetjeeviedugedvtdekffekhedtteduhfenucevlhhushhtvghr ufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhishhtrghirhesrghlih hsthgrihhrvdefrdhmvg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 22 Dec 2021 07:46:27 -0500 (EST) From: Alistair Francis To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Cc: dmitry.torokhov@gmail.com, alistair23@gmail.com, robh+dt@kernel.org, linus.walleij@linaro.org, rydberg@bitmath.org, andreas@kemnade.info, Alistair Francis Subject: [PATCH v4 4/4] ARM: dts: imx7d-remarkable2: Enable the cyttsp5 Date: Wed, 22 Dec 2021 22:46:03 +1000 Message-Id: <20211222124603.326920-5-alistair@alistair23.me> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211222124603.326920-1-alistair@alistair23.me> References: <20211222124603.326920-1-alistair@alistair23.me> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211222_044632_481318_D1CAF7F5 X-CRM114-Status: UNSURE ( 9.70 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add support for the cyttsp5 touchscreen controller for the reMarkable 2. Signed-off-by: Alistair Francis --- arch/arm/boot/dts/imx7d-remarkable2.dts | 89 +++++++++++++++++++++++++ 1 file changed, 89 insertions(+) diff --git a/arch/arm/boot/dts/imx7d-remarkable2.dts b/arch/arm/boot/dts/imx7d-remarkable2.dts index 89cbf13097a4..f12d6805b214 100644 --- a/arch/arm/boot/dts/imx7d-remarkable2.dts +++ b/arch/arm/boot/dts/imx7d-remarkable2.dts @@ -8,6 +8,7 @@ /dts-v1/; #include "imx7d.dtsi" +#include / { model = "reMarkable 2.0"; @@ -34,6 +35,18 @@ reg_brcm: regulator-brcm { startup-delay-us = <150>; }; + reg_touch: regulator-touch { + compatible = "regulator-fixed"; + regulator-name = "VDD_3V3_TOUCH"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&pinctrl_touch_reg>; + pinctrl-1 = <&pinctrl_touch_reg>; + gpio = <&gpio1 11 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + wifi_pwrseq: wifi_pwrseq { compatible = "mmc-pwrseq-simple"; pinctrl-names = "default"; @@ -51,6 +64,59 @@ &clks { assigned-clock-rates = <0>, <32768>; }; +&i2c3 { + clock-frequency = <100000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c3>; + status = "okay"; + + tsc@24 { + compatible = "cypress,tt21000"; + reg = <0x24>; + + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_touch>; + interrupt-parent = <&gpio1>; + interrupts = <14 IRQ_TYPE_EDGE_FALLING>; + reset-gpios = <&gpio1 13 GPIO_ACTIVE_LOW>; + vdd-supply = <®_touch>; + touchscreen-size-x = <880>; + touchscreen-size-y = <1280>; + + button-0 { + linux,code = ; + }; + + button-1 { + linux,code = ; + }; + + button-2 { + linux,code = ; + }; + + button-3 { + linux,code = ; + }; + + button-4 { + linux,code = ; + }; + + button-5 { + linux,code = ; + }; + + button-6 { + linux,code = ; + }; + + button-7 { + linux,code = ; + }; + }; +}; + &snvs_pwrkey { status = "okay"; }; @@ -125,6 +191,29 @@ MX7D_PAD_SAI1_TX_BCLK__GPIO6_IO13 0x14 >; }; + pinctrl_touch: touchgrp { + fsl,pins = < + /* CYTTSP interrupt */ + MX7D_PAD_GPIO1_IO14__GPIO1_IO14 0x54 + /* CYTTSP reset */ + MX7D_PAD_GPIO1_IO13__GPIO1_IO13 0x04 + >; + }; + + pinctrl_i2c3: i2c3grp { + fsl,pins = < + MX7D_PAD_I2C3_SDA__I2C3_SDA 0x4000007f + MX7D_PAD_I2C3_SCL__I2C3_SCL 0x4000007f + >; + }; + + pinctrl_touch_reg: touchreggrp { + fsl,pins = < + /* TOUCH_PWR_EN */ + MX7D_PAD_GPIO1_IO11__GPIO1_IO11 0x14 + >; + }; + pinctrl_uart1: uart1grp { fsl,pins = < MX7D_PAD_UART1_TX_DATA__UART1_DCE_TX 0x79