Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1892939pxm; Sun, 27 Feb 2022 05:54:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJwYiY9XuREqtsxo6Vhqtn/M0eWn1qiAjO8Y6D5ujsIbN2sKfa7sBKHUcrkhxGp7oT6kjBdB X-Received: by 2002:a17:907:1c9f:b0:6ce:e4e5:a6d2 with SMTP id nb31-20020a1709071c9f00b006cee4e5a6d2mr12576624ejc.304.1645970068911; Sun, 27 Feb 2022 05:54:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645970068; cv=none; d=google.com; s=arc-20160816; b=l2d0NbR4dhTAsw6jp2ce7dPIL0zJgjjTCEspNl4dZyYW8mcgzyOiyZE5wPQ48IAHcq 6GEKPy93aUIza8JI27kqPdCjPVf87gNg9aYsl7ferJ/I+d54W7STnAe9COqAvO/uSVyL 0/tUh8Mp5yY0AgYCpoUiVUhlJT6M/xYFRy35vyK4Y7ypLvCMP04tfOD9qnzUakUIbGsN b7F17wo+HV4JRT1K7qx7jwDCIz6XK/sHcoMnYu4EiUVDjNAXLQcLDBCiJsTjdLgy0VS2 fzuUDKdZL0E8TZ5j4QU5/mkDsJSySiS3FHdgHFV84j/l31Xg2LLwfxLQFGp8wlCGk08Q ib6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature:dkim-signature; bh=/kCjBnTIBOFAiyVIH+6Uk+1WkWlvNy6m+zGJBls4XE8=; b=njn+eQZeyecPA3gnP5vNOZS3j7IKdy85CFdKclm1fcBXMTwYv53s26UzSOUBNZ4Ozp bK/cUx9IvTtofTZEQq4mJsgKY9ZfMytEVlClt0IX9MYMthNUFcJEsC+Szl/rY5c3W/gG 4meZGH6G7bRUo8bI4tdxbcXSkOdk/UuKWUMrFjoLSWbQB0eB8gK9dZpWYZZN6GosO8UT tDQESDY1opIcYWswvWOg73Pp1dwk8nycEakrwvUHY1NIexeECr0aPegoUcm6FxuENXuc x/JZWK2gOc2zF3DN62d5aphmyIJQMiw8NZV4fx6vwJ2wBFoTTHpOUctfInuKSf5IPbfa f/2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alistair23.me header.s=fm3 header.b=Cq00KLQC; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=mfDtmLnL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kb7-20020a170907924700b006d06e8aced7si4097832ejb.421.2022.02.27.05.54.06; Sun, 27 Feb 2022 05:54:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@alistair23.me header.s=fm3 header.b=Cq00KLQC; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=mfDtmLnL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230503AbiB0Mlp (ORCPT + 99 others); Sun, 27 Feb 2022 07:41:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230239AbiB0Mlg (ORCPT ); Sun, 27 Feb 2022 07:41:36 -0500 Received: from new1-smtp.messagingengine.com (new1-smtp.messagingengine.com [66.111.4.221]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8224F6D1BF; Sun, 27 Feb 2022 04:40:58 -0800 (PST) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailnew.nyi.internal (Postfix) with ESMTP id ADC0758021F; Sun, 27 Feb 2022 07:33:25 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Sun, 27 Feb 2022 07:33:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alistair23.me; h=cc:cc:content-transfer-encoding:content-type:date:date:from :from:in-reply-to:message-id:mime-version:reply-to:sender :subject:subject:to:to; s=fm3; bh=/kCjBnTIBOFAiyVIH+6Uk+1WkWlvNy 6m+zGJBls4XE8=; b=Cq00KLQCk8QZ8IxE3iWtXMZUAIJTRHqyxQuE/fYv/GYmJm WskZ+L0xANMxSMmlrrnpKPlw2xYmlGKrql6EZr6Yz9eqXmBwzF5SFEOMZyf+lzQT RT2WRYIcYMdiZY45diuV4+Rt9Y+ATg4oHla+tFjZhJ1C1aMQQR1n4ClCnUt1TtED f7ukk58oz8X+2qKXwom4JA9mdv2mTsQ0Blv7m94k8qgluYliGWv7iObv2MVawzIu Bg67ugj7nuFPuxLj5JyGC7guJaM/vgI5DrSbIaq3Y3SK8xQdG4+UF5YJ6sjtXNis KQiUxdFocFpCXGzts8Aa1BC74BJC63z2kuSj2mBw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=/kCjBn TIBOFAiyVIH+6Uk+1WkWlvNy6m+zGJBls4XE8=; b=mfDtmLnLOo2ISlqi4qxL/s MCvs8B+2PbD3FBhSzD+ftJvC6pN3fsOZRSrL5yumhpMrZj0MRFpvTzR2xkEqxffs 0/WkIv/KnZoBz4W0qcLYHiy13b45DthLcHza/C56aHQ43IF2qS0d/P2OZrKBYFjH mwzw+S5N6yAht/05ZBmyYZAsSLurbJnkOoxXRbUp5DXzRkjgaDzApJNp/xf1Gesg /oS9HM8vKH0sFDuQZxzxHqHKtFC/1yQfsS+0oIVYrF7ogX5wFPT4JJ+BAqwEx6oM 4g2BvdxMbAGcu68MN0w8HVcKZ7YqDfpr7nFTCXSyUf63smtYd0K0/JZMozu/dSbA == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrleekgdegtdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffogggtgfesthhqredtre dtjeenucfhrhhomheptehlihhsthgrihhrucfhrhgrnhgtihhsuceorghlihhsthgrihhr segrlhhishhtrghirhdvfedrmhgvqeenucggtffrrghtthgvrhhnpeffledvgeevfeevfe dvvdffieetfefgjeevgeeitefhkeeghfelueekhfejheffgfenucffohhmrghinheplhif nhdrnhgvthdpghhithhhuhgsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrg hrrghmpehmrghilhhfrhhomheprghlihhsthgrihhrsegrlhhishhtrghirhdvfedrmhgv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 27 Feb 2022 07:33:20 -0500 (EST) From: Alistair Francis To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-input@vger.kernel.org Cc: robh+dt@kernel.org, linus.walleij@linaro.org, rydberg@bitmath.org, dmitry.torokhov@gmail.com, andreas@kemnade.info, alistair23@gmail.com, Alistair Francis Subject: [PATCH v6 0/4] Add support for the Cypress cyttsp5 Date: Sun, 27 Feb 2022 22:33:14 +1000 Message-Id: <20220227123318.313009-1-alistair@alistair23.me> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series builds on top of [1] and adds support for the cyttsp5=0D touchscreen controller for the reMarkable 2.=0D =0D I first tried to add an I2C HID device. Although the cyttsp5 has some HID=0D looking aspects it is not HID compatible. Just in trying to probe the devic= e=0D I found:=0D - The HID descriptor has extra padding=0D - The HID descriptor sets the high bytes of the descriptor length=0D - The HID descriptor has extra unrecognised tags=0D - The HID reset command doesn't appear to work=0D =0D I don't think there is a way to use the I2C HID framework with the cyttsp5.= =0D For anyone interested you can see the work here [2]. In that branch though = I=0D can only obtain a HID descriptor, nothing else works without more core=0D changes.=0D =0D So instead I rebased the series from [1]. Converted to the new yaml DTS=0D documentation, added regulator support and fixed a x/y miscalculation bug.= =0D =0D 1: https://lwn.net/ml/linux-kernel/20180703094309.18514-1-mylene.josserand@= bootlin.com/=0D 2: https://github.com/alistair23/linux/commits/rM2-mainline-cyttsp5-hid=0D =0D v6:=0D - Use reg for the button properties=0D v5:=0D - Address review comments from v4=0D =0D Alistair Francis (4):=0D Input: Add driver for Cypress Generation 5 touchscreen=0D dt-bindings: input: Add Cypress TT2100 touchscreen controller=0D ARM: imx_v6_v7_defconfig: Enable the cyttsp5 touchscreen=0D ARM: dts: imx7d-remarkable2: Enable the cyttsp5=0D =0D .../input/touchscreen/cypress,tt21000.yaml | 98 ++=0D arch/arm/boot/dts/imx7d-remarkable2.dts | 97 ++=0D arch/arm/configs/imx_v6_v7_defconfig | 1 +=0D drivers/input/touchscreen/Kconfig | 16 +=0D drivers/input/touchscreen/Makefile | 1 +=0D drivers/input/touchscreen/cyttsp5.c | 902 ++++++++++++++++++=0D 6 files changed, 1115 insertions(+)=0D create mode 100644 Documentation/devicetree/bindings/input/touchscreen/cyp= ress,tt21000.yaml=0D create mode 100644 drivers/input/touchscreen/cyttsp5.c=0D =0D -- =0D 2.34.1=0D =0D