From patchwork Wed Mar 23 12:00:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 12789732 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 1D818C433F5 for ; Wed, 23 Mar 2022 12:02:47 +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=mbdSvnOYnVvhffoL0Cs2TesL9xx3mlB28sWoBoGQS08=; b=me8uP1b+LuQUwI WqaPrx6dIl+AGyEgNxIqJOH70hZBQwQfy+AxeF6SotBlRuiuX1mjW9isaZ52JtJoTiwsBXqN5Bdxd CukwLd4nHklL6nKxQtJli2xE6LKeCXvjy9GwVPGtzKx2eCUG9AOdTgtTWSLkCCPWeskVIkJsQftbO oA41X0EShBheLgqIKWeMiaB0vvBB6GYaFV+tC4wLDita7WUFyD8dh685DrB6l7BZ/7uDoUaVEfPt0 RIw+/+nrCcYb0SJHYj/oJRwhsN4HBg3N5ZAKTnZd1vvkmUAWb1qmgC7y2JFKu9R7Sx7ronb530iiU CwEsO8w6pX9RTY/HsVlQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nWzgF-00DXgJ-92; Wed, 23 Mar 2022 12:01:36 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nWzfb-00DXPR-HM for linux-arm-kernel@lists.infradead.org; Wed, 23 Mar 2022 12:00:57 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 542BD3200C14; Wed, 23 Mar 2022 08:00:54 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Wed, 23 Mar 2022 08:00:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alistair23.me; h=cc:cc:content-transfer-encoding:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm1; bh=hC7X5s7HQc6viR 9PYr+JWHUjZSf2EJs42JixYxm/GUk=; b=Vwvtf8uz64RJAN1RwMGE1LktKYKT3p FmDL6lnQG8yjgqqADVZ6AuJHVV2OBbaRdgxhwpt3kbSr3ZJ4yNOMX/kK/KyeJySL abhDm4GvdLoNp5n4eeEAVGTHEsgr6U06X3/KLfi/X+G2yG/Xo53nAmAoeJn4ySee AMRmwbNR6ff1KRbMCwRtCnDuQSH8Yv8JSnBLcufPqbWlmp9qo9lesu6IeO1I5Vhy Clm/aFqu9qwmEFhWdKPse5hfBCrWH6YResE41HNYmBC9cgRfLXWBYZ4uPlPdhY6p dim4irdlTIPEg/hoK9+ufPOuV1kvFnyDK+Hm8iBHweebuGorkS0dMn5w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=hC7X5s 7HQc6viR9PYr+JWHUjZSf2EJs42JixYxm/GUk=; b=W42ngcLU9LbL/r588aAs5A tHqeNqqdk06SYG0Ip/JiUmLBcAxNDU8hFbUYHeIyIhSRXJ/FstyuxRhhMlaJYyoy NlwN7tRlkGfg6Rvut1/t7US7pP9GiGOHGfpl1ay+Qggcan0r14MFd5Mdq9i2DsoO EIkgl+BrbRKAa8ALQZr1KLt4HuzTWN8d4gNIYojDrNSTM0Lr45UZKQtCE5YdEHil ZRKUbWyaS8RFEaNlaUcaB0I7CYxeV+0t0gQ7wyTV7IAItr+GyOsJzSmAmLFo8WfM bb2dy8cJDg23iofso0WeP+Oy+RecLfzuXbQqaUwwVrgKnDUieWtn+K4fa7IePnKA == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudegjedgfeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgjfhgggfestdekre dtredttdenucfhrhhomheptehlihhsthgrihhrucfhrhgrnhgtihhsuceorghlihhsthgr ihhrsegrlhhishhtrghirhdvfedrmhgvqeenucggtffrrghtthgvrhhnpeeggedtteejke eggeeugfehueevudegvdetjeeviedugedvtdekffekhedtteduhfenucevlhhushhtvghr ufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhishhtrghirhesrghlih hsthgrihhrvdefrdhmvg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 23 Mar 2022 08:00:49 -0400 (EDT) From: Alistair Francis To: linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: alistair23@gmail.com, rydberg@bitmath.org, linus.walleij@linaro.org, robh+dt@kernel.org, dmitry.torokhov@gmail.com, andreas@kemnade.info, Alistair Francis Subject: [PATCH v7 4/4] ARM: dts: imx7d-remarkable2: Enable the cyttsp5 Date: Wed, 23 Mar 2022 22:00:21 +1000 Message-Id: <20220323120021.361137-5-alistair@alistair23.me> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220323120021.361137-1-alistair@alistair23.me> References: <20220323120021.361137-1-alistair@alistair23.me> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220323_050055_663375_47BD9DEC X-CRM114-Status: UNSURE ( 9.60 ) 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 | 100 ++++++++++++++++++++++++ 1 file changed, 100 insertions(+) diff --git a/arch/arm/boot/dts/imx7d-remarkable2.dts b/arch/arm/boot/dts/imx7d-remarkable2.dts index 03a4029e1e57..b0c5bea32a09 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"; @@ -78,6 +79,18 @@ reg_sdoe: regulator-sdoe { enable-active-high; }; + 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"; @@ -125,6 +138,70 @@ wacom_digitizer: digitizer@9 { }; }; +&i2c3 { + clock-frequency = <100000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c3>; + status = "okay"; + + tsc@24 { + #address-cells = <1>; + #size-cells = <0>; + + 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 { + reg = <0>; + linux,keycodes = ; + }; + + button@1 { + reg = <1>; + linux,keycodes = ; + }; + + button@2 { + reg = <2>; + linux,keycodes = ; + }; + + button@3 { + reg = <3>; + linux,keycodes = ; + }; + + button@4 { + reg = <4>; + linux,keycodes = ; + }; + + button@5 { + reg = <5>; + linux,keycodes = ; + }; + + button@6 { + reg = <6>; + linux,keycodes = ; + }; + + button@7 { + reg = <7>; + linux,keycodes = ; + }; + }; +}; + &i2c4 { clock-frequency = <100000>; pinctrl-names = "default", "sleep"; @@ -266,6 +343,15 @@ MX7D_PAD_ENET1_RGMII_TXC__GPIO7_IO11 0x00000014 >; }; + pinctrl_touch: touchgrp { + fsl,pins = < + /* CYTTSP interrupt */ + MX7D_PAD_GPIO1_IO14__GPIO1_IO14 0x54 + /* CYTTSP reset */ + MX7D_PAD_GPIO1_IO13__GPIO1_IO13 0x04 + >; + }; + pinctrl_i2c1: i2c1grp { fsl,pins = < MX7D_PAD_I2C1_SDA__I2C1_SDA 0x4000007f @@ -273,6 +359,13 @@ MX7D_PAD_I2C1_SCL__I2C1_SCL 0x4000007f >; }; + pinctrl_i2c3: i2c3grp { + fsl,pins = < + MX7D_PAD_I2C3_SDA__I2C3_SDA 0x4000007f + MX7D_PAD_I2C3_SCL__I2C3_SCL 0x4000007f + >; + }; + pinctrl_i2c4: i2c4grp { fsl,pins = < MX7D_PAD_I2C4_SDA__I2C4_SDA 0x4000007f @@ -320,6 +413,13 @@ MX7D_PAD_LCD_DATA22__GPIO3_IO27 0x74 >; }; + 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