Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp450832pxb; Thu, 21 Oct 2021 02:53:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw6RzV7GHpahx8I4xim5FFF3LHcPPnRWomk/xaudhZjpyW3taroAO9j6gGKqTPT1/nGaPcw X-Received: by 2002:a17:90b:1bcc:: with SMTP id oa12mr5293296pjb.212.1634810008550; Thu, 21 Oct 2021 02:53:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634810008; cv=none; d=google.com; s=arc-20160816; b=Egr728HCazKaqAoKBYlqRLJNMLrsMHS1EjvYC+LSlNMIC7O1hrgH4q+QGDJDFDCQ5+ ReRmZROpW824hRa21pIbt66EosWsvabxV4U9q/GAwcIH5XKOik+mniEBug1kuF+BP5gY mPfVoMlTJdclqfypLQ+Hs3/xKil+3Ui+qOmSF7BS3iKy1wbQBhq0bXIFJPYA9Rw3X3A+ E8VM+pjTCC+9cF6vn9Yk9D0JX2g17jLyaR5Fp0w30nbKDd0FzRFG2m+UdqvoLFGMy8Jg dIulxYE3P7kUi+xPRh3KRhz0iAzAdWfxVIcYK1U2SSuld8zhaqm3fNmboSmArqe2tn0D FTOQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=vx06MaD0DxqwCPVkL4yhQlFJJuRlEfDKByXpzB5FHn8=; b=NXOY3ebaOzIlzj4lXb3R3909gP353xN5zO7OJm4PTS9tNB1o9bxSJ35psu7X1YKfCh ucjZLo0cbvMSlXgPZGSvn7ZlKmJvcmCwryV1Zfdi0Ct1SiBFCKuIhk0S7Gq20DZpx9q8 HDyVkh+To7WmE2UVo1GqEvfVtuh0xVZxqMx0cJ5sebjF7oQJ65a6J6V9i/icSmTHWOkQ NfKk0Mi4694roKwIQoa+IvEu9Kmf7JmxbVwZELtMlCxCv4rS7Wiahcu7/BX/l42RaubE YXOvlgxZRdOCnXTj0/01yT/jBrVD+L4iwhiaV6CyEuub8PaVBCq6DS8Anz7i5XrvKSFD YeWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alistair23.me header.s=fm2 header.b="C1/RemWj"; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b="iWYUdV/c"; 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 b8si7428615pfv.230.2021.10.21.02.53.15; Thu, 21 Oct 2021 02:53:28 -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="C1/RemWj"; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b="iWYUdV/c"; 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 S231542AbhJUJyF (ORCPT + 99 others); Thu, 21 Oct 2021 05:54:05 -0400 Received: from new1-smtp.messagingengine.com ([66.111.4.221]:52345 "EHLO new1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231520AbhJUJyF (ORCPT ); Thu, 21 Oct 2021 05:54:05 -0400 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 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 }, -- 2.31.1