Skip to contentSkip to conversation

platform/surface: aggregator_registry: Add thermal sensors and fan to Surface Pro 8

PATCH New Emfox Zhou 1 participant 1 message Nov 20

Subsystems (3)
lore
Share & tools
lore

Emfox Zhou

author
#0 lore raw

PATCH 1/1 platform/surface: aggregator_registry: Add thermal sensors and fan to Surface Pro 8

The Surface Pro 8 device group lists the performance profile target but neither the sensor subfunction of that target nor the fan speed target, so surface_temp and surface_fan have nothing to bind to and the EC skin temperatures and the fan speed stay invisible to userspace.

Verified on a Surface Pro 8 (i7-1185G7): all 11 sensors read back between 34.9 and 50.6 degrees Celsius, including the three I_VTS channels used for skin temperature, and the fan reports 4592 RPM.

---
 drivers/platform/surface/surface_aggregator_registry.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/platform/surface/surface_aggregator_registry.c +2 -0
index cf3ae25..1bab30c 100644
@@ -359,6 +359,8 @@ static const struct software_node *ssam_node_group_sp8[] = {
 	&ssam_node_bat_ac,
 	&ssam_node_bat_main,
 	&ssam_node_tmp_perf_profile,
+	&ssam_node_tmp_sensors,
+	&ssam_node_fan_speed,
 	&ssam_node_kip_tablet_switch,
 	&ssam_node_hid_kip_keyboard,
 	&ssam_node_hid_kip_penstash,