Commit f9eb5c4b authored by Maximilian Luz's avatar Maximilian Luz Committed by Hans de Goede

platform/surface: aggregator_registry: Add support for tablet mode switch on Surface Pro 8

Add a KIP subsystem tablet-mode switch device for the Surface Pro 8.
The respective driver for this device provides SW_TABLET_MODE input
events for user-space based on the state of the keyboard cover (e.g.
detached, folded-back, normal/laptop mode).
Signed-off-by: default avatarMaximilian Luz <luzmaximilian@gmail.com>
Link: https://lore.kernel.org/r/20220624183642.910893-4-luzmaximilian@gmail.comReviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
parent 9f794056
...@@ -77,6 +77,12 @@ static const struct software_node ssam_node_tmp_pprof = { ...@@ -77,6 +77,12 @@ static const struct software_node ssam_node_tmp_pprof = {
.parent = &ssam_node_root, .parent = &ssam_node_root,
}; };
/* Tablet-mode switch via KIP subsystem. */
static const struct software_node ssam_node_kip_tablet_switch = {
.name = "ssam:01:0e:01:00:01",
.parent = &ssam_node_root,
};
/* DTX / detachment-system device (Surface Book 3). */ /* DTX / detachment-system device (Surface Book 3). */
static const struct software_node ssam_node_bas_dtx = { static const struct software_node ssam_node_bas_dtx = {
.name = "ssam:01:11:01:00:00", .name = "ssam:01:11:01:00:00",
...@@ -264,11 +270,11 @@ static const struct software_node *ssam_node_group_sp8[] = { ...@@ -264,11 +270,11 @@ static const struct software_node *ssam_node_group_sp8[] = {
&ssam_node_bat_ac, &ssam_node_bat_ac,
&ssam_node_bat_main, &ssam_node_bat_main,
&ssam_node_tmp_pprof, &ssam_node_tmp_pprof,
&ssam_node_kip_tablet_switch,
&ssam_node_hid_kip_keyboard, &ssam_node_hid_kip_keyboard,
&ssam_node_hid_kip_penstash, &ssam_node_hid_kip_penstash,
&ssam_node_hid_kip_touchpad, &ssam_node_hid_kip_touchpad,
&ssam_node_hid_kip_iid5, &ssam_node_hid_kip_iid5,
/* TODO: Add support for tablet mode switch. */
NULL, NULL,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment