From patchwork Mon Apr 25 05:59:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 12825292 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 C3FFCC4332F for ; Mon, 25 Apr 2022 05:59:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238043AbiDYGCU (ORCPT ); Mon, 25 Apr 2022 02:02:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240177AbiDYGCU (ORCPT ); Mon, 25 Apr 2022 02:02:20 -0400 Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-eopbgr10099.outbound.protection.outlook.com [40.107.1.99]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2CE03916E; Sun, 24 Apr 2022 22:59:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jiuWCk5TJwwA9KcbCHR+NCa553YGsAf623+hv3krgTWAvs/vlXBlfbUypheMFqxFtzu5fMxfQ4AGd95dPginnbtQCbwyblCxUpt7n21yb5EzIiSjJoxB4rSIM7HMHhpLC45Jp9ZlqOmCDpR+6+e66DbvspXKJTltMfXdRXxnwcj4s8IcKw1JONXvtMRJQhkgbr9la9hS8+OiAqfeSwc4IrHqFi4lsYNuWEanmm0PE9wHmavv8RPy7RSNcvQjC6sBR6KbTHfAPlk6y5fpGJyCc/OBvT1y21ScY2urJA1fDiY/jIC0IiEIRTksrwZKcalbUBUuj0TG6wrNWT5o0vaRgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=o2dNgtOadiYM4cu3Xxe/ycKGIHQtX48G5nBtFRcM1u8=; b=ladDeM07v5GBhg2bRYIfcUkxR7UVsATawyJi+dE/56Eb5HVnJSxgnWi1VHicQdGoAqbU5yNSjgI4u++LgnSZ5xhkjq5HNe+fA6vAqF+N0qlhtjo2ZttU9nCqjm3pVOpcRMDO+I+JOskCAzpkxIdaUW+QH57LZpOQyeXmpCTnYisX3a4pJFxejuMbf7Chky6BwHhxn+Xt4Dp6ijGgliRzEkB4e3gXGvOMggrzja61HO5J51L/nrfBCmA1ehto1GZG98OwVSnOeVDuVjq+yZKC2BBB6/uagvSRYqTnM1USso/AaaXXQ+jmDvAAuvAGwYbH2hXkct/L3lw4GFy6t4KbPA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=axentia.se; dmarc=pass action=none header.from=axentia.se; dkim=pass header.d=axentia.se; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axentia.se; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=o2dNgtOadiYM4cu3Xxe/ycKGIHQtX48G5nBtFRcM1u8=; b=foa7Q1ACu/kzDKMlsXb/btPJGcjgGN+dMv9Dd9tdvzmic77kITfSLMc5k1Z8Qp9WlZVzhiFP5NFCNUeCwkCY4CVubJTTHwmxgF6g1JkKaZ+odpqerY9ygefKg5bhDLBKeWkvidCHZIv9ibZycAUhZM4oPJac/XYySVPfDRKwsZs= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=axentia.se; Received: from AM0PR02MB4436.eurprd02.prod.outlook.com (2603:10a6:208:ed::15) by DB7PR02MB3724.eurprd02.prod.outlook.com (2603:10a6:5:1::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.21; Mon, 25 Apr 2022 05:59:14 +0000 Received: from AM0PR02MB4436.eurprd02.prod.outlook.com ([fe80::d038:3d5c:e37f:4423]) by AM0PR02MB4436.eurprd02.prod.outlook.com ([fe80::d038:3d5c:e37f:4423%5]) with mapi id 15.20.5186.020; Mon, 25 Apr 2022 05:59:14 +0000 Message-ID: Date: Mon, 25 Apr 2022 07:59:12 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Content-Language: en-US To: linux-kernel@vger.kernel.org Cc: Jean Delvare , Guenter Roeck , Rob Herring , Krzysztof Kozlowski , linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org From: Peter Rosin Subject: [PATCH 1/2] dt-bindings: hwmon: Add Atmel AT30TS74 In-Reply-To: X-ClientProxiedBy: GV3P280CA0035.SWEP280.PROD.OUTLOOK.COM (2603:10a6:150:9::9) To AM0PR02MB4436.eurprd02.prod.outlook.com (2603:10a6:208:ed::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e413d7e0-de00-41b5-5816-08da2680b9cb X-MS-TrafficTypeDiagnostic: DB7PR02MB3724:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 4aKbmSkKAY9b9tFxj7M7wk6aPlCSLPw5yp8ZB01CLUaF4KntIagb9+Tsw3grk7s51DEsFJNTJgxp2qPoJKX93G2H+yVWoBtA0cctgkVYKdyrLtxnDQL2jvlIn3phSMTJhFbUxWUNzEJbaiARz12OQRRVMzl59KIg4DI2S93CqAFNyUlU7lwRjOaSqeWAwAw82kGsnPVtyQec/TN72ukrOUps3GKG3E38rZpYCu4WHQC7ZrC/5YgmtCmGMDNm8VdeY7uMlEJfNCh2gh86QoXBO/VpxteHNGWMzNRKu1DZFVDol5+mQLos6cWXKVFQt7S8/9pPuaXsZ4konNYWs/z5wspDZBx8pQNyZyhN7ytzKtgTxGdyQ4Rv16qHcWhGagHa7jvFbsBPlgvR4zxsFjY1eJFZnXZSFlkhts32rtYBcGHF9XvYotU4VtgjcbMUYvas5zHXmgQJ3TNGMaF1mD3eMkZ/YYP/OiTfowGC8PSpxQhvzmZImlhyw5cn4e6O2QKgQ7Ur1Vy754RJWtbL83V+KLpXbttTVjgVagLMldvt2Vp3lW/yeM2NdkBsPGmOAT3GdEFWOWgVZI3w509Y0be8LFs/7pYlty+V9hw/P36+EtTQTBjyTR8CAxMCSuC1COmbmV+O2etRGWA6McMjj9yUSMAu4la995IFT6GXgFytq9nE5+UcoibXVYj5owMxMeonSEeOcGjU/EcfW83N/+dWFxhVvnPbdIxbR0YzxhyzWqg= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM0PR02MB4436.eurprd02.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(376002)(39830400003)(396003)(366004)(346002)(136003)(86362001)(508600001)(8676002)(2616005)(66476007)(66556008)(26005)(4326008)(38100700002)(316002)(6486002)(6512007)(6916009)(54906003)(66946007)(6506007)(5660300002)(31696002)(8936002)(36756003)(31686004)(4744005)(2906002)(186003)(43740500002)(45980500001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?qBp1DvWRot4DHCKy+u7+F5Y5FilZ?= =?utf-8?q?dbmP79lWYQvbYiW1yE++Wxdz825y+0Fub0r0U1+FbcNt5lO4n5N9xartBtG9VM5HX?= =?utf-8?q?lynBZv7Urv1yGX5LEWBa0qCS/5lEX21RvHf9/vFJ7DjzX+fwmYAoiXpW5SHglQYx+?= =?utf-8?q?XjVihrFnlm1S0/TtN3ty14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DLSyG5ohbnvDAycwuRw/Ta9QSzYEtLD09ehf?= =?utf-8?q?h+8pCwoQLb5Ia0fGZPl1yjHBHdhRR0iCL2K2IsSRgOEmACdQjTsnlXaHihM+IoKXM?= =?utf-8?q?Sk/DcHg8SMF42ru0f9nzBRsutCT60lUwkbBpZdz+jv6mO2fF2mBXjMQ8qypY1lx9D?= =?utf-8?q?u0r9Da6dUjbEJApiWgIBf8bFjuFbIM0mZUg9ZBbPrLUXg5Nl3+DgDhHyxSf/bi8+Z?= =?utf-8?q?/T3hqRzdte5Tly40wAmtXm1CbPo9HOqkVWC4LJ9LICOBOcmsJisjchgML10thgBv5?= =?utf-8?q?+FI2ofLaRMGNo6np56wucpLUa1/dUL+u0sLa/HjjrZL+3mXFQom2MWDvAZSA6E8Ay?= =?utf-8?q?eljCWUYkmTAL/QBty9wic8HvAluCKHUHPHF8+eL6Z4/N8b5CBIRZsWG4WBXZW5QSP?= =?utf-8?q?7RvaTz3DlZzcYTean165O3HQQzetF0T5hCarLpth00DKcrveUhq1P9HuufiqB9LmY?= =?utf-8?q?qeU1a51RSmJOVehpdiVADsZQYyDS1bnfrQitBIlz+mx4YHcd2pvqvb2k1ePPdfLvg?= =?utf-8?q?JISjO3XeWw0R0g06HUZ35ph0o/3SnDixN8ktC9v3cqaAgO6D1jWcUpjcSHflnayyG?= =?utf-8?q?c+1KEzqmD/NHzEeV4qOfIv8McB56KlqA=3D=3D?= X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-Network-Message-Id: e413d7e0-de00-41b5-5816-08da2680b9cb X-MS-Exchange-CrossTenant-AuthSource: AM0PR02MB4436.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Apr 2022 05:59:14.3939 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4ee68585-03e1-4785-942a-df9c1871a234 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: v0+HVS0Ae8GSro1qlF2NBpvxdoIPMjKoA2CwrcdzB7BmHnn/bYPgKT8EvxBEuAhe X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR02MB3724 Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org Document the Atmel (now Microchip) AT30TS74 which is an LM75 based temperature sensor. Signed-off-by: Peter Rosin Acked-by: Rob Herring --- Documentation/devicetree/bindings/hwmon/lm75.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/hwmon/lm75.yaml b/Documentation/devicetree/bindings/hwmon/lm75.yaml index 72980d083c21..8226e3b5d028 100644 --- a/Documentation/devicetree/bindings/hwmon/lm75.yaml +++ b/Documentation/devicetree/bindings/hwmon/lm75.yaml @@ -14,6 +14,7 @@ properties: compatible: enum: - adi,adt75 + - atmel,at30ts74 - dallas,ds1775 - dallas,ds75 - dallas,ds7505 From patchwork Mon Apr 25 05:59:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 12825293 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 18322C433FE for ; Mon, 25 Apr 2022 06:00:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235887AbiDYGC1 (ORCPT ); Mon, 25 Apr 2022 02:02:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240177AbiDYGCZ (ORCPT ); Mon, 25 Apr 2022 02:02:25 -0400 Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-eopbgr10112.outbound.protection.outlook.com [40.107.1.112]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95CC03916A; Sun, 24 Apr 2022 22:59:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JvUniLugxS4WTZOqWutO1Fby7i6NQmdAa4cGRMSHTvgc4aJaBeIjS8t8HWU0zFDvgUdYgmrXHYGmG3SRDP7iZYdC6r1lTN1MZL33etPEcnD5ELO2J2X0+nn0OkP01RXr+9LUqhpsmNR978qxJyH0j3Kz6y7+wOLhelduLYROasvEpTzglcpzvVukcfZTLEjvbmLRCpIl82sInYAiZG8zi4ejvDfPmGXNQYdBbh1vMsvqw+8lqmA6h9ICYZvWgsHe/6AWjgviWRiOLHvnJS+NuSjx7MAwVjxpGsxJUEiMOksIPiTT3ce3l+uYkSBoFUJ0HgSgH1Z7kumJmncgs35RTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=yItIVB2LjgAgrsdgjwkeY+n4Y7Yuh6A6wEQyQUjd/y8=; b=LCk0PUP2WULOsed5YavnaAPy/8wBLdBMohmHduK4cLQQ3J5/IaqnOpKlA0eAnnPHnYAMKKNyliUjdJ8I+6/xz2NcGTCBrTyoTDA99QHSO2xuBEDdLb8K61Ry7PNyhyJAbXfbHfj/JrR0hupiWpyZCLvmh4iGx5f8pqyWI60WVyVNDgHUYHp2O4/0ee0374w4GHd8v+dxVtjfXvlUUILCw8J3Mds6mb6UZ6NDX1txfStEeHhgHH4IBhRtNer8t/46uZiZN1YQQziR+r3v6SCVhft3bBewofXH0dPGa/Sc/pd7HHQ87fmafQRxZeBNIPxMq8Z1m4KdW4g+2MH/tQ0g5w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=axentia.se; dmarc=pass action=none header.from=axentia.se; dkim=pass header.d=axentia.se; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axentia.se; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=yItIVB2LjgAgrsdgjwkeY+n4Y7Yuh6A6wEQyQUjd/y8=; b=OOXTPUJtThFIHx5wccQuiyLoM7Ku4o6v7ezXPVgw+EAsr7fgVWgPMIQazMQkTPBegd5gctZVep75pFZlsPK8zZkvW0/atxMa63QGm4vx/zOpgMdoGfnnVp4km67ZeWw6n4uiS8GA2HgeT/fLkkRRD04PYAbTGz0EpQitwRx3ar0= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=axentia.se; Received: from AM0PR02MB4436.eurprd02.prod.outlook.com (2603:10a6:208:ed::15) by DB7PR02MB3724.eurprd02.prod.outlook.com (2603:10a6:5:1::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.21; Mon, 25 Apr 2022 05:59:19 +0000 Received: from AM0PR02MB4436.eurprd02.prod.outlook.com ([fe80::d038:3d5c:e37f:4423]) by AM0PR02MB4436.eurprd02.prod.outlook.com ([fe80::d038:3d5c:e37f:4423%5]) with mapi id 15.20.5186.020; Mon, 25 Apr 2022 05:59:19 +0000 Message-ID: <7160dc31-1429-1206-ec4b-1d8cc0652b27@axentia.se> Date: Mon, 25 Apr 2022 07:59:18 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Content-Language: en-US To: linux-kernel@vger.kernel.org Cc: Jean Delvare , Guenter Roeck , Rob Herring , Krzysztof Kozlowski , linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org From: Peter Rosin Subject: [PATCH 2/2] hwmon: (lm75) Add Atmel AT30TS74 support In-Reply-To: X-ClientProxiedBy: GV3P280CA0047.SWEP280.PROD.OUTLOOK.COM (2603:10a6:150:9::15) To AM0PR02MB4436.eurprd02.prod.outlook.com (2603:10a6:208:ed::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6ae2193c-7b50-44dc-7576-08da2680bcff X-MS-TrafficTypeDiagnostic: DB7PR02MB3724:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /opChjL5QfFqSSNk4Y20qW6a/IajDIyu86Y9DQOXDBVQeMhvpLkJZy5xPM+1YB+ZHUvokGpv1onn5iN0xCl8h07yenfL2SlHOWkVn5t5CuW5tUOjSV98MBZZhJJqDAz7ImOmnXXoMrAlBQOnJXZAQ6y1ggmFF2jD2oNadHDfOirc1O4czT8MmprPN4gclbCLg1dbbfM+k+4FPrRnqopMLfzo/N5nTXaVz0wIsSJk55RmpIIAasNNHXI+qPevitsRW7BY/4gWlYNzH85ENbPc9cXMblsIaP94iGqA9derrcA19BU3JWqBLr7pv2/aGSpoXBfhbWeU6lV5HnUOTbgwq6IG09DVP6TLGw+HdidfloxJjwBmbW4U0pQIwStFuPDUDkbC0FIfGyc+q+tVuArhmJ+HM+7vYT/sRQ7oM1GUMoDK5AQ5Cq/zoQXr2Doca8cMeYIWKYU5t+EkLPOb38tOswtdAqe/4tLwWnQHPMVdmzLS56WuY0E9YwpSQX54C3g0VtSYMWXlIer0f8xMKeJzrUaMIyRuuoHtT8yuNNBAojiCyn9xs76jR1l42OJgnWtzgFJi7kYIJCnCgTubbSg/jZjXCELrakxcwaE9orUBEE12tbT4YxcAYAopW3ztTGplEEJloNCZnXwpM1Z1pFvJiEYksoxQ/XpgQ5RVtiSh7daMJmVMxE5v9PspM640qbbKUOiWv0ippyNtJ0GmWf3NZkO7e5bEGYPmXDWe8+bs100= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM0PR02MB4436.eurprd02.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(376002)(39830400003)(396003)(366004)(346002)(136003)(86362001)(508600001)(8676002)(2616005)(66476007)(66556008)(26005)(4326008)(38100700002)(316002)(6486002)(6512007)(6916009)(54906003)(66946007)(6506007)(5660300002)(31696002)(8936002)(36756003)(83380400001)(31686004)(2906002)(186003)(43740500002)(45980500001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?nM7fLCybaBAuLZMqnOlVtVE93y21?= =?utf-8?q?gTP8+PAWkyIFdu01d5Q0k9oC5yizkxz0BQyJRIQjQkeVg+jKJ+T9NovdHAvD5yXVz?= =?utf-8?q?3FNnA4wGNdfs76dB4zuO3Odp8sSdP0jdE3ISYGchrm8NvLS4lL+f6P8fU33TosZTr?= =?utf-8?q?yP7aAgqtuoB5LzMBDRbBdS8Krb3uASb7wznke8i9UmnXobDipgJk7BJaOcv+XASdB?= =?utf-8?q?hnuWg3C8j2eQxzAeYjc46t/+5CA+q9QPmIycqpCkwF8NnLLKeW/qkB9mQ5ZvXzJNp?= =?utf-8?q?64m2XcyDutNiq+U4mboXjfRdvzAYU2jWhkEdgJ2snxiCZCRT7CW9ERHJRMZo38hsL?= =?utf-8?q?8AcyRuKXCqkOhZGA3ragPoalldCIoX0LQRsdpfpv17BQwRTApOPFnjkjfceUDgTHl?= =?utf-8?q?N5P0tjNLAw/hdtlByawRgzEmhCSgDNt6wGMH9pzaPpxLM/VTx/nBGraufIhXF58zN?= =?utf-8?q?8u8q5+JWoJbQiDizztHcK6KIAgPQJWc13QOpn5+PN/G/a/ptWtwg6lLI/2kJTbiD4?= =?utf-8?q?3r6L9m8DWM/O/g+hObbY0tFd0iLSHSDi3YK9DUx84h1s7bCIFN2kJCUOxA6nXIhh1?= =?utf-8?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8?q?riFgqNJ2x4oSpdiz1MgcCSOuqhcEpEbQIBKutseljv4UoGCVLrHlWo3FTpgrC08FH?= =?utf-8?q?4RSb1mpGj3AtTF+jALU7fNUw4JrnLRMdS8auK0UFmLgwirm+2ZCBI9qebu68gR5AD?= =?utf-8?q?5unimboD/yAz32jl/LR15f8v4QCae1oYgWGsyYFugqx473VAbpzQVqY1XDgGfiVL2?= =?utf-8?q?poHG5a8KMY57awRXhnAxB5OTMcK8P1xg=3D=3D?= X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-Network-Message-Id: 6ae2193c-7b50-44dc-7576-08da2680bcff X-MS-Exchange-CrossTenant-AuthSource: AM0PR02MB4436.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Apr 2022 05:59:19.6124 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4ee68585-03e1-4785-942a-df9c1871a234 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: yydI3sfP/ZGE0wXjppI7MOVHSyjMnsPIILC6Iu33vhnqU7r+yGvz9YExShSb+hEU X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR02MB3724 Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org Atmel (now Microchip) AT30TS74 is an LM75 compatible sensor. Add it. Signed-off-by: Peter Rosin --- drivers/hwmon/Kconfig | 1 + drivers/hwmon/lm75.c | 14 ++++++++++++++ 2 files changed, 15 insertions(+) diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig index 68a8a27ab3b7..d8dc58b2c55a 100644 --- a/drivers/hwmon/Kconfig +++ b/drivers/hwmon/Kconfig @@ -1248,6 +1248,7 @@ config SENSORS_LM75 temperature sensor chip, with models including: - Analog Devices ADT75 + - Atmel (now Microchip) AT30TS74 - Dallas Semiconductor DS75, DS1775 and DS7505 - Global Mixed-mode Technology (GMT) G751 - Maxim MAX6625 and MAX6626 diff --git a/drivers/hwmon/lm75.c b/drivers/hwmon/lm75.c index afdbb63237b9..66dc826f7962 100644 --- a/drivers/hwmon/lm75.c +++ b/drivers/hwmon/lm75.c @@ -26,6 +26,7 @@ enum lm75_type { /* keep sorted in alphabetical order */ adt75, + at30ts74, ds1775, ds75, ds7505, @@ -128,6 +129,14 @@ static const struct lm75_params device_params[] = { .default_resolution = 12, .default_sample_time = MSEC_PER_SEC / 10, }, + [at30ts74] = { + .set_mask = 3 << 5, /* 12-bit mode*/ + .default_resolution = 12, + .default_sample_time = 200, + .num_sample_times = 4, + .sample_times = (unsigned int []){ 25, 50, 100, 200 }, + .resolutions = (u8 []) {9, 10, 11, 12 }, + }, [ds1775] = { .clr_mask = 3 << 5, .set_mask = 2 << 5, /* 11-bit mode */ @@ -645,6 +654,7 @@ static int lm75_probe(struct i2c_client *client) static const struct i2c_device_id lm75_ids[] = { { "adt75", adt75, }, + { "at30ts74", at30ts74, }, { "ds1775", ds1775, }, { "ds75", ds75, }, { "ds7505", ds7505, }, @@ -680,6 +690,10 @@ static const struct of_device_id __maybe_unused lm75_of_match[] = { .compatible = "adi,adt75", .data = (void *)adt75 }, + { + .compatible = "atmel,at30ts74", + .data = (void *)at30ts74 + }, { .compatible = "dallas,ds1775", .data = (void *)ds1775