From patchwork Sun Aug 29 09:19:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alistair X-Patchwork-Id: 504144 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 38B62C432BE for ; Sun, 29 Aug 2021 09:19:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 075C0606A5 for ; Sun, 29 Aug 2021 09:19:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234862AbhH2JUd (ORCPT ); Sun, 29 Aug 2021 05:20:33 -0400 Received: from new4-smtp.messagingengine.com ([66.111.4.230]:51791 "EHLO new4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234584AbhH2JUc (ORCPT ); Sun, 29 Aug 2021 05:20:32 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailnew.nyi.internal (Postfix) with ESMTP id CEC41580B0B; Sun, 29 Aug 2021 05:19:39 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Sun, 29 Aug 2021 05:19:39 -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-transfer-encoding; s=fm2; bh=UKA+mD4oTh8sYLLli6c3hx8ym4 5MRs9xbz/z6p375ME=; b=AvOfauNwab4X4x1DTdL2cM1nVJCYY71qMig5OvZpKF to0nJih0kS+z5YUFObEno4GbFf/OamBPDOhtPnY+LvQ+3Xz0m1Fag35f9na5mHOH Ul/H8q7xl2SNDLXe99WCuwGvSA7eqOYY82XkhzyNbjxLNDRtrOhGJneCLfp0vWtz BJS5D3T6RF+vsmXxativ3sLT8BCgg7Og0YpGhjm1N+zt38E0uT0mPsLQXeBiiygn ZHR82hDpk4KXlKOJhG36duV5W8KJgi9x34sfSJL/PpJBg6XbUILWzsK0n/gKJTQW nEMIwMka4F1BqHM7tXvGoC3Z6eeUQUTNqC2PsbFjypfw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=UKA+mD4oTh8sYLLli 6c3hx8ym45MRs9xbz/z6p375ME=; b=XbWVvJWXNM2dCIA2e3EoqPiAyeH6TfHPU 6rJS9VF9A7da1YOtQdpi683nGVdXdNPRwICNGwA5bpqdhBikP1aKvnnxR0gtiPxn l+/CcnVycI47RpiwXj5njQRwWKJOLGOLISQPeM+z/iA4yw9ga6bVReqLkeV/5YYk 5eheLMnEnE0Q72XrzRFZgHzZSq9cu9R67sTzTv6VKiIyWT2Vcq88KZP2Cq0Kcw/Y uy9xL9NXrhsAIEmvANSNp6kKgGnThHD3fowOXzQ5nZTInSL4olxoT47G2ZN5KV6s A+j8DZPpCHW8sBSbQ9RnYhW0WNnQuVqWOidg5gLL1bLtJkTG3mImg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddruddujedguddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgggfestdekredtre dttdenucfhrhhomheptehlihhsthgrihhrucfhrhgrnhgtihhsuceorghlihhsthgrihhr segrlhhishhtrghirhdvfedrmhgvqeenucggtffrrghtthgvrhhnpeejleeihfdvtefgtd ethfdtgefftdeiffefjeeiffefveeuleejheejvefhffeukeenucevlhhushhtvghrufhi iigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhishhtrghirhesrghlihhsth grihhrvdefrdhmvg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 29 Aug 2021 05:19:33 -0400 (EDT) From: Alistair Francis To: dmitry.torokhov@gmail.com, linux-input@vger.kernel.org, linux-imx@nxp.com, kernel@pengutronix.de, pinglinux@gmail.com, tatsunosuke.tobita@wacom.com, junkpainting@gmail.com, ping.cheng@wacom.com Cc: linux-kernel@vger.kernel.org, alistair23@gmail.com, robh+dt@kernel.org, devicetree@vger.kernel.org, Alistair Francis Subject: [PATCH v10 00/12] Add Wacom I2C support to rM2 Date: Sun, 29 Aug 2021 19:19:12 +1000 Message-Id: <20210829091925.190-1-alistair@alistair23.me> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add support to the reMarkable2 (rM2) for the Wacom I2C device. This is based on the reMarkable Linux fork and with this series I am able to use the Wacom digitiser on the rM2. v10: - Add a new patch to determine the generation - Use generation to determine if tilt is supported - Address comments from v9 - Remove flip-pressure v9: - Add two new patches - Fixup the device tree interrupt line v7: - Fx the compatible name and documentation Alistair Francis (12): dt-bindings: Add Wacom to vendor bindings dt-bindings: touchscreen: Initial commit of wacom,i2c Input: wacom_i2c - Add device tree support to wacom_i2c Input: wacom_i2c - Add touchscren properties Input: wacom_i2c - Read the descriptor values Input: wacom_i2c - Add support for distance and tilt x/y Input: wacom_i2c - Clean up the query device fields Input: wacom_i2c - Add support for vdd regulator Input: wacom_i2c - Use macros for the bit masks Input: wacom_i2c - Allow flipping the values from the DT ARM: imx_v6_v7_defconfig: Enable Wacom I2C ARM: dts: imx7d: remarkable2: add wacom digitizer device .../input/touchscreen/wacom,generic.yaml | 68 +++++ .../devicetree/bindings/vendor-prefixes.yaml | 2 + arch/arm/boot/dts/imx7d-remarkable2.dts | 61 ++++ arch/arm/configs/imx_v6_v7_defconfig | 1 + drivers/input/touchscreen/wacom_i2c.c | 262 +++++++++++++++--- 5 files changed, 358 insertions(+), 36 deletions(-) create mode 100644 Documentation/devicetree/bindings/input/touchscreen/wacom,generic.yaml