Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

hwmon: (asus-ec-sensors) add PRIME Z270-A

Add support for the PRIME Z270-A board.

Tested-by: Jan Philipp Groß <janphilippgross@mailbox.org>
Signed-off-by: Eugene Shalygin <eugene.shalygin@gmail.com>
Link: https://lore.kernel.org/r/20250903191736.14451-1-eugene.shalygin@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>

authored by

Eugene Shalygin and committed by
Guenter Roeck
8702c8f5 5529bc1a

+28
+1
Documentation/hwmon/asus_ec_sensors.rst
··· 8 8 * PRIME X470-PRO 9 9 * PRIME X570-PRO 10 10 * PRIME X670E-PRO WIFI 11 + * PRIME Z270-A 11 12 * Pro WS X570-ACE 12 13 * Pro WS WRX90E-SAGE SE 13 14 * ProArt X570-CREATOR WIFI
+27
drivers/hwmon/asus-ec-sensors.c
··· 60 60 61 61 #define ASUS_HW_ACCESS_MUTEX_SB_PCI0_SBRG_SIO1_MUT0 "\\_SB_.PCI0.SBRG.SIO1.MUT0" 62 62 63 + #define ASUS_HW_ACCESS_MUTEX_SB_PCI0_LPCB_SIO1_MUT0 "\\_SB_.PCI0.LPCB.SIO1.MUT0" 64 + 63 65 #define MAX_IDENTICAL_BOARD_VARIATIONS 3 64 66 65 67 /* Moniker for the ACPI global lock (':' is not allowed in ASL identifiers) */ ··· 183 181 family_amd_600_series, 184 182 family_amd_800_series, 185 183 family_amd_wrx_90, 184 + family_intel_200_series, 186 185 family_intel_300_series, 187 186 family_intel_400_series, 188 187 family_intel_600_series, ··· 307 304 [ec_sensor_fan_m2] = EC_SENSOR("M.2", hwmon_fan, 2, 0x00, 0xbe), 308 305 [ec_sensor_temp_t_sensor] = 309 306 EC_SENSOR("T_Sensor", hwmon_temp, 1, 0x01, 0x04), 307 + }; 308 + 309 + static const struct ec_sensor_info sensors_family_intel_200[] = { 310 + [ec_sensor_temp_chipset] = 311 + EC_SENSOR("Chipset", hwmon_temp, 1, 0x00, 0x3a), 312 + [ec_sensor_temp_cpu] = EC_SENSOR("CPU", hwmon_temp, 1, 0x00, 0x3b), 313 + [ec_sensor_temp_mb] = 314 + EC_SENSOR("Motherboard", hwmon_temp, 1, 0x00, 0x3c), 315 + [ec_sensor_temp_t_sensor] = 316 + EC_SENSOR("T_Sensor", hwmon_temp, 1, 0x00, 0x3d), 317 + [ec_sensor_fan_cpu_opt] = 318 + EC_SENSOR("CPU_Opt", hwmon_fan, 2, 0x00, 0xbc), 310 319 }; 311 320 312 321 static const struct ec_sensor_info sensors_family_intel_300[] = { ··· 492 477 SENSOR_TEMP_T_SENSOR | SENSOR_FAN_CPU_OPT, 493 478 .mutex_path = ACPI_GLOBAL_LOCK_PSEUDO_PATH, 494 479 .family = family_amd_600_series, 480 + }; 481 + 482 + static const struct ec_board_info board_info_prime_z270_a = { 483 + .sensors = SENSOR_SET_TEMP_CHIPSET_CPU_MB | 484 + SENSOR_TEMP_T_SENSOR | SENSOR_FAN_CPU_OPT, 485 + .mutex_path = ASUS_HW_ACCESS_MUTEX_SB_PCI0_LPCB_SIO1_MUT0, 486 + .family = family_intel_200_series, 495 487 }; 496 488 497 489 static const struct ec_board_info board_info_pro_art_b550_creator = { ··· 707 685 &board_info_prime_x570_pro), 708 686 DMI_EXACT_MATCH_ASUS_BOARD_NAME("PRIME X670E-PRO WIFI", 709 687 &board_info_prime_x670e_pro_wifi), 688 + DMI_EXACT_MATCH_ASUS_BOARD_NAME("PRIME Z270-A", 689 + &board_info_prime_z270_a), 710 690 DMI_EXACT_MATCH_ASUS_BOARD_NAME("ProArt B550-CREATOR", 711 691 &board_info_pro_art_b550_creator), 712 692 DMI_EXACT_MATCH_ASUS_BOARD_NAME("ProArt X570-CREATOR WIFI", ··· 1246 1222 break; 1247 1223 case family_amd_wrx_90: 1248 1224 ec_data->sensors_info = sensors_family_amd_wrx_90; 1225 + break; 1226 + case family_intel_200_series: 1227 + ec_data->sensors_info = sensors_family_intel_200; 1249 1228 break; 1250 1229 case family_intel_300_series: 1251 1230 ec_data->sensors_info = sensors_family_intel_300;