From patchwork Wed Dec 22 12:45:59 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 12697081 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 7E9C2C433EF for ; Wed, 22 Dec 2021 12:47:41 +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: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:In-Reply-To:References: List-Owner; bh=7z5dG9gEoLkA5VRI15SpubJOyPqsC/mDLxDF1GZb248=; b=l+os0NubGQVkvf DNbZofUPqhDhc9iNNugLCC8F2lIEK/cJMzZcnvf584ELJ2WP4V7KQjbvBbRp68kY6chGRDgcaukcc z/oP9Pa7Sl75MbRFj716QqrcPlNI/1Le7d2EVBaQvHvlBsij7vZTeWXeFuGbcakYs4fZGMjg3R2JZ PPFyA0bISmlvw8spUsbyFWKUP20HoCwbh0lQGHTzHhpAS1D/9aMhxZ81TKUO0fAJxkYFe1rgStQx3 buUVwzLdJ49g9vW/V8BRbpS+7kNwDuBQaHZH/FnLgGJlKAFmKsGfK5PM76I5FR+MbnWiXwuWlgDqm dzlaeazEFBKFTaW3q9yw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n010e-00AJaB-Lz; Wed, 22 Dec 2021 12:46:21 +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 1n010b-00AJXy-6g for linux-arm-kernel@lists.infradead.org; Wed, 22 Dec 2021 12:46:18 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailnew.nyi.internal (Postfix) with ESMTP id BC9715803CD; Wed, 22 Dec 2021 07:46:11 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Wed, 22 Dec 2021 07:46:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alistair23.me; h=from:to:cc:subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=fm2; bh=VqlIc527blP2jp4gPa9SQqMVfs nmoyM43VnTaxx6eXM=; b=gDdnj7PXsQldB2H3IIMfKgbeINwEliZe6ko6k6UdaC QdRo9haOXGwqoTRYiI4iBKP6gO/85igSXmlaNjS1L1zJO7VvPl1Si1B1hsO974Uu meT5W9I9/MeaWIy78fRIHx27nhe7kXWRxhTOR+o1VTmSh5iIgZZnJhTzlDYkO4sx 9qEQcxLcQVmfMDaHxywg5Nss/GoGrMV0L+D7+Az5AknU8xJ1rV9RdDv6qBdLhjL7 dPLJaygJKMeQALbPIK0Gtok9LxGZqqg9eDXOAGTKNdGlDTmJJNaRLUgtwZPUWxyq a/w0Hf42aiEj3avjH/HmZr6jpCE/4lEmm059b54MR49Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=VqlIc5 27blP2jp4gPa9SQqMVfsnmoyM43VnTaxx6eXM=; b=UiIDvWc+15HtCtqY85NRpa UD11Sl0aW0y441Aizcb2vPduNkyzibFDiQHdUYAEwsjGNyTzowWRR+Rjz2oj1sHx KduJg9Sg7MhpP3JHr49WqQC++QpoyngaaeWCu2GpYHQ22lLBC0zV7odQHgw+WWAP POyz09QMWO9waaFHc/Tlkl7Wv1JWSAmnKVTykV8z0QOWtlFZNn6bJimwLGHGX9S3 CDUFkVStMRYQ1ZMPYVejthfXygUGa8vSrVgt/WwH6VUFgEACKUmWfD2FgRx8Sc9Q nsVJzObG3vSzCW5ffs3IJWVRTAMGpn2Ke/h3B8Up38BukZsFCnJibBKwbntG3vig == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddruddtiedgfeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofggtgfgsehtqhertd ertdejnecuhfhrohhmpeetlhhishhtrghirhcuhfhrrghntghishcuoegrlhhishhtrghi rhesrghlihhsthgrihhrvdefrdhmvgeqnecuggftrfgrthhtvghrnhepffelvdegveefve efvddvffeiteefgfejveegieethfekgefhleeukefhjeehfffgnecuffhomhgrihhnpehl fihnrdhnvghtpdhgihhthhhusgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpegrlhhishhtrghirhesrghlihhsthgrihhrvdefrdhm vg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 22 Dec 2021 07:46:07 -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 0/4] Add support for the Cypress cyttsp5 Date: Wed, 22 Dec 2021 22:45:59 +1000 Message-Id: <20211222124603.326920-1-alistair@alistair23.me> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211222_044617_363869_656B7F4A X-CRM114-Status: GOOD ( 11.16 ) 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 This patch series builds on top of [1] and adds support for the cyttsp5 touchscreen controller for the reMarkable 2. I first tried to add an I2C HID device. Although the cyttsp5 has some HID looking aspects it is not HID compatible. Just in trying to probe the device I found: - The HID descriptor has extra padding - The HID descriptor sets the high bytes of the descriptor length - The HID descriptor has extra unrecognised tags - The HID reset command doesn't appear to work I don't think there is a way to use the I2C HID framework with the cyttsp5. For anyone interested you can see the work here [2]. In that branch though I can only obtain a HID descriptor, nothing else works without more core changes. So instead I rebased the series from [1]. Converted to the new yaml DTS documentation, added regulator support and fixed a x/y miscalculation bug. 1: https://lwn.net/ml/linux-kernel/20180703094309.18514-1-mylene.josserand@bootlin.com/ 2: https://github.com/alistair23/linux/commits/rM2-mainline-cyttsp5-hid Alistair Francis (2): ARM: imx_v6_v7_defconfig: Enable the cyttsp5 touchscreen ARM: dts: imx7d-remarkable2: Enable the cyttsp5 Mylène Josserand (2): Input: Add driver for Cypress Generation 5 touchscreen dt-bindings: input: Add Cypress TT2100 touchscreen controller .../input/touchscreen/cypress,tt21000.yaml | 92 ++ arch/arm/boot/dts/imx7d-remarkable2.dts | 89 ++ arch/arm/configs/imx_v6_v7_defconfig | 1 + drivers/input/touchscreen/Kconfig | 14 + drivers/input/touchscreen/Makefile | 1 + drivers/input/touchscreen/cyttsp5.c | 922 ++++++++++++++++++ 6 files changed, 1119 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/touchscreen/cypress,tt21000.yaml create mode 100644 drivers/input/touchscreen/cyttsp5.c