Skip to content

Commit e2adf27

Browse files
author
Jiri Kosina
committed
Merge branch 'for-5.12/playstation-v2' into for-linus
- Playstation DualSense support from Roderick Colenbrander
2 parents 31d31fa + 949aacc commit e2adf27

File tree

5 files changed

+1377
-0
lines changed

5 files changed

+1377
-0
lines changed

MAINTAINERS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7928,6 +7928,12 @@ F: drivers/hid/
79287928
F: include/linux/hid*
79297929
F: include/uapi/linux/hid*
79307930

7931+
HID PLAYSTATION DRIVER
7932+
M: Roderick Colenbrander <roderick.colenbrander@sony.com>
7933+
L: linux-input@vger.kernel.org
7934+
S: Supported
7935+
F: drivers/hid/hid-playstation.c
7936+
79317937
HID SENSOR HUB DRIVERS
79327938
M: Jiri Kosina <jikos@kernel.org>
79337939
M: Jonathan Cameron <jic23@kernel.org>

drivers/hid/Kconfig

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -853,6 +853,24 @@ config HID_PLANTRONICS
853853

854854
Say M here if you may ever plug in a Plantronics USB audio device.
855855

856+
config HID_PLAYSTATION
857+
tristate "PlayStation HID Driver"
858+
depends on HID
859+
select CRC32
860+
select POWER_SUPPLY
861+
help
862+
Provides support for Sony PS5 controllers including support for
863+
its special functionalities e.g. touchpad, lights and motion
864+
sensors.
865+
866+
config PLAYSTATION_FF
867+
bool "PlayStation force feedback support"
868+
depends on HID_PLAYSTATION
869+
select INPUT_FF_MEMLESS
870+
help
871+
Say Y here if you would like to enable force feedback support for
872+
PlayStation game controllers.
873+
856874
config HID_PRIMAX
857875
tristate "Primax non-fully HID-compliant devices"
858876
depends on HID

drivers/hid/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ hid-picolcd-$(CONFIG_HID_PICOLCD_CIR) += hid-picolcd_cir.o
9494
hid-picolcd-$(CONFIG_DEBUG_FS) += hid-picolcd_debugfs.o
9595

9696
obj-$(CONFIG_HID_PLANTRONICS) += hid-plantronics.o
97+
obj-$(CONFIG_HID_PLAYSTATION) += hid-playstation.o
9798
obj-$(CONFIG_HID_PRIMAX) += hid-primax.o
9899
obj-$(CONFIG_HID_REDRAGON) += hid-redragon.o
99100
obj-$(CONFIG_HID_RETRODE) += hid-retrode.o

drivers/hid/hid-ids.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,6 +1077,7 @@
10771077
#define USB_DEVICE_ID_SONY_PS4_CONTROLLER 0x05c4
10781078
#define USB_DEVICE_ID_SONY_PS4_CONTROLLER_2 0x09cc
10791079
#define USB_DEVICE_ID_SONY_PS4_CONTROLLER_DONGLE 0x0ba0
1080+
#define USB_DEVICE_ID_SONY_PS5_CONTROLLER 0x0ce6
10801081
#define USB_DEVICE_ID_SONY_MOTION_CONTROLLER 0x03d5
10811082
#define USB_DEVICE_ID_SONY_NAVIGATION_CONTROLLER 0x042f
10821083
#define USB_DEVICE_ID_SONY_BUZZ_CONTROLLER 0x0002

0 commit comments

Comments
 (0)