Skip to contentSkip to conversation

platform/x86: ayaneo-ec: Add SuiPlay0X1 support

PATCH In review Antheas Kapenekakis 2 participants 4 messages Nov 2 – Nov 10

Subsystems (2)
lore
Share & tools
lore

Antheas Kapenekakis

author maintainer
#0 lore raw

PATCH 1/3 platform/x86: ayaneo-ec: Add SuiPlay0X1 support

The SuiPlay0X1 is an Ayaneo 2S rebrand but with a different BIOS. Match its system vendor and product name and select quirk_fan to expose fan speed monitoring and PWM control. It is not clear if it supports charge control, so we defer that for now as the vendor has not implemented charge control in their OS yet.

---
 drivers/platform/x86/ayaneo-ec.c | 7 +++++++
 1 file changed, 7 insertions(+)
drivers/platform/x86/ayaneo-ec.c +7 -0
index 81dac81262e7..08e679347e9b 100644
@@ -146,6 +146,13 @@ static const struct dmi_system_id dmi_table[] = {
 		},
 		.driver_data = (void *)&quirk_ayaneo3,
 	},
+	{
+		.matches = {
+			DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Mysten Labs, Inc."),
+			DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "SuiPlay0X1"),
+		},
+		.driver_data = (void *)&quirk_fan,
+	},
 	{},
 };
 

base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4

Signature · 1 line
2.56.0
author maintainer
#1 lore raw

PATCH 2/3 platform/x86: ayaneo-ec: Add AYANEO NEXT 2 support

The AYANEO NEXT 2 is a new AI Max 395 platform. As seen in older Ayaneo units, it uses "AYA" as its board vendor and "AB09" as its board name. Add a DMI match with quirk_charge_limit. The EC map was verified on Windows and then all relevant functionality under this driver on linux.

---
 drivers/platform/x86/ayaneo-ec.c | 8 ++++++++
 1 file changed, 8 insertions(+)
drivers/platform/x86/ayaneo-ec.c +8 -0
index 08e679347e9b..b1c064fd93f9 100644
@@ -146,6 +146,14 @@ static const struct dmi_system_id dmi_table[] = {
 		},
 		.driver_data = (void *)&quirk_ayaneo3,
 	},
+	{
+		/* AYANEO NEXT 2 */
+		.matches = {
+			DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "AYA"),
+			DMI_EXACT_MATCH(DMI_BOARD_NAME, "AB09"),
+		},
+		.driver_data = (void *)&quirk_charge_limit,
+	},
 	{
 		.matches = {
 			DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Mysten Labs, Inc."),
Signature · 1 line
2.56.0
author maintainer
#2 lore raw

PATCH 3/3 platform/x86: ayaneo-ec: Add KONKR FIT support

In reply to Antheas Kapenekakis

Add a DMI match for KONKR FIT, an Ayaneo sub-brand. The board is similar to an Ayaneo 3, with the same display and similar controller firmware. However, the controllers are not ejectable. Relevant functionality including charge bypass was verified to work, so use quirk_charge_limit.

---
 drivers/platform/x86/ayaneo-ec.c | 7 +++++++
 1 file changed, 7 insertions(+)
drivers/platform/x86/ayaneo-ec.c +7 -0
index b1c064fd93f9..c31d954babc3 100644
@@ -154,6 +154,13 @@ static const struct dmi_system_id dmi_table[] = {
 		},
 		.driver_data = (void *)&quirk_charge_limit,
 	},
+	{
+		.matches = {
+			DMI_EXACT_MATCH(DMI_SYS_VENDOR, "KONKR"),
+			DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "KONKR FIT"),
+		},
+		.driver_data = (void *)&quirk_charge_limit,
+	},
 	{
 		.matches = {
 			DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Mysten Labs, Inc."),
Signature · 1 line
2.56.0
maintainer
#3 lore raw
In reply to Antheas Kapenekakis
Quoted 8 lines · Antheas Kapenekakis

The SuiPlay0X1 is an Ayaneo 2S rebrand but with a different BIOS. Match its system vendor and product name and select quirk_fan to expose fan speed monitoring and PWM control. It is not clear if it supports charge control, so we defer that for now as the vendor has not implemented charge control in their OS yet.

[...]

Thank you for your contribution, it has been applied to my local review-ilpo-next branch. Note it will show up in the public platform-drivers-x86/review-ilpo-next branch only once I've pushed my local branch there, which might take a while.

FYI [if applicable to your patch], as per Linus' policy change, also fixes are mostly routed through for-next unless the fix is for a commit introduced in the most recent cycle or is clearly a regression fix.

The list of commits applied:
[1/3] platform/x86: ayaneo-ec: Add SuiPlay0X1 support

      commit: fe3b3988305914f2e59369c3d96176bd7d719cdf
[2/3] platform/x86: ayaneo-ec: Add AYANEO NEXT 2 support
      commit: accba7b86159a7124fc323c866ee0a4beac2142f
[3/3] platform/x86: ayaneo-ec: Add KONKR FIT support
      commit: 6230823ee40704ae3fcb9c5bff065f10dd48ded9

--
i.