Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions Documentation/ABI/testing/sysfs-driver-hid-ayaneo
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
What: /sys/bus/hid/drivers/hid-ayaneo/<dev>/module_left
What: /sys/bus/hid/drivers/hid-ayaneo/<dev>/module_right
Date: August 2026
KernelVersion: 7.3
Contact: Matías Martínez <hello@matias.me>
Description:
Reports the type of the module currently inserted in the
left/right slot of the AYANEO 3 detachable controller, as
the raw identifier reported by the controller firmware in
hexadecimal (e.g. "0x04"). Bits 0-5 encode the module
type, bit 6 indicates the module is inserted rotated.

Reading these attributes queries the controller and can
take up to a second.

What: /sys/bus/hid/drivers/hid-ayaneo/<dev>/eject
Date: August 2026
KernelVersion: 7.3
Contact: Matías Martínez <hello@matias.me>
Description:
Write-only. Writing "left", "right" or "both" asks the
controller firmware to release the corresponding
module(s). The write blocks until the firmware confirms
the release handshake (typically a few seconds). The
module is physically released once controller power is
subsequently cut through the ayaneo-ec platform driver's
controller_power attribute; that final step is left to
userspace.

What: /sys/bus/hid/drivers/hid-ayaneo/<dev>/reset
Date: August 2026
KernelVersion: 7.3
Contact: Matías Martínez <hello@matias.me>
Description:
Write-only. Writing "1" asks the controller firmware to
perform a quick reset of the controller configuration.
7 changes: 7 additions & 0 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -4466,6 +4466,13 @@ S: Maintained
F: Documentation/ABI/testing/sysfs-platform-ayn-ec
F: drivers/platform/x86/ayn-ec.c

AYANEO 3 CONTROLLER HID DRIVER
M: Matías Martínez <hello@matias.me>
L: linux-input@vger.kernel.org
S: Maintained
F: Documentation/ABI/testing/sysfs-driver-hid-ayaneo
F: drivers/hid/hid-ayaneo.c

AYANEO PLATFORM EC DRIVER
M: Antheas Kapenekakis <lkml@antheas.dev>
L: platform-driver-x86@vger.kernel.org
Expand Down
14 changes: 14 additions & 0 deletions drivers/hid/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,20 @@ config HID_AUREAL
help
Support for Aureal Cy se W-01RN Remote Controller and other Aureal derived remotes.

config HID_AYANEO
tristate "AYANEO 3 detachable controller support"
depends on USB_HID
depends on DMI
depends on LEDS_CLASS_MULTICOLOR
help
Provides support for the detachable controller ("Magic Modules")
of the AYANEO 3 handheld: module identification, software eject
and RGB control of the joystick rings. Complements the ayaneo-ec
platform driver, which handles module attach state and controller
power.

Say Y or M here if you have an AYANEO 3.

config HID_BELKIN
tristate "Belkin Flip KVM and Wireless keyboard"
help
Expand Down
1 change: 1 addition & 0 deletions drivers/hid/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ obj-$(CONFIG_HID_APPLETB_KBD) += hid-appletb-kbd.o
obj-$(CONFIG_HID_CREATIVE_SB0540) += hid-creative-sb0540.o
obj-$(CONFIG_HID_ASUS) += hid-asus.o
obj-$(CONFIG_HID_AUREAL) += hid-aureal.o
obj-$(CONFIG_HID_AYANEO) += hid-ayaneo.o
obj-$(CONFIG_HID_BELKIN) += hid-belkin.o
obj-$(CONFIG_HID_BETOP_FF) += hid-betopff.o
obj-$(CONFIG_HID_BIGBEN_FF) += hid-bigbenff.o
Expand Down
Loading