From patchwork Thu Oct 21 09:51:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 12574447 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EE6ACC433F5 for ; Thu, 21 Oct 2021 09:53:31 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BBF24610D0 for ; Thu, 21 Oct 2021 09:53:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org BBF24610D0 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=alistair23.me Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ctmGqTwj/dlGeIuTaajmrgKoRguDhNJZZQnnw6nDUaQ=; b=FIKx26Q4H7xnMi /3g0gLMLK61918TsdmH72FnkbHh3fsOC6itII+ZRnnxC4yGzVD5yjE0ssrM6Y5Ilb7yJHcgFhohaq JFZzs9JEtYZY9AIsUfRH8ZYPBtTTgIyqXTbsO/o5m1CgQMj/mDoQ1013bvk1duD87zjRdEq3d4cmv FchEC9p2OEWPRZ9XYZBZeJ1tFku2pzAaRtSsXO1huqWASscGcNRe3TrSTTiBTWdfJv6XOPIrZHL3g R1TQT7sX/18/xSyQxEQcsbuc+atyIkbnFgfHzN5RUFelfdFy2LDQLLBZw3IWCYZvvYgyvKhg58ywJ KFI7OYcsr6VnhI6kA1nw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mdUjt-0076Vk-MJ; Thu, 21 Oct 2021 09:51:57 +0000 Received: from new1-smtp.messagingengine.com ([66.111.4.221]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mdUjl-0076U2-Vv for linux-arm-kernel@lists.infradead.org; Thu, 21 Oct 2021 09:51:51 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailnew.nyi.internal (Postfix) with ESMTP id 60996580CD8; Thu, 21 Oct 2021 05:51:49 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Thu, 21 Oct 2021 05:51:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alistair23.me; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm2; bh=vx06MaD0DxqwC PVkL4yhQlFJJuRlEfDKByXpzB5FHn8=; b=C1/RemWjtBf6qhds3xMIGrpzBdShR bC+j874KSxznIT8+eGeyiZA5POpWjUHvY1dBSlyeCAMAok4R5wTkp5YyYN6PpFjx dWUBMAmCyxqapo17rM/C7xtik2xK9Q9xLZKHVpqE3mpwqxbJclAGr5NUmVn10HAH AprpQczdfw+29XZgd+b7ulqvaAx2c8yKPZKVUgi7FdDIJWsen35X4mt3vz4Pdpvm Bh1fCFk9L3rDQORGOiZdFMIhqVcEEyp5NKtYL8Gbzsh/6y/ia8fc+LA0RLdXX2UQ 1kjzuZNptIALf29YQ2Z6iYi4zOnlSSy5d1d1lVkMPHMs03XDzd4ljfONQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=vx06MaD0DxqwCPVkL4yhQlFJJuRlEfDKByXpzB5FHn8=; b=iWYUdV/c PxMrTB3ktXIHiye1WoKw1P3p+CXhWUhMEWNIAq9HemLi/7IKaLv93DR8B7aG4obr PAyzIM1KzJ74szbZrL+lDXBcLYZmiSzgHufGEa57Tu6Kn8q1Trp22u1FLGfjHYZa EFGt/5e155NGSV5nXiZTbH5eFRXHPSGa6ro9fmJgHt0Wgwn1jmj+FJPWPHfFQyBG nC7C7WbIblfMRrw1Gqrd+PIhBQnKQKVZsnzoT34yXM9XO8dF1SknB9PB+kpvyQ1w cvxXBZosn8XaXuPjsykQzMXP1Wnw7d2pAvAJYqAnnro6dkKlNz/ZXiu68YONZnsL TTzyJgdJsS6NJg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvddviedgvddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgjfhgggfestdekre dtredttdenucfhrhhomheptehlihhsthgrihhrucfhrhgrnhgtihhsuceorghlihhsthgr ihhrsegrlhhishhtrghirhdvfedrmhgvqeenucggtffrrghtthgvrhhnpeeggedtteejke eggeeugfehueevudegvdetjeeviedugedvtdekffekhedtteduhfenucevlhhushhtvghr ufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhishhtrghirhesrghlih hsthgrihhrvdefrdhmvg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 21 Oct 2021 05:51:44 -0400 (EDT) From: Alistair Francis To: dmitry.torokhov@gmail.com, shawnguo@kernel.org, s.hauer@pengutronix.de, benjamin.tissoires@redhat.com Cc: linux-imx@nxp.com, jikos@kernel.org, linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, alistair23@gmail.com, Alistair Francis Subject: [PATCH v12 2/3] HID: quirks: Invert X/Y values for rM2 Wacom Date: Thu, 21 Oct 2021 19:51:06 +1000 Message-Id: <20211021095107.116292-2-alistair@alistair23.me> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211021095107.116292-1-alistair@alistair23.me> References: <20211021095107.116292-1-alistair@alistair23.me> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211021_025150_113032_57AE3017 X-CRM114-Status: UNSURE ( 9.06 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Enable the HID_QUIRK_XY_INVERT quirk for the Wacom digitiser used on the reMarkable 2. Signed-off-by: Alistair Francis --- drivers/hid/hid-ids.h | 2 ++ drivers/hid/hid-quirks.c | 1 + 2 files changed, 3 insertions(+) diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h index 29564b370341..9dc17bf3e550 100644 --- a/drivers/hid/hid-ids.h +++ b/drivers/hid/hid-ids.h @@ -1260,8 +1260,10 @@ #define USB_DEVICE_ID_VTL_MULTITOUCH_FF3F 0xff3f #define USB_VENDOR_ID_WACOM 0x056a +#define USB_VENDOR_ID_WACOM_HID 0x2D1F #define USB_DEVICE_ID_WACOM_GRAPHIRE_BLUETOOTH 0x81 #define USB_DEVICE_ID_WACOM_INTUOS4_BLUETOOTH 0x00BD +#define I2C_DEVICE_ID_WACOM_REMARKABLE2 0x0095 #define USB_VENDOR_ID_WALTOP 0x172f #define USB_DEVICE_ID_WALTOP_SLIM_TABLET_5_8_INCH 0x0032 diff --git a/drivers/hid/hid-quirks.c b/drivers/hid/hid-quirks.c index 2e104682c22b..b081af3329a5 100644 --- a/drivers/hid/hid-quirks.c +++ b/drivers/hid/hid-quirks.c @@ -186,6 +186,7 @@ static const struct hid_device_id hid_quirks[] = { { HID_USB_DEVICE(USB_VENDOR_ID_TURBOX, USB_DEVICE_ID_TURBOX_KEYBOARD), HID_QUIRK_NOGET }, { HID_USB_DEVICE(USB_VENDOR_ID_UCLOGIC, USB_DEVICE_ID_UCLOGIC_TABLET_KNA5), HID_QUIRK_MULTI_INPUT }, { HID_USB_DEVICE(USB_VENDOR_ID_UCLOGIC, USB_DEVICE_ID_UCLOGIC_TABLET_TWA60), HID_QUIRK_MULTI_INPUT }, + { HID_I2C_DEVICE(USB_VENDOR_ID_WACOM_HID, I2C_DEVICE_ID_WACOM_REMARKABLE2), HID_QUIRK_XY_INVERT }, { HID_USB_DEVICE(USB_VENDOR_ID_WALTOP, USB_DEVICE_ID_WALTOP_MEDIA_TABLET_10_6_INCH), HID_QUIRK_MULTI_INPUT }, { HID_USB_DEVICE(USB_VENDOR_ID_WALTOP, USB_DEVICE_ID_WALTOP_MEDIA_TABLET_14_1_INCH), HID_QUIRK_MULTI_INPUT }, { HID_USB_DEVICE(USB_VENDOR_ID_WALTOP, USB_DEVICE_ID_WALTOP_SIRIUS_BATTERY_FREE_TABLET), HID_QUIRK_MULTI_INPUT },