From patchwork Tue Jun 15 10:30:05 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 12321067 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 BE5C2C48BDF for ; Tue, 15 Jun 2021 10:30:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 890BA61453 for ; Tue, 15 Jun 2021 10:30:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231524AbhFOKcm (ORCPT ); Tue, 15 Jun 2021 06:32:42 -0400 Received: from new1-smtp.messagingengine.com ([66.111.4.221]:57001 "EHLO new1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231503AbhFOKcl (ORCPT ); Tue, 15 Jun 2021 06:32:41 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailnew.nyi.internal (Postfix) with ESMTP id 71962580729; Tue, 15 Jun 2021 06:30:37 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Tue, 15 Jun 2021 06:30: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-transfer-encoding; s=fm1; bh=PtEEriapq8by9pN0/7eaayeZVv GO5nKNyXRGHpCQE2s=; b=BixdAMbOqA2K42rVvynBLSNOGAwmB2paCLyyvB5HAg /MRUPmj8+WFohIhjQrBWdyn2VFY2PidrNBDeLTYYGPApXlL0s2TAvxoxveLvKHC1 ZP52wsbrzSwcnuBVIwP2ehTcDyduYe/JMo7+Pauh9cys2dm/77oxneEYBWgzNeZe qMffO/hcnqcp1nb34SMqqDxhB2MBU91cq8lsH3i10lEwgyxMseAigp5dduhTfAeS GGWSRWZncJci1KhUSksFvksgtGWdHX3KoRL+wBforUgCeRoCkC6Y8FCWVsfKQKMk LwuaxqbDAuu+pw5o1Am3td2lgCsxJVJRmD3g+d1FbrlQ== 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=PtEEriapq8by9pN0/ 7eaayeZVvGO5nKNyXRGHpCQE2s=; b=gbiw21aDhPR7PHXpCVrFUjI1p9dJ12dHK I54Y16AzE31c7rj0MaA/nssuwmQYOXDnTqsiiSIu0LnuYiOvqVKkr4PN5p7vCC5m TaQ6JPGvzmj+y3j6tSEW4KE9YdE+Ldjo8stoUg9cyHtjccsF/Vwr6fXoaETMP0Fc Pugd9OojJyOCXtZm2X0dbkTfkl8vqapO0LJBaB/gT4vWyBp1EJolCvu9qL1k3nwe tQPSwRm3f/frkAHcLP8dchsXjQOwEVVLuxHDUyJN20jeoZWbzCKL/PPn0urd/TAF k83NFIncpnf40eYJ9bu8+t1VGFRS3C/hLGLU9v495MEDe2cvHf/uw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfedvjedgvdelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgggfestdekredtre dttdenucfhrhhomheptehlihhsthgrihhrucfhrhgrnhgtihhsuceorghlihhsthgrihhr segrlhhishhtrghirhdvfedrmhgvqeenucggtffrrghtthgvrhhnpeejleeihfdvtefgtd ethfdtgefftdeiffefjeeiffefveeuleejheejvefhffeukeenucevlhhushhtvghrufhi iigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhishhtrghirhesrghlihhsth grihhrvdefrdhmvg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 15 Jun 2021 06:30:33 -0400 (EDT) From: Alistair Francis To: dmitry.torokhov@gmail.com, linux-input@vger.kernel.org, linux-imx@nxp.com, kernel@pengutronix.d, pinglinux@gmail.com, tatsunosuke.tobita@wacom.com, junkpainting@gmail.com, ping.cheng@wacom.com Cc: linux-kernel@vger.kernel.org, alistair23@gmail.com, Alistair Francis Subject: [PATCH v6 0/9] Add Wacom I2C support to rM2 Date: Tue, 15 Jun 2021 20:30:05 +1000 Message-Id: <20210615103014.798-1-alistair@alistair23.me> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-input@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 probe the Wacom digitiser. Alistair Francis (9): dt-bindings: Add Wacom to vendor bindings dt-bindings: touchscreen: Initial commit of wacom,generic Input: wacom_i2c - Add device tree support to wacom_i2c Input: wacom_i2c - Add touchscren properties 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 ARM: imx_v6_v7_defconfig: Enable Wacom I2C ARM: dts: imx7d: remarkable2: add wacom digitizer device .../input/touchscreen/wacom,generic.yaml | 48 ++++++ .../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 | 155 ++++++++++++++---- 5 files changed, 233 insertions(+), 34 deletions(-) create mode 100644 Documentation/devicetree/bindings/input/touchscreen/wacom,generic.yaml