Skip to content

Input: xbox_gip - Add new driver for Xbox GIP

Vicki Pfau linux-input 7 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest12 patches 1 replyIn review
  2. v612 patches 0 repliesSuperseded
  3. v512 patches 0 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v412 patches4 repliesSuperseded
v310 patches2 repliesSuperseded
v25 patches1 replySuperseded
v16 patches3 repliesSuperseded

Patches in v7 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12Input: xbox_gip - Add new driver for Xbox GIPMAINTAINERS drivers/input/joystick/Kconfig drivers/input/joystick/Makefile +5 more+3211 -00 replies
2/12Input: xpad - Remove Xbox One supportDocumentation/input/devices/xpad.rst drivers/input/joystick/gip/gip-core.c drivers/input/joystick/xpad.c+12 -6910 replies
3/12Input: xbox_gip - Add controllable LED supportdrivers/input/joystick/gip/Kconfig drivers/input/joystick/gip/gip-core.c drivers/input/joystick/gip/gip.h+121 -20 replies
4/12Input: xbox_gip - Add HID relayingdrivers/input/joystick/gip/gip-core.c drivers/input/joystick/gip/gip.h include/uapi/linux/input.h+116 -30 replies
5/12Input: xbox_gip - Add battery supportdrivers/input/joystick/gip/gip-core.c drivers/input/joystick/gip/gip.h+116 -40 replies
6/12Input: xbox_gip - Allow sending fragmented and ACME messagesdrivers/input/joystick/gip/gip-core.c drivers/input/joystick/gip/gip.h+396 -180 replies
7/12Input: xbox_gip - Add security implementation from xonedrivers/input/joystick/gip/Kconfig drivers/input/joystick/gip/Makefile drivers/input/joystick/gip/gip-core.c +3 more+900 -250 replies
8/12Input: xbox_gip - Add arcade stick supportdrivers/input/joystick/gip/Makefile drivers/input/joystick/gip/gip-arcade-stick.c drivers/input/joystick/gip/gip-core.c +1 more+181 -40 replies
9/12Input: xbox_gip - Add support for PDP guitar controllersdrivers/input/joystick/gip/Makefile drivers/input/joystick/gip/gip-core.c drivers/input/joystick/gip/gip-pdp-jaguar.c +1 more+133 -00 replies
10/12Input: Add ABS_CLUTCH, HANDBRAKE, and SHIFTERdrivers/hid/hid-debug.c include/uapi/linux/input-event-codes.h+12 -70 replies
11/12HID: Map more automobile simulation inputsdrivers/hid/hid-input.c+2 -00 replies
12/12Input: xbox_gip - Add wheel supportdrivers/input/joystick/gip/Makefile drivers/input/joystick/gip/gip-core.c drivers/input/joystick/gip/gip-drivers.c +2 more+371 -10 replies

Reviews trailers per patch

1 of 12 patches has a Reviewed-by or Acked-by.

PatchJiri Kosina
1/12
2/12
3/12
4/12
5/12
6/12
7/12
8/12
9/12
10/12
11/12A-b
12/12

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v7 thread

Cover letter [PATCH v7 00/12] Input: xbox_gip - Add new driver for Xbox GIP

This is a new version of the previously submitted xbox-gip series.

This introduces a new driver for the Xbox One/Series controller protocol, officially known as the Gaming Input Protocol, or GIP for short.

Microsoft released documentation on (some of) GIP in late 2024, upon which this driver is based. Though the documentation was incomplete, it still provided enough information to warrant a clean start over the previous, incomplete implementation.

This driver is already at feature parity with the GIP support in xpad, along with several more enhancements:

- Proper support for parsing message length and fragmented messages
- Metadata parsing, allowing for auto-detection on various parameters, including the presence and location in the message of the share button, as well as detection of specific device types
- Controllable LED support
- HID passthrough for the Chatpad
- Battery information support
- Arcade stick support
- Racing wheel support
- Support for the security flow, allowing use with wireless controllers that include their own dongles. (This does not include support for the first-party dongle yet.)

The framework set out in this driver also allows future expansion for specialized device types and additional features more cleanly than xpad.

Future plans include:

- Adding support for more device types, such as flight sticks.
- Exposing a raw character device to enable sending vendor-specific commands from userspace.
- Event logging to either sysfs or dmesg.
- Support for the headphone jack.

This version cleans up more issues found by sashiko.

Vicki Pfau (12):
Input: xbox_gip - Add new driver for Xbox GIP
Input: xpad - Remove Xbox One support
Input: xbox_gip - Add controllable LED support
Input: xbox_gip - Add HID relaying
Input: xbox_gip - Add battery support
Input: xbox_gip - Allow sending fragmented and ACME messages
Input: xbox_gip - Add security implementation from xone
Input: xbox_gip - Add arcade stick support
Input: xbox_gip - Add support for PDP guitar controllers
Input: Add ABS_CLUTCH, HANDBRAKE, and SHIFTER
HID: Map more automobile simulation inputs
Input: xbox_gip - Add wheel support

 Documentation/input/devices/xpad.rst          |   17 +-
 MAINTAINERS                                   |    6 +
 drivers/hid/hid-debug.c                       |   16 +-
 drivers/hid/hid-input.c                       |    2 +
 drivers/input/joystick/Kconfig                |    2 +
 drivers/input/joystick/Makefile               |    1 +
 drivers/input/joystick/gip/Kconfig            |   24 +
 drivers/input/joystick/gip/Makefile           |    8 +
 drivers/input/joystick/gip/gip-arcade-stick.c |  173 +
 drivers/input/joystick/gip/gip-core.c         | 3320 +++++++++++++++++
 drivers/input/joystick/gip/gip-drivers.c      |  222 ++
 drivers/input/joystick/gip/gip-pdp-jaguar.c   |  129 +
 drivers/input/joystick/gip/gip-security.c     |  810 ++++
 drivers/input/joystick/gip/gip-wheel.c        |  351 ++
 drivers/input/joystick/gip/gip.h              |  441 +++
 drivers/input/joystick/xpad.c                 |  684 +---
 include/uapi/linux/input-event-codes.h        |    3 +
 include/uapi/linux/input.h                    |    1 +
 18 files changed, 5513 insertions(+), 697 deletions(-)
 create mode 100644 drivers/input/joystick/gip/Kconfig
 create mode 100644 drivers/input/joystick/gip/Makefile
 create mode 100644 drivers/input/joystick/gip/gip-arcade-stick.c
 create mode 100644 drivers/input/joystick/gip/gip-core.c
 create mode 100644 drivers/input/joystick/gip/gip-drivers.c
 create mode 100644 drivers/input/joystick/gip/gip-pdp-jaguar.c
 create mode 100644 drivers/input/joystick/gip/gip-security.c
 create mode 100644 drivers/input/joystick/gip/gip-wheel.c
 create mode 100644 drivers/input/joystick/gip/gip.h
Signature · 1 line
2.54.0