Skip to content

Commit e923acf

Browse files
Roy Seitzgroeck
authored andcommitted
hwmon: (asus-ec-sensors) add support for ROG STRIX Z490-F GAMING
This adds support for the ROG STRIX Z490-F GAMING board. Signed-off-by: Roy Seitz <royseitz@bluewin.ch> Signed-off-by: Eugene Shalygin <eugene.shalygin@gmail.com> Link: https://lore.kernel.org/r/20250529090222.154696-1-eugene.shalygin@gmail.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
1 parent 9c62e22 commit e923acf

2 files changed

Lines changed: 33 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
@@ -29,6 +29,7 @@ Supported boards:
2929
* ROG STRIX X570-F GAMING
3030
* ROG STRIX X570-I GAMING
3131
* ROG STRIX Z390-F GAMING
32+
* ROG STRIX Z490-F GAMING
3233
* ROG STRIX Z690-A GAMING WIFI D4
3334
* ROG ZENITH II EXTREME
3435
* ROG ZENITH II EXTREME ALPHA

drivers/hwmon/asus-ec-sensors.c

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ enum board_family {
166166
family_amd_500_series,
167167
family_amd_600_series,
168168
family_intel_300_series,
169+
family_intel_400_series,
169170
family_intel_600_series
170171
};
171172

@@ -279,6 +280,20 @@ static const struct ec_sensor_info sensors_family_intel_300[] = {
279280
EC_SENSOR("Water_Out", hwmon_temp, 1, 0x01, 0x01),
280281
};
281282

283+
static const struct ec_sensor_info sensors_family_intel_400[] = {
284+
[ec_sensor_temp_chipset] =
285+
EC_SENSOR("Chipset", hwmon_temp, 1, 0x00, 0x3a),
286+
[ec_sensor_temp_cpu] = EC_SENSOR("CPU", hwmon_temp, 1, 0x00, 0x3b),
287+
[ec_sensor_temp_mb] =
288+
EC_SENSOR("Motherboard", hwmon_temp, 1, 0x00, 0x3c),
289+
[ec_sensor_temp_t_sensor] =
290+
EC_SENSOR("T_Sensor", hwmon_temp, 1, 0x00, 0x3d),
291+
[ec_sensor_temp_vrm] = EC_SENSOR("VRM", hwmon_temp, 1, 0x00, 0x3e),
292+
[ec_sensor_fan_cpu_opt] =
293+
EC_SENSOR("CPU_Opt", hwmon_fan, 2, 0x00, 0xb0),
294+
[ec_sensor_fan_vrm_hs] = EC_SENSOR("VRM HS", hwmon_fan, 2, 0x00, 0xb2),
295+
};
296+
282297
static const struct ec_sensor_info sensors_family_intel_600[] = {
283298
[ec_sensor_temp_t_sensor] =
284299
EC_SENSOR("T_Sensor", hwmon_temp, 1, 0x00, 0x3d),
@@ -498,6 +513,18 @@ static const struct ec_board_info board_info_strix_z390_f_gaming = {
498513
.family = family_intel_300_series,
499514
};
500515

516+
static const struct ec_board_info board_info_strix_z490_f_gaming = {
517+
.sensors = SENSOR_TEMP_CHIPSET |
518+
SENSOR_TEMP_CPU |
519+
SENSOR_TEMP_MB |
520+
SENSOR_TEMP_T_SENSOR |
521+
SENSOR_TEMP_VRM |
522+
SENSOR_FAN_CPU_OPT |
523+
SENSOR_FAN_VRM_HS,
524+
.mutex_path = ASUS_HW_ACCESS_MUTEX_ASMX,
525+
.family = family_intel_400_series,
526+
};
527+
501528
static const struct ec_board_info board_info_strix_z690_a_gaming_wifi_d4 = {
502529
.sensors = SENSOR_TEMP_T_SENSOR | SENSOR_TEMP_VRM,
503530
.mutex_path = ASUS_HW_ACCESS_MUTEX_RMTW_ASMX,
@@ -586,6 +613,8 @@ static const struct dmi_system_id dmi_table[] = {
586613
&board_info_strix_x570_i_gaming),
587614
DMI_EXACT_MATCH_ASUS_BOARD_NAME("ROG STRIX Z390-F GAMING",
588615
&board_info_strix_z390_f_gaming),
616+
DMI_EXACT_MATCH_ASUS_BOARD_NAME("ROG STRIX Z490-F GAMING",
617+
&board_info_strix_z490_f_gaming),
589618
DMI_EXACT_MATCH_ASUS_BOARD_NAME("ROG STRIX Z690-A GAMING WIFI D4",
590619
&board_info_strix_z690_a_gaming_wifi_d4),
591620
DMI_EXACT_MATCH_ASUS_BOARD_NAME("ROG ZENITH II EXTREME",
@@ -1061,6 +1090,9 @@ static int asus_ec_probe(struct platform_device *pdev)
10611090
case family_intel_300_series:
10621091
ec_data->sensors_info = sensors_family_intel_300;
10631092
break;
1093+
case family_intel_400_series:
1094+
ec_data->sensors_info = sensors_family_intel_400;
1095+
break;
10641096
case family_intel_600_series:
10651097
ec_data->sensors_info = sensors_family_intel_600;
10661098
break;

0 commit comments

Comments
 (0)