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.
59 changes: 59 additions & 0 deletions Documentation/ABI/testing/sysfs-platform-ayn-ec
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
What: /sys/class/hwmon/hwmon[0-9]/pwm1_enable
Date: July 2025
KernelVersion: 6.17
Contact: "Derek J. Clark" <derekjohn.clark@gmail.com>
Description:
This sets the PWM fan mode of operation. Valid values are [0-3].
Values [0-2] conform with standard hwmon operating modes. Value 3
enables user defined fan curve settings.

Applies to AYN Loki and Tectoy Zeenix lines of handheld devices.

What: /sys/class/hwmon/hwmon[0-9]/pwm1_auto_point[1-5]_pwm
Date: July 2025
KernelVersion: 6.17
Contact: "Derek J. Clark" <derekjohn.clark@gmail.com>
Description:
This sets the PWM fan duty cycle for the given index of the fan curve.
When the temperature reaches the corresponding pwm1_auto_point[1-5]_temp,
the EC will automatically increase the fan duty cycle to the given value.

Values are [0-255]

Applies to AYN Loki and Tectoy Zeenix lines of handheld devices.

What: /sys/class/hwmon/hwmon[0-9]/pwm1_auto_point[1-5]_temp
Date: July 2025
KernelVersion: 6.17
Contact: "Derek J. Clark" <derekjohn.clark@gmail.com>
Description:
This sets the activation temperature for the given index of the fan curve.
When the temperature reaches the given value, the EC will automatically
increase the fan duty cycle to the corresponding pwm1_auto_point[1-5]_pwm
value.

Values are [0-100]

Applies to AYN Loki and Tectoy Zeenix lines of handheld devices.

What: /sys/class/leds/ayn:rgb:joystick_rings/effect
Date: July 2025
KernelVersion: 6.17
Contact: "Derek J. Clark" <derekjohn.clark@gmail.com>
Description:
This controls the display effect of the RGB interface.

Values are monocolor or breathe.

Applies to AYN Loki and Tectoy Zeenix lines of handheld devices.

What: /sys/class/leds/ayn:rgb:joystick_rings/effect_index
Date: July 2025
KernelVersion: 6.17
Contact: "Derek J. Clark" <derekjohn.clark@gmail.com>
Description:
This displays the available options for the effect attribute.

Values are monocolor or breathe.

Applies to AYN Loki and Tectoy Zeenix lines of handheld devices.
14 changes: 14 additions & 0 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -4459,6 +4459,20 @@ F: Documentation/devicetree/bindings/spi/axiado,ax3000-spi.yaml
F: drivers/spi/spi-axiado.c
F: drivers/spi/spi-axiado.h

AYN PLATFORM EC DRIVER
M: Derek J. Clark <derekjohn.clark@gmail.com>
L: platform-driver-x86@vger.kernel.org
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