Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp97612rdb; Wed, 18 Oct 2023 20:27:54 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFmywvR+4djZHg1yCthstd/qLA3hnp9aTqLlBGwy8IrtQmObAeG9qQr8sHKjzBDJBsT+vB0 X-Received: by 2002:a05:6a21:7903:b0:16b:d470:b403 with SMTP id bg3-20020a056a21790300b0016bd470b403mr985629pzc.28.1697686073876; Wed, 18 Oct 2023 20:27:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697686073; cv=none; d=google.com; s=arc-20160816; b=xxbEBTptzwqte2JxLvHCl9nD+JlgSStKi3HKDUB+vIlCEOkoXVc8syKCYzOEEXWQY4 2591pJkBWytsqhYrry/k3bxzcPYMZBFzO0WCNyJGiMizI/zSwg2ZXxMPtqgDZvmT8agp lMMkt4W0V8qnR5SiLNqls1rgGYaBoqvNbUYXTZz5ff6G+Gw3qoucSngrt15OqkMLWAp6 XC/Iu7Wg7FKhbR28LkJJtxjo8dUMGYxokym8+BzKNSeHVASWbGR/wg0pTR3maev/+6oa tQqgDpK6dWo+800S4kuea1sFVG+SpXHFOd1sT5DxPKYH/CBRQgJGQQOnE9Eq5q/PBVFd bU8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Tnl+EruaCha2otXKuR/FBsuzKY4Vfaq7M8pGpL8/h8k=; fh=AlxJ74sRIjJOS9sQ2pdOpMZk72mGfCyji5sTZtsN2SM=; b=no1QDdtH14fvwtDKBwlVYiW3N/Asb8kXOBayshA+60kukw1AkGwprVhThg7EwpUZ/a Z1a8g6h7gUk2P7X0Q2au+xX3NSyGR1npmaKzFyWtf0MBH3pTyKfinDlQETlpjAhffImt YC+WQe4gYxB+B3In1mq9Piqkou0Pm4ADxVX7MQVAfawl9XJnrpRktS4ovw8TkBOZLQoy mEC8taZ+K1ShPGsr/00DnQXzkJHgOEOh/lSg9OeID9cKX8wTCY/o7woy4EEHxMaEBD/k ag2+2tqmrbZ4Y4GRZTLHlgmmdgNxl5sUTVusc2lpT+S+bSKT8KIuNhr0hvKMvCg7/JVe qEiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@monoid.al header.s=key1 header.b=ev8txUR7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=monoid.al Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id j9-20020a17090a318900b002636d222400si1191138pjb.14.2023.10.18.20.27.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 20:27:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@monoid.al header.s=key1 header.b=ev8txUR7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=monoid.al Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 4ABD78181B9E; Wed, 18 Oct 2023 20:27:50 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232492AbjJSD1h (ORCPT + 99 others); Wed, 18 Oct 2023 23:27:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229632AbjJSD1f (ORCPT ); Wed, 18 Oct 2023 23:27:35 -0400 X-Greylist: delayed 314 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 18 Oct 2023 20:27:32 PDT Received: from out-201.mta1.migadu.com (out-201.mta1.migadu.com [IPv6:2001:41d0:203:375::c9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 074C0121 for ; Wed, 18 Oct 2023 20:27:31 -0700 (PDT) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monoid.al; s=key1; t=1697685733; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Tnl+EruaCha2otXKuR/FBsuzKY4Vfaq7M8pGpL8/h8k=; b=ev8txUR7RTEi4fTtLpzha2EqorV1lRrYzpFL1+RguOYeBIoKizJdmbd7vk7U9u16brHp1B Na/tjM8UeUjHPnIeC1XwTK5pP62tpj6pV5jqYvGtW+9hhx9fgeZW+aMmlJXrNpqJ0RC2HT lX286vA01PfDrAXWUqnDRqzez+03OJaY8X3dbPMXVqhz3eKML8radXpwERY3FfZ68sgQ/n WW4leN1uQ/9nbPiNbuhshRjaWQrI35erT1nwva+CnpZ/wVE4Q84lu04XO9IoJ8N4f8ism8 LY8W43hCl+i2pNdaMDXM/8BFVITIL2u8EalzZJsJQnVkJtMK1auFIh0jcNqOMQ== From: Ellie Hermaszewska To: Eugene Shalygin , Jean Delvare , Guenter Roeck , linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Ellie Hermaszewska Subject: [PATCH] hwmon: (asus-ec-sensors) add ROG Crosshair X670E Gene. Date: Thu, 19 Oct 2023 11:21:22 +0800 Message-ID: <20231019032122.1594649-1-kernel@monoid.al> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Wed, 18 Oct 2023 20:27:50 -0700 (PDT) Only the temp sensors that I can verify are present. T_Sensor is the temperature reading of a 10kΩ β=3435K NTC thermistor optionally connected to the T_SENSOR header. Signed-off-by: Ellie Hermaszewska --- drivers/hwmon/asus-ec-sensors.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/hwmon/asus-ec-sensors.c b/drivers/hwmon/asus-ec-sensors.c index 51f9c2db403e..36f9e38000d5 100644 --- a/drivers/hwmon/asus-ec-sensors.c +++ b/drivers/hwmon/asus-ec-sensors.c @@ -244,6 +244,8 @@ static const struct ec_sensor_info sensors_family_amd_600[] = { EC_SENSOR("Motherboard", hwmon_temp, 1, 0x00, 0x32), [ec_sensor_temp_vrm] = EC_SENSOR("VRM", hwmon_temp, 1, 0x00, 0x33), + [ec_sensor_temp_t_sensor] = + EC_SENSOR("T_Sensor", hwmon_temp, 1, 0x00, 0x36), [ec_sensor_temp_water_in] = EC_SENSOR("Water_In", hwmon_temp, 1, 0x01, 0x00), [ec_sensor_temp_water_out] = @@ -344,6 +346,14 @@ static const struct ec_board_info board_info_crosshair_x670e_hero = { .family = family_amd_600_series, }; +static const struct ec_board_info board_info_crosshair_x670e_gene = { + .sensors = SENSOR_TEMP_CPU | SENSOR_TEMP_CPU_PACKAGE | + SENSOR_TEMP_T_SENSOR | + SENSOR_TEMP_MB | SENSOR_TEMP_VRM, + .mutex_path = ACPI_GLOBAL_LOCK_PSEUDO_PATH, + .family = family_amd_600_series, +}; + static const struct ec_board_info board_info_crosshair_viii_dark_hero = { .sensors = SENSOR_SET_TEMP_CHIPSET_CPU_MB | SENSOR_TEMP_T_SENSOR | @@ -490,6 +500,8 @@ static const struct dmi_system_id dmi_table[] = { &board_info_crosshair_viii_hero), DMI_EXACT_MATCH_ASUS_BOARD_NAME("ROG CROSSHAIR X670E HERO", &board_info_crosshair_x670e_hero), + DMI_EXACT_MATCH_ASUS_BOARD_NAME("ROG CROSSHAIR X670E GENE", + &board_info_crosshair_x670e_gene), DMI_EXACT_MATCH_ASUS_BOARD_NAME("ROG MAXIMUS XI HERO", &board_info_maximus_xi_hero), DMI_EXACT_MATCH_ASUS_BOARD_NAME("ROG MAXIMUS XI HERO (WI-FI)", -- 2.42.0