Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2824600ioo; Tue, 24 May 2022 06:51:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx8bKLYwwt8aAjQSHcwfnrdythnS5gNxhJljt/oPQqOpL3Et8ZL3P69QDUbkZURB/r5/Rdz X-Received: by 2002:a17:906:d159:b0:6fe:d886:aee8 with SMTP id br25-20020a170906d15900b006fed886aee8mr10138315ejb.766.1653400294338; Tue, 24 May 2022 06:51:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653400294; cv=none; d=google.com; s=arc-20160816; b=R6VHP2I74DAEKICXuTEJqbkdysR0t43VedVHbNpEs83mk7/saNDUYwDXM38ECbk2Y2 T+FiFLaqdmQxGGLRJ7AIW1ucv8PKxnHaUZvpp1x+vF5SRHDM95Un/YYQHsMsuti8s+8P YN69R/o0YP0e0mNiuiHJejG3kH3g4kegEf1fmhiDK+craDgRpSOMaR3TpD/jy1J6mKHn 6N3GsycNKsiK4hdfsxQnWRDbtKpdGMZqyPWLMw8hJIWrkaJrp4xqM1gUqcBcu18NJqPG Siq3R264ZrJ6FB3Td+b5NAEbdGT3enM2ulacq7pK3vNA+wMYqIjWyKJJEER3ZBy1rmDJ fc3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=EIAXXXRwo1YYdT9BrP9x6eL1UouOtf5nysexYYh5ocs=; b=KpGfulzNObH7ZCaIwQY3VS4LBeoxeZc+Slqffu3Whj6o0Dtj630EDayXF5DudXTlsW J7itNWnJazPvMmPcCVY1BZf22X+n7xCF3oH6RDpWt1sR66uwbvbe8fJHGNXd+eSqWm9z 8LSobe2UKY9vVWbnHMw+JreYz2UnBdIi3AQLKKN855sgWHS0nLq9bBk+6gbTBOB4KblV sh4rNCIrAsCKyyhR7bX8cPOfUNEavZzcCTc96IcIFf0DVdaUGV7bp5vZWulPX9eZ1L49 Jb5zir17zLFZ9H9pf6oBCVHqAeaSZF4VqK0BDrI5FjyGE65rinHInEv1Hvg2rLVdk41O SplA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=RZi92208; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a89-20020a509ee2000000b0042aae3f66dfsi9569041edf.500.2022.05.24.06.51.08; Tue, 24 May 2022 06:51:34 -0700 (PDT) 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=@gmail.com header.s=20210112 header.b=RZi92208; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235256AbiEXL5h (ORCPT + 99 others); Tue, 24 May 2022 07:57:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230099AbiEXL5f (ORCPT ); Tue, 24 May 2022 07:57:35 -0400 Received: from mail-io1-xd2d.google.com (mail-io1-xd2d.google.com [IPv6:2607:f8b0:4864:20::d2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6025A62BD8; Tue, 24 May 2022 04:57:34 -0700 (PDT) Received: by mail-io1-xd2d.google.com with SMTP id b4so3394953iog.11; Tue, 24 May 2022 04:57:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=EIAXXXRwo1YYdT9BrP9x6eL1UouOtf5nysexYYh5ocs=; b=RZi92208R6ZRLaqgjJ35GcMxLld23k/r9kHNFWbPbdA6ButLl2XPyd9axlRNARHviQ SXBtr2LoqecHLoFxKSOzat2OmCJuPwf245P8WAx8fhG13Y2b6kkIBFu11X/QWQVvHblb bgkQ4C5Sl3rb9K/2X1wsR7+yuxnztqQFxJZYrZbzKCR6XDMGj21cuEmYA6/GJ5nWWRPP rp7Xgr+GSuPbGkB81uJqSkXVJa4xgBl8G3Lp2zHdNya6S0MYS3+0fP7wrfVqAxoK76Zt Oi64nxv+CcS/JlJt9PsSdqgiuk2xkbJQHqU8agqzacivXOS4nofqzU0mTkqDnvDZ9hGd pT7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=EIAXXXRwo1YYdT9BrP9x6eL1UouOtf5nysexYYh5ocs=; b=uwrerqdnvJjzuN80DeWJNPBsOjoTwEbYNHXsuxOdal3pWakSduNGbIKpung41OjYTP G07rJi29DBSC2KShCBuhsUWrqpbI/5rZrBZ6/vuYD6LFcW8QvQc2IYGXitFI8r6Qnc0G nVfYTbAee7L4v7nm6rOynKQptTYUK/hUbMyIMhdj8i8slMi/PIzj35qWa4Gcc0p+my83 wUt8zIHMCVk+t8qBoit9INgrkjGZ1cZgYfCuA4RaqWP7eZzeelwCn+8mn+iR6v8iuMhB v/FX4AkYhQ1e02I5d1ud1h+yl5y6EMVHQFpoavrUHVQExjJJxuuhhYHT/ZtwW2R2Z5Lz 5LnA== X-Gm-Message-State: AOAM533HscE5njfNiwvR0Y9iTjbOK/4oKeL/yfRs8aVqtwCzfWZSR+ov nVTtJyCBv7kaeK/5rhOupSBPiRZfhEdgWBjfzY0= X-Received: by 2002:a05:6638:498e:b0:32e:be76:f908 with SMTP id cv14-20020a056638498e00b0032ebe76f908mr5837862jab.66.1653393453532; Tue, 24 May 2022 04:57:33 -0700 (PDT) MIME-Version: 1.0 References: <20220323120021.361137-1-alistair@alistair23.me> In-Reply-To: From: Alistair Francis Date: Tue, 24 May 2022 21:57:07 +1000 Message-ID: Subject: Re: [PATCH v7 0/4] Add support for the Cypress cyttsp5 To: Alistair Francis Cc: linux-input , devicetree , linux-arm-kernel , Linux Kernel Mailing List , Henrik Rydberg , Linus Walleij , Rob Herring , Dmitry Torokhov , Andreas Kemnade Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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 On Wed, Apr 20, 2022 at 10:25 PM Alistair Francis wrote: > > On Wed, Mar 23, 2022 at 10:00 PM Alistair Francis > wrote: > > > > 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. > > The DT bindings have been reviewed, any comments on the driver > implementation? It has been tested on a few different devices Any comments? It would be great to try and get this in 5.19 Alistair > > Alistair > > > > > 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 > > > > v7: > > - Fix device tree warnings > > v6: > > - Use reg for the button properties > > v5: > > - Address review comments from v4 > > > > Alistair Francis (4): > > Input: Add driver for Cypress Generation 5 touchscreen > > dt-bindings: input: Add Cypress TT2100 touchscreen controller > > ARM: imx_v6_v7_defconfig: Enable the cyttsp5 touchscreen > > ARM: dts: imx7d-remarkable2: Enable the cyttsp5 > > > > .../input/touchscreen/cypress,tt21000.yaml | 101 ++ > > arch/arm/boot/dts/imx7d-remarkable2.dts | 100 ++ > > arch/arm/configs/imx_v6_v7_defconfig | 1 + > > drivers/input/touchscreen/Kconfig | 16 + > > drivers/input/touchscreen/Makefile | 1 + > > drivers/input/touchscreen/cyttsp5.c | 902 ++++++++++++++++++ > > 6 files changed, 1121 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/input/touchscreen/cypress,tt21000.yaml > > create mode 100644 drivers/input/touchscreen/cyttsp5.c > > > > -- > > 2.35.1 > >