Skip to contentSkip to conversation

platform/x86: uniwill: Add MECHREVO Yilong15Pro Series GM5HG0A

PATCH New Astria Li 1 participant 1 message Nov 25

Subsystems (2)
lore
Share & tools
lore

Astria Li

author
#0 lore raw

PATCH 1/1 platform/x86: uniwill: Add MECHREVO Yilong15Pro Series GM5HG0A

Add DMI match and device descriptor for the MECHREVO Yilong15Pro Series GM5HG0A laptop.

---
 drivers/platform/x86/uniwill/uniwill-acpi.c | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
drivers/platform/x86/uniwill/uniwill-acpi.c +21 -0
index 7fb52b574..7a6e1450f 100644
@@ -2977,6 +2977,19 @@ static struct uniwill_device_descriptor gmxhgxx_descriptor __initdata = {
 	.kbd_led_max_brightness = 4,
 };
 
+static struct uniwill_device_descriptor gm5hg0a_descriptor __initdata = {
+	.features = UNIWILL_FEATURE_FN_LOCK |
+		    UNIWILL_FEATURE_SUPER_KEY |
+		    UNIWILL_FEATURE_TOUCHPAD_TOGGLE |
+		    UNIWILL_FEATURE_BATTERY_CHARGE_MODES |
+		    UNIWILL_FEATURE_CPU_TEMP |
+		    UNIWILL_FEATURE_GPU_TEMP |
+		    UNIWILL_FEATURE_PRIMARY_FAN |
+		    UNIWILL_FEATURE_SECONDARY_FAN |
+		    UNIWILL_FEATURE_NVIDIA_CTGP_CONTROL |
+		    UNIWILL_FEATURE_USB_C_POWER_PRIORITY,
+};
+
 static struct uniwill_device_descriptor gmxixxx_xxxx45xx_xxxx55xx_xxxx57xx_descriptor __initdata = {
 	.features = UNIWILL_FEATURE_FN_LOCK |
 		    UNIWILL_FEATURE_SUPER_KEY |
@@ -3576,6 +3589,14 @@ static const struct dmi_system_id uniwill_dmi_table[] __initconst = {
 		},
 		.driver_data = &pfxnuxx_pfxluxx_phxprxx_descriptor,
 	},
+	{
+		.ident = "MECHREVO Yilong15Pro Series GM5HG0A",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "MECHREVO"),
+			DMI_EXACT_MATCH(DMI_BOARD_NAME, "GM5HG0A"),
+		},
+		.driver_data = &gm5hg0a_descriptor,
+	},
 	{ }
 };
 MODULE_DEVICE_TABLE(dmi, uniwill_dmi_table);
Signature · 1 line
2.55.0