Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp334364rdh; Thu, 26 Oct 2023 03:44:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFOfLYbjQifCyTIXBBmTCWer1CsPR1htkER+rlpQDdlQGMRWhiUVMHEU6GiW9bJHGNGQPqz X-Received: by 2002:a25:e0c8:0:b0:d9c:2c30:ebb1 with SMTP id x191-20020a25e0c8000000b00d9c2c30ebb1mr18704802ybg.12.1698317063735; Thu, 26 Oct 2023 03:44:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698317063; cv=none; d=google.com; s=arc-20160816; b=fDz9TP1Bli1XKn+Ix4mG/4QnV1oUXy1rBWtxHKJB0s3bTM2oUNBQ4D1Z1lr6vHaA4O hngOhAUE4kjOXY8j7y6VWwL79gSeFxYoBDIhnR7viHstcaYWm60be//4ncSpy1xWiybZ wWpF7Hv4EtcQR/7V+5mK4x39ZNOFb+8VMiF3/C/8aGhKdRQv2dN5NBYRJvXD+8GlnQRY 4gAItZeH5z5PUXx/DCxHPie86RLX5tgpccSebKlBdxk3TLr0UJ/50HEryAv/GecHcVWv ZG42hqES5ZZn3M1rr39Mzg9I0q/XstRA/uqrSC98O9mLxwKJrP2Dfnvvr2HTpWiuOBl0 dVzQ== 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=eejMsKVQmTdeCnFDIvmbidoqLiFeEJxUu7JLELUtPa0=; fh=XSExim49qRzZMYb6o2380x9uW1treK/020MQCZGNdjU=; b=nmaSdEJorIFBpDCzDDC9SEhQga/7FGgTxj9drtFdAPqEs7BxA0IBXduW60Z3z8i0CF LL17cmgZpGPfoheteWzIj9BDvP6/ixXuktTGWfZUDoehOhz/dPIxjpNq666KJbgd6lNZ vxxwaWoeUrlkS/rJgA4W59mGn63O7NV4buxtG8NbhbwFboFLJXBYINOOhwJFe9rcdsT8 KQBVAs5X8Tq9G529YdYO6AOgzVmb7LUeMF1EJrQXShjqJ9QY/fx1qmXkW+U9r7d2hRCd lRt/Kv4tnmimNSH6osf7q7ENd/3M+UcbhzvreHAcohENnsy/av7qV+1VAXYqZx3/qS// edHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@monoid.al header.s=key1 header.b=hsokOoR1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id v123-20020a252f81000000b00d4dea91ca51si12188657ybv.208.2023.10.26.03.44.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 03:44:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@monoid.al header.s=key1 header.b=hsokOoR1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id DB18080DB723; Thu, 26 Oct 2023 03:44:20 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229649AbjJZKoL (ORCPT + 99 others); Thu, 26 Oct 2023 06:44:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229642AbjJZKoK (ORCPT ); Thu, 26 Oct 2023 06:44:10 -0400 Received: from out-175.mta1.migadu.com (out-175.mta1.migadu.com [95.215.58.175]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60F4A18D for ; Thu, 26 Oct 2023 03:44:08 -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=1698317045; 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=eejMsKVQmTdeCnFDIvmbidoqLiFeEJxUu7JLELUtPa0=; b=hsokOoR1og4Hss0rkcmft0ZlDGBVavls+hUlrusjrNg7RQ0V1HLWrNs19aA7o8dqVaLb/b cHI66O6dud8OM0K9Kvw3RoWS+1kXTZlyPkdczduvmFweo5/RwsNbeDs7CPiNv3S8Zb2sQs PZnO9mT387EebUGt0sd3AjXYAu4Ju39IXJELMv0tS7AByNSuTor/KNsWA5MPLQR4L2sqv6 U9317AhPisf//nDWKg7inQZmfA5DD7v7v7rF7GzAXCSetgKKQzjMXfceZtygD+NjeatCfA aSzT0gzIamWaieKGSuz9CLaWKF75HRu4wn+nhNREF2+wnnpuMWvxmImtvztZQQ== From: Ellie Hermaszewska To: kernel@monoid.al Cc: Jean Delvare , Guenter Roeck , Jonathan Corbet , Eugene Shalygin , linux-hwmon@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3] hwmon: (asus-ec-sensors) add ROG Crosshair X670E Gene. Date: Thu, 26 Oct 2023 18:43:22 +0800 Message-ID: <20231026104332.906357-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 groat.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 (groat.vger.email [0.0.0.0]); Thu, 26 Oct 2023 03:44:21 -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. 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