Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp367872rdb; Thu, 19 Oct 2023 06:57:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEfTWsqilpvS3XAYLBwlgISx+MqAs8clfudvcuYOTLtMX6BsT6wEjcxUZZl8QHU+9EOKvIR X-Received: by 2002:a17:90b:528c:b0:27d:916a:23ec with SMTP id si12-20020a17090b528c00b0027d916a23ecmr2180921pjb.37.1697723878619; Thu, 19 Oct 2023 06:57:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697723878; cv=none; d=google.com; s=arc-20160816; b=Z6CHpTggtL6F1HJjc3YOUh+7FuUSmdm7SZ02o/edUJzgoE9mJ/rFWAWqAmYX5LL8+v Fza8hn0r43vXMAsiDb/Sjwh/oMAgCe53CgqOT5u/bQ6dZw9cU/i2ohxcVknoJkEYM3yu 8hAHRr++rqdhcjYiv1mfAnhNgzWvmb67RgwiabVsWQoRDuJ3YReDzc5WqVHgud1Is4tU gKpMBtQYeNy/3ql7eYPSSklrZFiPRgI9LWmqIdzAbjRcgQQ71xaVy+Fs6EVus6IZWCO6 SqX6qy+vJWuybxCSsIjIw8rr21ZUM5r5+ZE0qSFpL4lyXrxsvqLaWwiFyWgRuapOWHf0 aNvg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=VRxOEzF/DS5Ox8tHGrklu3RK67HNn0EYzNtroRBbeKU=; fh=uT29Qp48n0WGAIDkoJuvuF+dE33JJ22gEe/NLqmpYCE=; b=0e2nW7Xi+brkqkO7E05rwZrUZRao8kYAhhB7DaX3mOdLjqzP0jbn/Jp+aSt3oQ//7d 1/4uqtX4AuWJKajLKIzdqvwbymu7s0nLm7yhL36iatpst7OwUAcSQ41mC3rxePFBaNsg zXWQHRa3lpOeblayZdJC6RRrpfZJ3CAnANemK8gze/whPldZATSDoAjHlYpj0Gqndjgt eDIwaNsdmxaBpJbpRNsfavbVkbV+mHeAcPQu09bevzzHRHpVCZgAqJ+lFtGK7vD27ZXy gdtUoGm3+hVIKrjZ2cDIP7X4rGIdJj+NUEUqmxZ7CMRFiaDbWazZE6luJ9J0fCBlX8O3 oCSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@monoid.al header.s=key1 header.b=NJ6zwTDu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id r15-20020a638f4f000000b00570505c5267si4255884pgn.262.2023.10.19.06.57.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 06:57:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@monoid.al header.s=key1 header.b=NJ6zwTDu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id 7018C829EA30; Thu, 19 Oct 2023 06:57:56 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345821AbjJSN5m (ORCPT + 99 others); Thu, 19 Oct 2023 09:57:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345616AbjJSN5l (ORCPT ); Thu, 19 Oct 2023 09:57:41 -0400 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 0064C124 for ; Thu, 19 Oct 2023 06:57:37 -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=1697723856; 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: in-reply-to:in-reply-to:references:references; bh=VRxOEzF/DS5Ox8tHGrklu3RK67HNn0EYzNtroRBbeKU=; b=NJ6zwTDuDXga4dSQHGU1ASUZ7/FmT03Ln4ldnJ2aO2liVnVdTHDSNG8tFsfnsqM31o3Iv1 PP8TC5fzlg7NKLcFBMZkQvos+rk/LepsOox6M0thx09qjEKwoeM9IHd2mK6N5jSzpPbmnr Lex+Eo0VT9YeezKlTacm5DqVUOwZzL3aiUO0HNM+Cxpj+kt0UrAfpFGvSAXh6OIPb7DRxo BNs05zLnD8mH2MTpMZbtgYqK2HHhjDN0my3Q29ipCy6+Fv4woa89g+q9asvR82dAuAVlTi kpXzZ40HdMRpcEhQ2DCK5wXnnyjpFj2uWhvUQlEIn3iqGyMr3CHDh28pRMxSiQ== From: Ellie Hermaszewska To: eugene.shalygin@gmail.com Cc: Ellie Hermaszewska , Jean Delvare , Guenter Roeck , Jonathan Corbet , linux-hwmon@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] hwmon: (asus-ec-sensors) add ROG Crosshair X670E Gene. Date: Thu, 19 Oct 2023 21:51:58 +0800 Message-ID: <20231019135640.434752-1-kernel@monoid.al> In-Reply-To: References: 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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Thu, 19 Oct 2023 06:57:56 -0700 (PDT) These are two separate statements, describing the set of sensors implemented (those I could verify) and the specifics of the T_Sensor new to the X670E motherboards. Best wishes, Ellie 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. The other sensors are as found on the X670E HERO. Signed-off-by: Ellie Hermaszewska --- Documentation/hwmon/asus_ec_sensors.rst | 1 + drivers/hwmon/asus-ec-sensors.c | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/Documentation/hwmon/asus_ec_sensors.rst b/Documentation/hwmon/asus_ec_sensors.rst index 7e3cd5b6686f..0bf99ba406dd 100644 --- a/Documentation/hwmon/asus_ec_sensors.rst +++ b/Documentation/hwmon/asus_ec_sensors.rst @@ -15,6 +15,7 @@ Supported boards: * ROG CROSSHAIR VIII HERO * ROG CROSSHAIR VIII IMPACT * ROG CROSSHAIR X670E HERO + * ROG CROSSHAIR X670E GENE * ROG MAXIMUS XI HERO * ROG MAXIMUS XI HERO (WI-FI) * ROG STRIX B550-E GAMING 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