From patchwork Sat Jan 28 06:03:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Crawford X-Patchwork-Id: 13119694 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 727C1C27C76 for ; Sat, 28 Jan 2023 06:04:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231918AbjA1GEQ (ORCPT ); Sat, 28 Jan 2023 01:04:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229562AbjA1GEO (ORCPT ); Sat, 28 Jan 2023 01:04:14 -0500 Received: from ipmail06.adl3.internode.on.net (ipmail06.adl3.internode.on.net [150.101.137.16]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 502E7834A5 for ; Fri, 27 Jan 2023 22:04:13 -0800 (PST) IronPort-SDR: SUu1bswPxTaKfMf4SXUUqn2NIDWVdAabOdaLWj3YhB13EOchm5I8ZldHrvBg9P0PLukv6B9n0I 2+wTKX1Wr7Nrnp+cKa7NX2ZLjfbGT1iVmG2gcTFxDjeMe8QCUkf0a/ZmSpJqGRNuz70dBo7/XD Y3SavCVmRWuc62DeK0V4FlaBioa+8bpYywaPNEBnPqIjRHXzOG/pv2UwWueVNVh5iqZcHbQqag b209ApT2g3A5jfUEYWpXh+BXj2Nxsrf94Yuzs8HSTXqLH1EmfgLbIZEoxU97H7mf3PFk5sBtwN 30+Q5BFeRXy5aKlIR4knR2hq X-SMTP-MATCH: 0 X-IPAS-Result: A2D7AQBJutRj//Qc8jxaHQEBAQEJARIBBQUBSYE1BQELAYIsgmCVbZ1UgWoPAQ8BAUQEAQGFBwKFJSY3Bg4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VW83JFC5v9X27tUmQqqQ UbRqNNUDrW+Pp+3GlAmO1t3Z+uO4vgYhz3O4KlnO079/iJ2ouaKXEgObRmBjCtRcOl8PI8/m 7xzss8K8Eq0kBM1PNGcgmZZ8nnKL3BGWrh+7sMWB4riiwwKzFBeYMWCVXWsscrfMI1BYhswP zuZpKvenLAClEDMRHoEEySf1+RqmsVcsR9H+1YOOlCVl4eXnfQwxhBQr2g6Q1gH1BlByO4va GFnO1cuf/fQp3Iy2JIGBTDpQV0dQgaF81DwwB0VjGLYCUKvUyrEMTRla+qK+UkY9UNafyRap e/Hkjy0CmaxJMyhjDEvXUNFquD4SYAj/AP1npH1FsuIKJA2fD75j/L8fmEPsRbmX588iUCvS TOGJwqshXAX7RItnpA= IronPort-HdrOrdr: A9a23:k+qo96turc6dU0D9ben1SJrL7skDrNV00zEX/kB9WHVpm6yj/f xGUs576faSskdpZJlD8ersBEDkex/hHPFOkOos1NuZMzUO/VHYSL2KjrGSpQEIZReOlNK1vJ 0IG8ND4Z/LfD9HZK3BgDVQfexP/DEJnZrY/ds2t00dKD2Cc5sQkzuRFDzrb3GemzM2fqbQxf Knl7B6mwY= X-IronPort-Anti-Spam-Filtered: true Received: from 60-242-28-244.static.tpgi.com.au (HELO bits.crawford.emu.id.au) ([60.242.28.244]) by ipmail06.adl3.internode.on.net with ESMTP; 28 Jan 2023 16:33:50 +1030 Received: from agc.crawford.emu.id.au (agc.crawford.emu.id.au [IPv6:fdd2:7aad:d478:1:0:0:cb10:cc07]) (authenticated bits=0) by bits.crawford.emu.id.au (8.17.1/8.17.1) with ESMTPSA id 30S63ChE2973396 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Sat, 28 Jan 2023 17:03:46 +1100 Authentication-Results: bits.crawford.emu.id.au; arc=none smtp.remote-ip=fdd2:7aad:d478:1::cb10:cc07 DKIM-Filter: OpenDKIM Filter v2.11.0 bits.crawford.emu.id.au 30S63ChE2973396 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crawford.emu.id.au; s=s1; t=1674885826; bh=19grbD9CHxWwx1gqWLdWJwdaLqN//6Gte74Urgo9rwc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sWUZd1TxAA5SOgAUEpO9hq9b10vcPynD6nbwKbMjKgOzS1OPBNdjdTUShhcRk5/yA lkgYu8+Hn7/NpkHoPpGjYDxPjmnDbGK5nhAhrIQsVZRipXaMEBOLpTajZo0irr1Rtu jYpAfeUPagFysxu8Kuj6jzxkhMnaNNFysIxWwNj3qG8AMPZ4O6hjLcNzW3anARW9HC L73edngsj8S7bcDZrq5GacI+WKc2cyEIEC5ncouevrLD6WLCyouMQfOTp72+pbtnR8 QRsBYzFBWcdBNO47FEU9eKCChLSzEW/B0e53J3xa/4ex0vaErl796qPiWLHX6Ejv7A dytfzRjoAgguA== From: Frank Crawford To: Jean Delvare , Guenter Roeck Cc: linux-hwmon@vger.kernel.org, Frank Crawford Subject: [PATCH v3 6/7] hwmon: (it87) Add new chipset IT87952E Date: Sat, 28 Jan 2023 17:03:07 +1100 Message-Id: <20230128060308.1549707-7-frank@crawford.emu.id.au> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230128060308.1549707-1-frank@crawford.emu.id.au> References: <20230128060308.1549707-1-frank@crawford.emu.id.au> MIME-Version: 1.0 X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.6.4 (bits.crawford.emu.id.au [IPv6:fdd2:7aad:d478:1:0:0:cb10:cc01]); Sat, 28 Jan 2023 17:03:46 +1100 (AEDT) X-Virus-Scanned: clamav-milter 0.103.7 at bits.crawford.emu.id.au X-Virus-Status: Clean Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org Add IT87952E, a new chip ID (DEV ID 0x8695), which appears to be an updated version of the IT8792E and takes the same configuration. The model name comes from the model name printed on the chip. There is no datasheet publicly available. Signed-off-by: Frank Crawford --- v3: * No change. v2: * Make use of feature flag for definition. --- drivers/hwmon/it87.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/drivers/hwmon/it87.c b/drivers/hwmon/it87.c index 83de34119d74..6b2b2776d8c2 100644 --- a/drivers/hwmon/it87.c +++ b/drivers/hwmon/it87.c @@ -34,6 +34,7 @@ * IT8786E Super I/O chip w/LPC interface * IT8790E Super I/O chip w/LPC interface * IT8792E Super I/O chip w/LPC interface + * IT87952E Super I/O chip w/LPC interface * Sis950 A clone of the IT8705F * * Copyright (C) 2001 Chris Gauthron @@ -63,7 +64,7 @@ enum chips { it87, it8712, it8716, it8718, it8720, it8721, it8728, it8732, it8771, it8772, it8781, it8782, it8783, it8786, it8790, - it8792, it8603, it8620, it8622, it8628 }; + it8792, it8603, it8620, it8622, it8628, it87952 }; static struct platform_device *it87_pdev[2]; @@ -160,6 +161,7 @@ static inline void superio_exit(int ioreg, bool noexit) #define IT8622E_DEVID 0x8622 #define IT8623E_DEVID 0x8623 #define IT8628E_DEVID 0x8628 +#define IT87952E_DEVID 0x8695 #define IT87_ACT_REG 0x30 #define IT87_BASE_REG 0x60 @@ -477,6 +479,15 @@ static const struct it87_devices it87_devices[] = { | FEAT_SIX_TEMP | FEAT_VIN3_5V, .peci_mask = 0x07, }, + [it87952] = { + .name = "it87952", + .model = "IT87952E", + .features = FEAT_NEWER_AUTOPWM | FEAT_16BIT_FANS + | FEAT_TEMP_OFFSET | FEAT_TEMP_OLD_PECI | FEAT_TEMP_PECI + | FEAT_10_9MV_ADC | FEAT_IN7_INTERNAL | FEAT_CONF_NOEXIT, + .peci_mask = 0x07, + .old_peci_mask = 0x02, /* Actually reports PCH */ + }, }; #define has_16bit_fans(data) ((data)->features & FEAT_16BIT_FANS) @@ -2497,6 +2508,9 @@ static int __init it87_find(int sioaddr, unsigned short *address, case IT8628E_DEVID: sio_data->type = it8628; break; + case IT87952E_DEVID: + sio_data->type = it87952; + break; case 0xffff: /* No device at all */ goto exit; default: