Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp316409pxb; Wed, 3 Nov 2021 04:50:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzR87P8RZxyc5fNudG9n3oMLaM8R+kb9o0zKCP5E8DGlMc442Jfhk8E3bMg8wphNCPKz1Ru X-Received: by 2002:a05:6402:2687:: with SMTP id w7mr19121549edd.266.1635940250202; Wed, 03 Nov 2021 04:50:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635940250; cv=none; d=google.com; s=arc-20160816; b=1Ksvqv3Scful2kSoCHFbjoq8+c2oZAw/Y85R/tdJFZOjRetEvK2Jzk7n9xJuXWjZwE 4DOXYDWC9qDSE3ZnhX5ezlxZarGRx4gNSOnJjgfB8DLLib6fUoDbfCxmgHMCjNRRynBA I8T4htSU7mZsELzrx88bhkA4kIAB4cspdyeWWNZJY0OEQZv8gdbwU+PRsxd6UG9CPm1R eUkqfVq96FOHMpbKdyCnMEqbeILgIyxHPU1dLHfPkkPHav7valeITYi32yE02PjdOaS6 TfE00fidPQedn0d5zNBa8o2GlM6QmqqhlzEKyXS9J7SuAOYvWgP74v+hxG3Bvk7B9sL1 q+tg== 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=vvUrm34c7dv+UGdvIdwJr40CsJT6cIMI3th4q8bRplw=; b=R3UD6tgRtmyC1YRDlWGWFa1EITOkQVDXo07FUjYg5RzBUZm6Gdd8mOe/mcdl0+Pmz9 Fam80niivNN8GIGDSH8ivPnnMtbVAl5IxLqTEQXyWD7zvqRnPf39N3PCDhEWmXN4N6aX 5JRt7N7oeZl4KDQCMO82Lm/NmZp/vXgBFrtm+XAXc6K6fVG/aJ9V6W/Lkd94lac64rvd JIoD7sVbjVe6J51sNdACPbbDGJ33JfonONY4XHj4cBxnwUpXCbSj8IYE+0xay7W4aGoP ga3ifniqb/kCa2RFNJ0m/p9M1g4Uvoq1MYAdM7SH4z9RGKdD1SEXAMM0Xk+nsLUeqjzJ /bhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alistair23.me header.s=fm2 header.b=Xfa5wpxr; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=j03UfstX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dm8si3393245ejc.614.2021.11.03.04.50.26; Wed, 03 Nov 2021 04:50:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@alistair23.me header.s=fm2 header.b=Xfa5wpxr; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=j03UfstX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231775AbhKCLvR (ORCPT + 99 others); Wed, 3 Nov 2021 07:51:17 -0400 Received: from new2-smtp.messagingengine.com ([66.111.4.224]:49623 "EHLO new2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230250AbhKCLvO (ORCPT ); Wed, 3 Nov 2021 07:51:14 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailnew.nyi.internal (Postfix) with ESMTP id 8B3B558073B; Wed, 3 Nov 2021 07:48:37 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Wed, 03 Nov 2021 07:48:37 -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=vvUrm34c7dv+UGdvIdwJr40CsJ T6cIMI3th4q8bRplw=; b=Xfa5wpxrG/xs5eGRA4vWurwqyAp77CPa+CICSSmwIt HMS3KYMY1sxVdFrKRA+xN73WuGu7u6/2BqHSOXjMjj6tDQ2+Z8n2qa5D38oIFw2E 1Gg8jfpZw+i3ruu3yY4HwvoxH2ozpm07lYa3KpP4NSUOc/Dgh1lTzzZh9fRSvR7K IQJHsv2hy1KCMXPouRwgrX08BhEyekXjtRLE6vdG7raq5MGEaH1Ku10naD7vHJ/8 FcKX3upoqIau4PG60uXuHQSFrSAvpPK35JXoYtTxLzOeqIxkaWnNH0hxhYY6W+yd isppuC8GK/HCf6s8lscTSmqKQ2UkA8G5LdnTKGu8A7bQ== 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=vvUrm3 4c7dv+UGdvIdwJr40CsJT6cIMI3th4q8bRplw=; b=j03UfstXNUCEur7gSvZAX9 Brg4j+Gk+ctxHbruLexKyrKraWE9z9mlRJMblI4uqLQMtlIy/7kkoxN7xkoRHT06 S7MKr4xOMz98N516jWwNmN1il06HwFS0JitsFZFlvk1K0Df5SpN7IReVvwtOtIha Kxonp5vJZWf6RzUgPEKSTpOHSmBo+SQjVehI8jFwVzKJ5/cOSFJ1Nl+7Il9NHT77 pUCtEGMYQwZAUlKkzzrkm02iMqhtBgDh0P8H3tZIGCQTzE+doq2EpL0tP/WLozmL ALQ7Y5sViWMHmknbLuZj/mM87PpPs9FtGaanqFOLSN3Br+R+xejHkaSBiJS4+JsQ == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrtddvgdefudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffogggtgfesthhqredtre dtjeenucfhrhhomheptehlihhsthgrihhrucfhrhgrnhgtihhsuceorghlihhsthgrihhr segrlhhishhtrghirhdvfedrmhgvqeenucggtffrrghtthgvrhhnpeffledvgeevfeevfe dvvdffieetfefgjeevgeeitefhkeeghfelueekhfejheffgfenucffohhmrghinheplhif nhdrnhgvthdpghhithhhuhgsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrg hrrghmpehmrghilhhfrhhomheprghlihhsthgrihhrsegrlhhishhtrghirhdvfedrmhgv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 3 Nov 2021 07:48:32 -0400 (EDT) From: Alistair Francis To: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Cc: mylene.josserand@free-electrons.com, linus.walleij@linaro.org, andreas@kemnade.info, rydberg@bitmath.org, dmitry.torokhov@gmail.com, robh+dt@kernel.org, alistair23@gmail.com, Alistair Francis Subject: [PATCH v2 0/4] Add support for the Cypress cyttsp5 Date: Wed, 3 Nov 2021 21:48:26 +1000 Message-Id: <20211103114830.62711-1-alistair@alistair23.me> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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 Alistair Francis (2):=0D ARM: imx_v6_v7_defconfig: Enable the cyttsp5 touchscreen=0D ARM: dts: imx7d: remarkable2: Enable the cyttsp5=0D =0D Myl=C3=A8ne Josserand (2):=0D Input: Add driver for Cypress Generation 5 touchscreen=0D Documentation: DT: bindings: input: Add documentation for cyttsp5=0D =0D .../input/touchscreen/cypress,tt21000.yaml | 92 ++=0D arch/arm/boot/dts/imx7d-remarkable2.dts | 89 ++=0D arch/arm/configs/imx_v6_v7_defconfig | 1 +=0D drivers/input/touchscreen/Kconfig | 14 +=0D drivers/input/touchscreen/Makefile | 1 +=0D drivers/input/touchscreen/cyttsp5.c | 1135 +++++++++++++++++=0D 6 files changed, 1332 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.31.1=0D =0D