From patchwork Mon Apr 25 20:35:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 12826208 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 B2EB7C433EF for ; Mon, 25 Apr 2022 20:35:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245575AbiDYUiu (ORCPT ); Mon, 25 Apr 2022 16:38:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236285AbiDYUit (ORCPT ); Mon, 25 Apr 2022 16:38:49 -0400 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60124.outbound.protection.outlook.com [40.107.6.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4BF9D1D0DA; Mon, 25 Apr 2022 13:35:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TmUsm2v16s2Z9R4fLfWbQTOOb/FqORbQHXrf1gGmT65rj2mXNC/c6WMYgDOOBJDSttEdJIhcrgP84yM3VorQ10VoQHX256I8w9VDei8ffC2s2tpvtXUeQbndu2Upiy2EpoAtHNP0ArIOVQ8b4p4o3oq+YvQeXKme8YuNuBQZ+gDgwS+ah9aABY+SdsXpUC/GfSquvdthTGNVN/Te0uRaCQpr3Mu69QxzeMgZBOlEGseT8L/zhe1Y3sX4h1qQr2gcsPZ6slVmXqOB3mBInt3xWkAiUFl/N7wyWTcbHh2khq2GabR1irL5gINcFBVSXXthguDJ7fj6Gnl+WMP2qOdRJg== 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=S4OjBO/n4oz9tlR0oXAj8g6Cj/mcU81qdoRgKdinIG4=; b=Uw/6UZoe1HFHrj93SHz/TdurLnlDhrQJZAqvbovc7RxObPbZWgFQXy/0hUqOz38x/qqZLT4kAY78Sy467rSzn/hjw+i1M14j6aN+Gnc5cuycZXnNm6FKXUxQM3KzxSphWnh5Trxh0A8XMgATzie8+AR02muKD6JHsg34L8EXjvKCL0hwWJPjHwzKNn1I7Td1lSYbTGSk0a5ZzGpPt04wJr6us6oSzgX1e+nA5HRSKQY04UAtJb3rsHW/1QrVqpwwappAkRcKMtGTrvHw/usbi0irFHuhpknsluz61d3MNlF0hq9115AfZ82Yb4QA8qJs02SxJ4RuLnOiKQOybt5PcQ== 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=S4OjBO/n4oz9tlR0oXAj8g6Cj/mcU81qdoRgKdinIG4=; b=XHA0aa3DSqpyV7y548v9n/ggCkj5yuTTNkkeGZqVSbMPCyfMaE9JsBOpWtaEO+00dOpcmhvNyo8tKwN9wSmTUZwrXXf5Dtkuxu5vPExM5rVkSfFeOKJiIi37J3RKTeXzWW+VIQ1IUKkIR3JDRUMupWxZeBir5gSq221sNEGDdPU= 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 AM9PR02MB6929.eurprd02.prod.outlook.com (2603:10a6:20b:263::5) 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 20:35:42 +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 20:35:42 +0000 Message-ID: <9c01b1b5-871a-2b34-9f98-766d043e0759@axentia.se> Date: Mon, 25 Apr 2022 22:35:41 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Content-Language: sv 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 v2 1/2] dt-bindings: hwmon: Add Atmel AT30TS74 In-Reply-To: X-ClientProxiedBy: AM6PR08CA0048.eurprd08.prod.outlook.com (2603:10a6:20b:c0::36) 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: d9226697-3fe1-40f8-5a87-08da26fb2ad7 X-MS-TrafficTypeDiagnostic: AM9PR02MB6929: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: SX7GxqYa7GKmSqb7bXVkEe+18ISVNmM5d0usgRNt1IcB4mYBe4tXtnBqiLDqh+30ZKhCoJfa5jwcECDMMnvhDbnKjQQk6+WTqrm0oIUWuZMX/rVDT8DFa05QAsMkwOVXFolZf5WEmOomqAmIE4ZP51cTImXQe/rAkhVLx1LRR9609lElixwG1B8Y3aLbVIp/m+GMc74ha5C35EsDBO+ZtJGM+QgOpqK6w8c6/ho1pOjLHcSpH55D/7k+Nof968/Mb9HIyeSIveoepfmWG0swsv9TYy5pmLL8cMwW1KiS79XhHm5+GA5jVVvRtoeKjkRWISY1pU4xzcli0gFjkmTzyF2q+/2MHBu6Bka1dZ9J+2gXaZ7oaG8EW/GimaErZvNDr3bYXemPpkaC0ynrsLH1i6jAzk2tmoWm0JWWQIUTPLRpaOv5Ni2cTPYr2stiTJxnaweSNNV4s7VRktnv1j/tKKpUFOp+7EH+O4gKevHCzfdCaHklq672/p9eHu9Z9OJAUWNbA4mdvq55KDRabEH5J7MEhdxpXjaAShlt3B8m9YLWklJiQaNvArk6ohzYxXgKoKKKBd4+Zd3LH5/TY52VTvoUP3+MgyQ6woZcLSyJxcopdaxBM2h+4g8WYwssX8NW81hByVxOASMsZn69FCDxsafEng/X+qjIoNkpl+vEzTQnKmzAITV47v0Ood8yMHsbXSU2jj5V324KTufSl5XGoVJ6DvU1vDgADONZH5IzC6M= 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)(366004)(396003)(376002)(136003)(346002)(39840400004)(26005)(6512007)(6486002)(66556008)(508600001)(6506007)(2906002)(4744005)(5660300002)(36756003)(8936002)(31686004)(38100700002)(2616005)(8676002)(4326008)(66946007)(66476007)(186003)(54906003)(6916009)(86362001)(31696002)(316002)(43740500002)(45980500001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?JgVDMMK98D2plwcqq5LI7xGgiW+f?= =?utf-8?q?FHH7w60xWmQL6bLTBLbZZ9GW74MvEO1S3+T6YgDpxblqzpBhKd6jEBdaM++Tzerig?= =?utf-8?q?9oc7gaOX3dyZ0tGjrJzFjl837o83HSJsDr/nTQa78GrbQLoPuW8gSeVzcQkESaVLI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PooWTi?= =?utf-8?q?aBww2bnT65bZWQYuve/HkorIxkDN9Uhxii6ne/48PmfTrUU5uO9nMQOwW1/rQR70W?= =?utf-8?q?WBr/E5GQNcpdg/HBLxUf8DrEBPODavRK+Z49MNQ2Pe4zmE5xKIC6ljYqz77DbW0zh?= =?utf-8?q?i+f0Ec2y5gxins40EfZkCrwdd23+e+UHUdFYdu4oii2oqJ65qNMdePDyKkuwGnv9A?= =?utf-8?q?xhe2sHpmOFWkOj8tcwb/5AJjCTxTPj/3gkz0GeOr/SFvYFwBnahsBhlDrjWoKjTZT?= =?utf-8?q?kVbMknl34hILlyihgTAehlyekccQIRqJqu7Wf8smFok/C8J9P6wowFWNIqjGAAJQe?= =?utf-8?q?be83HA8Ip1T9lXu35OtzoYP7v43BXDJO4DYVkRWgnpLT/NgRYu+2E+gjPDwXIChWh?= =?utf-8?q?+27XxodAguidOz7pzILz6Zl1A+X1oJx4NX9DMvrhRLbanCD2zwhWXxBKGULtS3qzJ?= =?utf-8?q?7iI8Ioc9EKqjfXv+PdYmyszOvu6z4Gp6ECpwW/sJSsfHhawZI/+A3NWKBaZriSsaK?= =?utf-8?q?jtvVJHoyWVuKU0kPFp0VCpU4FOFuymJYSFBge2xy9ZTuT4B2Fad+eMpUz+s3OPVRq?= =?utf-8?q?p1TqwWdbrP81M4Ksoify2uk7prd0OWwwTZuaW3JJyt8KJl+bXB8s44s8TPhAWASgM?= =?utf-8?q?FaZaZFFURaPOE5sKTgPoruZ/FZW39e4Q=3D=3D?= X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-Network-Message-Id: d9226697-3fe1-40f8-5a87-08da26fb2ad7 X-MS-Exchange-CrossTenant-AuthSource: AM0PR02MB4436.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Apr 2022 20:35:42.6874 (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: w1iBlU81wNPZ8Nk78Gip5TRTtLJeGP+5BTDPVLR/kzrNYNcEoiaAsE/AYpM0LxI+ X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR02MB6929 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. Acked-by: Rob Herring Signed-off-by: Peter Rosin --- 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 20:35:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 12826209 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 BD03BC433EF for ; Mon, 25 Apr 2022 20:35:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245585AbiDYUjD (ORCPT ); Mon, 25 Apr 2022 16:39:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236285AbiDYUjC (ORCPT ); Mon, 25 Apr 2022 16:39:02 -0400 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60126.outbound.protection.outlook.com [40.107.6.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4544D33E2C; Mon, 25 Apr 2022 13:35:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Qy29onZymYDDB6JV9/o+v8LkfjHyBSsnUKF7Fykeosy2Nd5YGCDtTb4Bw24jsc23sjzjT+OuVr2xGl1JmFQ+2F0TSaoM4TSw/LEJupk6+FlgOPANGPVFZhZ6scUO38VFr+aw99RQ1pMwCvmzNKz7sDSva1zrQkmC55HDqXGA7qHRcXaNRzNaIg/tm5ktziBWsD44+MMQbD9gt8TQ2iW0UlP4XzzUBQTC08vsylkSkR/mn324qsKO6t0e/gAB4d3KXP/snAcC0MEL0UmnVzk0Ncs96b7SRzvSla61KhhN6MplRyBsYWdnH7203sxO2BpLlN+poWD4EUZut3lVb+NZxQ== 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=Cy8GhRW18it/aWtp+qMtyrLsRDor2inhUUYrkjZWmHXyzP7oELRBHQ3tEU9zgtiPvz9ocVn8RwJHbNFWUUqbVrAUL5OigbXUjADzv5/zy5JOLtSjdRXGO4bUz+AVtigdt+aHZEZHjEE3y+haS5904LcETkmA1YJfuGsvq8ifBEgLkwd2/mGmhyV1xRTC/uWz/ADN4PXoz10BorWNFnhGGxS7VD8jJ0NapNv+y1aRJBuCLCc7gt/PuBHoT0jWusPO6xGg0cEFgQGt/hzpcY5m2JBt8+sL+zNwkWlQPAeTN/rexSPvZIw78GhQLyyPhjCd2rEBBSDXhvb2E7hNEXuhWQ== 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=YacltOKlvnbU9Us3A9AmYVfZB/yVqWcdjJ8htfBUTVi2oxCZBnJZl/SZw0aDqTsnjSLKBJluTtcJEN4LjCse74s5Eco+C+W13AtaDlVEAHWJ6DrRvMAPOao10UXMOEPj2AhbrQjPv9BvUZjkQnqNdsaIthTdfWt8npza9MX0GME= 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 AM9PR02MB6929.eurprd02.prod.outlook.com (2603:10a6:20b:263::5) 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 20:35:52 +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 20:35:52 +0000 Message-ID: <9494dfbc-f506-3e94-501d-6760c487c93d@axentia.se> Date: Mon, 25 Apr 2022 22:35:50 +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 v2 2/2] hwmon: (lm75) Add Atmel AT30TS74 support In-Reply-To: X-ClientProxiedBy: GV3P280CA0067.SWEP280.PROD.OUTLOOK.COM (2603:10a6:150:a::32) 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: ce9369cb-b39e-4f4d-0019-08da26fb30c6 X-MS-TrafficTypeDiagnostic: AM9PR02MB6929: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: t68XYQGgRFj9LRfT4kx5uj1ham6YLLQYsTdQiXyZivuJVD9t/giEaZWv8jiqT9zC0tADNAQdEGAr5lVlAFVa90D4x3EPLRiIcZuhQpZopMo+EOGLPEhI6Kl1k5fJoecJEHOFcSpaY77tleikox7a1oW9r79hHhzpjdPUrU0PhXqghbiTXdUKY8k6T0lr9rGM4XRZOT4vrHJarvHjgDS3892CCQivbWIMX1D5Xppgnw9xeFImZmQVm5SuX+f0lOVo3WGgOK6h0PV/FnK/lZeQhbcfc0ljYEAf5j+2L9zDsVlol3iKNKyulLfWEWRe/g25CYkwbJ5C7SfpPEpePDtk88+4ogRfDcK6LwmzIeX8bbda/oCg2GAI4wd4q/xp6jYvcZOgD1sfldTl5ksOd1ejCN7EDiMFc1dbJ8sCAEM4L6rLq09+zKLn/+dQX0iMs+Gc//1wh6xwxyrMVfgCR0GsmJ1Qvq1fjH5J1tVkawoJGGtOQNLoedosWyyJ8l7ha8p3SYm2hwC1Ht6+QznVXVVpjKl1Hzg2jczRxqeZ1QcP301afGFNOxwYEfM1eyOSQlOEvARzJrDtqJjNHIxhqvYuV6h65mcw0TgThg+B1K9KqqbeM6vidwyKNOHKjuZGPVlLcUORf4NF6lKxZc2CyH4ujtkEr0Xm1Sgzf1uUkM+sOI0S2hlcsLnnWN2jmtCGAayRp5fSlKQoSlBvdkFW1k29fR5QuDCSMjXfF14UDBV5BcA= 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)(366004)(396003)(376002)(136003)(346002)(39840400004)(26005)(6512007)(6486002)(66556008)(508600001)(6506007)(2906002)(5660300002)(36756003)(8936002)(31686004)(38100700002)(2616005)(8676002)(4326008)(66946007)(83380400001)(66476007)(186003)(54906003)(6916009)(86362001)(31696002)(316002)(43740500002)(45980500001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?E77HSzBGfXzVvwn8YQN1rLJu8sOU?= =?utf-8?q?2lNBrAUXBAEyXUAHWTjm+OSMo17/IvtlXgpTJs8+32HNaM9KQiL9M0PsbJaSLNfvs?= =?utf-8?q?EPQZpGtCqI1AJVJs3RMYFoKa5BOi+GqlOBzedD5q8vNS/IlqsO7dqryhx9uQ7rXZ6?= =?utf-8?q?pCc8CU1GY/46y6hwbCF9LYbs3Tml1UuNe0Db5nxvcEdwMyeHD4MadS1CfhqpJhjUp?= =?utf-8?q?uG/1OGug0EYYlmeI4cFPVg1mmdlBXjRFL0ihHUl5EL0xNR7IxAJG+oH/e1UBtwCJ1?= =?utf-8?q?BB6jPcKO8WYSAgIQXcWtLtYT3svVtpK8ufF0jEEi8D3QTj+tpA3ZSicoOtGUPQnb4?= =?utf-8?q?fXSaGkgXxDH1D8SYuqROWVCtF0ZZ0V+IepC5HwfulC60WlGASJY4CzVdY+etMZrSo?= =?utf-8?q?O/hGTLpemkxLD8HW2eHAoNk3HYR1qDOLvNjTVOO2p+PXQIrA3l2QrsK8qiNef2S3l?= =?utf-8?q?ys89qZx+KB68uHbxYHuaapKeHzOZkzqjr9PHXlX/+YBofYRqeHqMHaI1Q8lvkE7gO?= =?utf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?= =?utf-8?q?CFqCA9oN/XLZbe56JG3U8QX4k0oNwZ/A9CLbsr+G+wjl4kERGjn47uR86/7efiixV?= =?utf-8?q?wH6Am+Us0ByfF7HcOHpZNcmz7ev0h/lQkmEnSN/0LdyEfGUZ3P33Jodu1Nzx5kUKB?= =?utf-8?q?LZkDkMvQGQnzgDKLOuQs5nM/oan6YoEutP35GTsiog2Sbv83TwBJW5ZF4eJPb0BeD?= =?utf-8?q?miVOa7oK5lfitHSpYeHHnqGkc2umXjuvnrkGkhrEmdDzxcoo5miNaX2PTM4zb1O4o?= =?utf-8?q?absiSokvcdo6WmWgdcOT5qrkhmvOFflg=3D=3D?= X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-Network-Message-Id: ce9369cb-b39e-4f4d-0019-08da26fb30c6 X-MS-Exchange-CrossTenant-AuthSource: AM0PR02MB4436.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Apr 2022 20:35:52.4213 (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: rGqWyzdXWb07KGRigW4E2oe5E/1ULspryJPi3lBXZhAkuvQ2ePq8uyD8OwY6RS+f X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR02MB6929 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