Skip to content

Commit b8a968e

Browse files
Roderick Colenbranderbentiss
authored andcommitted
HID: playstation: add initial DualSense Edge controller support
Provide initial support for the DualSense Edge controller. The brings support up to the level of the original DualSense, but won't yet provide support for new features (e.g. reprogrammable buttons). Signed-off-by: Roderick Colenbrander <[email protected]> CC: [email protected] Signed-off-by: Benjamin Tissoires <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 182934a commit b8a968e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

drivers/hid/hid-ids.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1142,6 +1142,7 @@
11421142
#define USB_DEVICE_ID_SONY_PS4_CONTROLLER_2 0x09cc
11431143
#define USB_DEVICE_ID_SONY_PS4_CONTROLLER_DONGLE 0x0ba0
11441144
#define USB_DEVICE_ID_SONY_PS5_CONTROLLER 0x0ce6
1145+
#define USB_DEVICE_ID_SONY_PS5_CONTROLLER_2 0x0df2
11451146
#define USB_DEVICE_ID_SONY_MOTION_CONTROLLER 0x03d5
11461147
#define USB_DEVICE_ID_SONY_NAVIGATION_CONTROLLER 0x042f
11471148
#define USB_DEVICE_ID_SONY_BUZZ_CONTROLLER 0x0002

drivers/hid/hid-playstation.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1464,7 +1464,8 @@ static int ps_probe(struct hid_device *hdev, const struct hid_device_id *id)
14641464
goto err_stop;
14651465
}
14661466

1467-
if (hdev->product == USB_DEVICE_ID_SONY_PS5_CONTROLLER) {
1467+
if (hdev->product == USB_DEVICE_ID_SONY_PS5_CONTROLLER ||
1468+
hdev->product == USB_DEVICE_ID_SONY_PS5_CONTROLLER_2) {
14681469
dev = dualsense_create(hdev);
14691470
if (IS_ERR(dev)) {
14701471
hid_err(hdev, "Failed to create dualsense.\n");
@@ -1499,6 +1500,8 @@ static void ps_remove(struct hid_device *hdev)
14991500
static const struct hid_device_id ps_devices[] = {
15001501
{ HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_SONY, USB_DEVICE_ID_SONY_PS5_CONTROLLER) },
15011502
{ HID_USB_DEVICE(USB_VENDOR_ID_SONY, USB_DEVICE_ID_SONY_PS5_CONTROLLER) },
1503+
{ HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_SONY, USB_DEVICE_ID_SONY_PS5_CONTROLLER_2) },
1504+
{ HID_USB_DEVICE(USB_VENDOR_ID_SONY, USB_DEVICE_ID_SONY_PS5_CONTROLLER_2) },
15021505
{ }
15031506
};
15041507
MODULE_DEVICE_TABLE(hid, ps_devices);

0 commit comments

Comments
 (0)