Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
80bf5f2
[FROM-ML] platform/x86: (ayn-ec) Add PWM Fan HWMON Interface
pastaq Jul 26, 2025
e5b7ac8
[FROM-ML] platform/x86: (ayn-ec) Add Temperature Sensors
pastaq Jul 26, 2025
7fadaa9
[FROM-ML] platform/x86: (ayn-ec) Add RGB Interface
pastaq Jul 26, 2025
2b0a537
[FROM-ML] platform/x86: (ayn-ec) Add AYN EC Platform Documentation
pastaq Jul 26, 2025
c631680
[NOT-FOR-UPSTREAM] Codec: Add aw87xxx codec with partial acpi impleme…
ruineka Apr 25, 2024
62cd588
[NOT-FOR-UPSTREAM] Updated AW87xxx driver to be more verbose for debu…
CVMagic May 16, 2024
82b62c2
[NOT-FOR-UPSTREAM] Updated AW87xxx driver to automatically enumerate …
CVMagic May 19, 2024
0a025a5
[NOT-FOR-UPSTREAM] Updated AW87xxx driver to implement Suspend and Re…
CVMagic May 22, 2024
7610cab
[NOT-FOR-UPSTREAM] fixup aw87xxx.{c,h} warnings
BoukeHaarsma23 Jul 27, 2024
f2e1e09
[NOT-FOR-UPSTREAM] aw87xxx: add DMI-based firmware filename selection
hijae Sep 1, 2026
863ed29
[NOT-FOR-UPSTREAM] aw87xxx: drop unused linux/of_gpio.h include
hijae Sep 1, 2026
d272b47
[NOT-FOR-UPSTREAM] aw87xxx: add compat shim for snd_soc_unregister_co…
hijae Sep 1, 2026
ad4ee41
[NOT-FOR-UPSTREAM] aw87xxx: request the reset GPIO when valid
hijae Sep 1, 2026
ef764a9
[NOT-FOR-UPSTREAM] ALSA: hda/realtek: Add Ayaneo Air 1S audio quirk
fewtarius Sep 1, 2026
70e5e54
[FROM-ML] HID: ayaneo: Add AYANEO 3 detachable controller driver
matmartinez Sep 17, 2026
d0bd33f
[FROM-ML] HID: ayaneo: sync to the v4 submission
matmartinez Sep 25, 2026
f4471f7
[FROM-ML] platform/x86: ayaneo-ec: Add AYANEO 2S charge control
antheas Sep 20, 2026
64fb9d5
[NOT-FOR-UPSTREAM] HID: ayaneo: prepare Steam LED name compatibility
sknowledge1 Oct 14, 2026
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
75 changes: 75 additions & 0 deletions Documentation/ABI/testing/sysfs-driver-hid-ayaneo
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
What: /sys/bus/hid/drivers/hid-ayaneo/<dev>/module_left
What: /sys/bus/hid/drivers/hid-ayaneo/<dev>/module_right
Date: September 2026
KernelVersion: 7.4
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: September 2026
KernelVersion: 7.4
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: September 2026
KernelVersion: 7.4
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.

What: /sys/bus/hid/drivers/hid-ayaneo/<dev>/rumble_intensity
Date: September 2026
KernelVersion: 7.4
Contact: Matías Martínez <hello@matias.me>
Description:
Controls the vibration strength of the AYANEO 3 controller
rumble motors. Reading returns the selected level. Supported
writes are the values listed by rumble_intensity_index.
Defaults to "medium", matching the firmware default.

What: /sys/bus/hid/drivers/hid-ayaneo/<dev>/rumble_intensity_index
Date: September 2026
KernelVersion: 7.4
Contact: Matías Martínez <hello@matias.me>
Description:
Read-only. Space-separated list of the supported
rumble_intensity values: "off low medium high".

What: /sys/class/leds/<dev>:rgb:joystick_rings/effect
Date: September 2026
KernelVersion: 7.4
Contact: Matías Martínez <hello@matias.me>
Description:
Controls the firmware LED effect of the joystick rings.

Values are "monocolor", "breathe" or "rainbow", as listed
by the effect_index attribute. "rainbow" is a
firmware-timed colour cycle whose hue and tempo are fixed
by the firmware: brightness scales its amplitude and the
multi_intensity values are ignored while it is selected.

What: /sys/class/leds/<dev>:rgb:joystick_rings/effect_index
Date: September 2026
KernelVersion: 7.4
Contact: Matías Martínez <hello@matias.me>
Description:
Read-only. Space-separated list of the supported effect
values: "monocolor breathe rainbow".
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
17 changes: 17 additions & 0 deletions drivers/hid/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,23 @@ 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.

To compile this driver as a module, choose M here: the
module will be called hid-ayaneo.

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