Skip to content

Commit 4a567d1

Browse files
qzedjwrdegoede
authored andcommitted
platform/surface: aggregator_registry: Add support for Surface Laptop 5
Add device nodes to enable support for battery and charger status, the ACPI platform profile, as well as internal HID devices (including touchpad and keyboard) on the Surface Laptop 5. Signed-off-by: Maximilian Luz <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Hans de Goede <[email protected]>
1 parent d076f30 commit 4a567d1

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

drivers/platform/surface/surface_aggregator_registry.c

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,19 @@ static const struct software_node *ssam_node_group_sl3[] = {
234234
NULL,
235235
};
236236

237+
/* Devices for Surface Laptop 5. */
238+
static const struct software_node *ssam_node_group_sl5[] = {
239+
&ssam_node_root,
240+
&ssam_node_bat_ac,
241+
&ssam_node_bat_main,
242+
&ssam_node_tmp_pprof,
243+
&ssam_node_hid_main_keyboard,
244+
&ssam_node_hid_main_touchpad,
245+
&ssam_node_hid_main_iid5,
246+
&ssam_node_hid_sam_ucm_ucsi,
247+
NULL,
248+
};
249+
237250
/* Devices for Surface Laptop Studio. */
238251
static const struct software_node *ssam_node_group_sls[] = {
239252
&ssam_node_root,
@@ -345,6 +358,9 @@ static const struct acpi_device_id ssam_platform_hub_match[] = {
345358
/* Surface Laptop 4 (13", Intel) */
346359
{ "MSHW0250", (unsigned long)ssam_node_group_sl3 },
347360

361+
/* Surface Laptop 5 */
362+
{ "MSHW0350", (unsigned long)ssam_node_group_sl5 },
363+
348364
/* Surface Laptop Go 1 */
349365
{ "MSHW0118", (unsigned long)ssam_node_group_slg1 },
350366

0 commit comments

Comments
 (0)