diff --git a/drivers/hwmon/surface_fan.c b/drivers/hwmon/surface_fan.c index aafb4ac92e6c6..5fb18ae6c025c 100644 --- a/drivers/hwmon/surface_fan.c +++ b/drivers/hwmon/surface_fan.c @@ -64,6 +64,8 @@ static int surface_fan_probe(struct ssam_device *sdev) static const struct ssam_device_id ssam_fan_match[] = { { SSAM_SDEV(FAN, SAM, 0x01, 0x01) }, + { SSAM_SDEV(FAN, KIP, 0x01, 0x01) }, + { SSAM_SDEV(FAN, KIP, 0x02, 0x01) }, {}, }; MODULE_DEVICE_TABLE(ssam, ssam_fan_match); diff --git a/drivers/hwmon/surface_temp.c b/drivers/hwmon/surface_temp.c index cd21f331f1576..ba51c567aff09 100644 --- a/drivers/hwmon/surface_temp.c +++ b/drivers/hwmon/surface_temp.c @@ -216,6 +216,7 @@ static int ssam_temp_probe(struct ssam_device *sdev) static const struct ssam_device_id ssam_temp_match[] = { { SSAM_SDEV(TMP, SAM, 0x00, 0x02) }, + { SSAM_SDEV(TMP, KIP, 0x00, 0x02) }, { }, }; MODULE_DEVICE_TABLE(ssam, ssam_temp_match); diff --git a/drivers/platform/surface/surface_aggregator_registry.c b/drivers/platform/surface/surface_aggregator_registry.c index ef87965fcc930..1194ae5f19ff4 100644 --- a/drivers/platform/surface/surface_aggregator_registry.c +++ b/drivers/platform/surface/surface_aggregator_registry.c @@ -95,12 +95,29 @@ static const struct software_node ssam_node_tmp_sensors = { .parent = &ssam_node_root, }; +/* Thermal sensors of the Surface Book 3 base (KIP). */ +static const struct software_node ssam_node_tmp_sensors_sb3base = { + .name = "ssam:01:03:02:00:02", + .parent = &ssam_node_hub_base, +}; + /* Fan speed function. */ static const struct software_node ssam_node_fan_speed = { .name = "ssam:01:05:01:01:01", .parent = &ssam_node_root, }; +/* Fan speed functions of the Surface Book 3 base (KIP, two fans). */ +static const struct software_node ssam_node_fan_speed_sb3base_1 = { + .name = "ssam:01:05:02:01:01", + .parent = &ssam_node_hub_base, +}; + +static const struct software_node ssam_node_fan_speed_sb3base_2 = { + .name = "ssam:01:05:02:02:01", + .parent = &ssam_node_hub_base, +}; + /* Tablet-mode switch via KIP subsystem. */ static const struct software_node ssam_node_kip_tablet_switch = { .name = "ssam:01:0e:01:00:01", @@ -241,6 +258,11 @@ static const struct software_node *ssam_node_group_sb3[] = { &ssam_node_bat_main, &ssam_node_bat_sb3base, &ssam_node_tmp_perf_profile, + &ssam_node_tmp_sensors, + &ssam_node_tmp_sensors_sb3base, + &ssam_node_fan_speed, + &ssam_node_fan_speed_sb3base_1, + &ssam_node_fan_speed_sb3base_2, &ssam_node_bas_dtx, &ssam_node_hid_base_keyboard, &ssam_node_hid_base_touchpad,