Merge branch 'for-6.8/nintendo' into for-linus

- support for Nintendo NSO controllers -- SNES, Genesis
  and N64 (Ryan McClelland)
This commit is contained in:
Jiri Kosina 2024-01-08 21:09:48 +01:00
commit f54a651c57
3 changed files with 640 additions and 257 deletions

View File

@ -761,14 +761,15 @@ config HID_MULTITOUCH
module will be called hid-multitouch. module will be called hid-multitouch.
config HID_NINTENDO config HID_NINTENDO
tristate "Nintendo Joy-Con and Pro Controller support" tristate "Nintendo Joy-Con, NSO, and Pro Controller support"
depends on NEW_LEDS depends on NEW_LEDS
depends on LEDS_CLASS depends on LEDS_CLASS
select POWER_SUPPLY select POWER_SUPPLY
help help
Adds support for the Nintendo Switch Joy-Cons and Pro Controller. Adds support for the Nintendo Switch Joy-Cons, NSO, Pro Controller.
All controllers support bluetooth, and the Pro Controller also supports All controllers support bluetooth, and the Pro Controller also supports
its USB mode. its USB mode. This also includes support for the Nintendo Switch Online
Controllers which include the Genesis, SNES, and N64 controllers.
To compile this driver as a module, choose M here: the To compile this driver as a module, choose M here: the
module will be called hid-nintendo. module will be called hid-nintendo.
@ -779,9 +780,9 @@ config NINTENDO_FF
select INPUT_FF_MEMLESS select INPUT_FF_MEMLESS
help help
Say Y here if you have a Nintendo Switch controller and want to enable Say Y here if you have a Nintendo Switch controller and want to enable
force feedback support for it. This works for both joy-cons and the pro force feedback support for it. This works for both joy-cons, the pro
controller. For the pro controller, both rumble motors can be controlled controller, and the NSO N64 controller. For the pro controller, both
individually. rumble motors can be controlled individually.
config HID_NTI config HID_NTI
tristate "NTI keyboard adapters" tristate "NTI keyboard adapters"

View File

@ -988,7 +988,10 @@
#define USB_DEVICE_ID_NINTENDO_JOYCONL 0x2006 #define USB_DEVICE_ID_NINTENDO_JOYCONL 0x2006
#define USB_DEVICE_ID_NINTENDO_JOYCONR 0x2007 #define USB_DEVICE_ID_NINTENDO_JOYCONR 0x2007
#define USB_DEVICE_ID_NINTENDO_PROCON 0x2009 #define USB_DEVICE_ID_NINTENDO_PROCON 0x2009
#define USB_DEVICE_ID_NINTENDO_CHRGGRIP 0x200E #define USB_DEVICE_ID_NINTENDO_CHRGGRIP 0x200e
#define USB_DEVICE_ID_NINTENDO_SNESCON 0x2017
#define USB_DEVICE_ID_NINTENDO_GENCON 0x201e
#define USB_DEVICE_ID_NINTENDO_N64CON 0x2019
#define USB_VENDOR_ID_NOVATEK 0x0603 #define USB_VENDOR_ID_NOVATEK 0x0603
#define USB_DEVICE_ID_NOVATEK_PCT 0x0600 #define USB_DEVICE_ID_NOVATEK_PCT 0x0600

File diff suppressed because it is too large Load Diff