HID: nintendo: Add preliminary Switch 2 controller driver
Status from this message: Applied to hid.git#for-7.4/nintendo, thanks.
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v16 Latest4 patches 1 replyApplied
- v154 patches 0 repliesSuperseded
- v144 patches 0 repliesSuperseded
Earlier versions · 13
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v13 | 3 patches | 3 replies | Superseded | |
| v12 | 3 patches | 2 replies | Superseded | |
| v11 | 3 patches | 6 replies | Superseded | |
| v10 | 3 patches | 0 replies | Superseded | |
| v9 | 3 patches | 0 replies | Superseded | |
| v8 | 3 patches | 0 replies | Superseded | |
| v7 | 3 patches | 0 replies | Superseded | |
| v6 | 3 patches | 3 replies | Superseded | |
| v5 | 3 patches | 7 replies | Superseded | |
| v4 | 3 patches | 3 replies | Superseded | |
| v2 posting 2/2 | 3 patches | 10 replies | Superseded | |
| v2 posting 1/2 | 1 patch | 6 replies | Superseded | |
| v1 | 1 patch | 2 replies | Superseded |
Patches in v16 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | HID: nintendo: Add preliminary Switch 2 controller driverMAINTAINERS drivers/ drivers/ +4 more | +1864 | 0 replies | |
| 2/4 | HID: nintendo: Add rumble support for Switch 2 controllersdrivers/ drivers/ | +215 | 0 replies | |
| 3/4 | HID: nintendo: Add unified report format supportdrivers/ | +146 | 0 replies | |
| 4/4 | HID: nintendo: Patch NYXI Hyperion 3 descriptordrivers/ | +16 | 0 replies |
Reviews trailers per patch
3 of 4 patches have a Reviewed-by or Acked-by.
| Patch | Silvan Jegen |
|---|---|
| 1/4 | R-b T-b |
| 2/4 | R-b T-b |
| 3/4 | R-b T-b |
| 4/4 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v16 0/4] HID: nintendo: Add preliminary Switch 2 controller driver
This adds a new driver for the Switch 2 controllers. The Switch 2 uses an unusual split-interface design such that input and rumble occur on the main HID interface, but all other communication occurs over a "configuration" interface. This is the case on both USB and Bluetooth, so this new driver uses a split-driver design with the HID interface being the "main" driver and the configuration interface is a secondary driver that looks up to the HID interface, sharing resources on a common struct.
Due to using a non-standard pairing interface as well as Bluetooth communications being extremely limited in the kernel, a custom interface between userspace and the kernel will need to be designed, along with bringup in BlueZ. That is beyond the scope of this initial patch, which only contains the generic HID and USB configuration interface drivers.
This initial work supports general input for the Joy-Con 2, Pro Controller 2, and GameCube NSO controllers. IMU, rumble and battery support is not yet present.
This should fix the last thing sashiko has been reporting that isn't complete and utter nonsense. Unless anything seriously bad comes through the next round, or a maintainer tells me I need to fix it, I'm just done.
Vicki Pfau (4):
HID: nintendo: Add preliminary Switch 2 controller driver
HID: nintendo: Add rumble support for Switch 2 controllers
HID: nintendo: Add unified report format support
HID: nintendo: Patch NYXI Hyperion 3 descriptor
MAINTAINERS | 1 + drivers/hid/Kconfig | 30 +- drivers/hid/Makefile | 1 + drivers/hid/hid-ids.h | 4 + drivers/hid/hid-nintendo-switch2-usb.c | 493 +++++++ drivers/hid/hid-nintendo.c | 1704 +++++++++++++++++++++++- drivers/hid/hid-nintendo.h | 73 + 7 files changed, 2263 insertions(+), 43 deletions(-) create mode 100644 drivers/hid/hid-nintendo-switch2-usb.c create mode 100644 drivers/hid/hid-nintendo.h
Signature · 1 line
2.54.0