Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions drivers/hwmon/surface_fan.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions drivers/hwmon/surface_temp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
22 changes: 22 additions & 0 deletions drivers/platform/surface/surface_aggregator_registry.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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,
Expand Down