mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sanjay Govind <sanjay.govind9@gmail.com>
To: Jiri Kosina <jikos@kernel.org>,
	Benjamin Tissoires <bentiss@kernel.org>,
	linux-input@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, Sanjay Govind <sanjay.govind9@gmail.com>
Subject: [PATCH 1/4] HID: sony: add IDs for the 2026 CRKD Gibson SG and Gibson Kramer guitars
Date: Tue,  1 Dec 2026 15:09:20 +1300	[thread overview]
Message-ID: <20261201020922.3552247-3-sanjay.govind9@gmail.com> (raw)
In-Reply-To: <20261201020922.3552247-2-sanjay.govind9@gmail.com>

Add the PlayStation mode USB IDs of two new guitars:

  - CRKD Gibson SG (2026): 3651:8500 (PS4) and 3651:8600 (PS5), plus
    3651:8510 and 3651:8610 when connected through the wireless dongle.
  - RedOctane Games Gibson Kramer: 3958:5500 (PS4) and 3958:5600 (PS5).

Both guitars emulate Rock Band 4 guitars in these modes, so handle them
the same way as the existing CRKD Gibson SG.

Signed-off-by: Sanjay Govind <sanjay.govind9@gmail.com>
---

Notes:
    Built hid-sony.o and hid-quirks.o with W=1, no warnings; checkpatch
    clean.
    
    Tested:
    - Gibson Kramer, PS5 mode (3958:5600): the report descriptor is
      identical to the Stage Tour drum kit's in PS5 mode. The frets report
      BTN_SOUTH/EAST/NORTH/WEST/TL, strum reports ABS_HAT0Y, whammy (byte
      41) reports ABS_Z, tilt (byte 42) reports ABS_RZ, and the battery is
      reported through the power supply class.
    - Gibson Kramer, PS4 mode (3958:5500): input report 0x01 is 64 bytes.
      The frets and strum report the same events as in PS5 mode, whammy
      (byte 44) reports ABS_Z over its full 0-255 range and tilt (byte 45)
      reports ABS_RZ.
    - Gibson SG, PS5 mode, wired (3651:8600): same descriptor and events as
      the Gibson Kramer in PS5 mode, with whammy and tilt at bytes 41 and
      42.
    - Gibson SG, PS4 mode, wired (3651:8500): same descriptor and events as
      the Gibson Kramer in PS4 mode, with whammy (0-255) and tilt at bytes
      44 and 45.
    - Gibson SG through its dongle, PS4 mode (3651:8510) and PS5 mode
      (3651:8610): same descriptors and events as when wired. In PS5 mode
      the dongle also sends 0x0c for the battery level.
    
    The patch and changelog were written with the help of an AI coding
    assistant (Claude Opus 5.5).

 drivers/hid/hid-ids.h    |  8 ++++++++
 drivers/hid/hid-quirks.c |  6 ++++++
 drivers/hid/hid-sony.c   | 12 ++++++++++++
 3 files changed, 26 insertions(+)

diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h
index 91319aa6516d..9678145c4a6a 100644
--- a/drivers/hid/hid-ids.h
+++ b/drivers/hid/hid-ids.h
@@ -389,6 +389,10 @@
 #define USB_DEVICE_ID_CRKD_PS4_GIBSON_SG_DONGLE 0x5500
 #define USB_DEVICE_ID_CRKD_PS5_GIBSON_SG        0x1600
 #define USB_DEVICE_ID_CRKD_PS5_GIBSON_SG_DONGLE	0x5600
+#define USB_DEVICE_ID_CRKD_PS4_GIBSON_SG_2026	0x8500
+#define USB_DEVICE_ID_CRKD_PS4_GIBSON_SG_2026_DONGLE	0x8510
+#define USB_DEVICE_ID_CRKD_PS5_GIBSON_SG_2026	0x8600
+#define USB_DEVICE_ID_CRKD_PS5_GIBSON_SG_2026_DONGLE	0x8610
 
 #define USB_VENDOR_ID_CVTOUCH		0x1ff7
 #define USB_DEVICE_ID_CVTOUCH_SCREEN	0x0013
@@ -1269,6 +1273,10 @@
 #define USB_DEVICE_ID_REDOCTANE_GUITAR_DONGLE	0x474c
 #define USB_DEVICE_ID_REDOCTANE_PS4_GHLIVE_DONGLE	0x07bb
 
+#define USB_VENDOR_ID_REDOCTANE_GAMES	0x3958
+#define USB_DEVICE_ID_REDOCTANE_PS4_KRAMER	0x5500
+#define USB_DEVICE_ID_REDOCTANE_PS5_KRAMER	0x5600
+
 #define USB_VENDOR_ID_RETROUSB		0xf000
 #define USB_DEVICE_ID_RETROUSB_SNES_RETROPAD	0x0003
 #define USB_DEVICE_ID_RETROUSB_SNES_RETROPORT	0x00f1
diff --git a/drivers/hid/hid-quirks.c b/drivers/hid/hid-quirks.c
index 793db001a62b..a0a41dbe3545 100644
--- a/drivers/hid/hid-quirks.c
+++ b/drivers/hid/hid-quirks.c
@@ -705,6 +705,12 @@ static const struct hid_device_id hid_have_special_driver[] = {
 	{ HID_USB_DEVICE(USB_VENDOR_ID_CRKD, USB_DEVICE_ID_CRKD_PS4_GIBSON_SG_DONGLE) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_CRKD, USB_DEVICE_ID_CRKD_PS5_GIBSON_SG) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_CRKD, USB_DEVICE_ID_CRKD_PS5_GIBSON_SG_DONGLE) },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_CRKD, USB_DEVICE_ID_CRKD_PS4_GIBSON_SG_2026) },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_CRKD, USB_DEVICE_ID_CRKD_PS4_GIBSON_SG_2026_DONGLE) },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_CRKD, USB_DEVICE_ID_CRKD_PS5_GIBSON_SG_2026) },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_CRKD, USB_DEVICE_ID_CRKD_PS5_GIBSON_SG_2026_DONGLE) },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_REDOCTANE_GAMES, USB_DEVICE_ID_REDOCTANE_PS4_KRAMER) },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_REDOCTANE_GAMES, USB_DEVICE_ID_REDOCTANE_PS5_KRAMER) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_HARMONIX, USB_DEVICE_ID_HARMONIX_WII_RB1_DRUMS) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_HARMONIX, USB_DEVICE_ID_HARMONIX_WII_RB1_GUITAR) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_HARMONIX, USB_DEVICE_ID_HARMONIX_WII_RB2_DRUMS) },
diff --git a/drivers/hid/hid-sony.c b/drivers/hid/hid-sony.c
index 1f1152575ae4..a59470f80645 100644
--- a/drivers/hid/hid-sony.c
+++ b/drivers/hid/hid-sony.c
@@ -2611,6 +2611,12 @@ static const struct hid_device_id sony_devices[] = {
 		.driver_data = RB4_GUITAR_PS4_USB | INSTRUMENT },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_CRKD, USB_DEVICE_ID_CRKD_PS4_GIBSON_SG_DONGLE),
 		.driver_data = RB4_GUITAR_PS4_USB | INSTRUMENT },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_CRKD, USB_DEVICE_ID_CRKD_PS4_GIBSON_SG_2026),
+		.driver_data = RB4_GUITAR_PS4_USB | INSTRUMENT },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_CRKD, USB_DEVICE_ID_CRKD_PS4_GIBSON_SG_2026_DONGLE),
+		.driver_data = RB4_GUITAR_PS4_USB | INSTRUMENT },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_REDOCTANE_GAMES, USB_DEVICE_ID_REDOCTANE_PS4_KRAMER),
+		.driver_data = RB4_GUITAR_PS4_USB | INSTRUMENT },
 	{ HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_PDP, USB_DEVICE_ID_PDP_PS4_JAGUAR),
 		.driver_data = RB4_GUITAR_PS4_BT | INSTRUMENT },
 	{ HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_MADCATZ, USB_DEVICE_ID_MADCATZ_PS4_STRATOCASTER),
@@ -2622,6 +2628,12 @@ static const struct hid_device_id sony_devices[] = {
 		.driver_data = RB4_GUITAR_PS5 | INSTRUMENT },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_CRKD, USB_DEVICE_ID_CRKD_PS5_GIBSON_SG_DONGLE),
 		.driver_data = RB4_GUITAR_PS5 | INSTRUMENT },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_CRKD, USB_DEVICE_ID_CRKD_PS5_GIBSON_SG_2026),
+		.driver_data = RB4_GUITAR_PS5 | INSTRUMENT },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_CRKD, USB_DEVICE_ID_CRKD_PS5_GIBSON_SG_2026_DONGLE),
+		.driver_data = RB4_GUITAR_PS5 | INSTRUMENT },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_REDOCTANE_GAMES, USB_DEVICE_ID_REDOCTANE_PS5_KRAMER),
+		.driver_data = RB4_GUITAR_PS5 | INSTRUMENT },
 	{ }
 };
 MODULE_DEVICE_TABLE(hid, sony_devices);
-- 
2.56.1


  reply	other threads:[~2026-12-01  2:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01  2:09 [PATCH 0/4] HID: sony: add support for new CRKD and RedOctane Games instruments Sanjay Govind
2026-12-01  2:09 ` Sanjay Govind [this message]
2026-12-01  2:09 ` [PATCH 2/4] HID: sony: add support for the Stage Tour drum kit Sanjay Govind
2026-12-01  2:09 ` [PATCH 3/4] HID: sony: add support for the PDP and MadCatz Rock Band 4 PS4 drums Sanjay Govind
2026-12-01  2:09 ` [PATCH 4/4] HID: sony: report the battery of Rock Band 4 PS5 drums Sanjay Govind

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261201020922.3552247-3-sanjay.govind9@gmail.com \
    --to=sanjay.govind9@gmail.com \
    --cc=bentiss@kernel.org \
    --cc=jikos@kernel.org \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®