From patchwork Mon Oct 25 11:42:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 12581543 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 14AA7C433EF for ; Mon, 25 Oct 2021 11:43:57 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id D308360F4F for ; Mon, 25 Oct 2021 11:43:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org D308360F4F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=alistair23.me Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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=bCePrKstR6pq0a7v8EW8UxZsX/dbky8L5mADV2eHrgc=; b=wyXMzhfvGZ0IV3 jZSpqPDhdGodUlc65HfA61eSMq7flUSpnfgvwIwOsaj33RGBXxMrqg93v77YGlli7sLnerQApFRSi wjlCZVX/MeMk3+eplrcO4ih41jWLkzGE0NGicDuWI+rj1KnACJqDNmPUDaZQkPVAdiGy6bd2aaBme u0zz5pl8U2EHG9bWie9fu/p00zev6X1YET3lN7/8NP/aXbiK6kR1PvvNoNZ46zsUiGuxKDrztKB5U eF40Lsvy5RJd6i9heRtnvOBTVwQgr5S1psYi6emtWpl+Ffph/YzOzHLj6M3gV2qPWz84WsJLD8lrb HUZeX2V5BC4cYySVBY6Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1meyN0-00GGv0-R6; Mon, 25 Oct 2021 11:42:27 +0000 Received: from new4-smtp.messagingengine.com ([66.111.4.230]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1meyMx-00GGuJ-KB for linux-arm-kernel@lists.infradead.org; Mon, 25 Oct 2021 11:42:25 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id 856055804A8; Mon, 25 Oct 2021 07:42:22 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Mon, 25 Oct 2021 07:42:22 -0400 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=mFmfwKE6NJwjJuKPURxDtcwRnD 8ffKIphewM6DnRXhQ=; b=lwgJ0jaDrCSyhplEtJbMrW+0v+CecDvNr4cs4j8u/b V9TVp7FMLa3aFedS5wi5MVDSRF+MTqv5wlkVwNIw39iCustWMlC2pVH3SvtS/PWe kSkTDUK69QiRSADnh5k2zhbi+SPXozX5AaaIHtXEEZmuSPIm5VQX+JyZo9m3fkR/ K1dDd+Ep7Jx/qXvfJ2zqxmAqcZB3NFQ0rRtoIG24dm8BtZPhphAJ/s/U0mhSqN5X wEc3qSJfXlvgrmHrOykC0lgbvstvyMBCJ3xlUxsN1cXTiDaTdPrJljn6ctVJsen3 ZXZdaq9KS5p1nPBWo1Ps/PAtSs1JSh3lWYEsU7Reqc2g== 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=mFmfwK E6NJwjJuKPURxDtcwRnD8ffKIphewM6DnRXhQ=; b=WCHzm2JJVY39uMYAzGNmpX pfPI/IPpmMubCpZMTPLXPzwz1ThAWeYBR4FzN1NBmoddCplFpxs+/ntkZG3pQbG4 ImQFksbRuhKC+LtZbBBycoCoyPhwL39nc334afKjQ13f3rxuMIHz98gRjTOoDtta V5jOiwF7gRf3A5+UAcfVwQaDe9XXldesfyLcEnIWWv/B+T4g2SDCA8PD6nn5WQig u4ipW6y//eB0u6osltu+i9hIATAzs+D82oVnVDG6N8w8HoCo8/cvmnQOQXxweEi+ KgjMiypZPwmV0GbYAqeqaMSp2Y87VtssR/0maobpcHvxvrFa9AZeAlPq5yl1OjqA == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvdefhedggeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofggtgfgsehtqhertd ertdejnecuhfhrohhmpeetlhhishhtrghirhcuhfhrrghntghishcuoegrlhhishhtrghi rhesrghlihhsthgrihhrvdefrdhmvgeqnecuggftrfgrthhtvghrnhepffelvdegveefve efvddvffeiteefgfejveegieethfekgefhleeukefhjeehfffgnecuffhomhgrihhnpehl fihnrdhnvghtpdhgihhthhhusgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpegrlhhishhtrghirhesrghlihhsthgrihhrvdefrdhm vg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 25 Oct 2021 07:42:16 -0400 (EDT) From: Alistair Francis To: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org Cc: andreas@kemnade.info, alistair23@gmail.com, dmitry.torokhov@gmail.com, linus.walleij@linaro.org, robh+dt@kernel.org, rydberg@bitmath.org, mylene.josserand@free-electrons.com, Alistair Francis Subject: [PATCH 0/4] Add support for the Cypress cyttsp5 Date: Mon, 25 Oct 2021 21:42:10 +1000 Message-Id: <20211025114214.44617-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-20211025_044223_790181_760C8E26 X-CRM114-Status: GOOD ( 11.12 ) 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 Documentation: DT: bindings: input: Add documentation for cyttsp5 .../input/touchscreen/cypress,cyttsp5.yaml | 72 ++ arch/arm/boot/dts/imx7d-remarkable2.dts | 88 ++ arch/arm/configs/imx_v6_v7_defconfig | 1 + drivers/input/touchscreen/Kconfig | 14 + drivers/input/touchscreen/Makefile | 1 + drivers/input/touchscreen/cyttsp5.c | 1129 +++++++++++++++++ 6 files changed, 1305 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/touchscreen/cypress,cyttsp5.yaml create mode 100644 drivers/input/touchscreen/cyttsp5.c