Skip to content

Commit 3e538b5

Browse files
zeulegroeck
authored andcommitted
hwmon: (asus-ec-sensors) add ProArt X870E-CREATOR WIFI
Adds support for the ProArt X870E-CREATOR WIFI board. Signed-off-by: Eugene Shalygin <eugene.shalygin@gmail.com> Link: https://lore.kernel.org/r/20250607102626.9051-1-eugene.shalygin@gmail.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
1 parent e923acf commit 3e538b5

2 files changed

Lines changed: 29 additions & 0 deletions

File tree

Documentation/hwmon/asus_ec_sensors.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Supported boards:
1111
* Pro WS X570-ACE
1212
* ProArt X570-CREATOR WIFI
1313
* ProArt X670E-CREATOR WIFI
14+
* ProArt X870E-CREATOR WIFI
1415
* ProArt B550-CREATOR
1516
* ROG CROSSHAIR VIII DARK HERO
1617
* ROG CROSSHAIR VIII HERO (WI-FI)

drivers/hwmon/asus-ec-sensors.c

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ enum board_family {
165165
family_amd_400_series,
166166
family_amd_500_series,
167167
family_amd_600_series,
168+
family_amd_800_series,
168169
family_intel_300_series,
169170
family_intel_400_series,
170171
family_intel_600_series
@@ -260,6 +261,20 @@ static const struct ec_sensor_info sensors_family_amd_600[] = {
260261
EC_SENSOR("Water_Out", hwmon_temp, 1, 0x01, 0x01),
261262
};
262263

264+
static const struct ec_sensor_info sensors_family_amd_800[] = {
265+
[ec_sensor_temp_cpu] = EC_SENSOR("CPU", hwmon_temp, 1, 0x00, 0x30),
266+
[ec_sensor_temp_cpu_package] =
267+
EC_SENSOR("CPU Package", hwmon_temp, 1, 0x00, 0x31),
268+
[ec_sensor_temp_mb] =
269+
EC_SENSOR("Motherboard", hwmon_temp, 1, 0x00, 0x32),
270+
[ec_sensor_temp_vrm] =
271+
EC_SENSOR("VRM", hwmon_temp, 1, 0x00, 0x33),
272+
[ec_sensor_temp_t_sensor] =
273+
EC_SENSOR("T_Sensor", hwmon_temp, 1, 0x00, 0x36),
274+
[ec_sensor_fan_cpu_opt] =
275+
EC_SENSOR("CPU_Opt", hwmon_fan, 2, 0x00, 0xb0),
276+
};
277+
263278
static const struct ec_sensor_info sensors_family_intel_300[] = {
264279
[ec_sensor_temp_chipset] =
265280
EC_SENSOR("Chipset", hwmon_temp, 1, 0x00, 0x3a),
@@ -377,6 +392,14 @@ static const struct ec_board_info board_info_pro_art_x670E_creator_wifi = {
377392
.family = family_amd_600_series,
378393
};
379394

395+
static const struct ec_board_info board_info_pro_art_x870E_creator_wifi = {
396+
.sensors = SENSOR_TEMP_CPU | SENSOR_TEMP_CPU_PACKAGE |
397+
SENSOR_TEMP_MB | SENSOR_TEMP_VRM |
398+
SENSOR_TEMP_T_SENSOR | SENSOR_FAN_CPU_OPT,
399+
.mutex_path = ACPI_GLOBAL_LOCK_PSEUDO_PATH,
400+
.family = family_amd_800_series,
401+
};
402+
380403
static const struct ec_board_info board_info_pro_art_b550_creator = {
381404
.sensors = SENSOR_SET_TEMP_CHIPSET_CPU_MB |
382405
SENSOR_TEMP_T_SENSOR |
@@ -575,6 +598,8 @@ static const struct dmi_system_id dmi_table[] = {
575598
&board_info_pro_art_x570_creator_wifi),
576599
DMI_EXACT_MATCH_ASUS_BOARD_NAME("ProArt X670E-CREATOR WIFI",
577600
&board_info_pro_art_x670E_creator_wifi),
601+
DMI_EXACT_MATCH_ASUS_BOARD_NAME("ProArt X870E-CREATOR WIFI",
602+
&board_info_pro_art_x870E_creator_wifi),
578603
DMI_EXACT_MATCH_ASUS_BOARD_NAME("ProArt B550-CREATOR",
579604
&board_info_pro_art_b550_creator),
580605
DMI_EXACT_MATCH_ASUS_BOARD_NAME("Pro WS X570-ACE",
@@ -1087,6 +1112,9 @@ static int asus_ec_probe(struct platform_device *pdev)
10871112
case family_amd_600_series:
10881113
ec_data->sensors_info = sensors_family_amd_600;
10891114
break;
1115+
case family_amd_800_series:
1116+
ec_data->sensors_info = sensors_family_amd_800;
1117+
break;
10901118
case family_intel_300_series:
10911119
ec_data->sensors_info = sensors_family_intel_300;
10921120
break;

0 commit comments

Comments
 (0)