Skip to content

Commit d076f30

Browse files
qzedjwrdegoede
authored andcommitted
platform/surface: aggregator_registry: Add support for Surface Pro 9
Add device nodes to enable support for battery and charger status, the ACPI platform profile, as well as internal and type-cover HID devices (including sensors, touchpad, keyboard, and other miscellaneous devices) on the Surface Pro 9. This does not include support for a tablet-mode switch yet, as that is now handled via the POS subsystem (unlike the Surface Pro 8, where it is handled via the KIP subsystem) and therefore needs further changes. While we're at it, also add the missing comment for the Surface Pro 8. Signed-off-by: Maximilian Luz <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Hans de Goede <[email protected]> Signed-off-by: Hans de Goede <[email protected]>
1 parent d9a477f commit d076f30

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

drivers/platform/surface/surface_aggregator_registry.c

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ static const struct software_node *ssam_node_group_sp7[] = {
268268
NULL,
269269
};
270270

271+
/* Devices for Surface Pro 8 */
271272
static const struct software_node *ssam_node_group_sp8[] = {
272273
&ssam_node_root,
273274
&ssam_node_hub_kip,
@@ -284,6 +285,23 @@ static const struct software_node *ssam_node_group_sp8[] = {
284285
NULL,
285286
};
286287

288+
/* Devices for Surface Pro 9 */
289+
static const struct software_node *ssam_node_group_sp9[] = {
290+
&ssam_node_root,
291+
&ssam_node_hub_kip,
292+
&ssam_node_bat_ac,
293+
&ssam_node_bat_main,
294+
&ssam_node_tmp_pprof,
295+
/* TODO: Tablet mode switch (via POS subsystem) */
296+
&ssam_node_hid_kip_keyboard,
297+
&ssam_node_hid_kip_penstash,
298+
&ssam_node_hid_kip_touchpad,
299+
&ssam_node_hid_kip_fwupd,
300+
&ssam_node_hid_sam_sensors,
301+
&ssam_node_hid_sam_ucm_ucsi,
302+
NULL,
303+
};
304+
287305

288306
/* -- SSAM platform/meta-hub driver. ---------------------------------------- */
289307

@@ -303,6 +321,9 @@ static const struct acpi_device_id ssam_platform_hub_match[] = {
303321
/* Surface Pro 8 */
304322
{ "MSHW0263", (unsigned long)ssam_node_group_sp8 },
305323

324+
/* Surface Pro 9 */
325+
{ "MSHW0343", (unsigned long)ssam_node_group_sp9 },
326+
306327
/* Surface Book 2 */
307328
{ "MSHW0107", (unsigned long)ssam_node_group_gen5 },
308329

0 commit comments

Comments
 (0)