From patchwork Wed Feb 9 13:36:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Agathe Porte X-Patchwork-Id: 12740295 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 7F941C433EF for ; Wed, 9 Feb 2022 13:37:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234178AbiBINhR (ORCPT ); Wed, 9 Feb 2022 08:37:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234084AbiBINgt (ORCPT ); Wed, 9 Feb 2022 08:36:49 -0500 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80098.outbound.protection.outlook.com [40.107.8.98]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E0CB0C05CBAB for ; Wed, 9 Feb 2022 05:36:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UYnxi40T8RzSDxRqTP7TQje051lEb1jIdlc6F73nMiopnYcdOsywVHcle0vFeGt8sRt/rSg4F9UQGyB3HUs1UOVOwwIeFAs7dVry8kq9l7BqYS2C5KNdPlU/iM94xqmEdbQFWDik10qNTz994ZjLExM2dEk7/eczkFUypgYOqrqVZlVzTtZjeUqcOr7xq9RU0FENxPOvDTm9s1eYNDSF9o5EvYUWvqvw+z7MThVNwoZ12sf4KYD6KbZeffKRV7nLkfVclOdjvN3wqe9AepUPNz/usB/2R8Ec6iY2QxvNxWca9micdYqG7S8CiCwRauxDyK4AfyJyKF1U0hxMGOSvSQ== 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=siTEp5PjUgnJCrLh7O4d69TPpphP7rgQw0v7uJOdH6Y=; b=Aamzov0Xc0lstBbERmq/GwTSxY/szFldya+7xxZnyDKCaHhSvySKS/TPqJhZqQJelYUpDu910YspZHUbMsD5QkPfJfD2+jw5DXbXrlPoS1xnBlv9Xk7cYEs6zhylFCWOhgl8JgmytSrQA45gWKwijgCAUc5vCeXTwdgv12cSDD4VNkBEPPoylqjeVlkrr/OavIujzz2zNVqo2kKk/42uW/oJcJ58peVVedm8k5ZGEsuOOTCKZGyZlOyDRRYnPCOa27yioQfDYn/sMGIjTMVeacQ6QgAs3fUqETHqlOa2SA5l2xYSYHwdvJMXuURGsF7jyqqOE7te6oBxwJYulYXiXQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nokia.onmicrosoft.com; s=selector1-nokia-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=siTEp5PjUgnJCrLh7O4d69TPpphP7rgQw0v7uJOdH6Y=; b=blyXHV6+EX5xQGqwfjUv4DWyIY8OG0P/cmgfYpuRW9R2gQx+F1WrpMYR251GdQTNx2Ndt/72cK5/rFTuv0TH0gTzZkTo9/cfDBx+N5WpS4MHErorgD6crnx6s3IV5jAVSqne3WEQ8tuiVV1tEYjDTeRGUuNtJEAxV+2SfVO9U2I= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nokia.com; Received: from PR3PR07MB6921.eurprd07.prod.outlook.com (2603:10a6:102:7b::22) by AS8PR07MB8374.eurprd07.prod.outlook.com (2603:10a6:20b:445::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4975.8; Wed, 9 Feb 2022 13:36:31 +0000 Received: from PR3PR07MB6921.eurprd07.prod.outlook.com ([fe80::450a:62a8:8912:daab]) by PR3PR07MB6921.eurprd07.prod.outlook.com ([fe80::450a:62a8:8912:daab%4]) with mapi id 15.20.4951.019; Wed, 9 Feb 2022 13:36:31 +0000 From: Agathe Porte To: linux-hwmon@vger.kernel.org Cc: Guenter Roeck , Jean Delvare , Krzysztof Adamski , Agathe Porte Subject: [PATCH 1/2] dt-bindings: hwmon: add tmp464.yaml Date: Wed, 9 Feb 2022 14:36:16 +0100 Message-Id: <20220209133617.67297-1-agathe.porte@nokia.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: PR3P193CA0013.EURP193.PROD.OUTLOOK.COM (2603:10a6:102:50::18) To PR3PR07MB6921.eurprd07.prod.outlook.com (2603:10a6:102:7b::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 37692326-b457-4081-00ba-08d9ebd12ed9 X-MS-TrafficTypeDiagnostic: AS8PR07MB8374:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6108; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: DdtqA0brj4FQ6wTZySyU8nNasvG259K9k0gxmE+bLQllWc0Bl6jSOwvWBkfFrWZpR82cTuxTPg66SkiayT1+df5cyxEecB4gdWohAwhcuG2ccmswBsS3pn3NviZgEIsVH5x+I6jWaf/zWtxdDoO3iL1hj9dfOuCR/Akssko9LpWfZCm8UdSQIP9xRDfpjDt3KdrSFvqOIF8RhxO4E4bwM/RvOuligfzbxHCV+egv3PTZjIH+XMrJtQGM+6C1vYHu9Gn+kvvYptPnRjfY46JHEabPBCue1+obrVykYJcsR3j1BZ2KzrNSyu574PoikCXbzpCIIXHWXCMOf8GF3bXSKKTJRl3wMVUWmq/oofrhP0dLhlpiw4W6V4DzCerInx2EzMS84nv8zZJrzTRt+1Y48aMFqAiVfgZBJxkdp+JTSxvKZMBy1MxK8ITOoiHGvnYzkWTimRiLdyVMBRhFfEJVgA6p+a/topxI4tAYQ+gYPRi1ru/otYCu9/mo78rrT5dD7TPIr4LNamuP9cPmK7bAGjmafsf3gRgJ+fKFGyKKXMrxPX1um3GvpYi6w81HoU5FskTUG0Hpx/g0zKO0J/oyq0XXipXhuSOteHys/U9mO4tEeH1tNvp6+/tVQzB0kwSuWTxivb/ynjm+bAeNPfpvb3gdfSG2pxnMjB264SFzLgj0dSpkRtue0yihY2Fan/MCFxGGPRAWLQL2fOKT0gEHCAOm+UxXIVk106uKYiMKFkI= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PR3PR07MB6921.eurprd07.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(2616005)(36756003)(44832011)(5660300002)(6506007)(26005)(8676002)(2906002)(4326008)(8936002)(66946007)(1076003)(6512007)(186003)(107886003)(66476007)(66556008)(316002)(38100700002)(83380400001)(82960400001)(86362001)(966005)(6486002)(508600001)(6916009)(54906003)(6666004);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?ffcA5/DMxTqjH13kj+lpLivj9deX?= =?utf-8?q?8qKMvutJ4KkUgm1CtRxzwdSsLbXUHxxHNmP5eUlek5f/pTHEpaN1EpcB2YV/b98Jd?= =?utf-8?q?HhTgvv/50tXvlbofU9PD4zksjoD/zd2L4DYoC9xEIWBRkB20hFEQqnDDMVHNrpk+P?= =?utf-8?q?nU4zlS2nSFjyXsxDgRXpIabbnzmoDia6IyQh28WgfgrkjAIMdKw348xuTHAL1vQ1u?= =?utf-8?q?YByPVGUxJxEnSRfmVfeOgzo6TzAkDjoqoRY53Pn7dPtKh4CSkQM0Xbz+jzqnbTOBn?= =?utf-8?q?+J9kngTltoatrRNLQu8+tJF3O4sJHcrT957Va29u3ga3QQzAjKLXZnnWeVQb+dedM?= =?utf-8?q?oFg9Y8ZO2i5Nf7WaVKHZhoFGpsPpsvqHQxlqoFV20uI+Cau17nnEsF3vAulXiOJzm?= =?utf-8?q?FlhVm3yqNoru90P1BPx89iMG7jQ7zOv7NRFne6Z7WK1f+MPi3CAKrPHoLj3Nn9bh0?= =?utf-8?q?3qkanKt7yuGFhb4ddngwcJmLwYncgEWQLXWnpABIUF8rodcr+wL23TGY9IzZ8h9uc?= =?utf-8?q?RcJwV6RWKMDxvuqjQHGJgsRXzvStopSvINsRF8pvmxhYbrpAv6g6aN5CrVmOcMxSr?= =?utf-8?q?AOHRc4kCBjWc8M23iQqRZhFOdKnhpn0SpSAyQIY41lZqL7qK8VbVdTHsA/75ZFkLP?= =?utf-8?q?ETcdRCDWlxxoc9pAx8LYvFS/RicvWHwm6LMzrBPInA0PmJ6b5y6J7Uqa6j1Fs03ZY?= =?utf-8?q?MhtLdTN4znxzeHCXKBqxm5YsC45U0etUQdcmpixk7LR2di9q1LucW3UaUVeSpOhCB?= =?utf-8?q?b45jrkPGflrAQWiT75jjAXUncDkX+ZgdXCCBx8NBfpYXp0rmaq+Ub8iVMGYMHAT7a?= =?utf-8?q?TT7uwjRGWBsAT+AecM2QN06uQz0rvKP4eiUoxZ2ylPT/+L83daFbMS0Q0aFkDgkYq?= =?utf-8?q?7OBQrrSBcKT/nm0lo12EexT/2A8nAoQRORqobUqfnOc1fGAAY2iI3sdWDhaqa/fqa?= =?utf-8?q?x3Pw2VMX/2j7hJURLrzQMyrjcny0yImg4SMr7CowNQej3DWW6oa+tMB7IO9leoYMF?= =?utf-8?q?FbTDfAn+M5fLF1CazNba9yVPsIcoWBKxOdfJxsqSYn38iFN26CGc7j3H4unEV9WmJ?= =?utf-8?q?v4D3zpY9A7NY4pM6ACN0Zdl/u2UJDDhpPVB5QIwvnNCJs6KWWH8XOeWomD67gsOx3?= =?utf-8?q?VCm8s8P4UC51sgSeOVpEHUy6c8Ajkz1YJjkxO37Hg1ooIu6p8N0/wrcOdNBaOR3z7?= =?utf-8?q?NEopvReag0gm0eKnTHuaBaLymBWfGaKz3DtVWBnRqogLjrqLAtz8EPllY0nSrdwoF?= =?utf-8?q?AMzZ9bKQggasErj3WL0ugkkPEDY32b08Yh9nDSa+ZCdUwXnGbQM9ydquNpU6L3VdR?= =?utf-8?q?cgbDWL1uFgaUPjmSVtMrkUa1mvrOaE2Y0kola+iX2+TK24ObnEjZQYCd6XN7xafIp?= =?utf-8?q?Rlwr2GLpwt/QUgtRfq/cyT9ruX/vGF49xHUJRQ1G3s3KHH1qS1tIheCAq9X+eRYXq?= =?utf-8?q?rvN1xsENuDEBNzE9C9ZlFCPTs6L0njPOcco5BwCKrdNhuig5Ytpc/hOdgSOV3HGUb?= =?utf-8?q?AMvkG8RaW6mVmMkHfxF5EOj0OAa+0g2kYA61aTGUhSYyp2Bw4IcfJeE=3D?= X-OriginatorOrg: nokia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 37692326-b457-4081-00ba-08d9ebd12ed9 X-MS-Exchange-CrossTenant-AuthSource: PR3PR07MB6921.eurprd07.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Feb 2022 13:36:31.7238 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 5d471751-9675-428d-917b-70f44f9630b0 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: kwExwM16nZRTvrRLF9u0XT1NJWZg4qVaQzN1JZN0XvK07U7W1cfZRu4ivNx123poh8Nq7va8ArqyZgQEA22AWA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR07MB8374 Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org Add basic description of the tmp464 driver DT bindings. Signed-off-by: Agathe Porte --- .../devicetree/bindings/hwmon/ti,tmp464.yaml | 106 ++++++++++++++++++ 1 file changed, 106 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/ti,tmp464.yaml diff --git a/Documentation/devicetree/bindings/hwmon/ti,tmp464.yaml b/Documentation/devicetree/bindings/hwmon/ti,tmp464.yaml new file mode 100644 index 000000000000..aaee652c0067 --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/ti,tmp464.yaml @@ -0,0 +1,106 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/hwmon/ti,tmp464.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: TMP464 temperature sensor + +maintainers: + - Guenter Roeck + +description: | + ±0.0625°C Remote and Local temperature sensor + https://www.ti.com/lit/ds/symlink/tmp464.pdf + +properties: + compatible: + enum: + - ti,tmp464 + reg: + maxItems: 1 + + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + +required: + - compatible + - reg + +additionalProperties: false + +patternProperties: + "^channel@([0-3])$": + type: object + description: | + Represents channels of the device and their specific configuration. + + properties: + reg: + description: | + The channel number. 0 is local channel, 1-3 are remote channels + items: + minimum: 0 + maximum: 3 + + label: + description: | + A descriptive name for this channel, like "ambient" or "psu". + + ti,n-factor: + description: | + The value (two's complement) to be programmed in the channel specific N correction register. + For remote channels only. + $ref: /schemas/types.yaml#/definitions/uint32 + items: + minimum: 0 + maximum: 255 + + required: + - reg + + additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + sensor@4b { + compatible = "ti,tmp464"; + reg = <0x4b>; + }; + }; + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + sensor@4b { + compatible = "ti,tmp464"; + reg = <0x4b>; + #address-cells = <1>; + #size-cells = <0>; + + channel@0 { + reg = <0x0>; + ti,n-factor = <0x1>; + label = "local"; + }; + + channel@1 { + reg = <0x1>; + ti,n-factor = <0x0>; + label = "somelabel"; + }; + + channel@2 { + reg = <0x2>; + status = "disabled"; + }; + }; + }; From patchwork Wed Feb 9 13:36:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Agathe Porte X-Patchwork-Id: 12740296 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 CAF1EC433EF for ; Wed, 9 Feb 2022 13:37:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229549AbiBINh3 (ORCPT ); Wed, 9 Feb 2022 08:37:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234263AbiBINhZ (ORCPT ); Wed, 9 Feb 2022 08:37:25 -0500 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2122.outbound.protection.outlook.com [40.107.20.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 441A6C03FEFB for ; Wed, 9 Feb 2022 05:36:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aU+HcG7dxHaLLYg9lZWXQV8wargFelMha/gW6klnJ/SiEkzL6AR26hAS6n/LyW7Mz86t3npqwbMM/KspDkSm3IM/ISUnxzqzobRQ1l7R5OM2qjP/73wtIkqewe0RcgwqwkrVwpnwxevoVy36XoF3hAfsSw7Z/91mGrR/7PoSR1o3rdteqvg5qKVkDCjrdKkXmTnYgyxxeWl/UogH1smbiavoaSWKU4TMLl9N7AOpNIagOk6aOJi1docbsgEF1iV8xymn9FtXUvCHV8Bgd7iZmSOsQXSZDBVeUhI/XHZScqTA6XbrTqefsrDgGp7Vh0GLfXC7qsYUYBHurkRY84IUDA== 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=PXF/A+e/wfUstQHj3iNBZJMgzweGYa8QvTm6M6s4MkU=; b=SKn1K2n13Gf6S9xD2LcfAE+Fdm3j6MeQM91TMelIVZqhRyuJ486N1HJWCY4RODNuSyUMZ2JTmL4xjl1fq2Ky4AXeulUXRzudiK2+x+IVE0jVkfVckZMxqjnw1zVp/XzGfvviWS+/dhA3nFVd69VSpY3QbIECDaggtWOZvDi9WIlSL2MHngXZJKshutYbRcCGoziEgKZWzIfNUtx7OXf88TYFgwJPqvz+KUTDIHSO8fpcep9o7uJgXtVs0clTV5SguyqoxeMJJ8knmlJdlZfbwps8+ugdOLxmy7RPAEo18B7Zs3JcOlh8iB7jEqJ4U2oYqFZFRWULeGuGcvvRuojihw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nokia.onmicrosoft.com; s=selector1-nokia-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PXF/A+e/wfUstQHj3iNBZJMgzweGYa8QvTm6M6s4MkU=; b=hJRkNHnbpI3gBEZPY8cpytRPSZ/3uaTa6y8toi6MiLRU0KzIJT4+bPZrZe+LarnpX9meJJI0ezbfyfQPOJ/ebH6fm4pAlTbbJ++B1vy74p+WPCNofPUHCDvLtnbHy1dCHD7dTk3wohK4Jr03P6hQ3l0aEns8haY0DWFoexqSD6w= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nokia.com; Received: from PR3PR07MB6921.eurprd07.prod.outlook.com (2603:10a6:102:7b::22) by VI1PR07MB6286.eurprd07.prod.outlook.com (2603:10a6:800:134::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4975.9; Wed, 9 Feb 2022 13:36:48 +0000 Received: from PR3PR07MB6921.eurprd07.prod.outlook.com ([fe80::450a:62a8:8912:daab]) by PR3PR07MB6921.eurprd07.prod.outlook.com ([fe80::450a:62a8:8912:daab%4]) with mapi id 15.20.4951.019; Wed, 9 Feb 2022 13:36:48 +0000 From: Agathe Porte To: linux-hwmon@vger.kernel.org Cc: Guenter Roeck , Jean Delvare , Krzysztof Adamski , Agathe Porte Subject: [PATCH 2/2] hwmon: Add driver for Texas Instruments TMP464 sensor chip Date: Wed, 9 Feb 2022 14:36:17 +0100 Message-Id: <20220209133617.67297-2-agathe.porte@nokia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220209133617.67297-1-agathe.porte@nokia.com> References: <20220209133617.67297-1-agathe.porte@nokia.com> X-ClientProxiedBy: PR0P264CA0123.FRAP264.PROD.OUTLOOK.COM (2603:10a6:100:1a::15) To PR3PR07MB6921.eurprd07.prod.outlook.com (2603:10a6:102:7b::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d407d71a-efbc-49e0-4bc4-08d9ebd138d7 X-MS-TrafficTypeDiagnostic: VI1PR07MB6286:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8273; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: CRFauHOYHxD+e722Ps3dSW9pp1RhzFzdzQQ+2ti3ByjC+c4gIaZ1x/+LmH+EATum/X5m444w3fVTIvwiOod818D/SdwNLNsQg0t8pcnUZb1HeNltRUSInAARaBJXdLzys8KrEPFjqOvdRl7NAd0jdLSVSKijs3q3wW0XuQmmfy0WVWLDhDMkzIEy7xLnn3odnosvF+Bp4Zxwnw6RajBcyWxHPpiK92S/q+TpYJ/FqTS4s5fswM8dUuAZekXUM0GqaTD21LMRfbGPIoW0Lz4VKE6spaQghelztJRHctd5fagyZ14rroJCGg8QUqFbtu+8z8BRwVMTROOb9OCZZblFFoRmG8uuR+bnj/iTw37t4imsPVMCialMlw3Z1F7WjlyNAc1zTAsDny7vkniFevD+DcuYeUrDrJzn7GSS5WHstTfAuhi43cCBkWktW026mhCx4BI8FCc3WRYBPMz1QFD/FtWNLGXGFaMzxdSlGh+XtiyMeFZOAQbRP7iF/Zp3WRslo6sAyko/kJUtRWE+nMVr6FrwOaiR8K2/jPib2eR5J8awTJRkbvVCK4NiN0qNybo7GaGkRW2Ze0Qx1DA7gK/10yvBUJKwWehi4g/JCGR7+bOis4Hwv5YyGsW++TqHSPbOTlzzhWcxStSYrdfVTZvzaWSVIpxIAncaltyuuncMC1tJRIULfn4p+U5TjUo7aIu3DRvKDI9A0xn9AdTfm6/HgF1rnLuCeB7EGTToUlwmrGY= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PR3PR07MB6921.eurprd07.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(26005)(6486002)(966005)(508600001)(83380400001)(6512007)(6506007)(6666004)(38100700002)(86362001)(6916009)(316002)(36756003)(54906003)(66946007)(44832011)(8936002)(5660300002)(66476007)(66556008)(2906002)(82960400001)(4326008)(8676002)(2616005)(1076003)(186003)(107886003)(30864003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: swE82kNj65EhxsH6T17lPc+8lFb/uD5Hlx7eBiv5uB07WJQ88/YFRuEiEbZZ2s0L8DTp0ZkgLMAtYrM6nDV24sFUHzA4NRo29lUtlh0Xj+LCXQuOxztbGRGrwMPo6hlOJ3fyq9gK+dttAZ+1wvNnGU+y6YGv7JT5xCPXT30YNZ/VJH2ZZs+gJpE6fSLgJNJE5HTJNo6VVNN13y7dlR65D2YT+o2rQmcqYwrYWPqjFIsdQ4T+0qDkgaaAyGyYnB9FY5swUvjYZi0j5H/uTeA5FTHetb/mVbFmpF1ebRl4AM494QB/00VIW//yWSA27fy6XWy6+fVsG5zlM3vtSNlJ646oJz5Tftq9DmGCl42R9V6bQPxHNUphfIxxRo9kgGNZ2s82y5Z4N1Gsl82d8xN3GVVRyHkVRbexLduiWR4uFpUNxrceXupp4JWNbWc8chX8p+ZqV7n4AZ+LT7Au1Wv4u7AH2P4VjsXDq91gpCSat1rmtLtFuV4XP3ryG+bAaGJfc4DCfoRsM2Kjm6d3GQrXcv8l0eaTlMgEBXYrOk6tEUzFFYRQ7gXzp6ic8vPV1uab5LXKmvJDBN9MO5zdF+PS+Kk0Ox07TtZerzuGNjFYeGRFaF9H7phuKI9kK3CCFdVWCknO3baXcOkjBwWuorc6W4nmMlws+NLb1nux21WOY0BOecZg3M7M+YtajNAaXFPYn1ZRtuEkPzlpUEoxAceO+T9uExUAPSBZMZQUAXPV5Fj2bjAf8VG0dG8LvY8o1kjwCWkecOGizuWKU/ZsAJIemll+nNwHeJm0ou7OcbR2fwnhCj+Sjm0cSybMnvOfU4wdBGoqRJabF5Fh0piZhwgldDMAFZ52m8jiIIEXt3MoyzDkxKZdxC1w8cfvTA1CeLd24hGWae8IIXY9AaCCVvzPvU78yMdCfe3YVUARy88p86DA/NGP/CjIDVi94iGuyCKLmCsprcmmleOwmk4d8KPGbSCs0mY8C4ZuJrHrB43xtyHNycUDWWuAA8O79YEI1fHyb0zO+E8EDzU009pmUmXf1PS9ZdeQlSEPx8TrIbwNAwFGvOv+268j84vaZdI1snTQnafVddMDzTx6NG1bLB70OeR2bNYzULJrf+xV7kKU8Wj/XBpxwnstKjwusr5bFRA9oNP8qbR/4cqUbFpMKu8tWx8rMpTXx1u1As/GnQ4HoUaCH+dVWgOh3JJHpiVoxXQ1rJx/72Y4tehDbuQBPIsgFeMaqEkj++9LWGLe7AIdVO4aD2Ot04n+5az8sj+xhmWYqW1KcFLgDSPFIGgg+aW3cSVmYlWQoulmsQQQgbtl9/DO1hAsP9a+4s86DEFA3mhVkg4lT+zKIJmx9DqGVxj//s+B1Z4uUnVE/dEwODXE9lhhSieRRPt+8JLAM35AmxvQKC8aCP9yEm9p7f1zvUf4IC5dP4mOToyYrGnwD8y1Fxfrc2jrR6j3X2l5vUqz3KKLXWdU5ObUj4lbjiOVl4qd+PWgP6IDsVqgfjYWzH/edvjTkg/d0MadHW2CurEX8GXR1TmA0dEEAuyoPdG7LujxgMLJen7qSrKwKqwQHkeUsQ/7g+GxXzF2zVZca7oZh5/oGVA6xk81Z4KmPJ3cJa1qorMR3oN3iLBDlmwNF/2tbeM= X-OriginatorOrg: nokia.com X-MS-Exchange-CrossTenant-Network-Message-Id: d407d71a-efbc-49e0-4bc4-08d9ebd138d7 X-MS-Exchange-CrossTenant-AuthSource: PR3PR07MB6921.eurprd07.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Feb 2022 13:36:48.5211 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 5d471751-9675-428d-917b-70f44f9630b0 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 2v0Syff9K+I18YKj2jJGfxNcLVCUw0MYwfTd6TmG+1m0ncCKdbaSg56Nhu2+cI4iuVioZgcvHHtnRovREB5uuw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR07MB6286 Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org Add support for Texas Instruments TMP464 temperature sensor IC. TI's TMP464 is an I2C temperature sensor chip. This chip is similar to TI's TMP421 chip, but with 16bit-wide registers (instead of 8bit-wide registers). The chip have one local sensor and four remote sensors. Signed-off-by: Agathe Porte Acked-by: Krzysztof Adamski --- Documentation/hwmon/tmp464.rst | 43 +++ MAINTAINERS | 7 + drivers/hwmon/Kconfig | 10 + drivers/hwmon/Makefile | 1 + drivers/hwmon/tmp464.c | 472 +++++++++++++++++++++++++++++++++ 5 files changed, 533 insertions(+) create mode 100644 Documentation/hwmon/tmp464.rst create mode 100644 drivers/hwmon/tmp464.c diff --git a/Documentation/hwmon/tmp464.rst b/Documentation/hwmon/tmp464.rst new file mode 100644 index 000000000000..8990554194de --- /dev/null +++ b/Documentation/hwmon/tmp464.rst @@ -0,0 +1,43 @@ +.. SPDX-License-Identifier: GPL-2.0 + +Kernel driver tmp421 +==================== + +Supported chips: + + * Texas Instruments TMP464 + + Prefix: 'tmp464' + + Addresses scanned: I2C 0x48, 0x49, 0x4a and 0x4b + + Datasheet: http://focus.ti.com/docs/prod/folders/print/tmp464.html + +Authors: + + Agathe Porte + +Description +----------- + +This driver implements support for Texas Instruments TMP464 +temperature sensor chip. This chip implement one local four remote +sensors. Temperature is measured in degrees Celsius. The chips are +wired over I2C/SMBus and specified over a temperature range of -40 to ++125 degrees Celsius. Resolution for both the local and remote +channels is 0.0625 degree C. + +The chips support only temperature measurement. The driver exports +the temperature values via the following sysfs files: + +**temp[1-5]_input** + +Each sensor can be individually disabled via Devicetree or from sysfs +via: + +**temp[1-5]_enable** + +If labels were specified in Devicetree, additional sysfs files will +be present: + +**temp[1-5]_label** diff --git a/MAINTAINERS b/MAINTAINERS index 3e461db9cd91..fa0b27a8fe28 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -19457,6 +19457,13 @@ S: Maintained F: Documentation/hwmon/tmp401.rst F: drivers/hwmon/tmp401.c +TMP464 HARDWARE MONITOR DRIVER +M: Agathe Porte +L: linux-hwmon@vger.kernel.org +S: Maintained +F: Documentation/hwmon/tmp464.rst +F: drivers/hwmon/tmp464.c + TMP513 HARDWARE MONITOR DRIVER M: Eric Tremblay L: linux-hwmon@vger.kernel.org diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig index 8df25f1079ba..52b4f5688b45 100644 --- a/drivers/hwmon/Kconfig +++ b/drivers/hwmon/Kconfig @@ -1979,6 +1979,16 @@ config SENSORS_TMP421 This driver can also be built as a module. If so, the module will be called tmp421. +config SENSORS_TMP464 + tristate "Texas Instruments TMP464 and compatible" + depends on I2C + help + If you say yes here you get support for Texas Instruments TMP464 + temperature sensor chip. + + This driver can also be built as a module. If so, the module + will be called tmp464. + config SENSORS_TMP513 tristate "Texas Instruments TMP513 and compatibles" depends on I2C diff --git a/drivers/hwmon/Makefile b/drivers/hwmon/Makefile index 185f946d698b..a1f2d6686227 100644 --- a/drivers/hwmon/Makefile +++ b/drivers/hwmon/Makefile @@ -194,6 +194,7 @@ obj-$(CONFIG_SENSORS_TMP103) += tmp103.o obj-$(CONFIG_SENSORS_TMP108) += tmp108.o obj-$(CONFIG_SENSORS_TMP401) += tmp401.o obj-$(CONFIG_SENSORS_TMP421) += tmp421.o +obj-$(CONFIG_SENSORS_TMP464) += tmp464.o obj-$(CONFIG_SENSORS_TMP513) += tmp513.o obj-$(CONFIG_SENSORS_VEXPRESS) += vexpress-hwmon.o obj-$(CONFIG_SENSORS_VIA_CPUTEMP)+= via-cputemp.o diff --git a/drivers/hwmon/tmp464.c b/drivers/hwmon/tmp464.c new file mode 100644 index 000000000000..f294e12b1e39 --- /dev/null +++ b/drivers/hwmon/tmp464.c @@ -0,0 +1,472 @@ +// SPDX-License-Identifier: GPL-2.0-or-later + +/* Driver for the Texas Instruments TMP464 SMBus temperature sensor IC. + * Supported models: TMP464 + + * Copyright (C) 2022 Agathe Porte + * Preliminary support by: + * Lionel Pouliquen + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +/* Addresses to scan */ +static const unsigned short normal_i2c[] = { 0x48, 0x49, 0x4a, 0x4b, + I2C_CLIENT_END }; + +enum chips { tmp464 }; + +#define MAX_CHANNELS 5 /* chan 0 is internal, 1-4 are remote */ + +/* TMP464 registers */ +#define TMP464_REG_THERM_STATUS 0x21 +#define TMP464_REG_THERM2_STATUS 0x22 + +static const u8 TMP464_TEMP[MAX_CHANNELS] = { 0x00, 0x01, 0x02, 0x03, 0x04 }; +static const u8 TMP464_THERM_LIMIT[MAX_CHANNELS] = { 0x39, 0x42, 0x4A, 0x52, 0x5A }; +static const u8 TMP464_THERM2_LIMIT[MAX_CHANNELS] = { 0x3A, 0x43, 0x4B, 0x53, 0x5B }; +static const u8 TMP464_OFFSET_REMOTE[MAX_CHANNELS] = { 0x40, 0x48, 0x50, 0x58 }; +#define TMP464_N_FACTOR_REG_1 0x41 +#define TMP464_CONFIG_REG 0x30 + +/* alarm offset in THERM_STATUS/THERM2_STATUS register */ +#define TMP464_ALARM_BASE_NUMBER 7 + +#define TMP464_REG_THERM_HYSTERESIS 0x38 + +#define TMP464_MANUFACTURER_ID_REG 0xFE +#define TMP464_DEVICE_ID_REG 0xFF + +/* Flags */ +#define TMP464_CONFIG_SHUTDOWN BIT(5) +#define TMP464_CONFIG_RANGE 0x04 +#define TMP464_CONFIG_REG_REN(x) (BIT(7 + (x))) +#define TMP464_CONFIG_REG_REN_MASK GENMASK(11, 7) +#define TMP464_CONFIG_CONVERSION_RATE_B0 2 +#define TMP464_CONFIG_CONVERSION_RATE_MASK GENMASK(TMP464_CONFIG_CONVERSION_RATE_B0, \ + TMP464_CONFIG_CONVERSION_RATE_B0 + 2) + +/* Manufacturer / Device ID's */ +#define TMP464_MANUFACTURER_ID 0x5449 +#define TMP464_DEVICE_ID 0x1468 + + +static const struct i2c_device_id tmp464_id[] = { + { "tmp464", 0 }, + { } +}; +MODULE_DEVICE_TABLE(i2c, tmp464_id); + +static const struct of_device_id __maybe_unused tmp464_of_match[] = { + { + .compatible = "ti,tmp464", + .data = (void *)5 + }, + {}, +}; +MODULE_DEVICE_TABLE(of, tmp464_of_match); + + +struct tmp464_channel { + const char *label; + bool enabled; + s16 temp; +}; + +struct tmp464_data { + struct i2c_client *client; + struct mutex update_lock; + u32 temp_config[MAX_CHANNELS + 1]; + struct hwmon_channel_info temp_info; + const struct hwmon_channel_info *info[2]; + struct hwmon_chip_info chip; + bool valid; + unsigned long last_updated; + unsigned long channels; + u16 config; + struct tmp464_channel channel[MAX_CHANNELS]; +}; + + +/* funcs */ + +static int temp_from_raw(u16 reg) +{ + int temp = 0; + + temp = (reg >> 8) * 2000; + temp += ((reg & 0xFF) >> 3) * 625 / 10; + + return temp; +} + +static int tmp464_update_device(struct tmp464_data *data) +{ + struct i2c_client *client = data->client; + int ret = 0; + int i; + + mutex_lock(&data->update_lock); + + if (time_after(jiffies, data->last_updated + (HZ / 2)) || + !data->valid) { + ret = i2c_smbus_read_word_swapped(client, TMP464_CONFIG_REG); + if (ret < 0) + goto exit; + data->config = ret; + + for (i = 0; i < data->channels; i++) { + ret = i2c_smbus_read_word_swapped(client, TMP464_TEMP[i]); + if (ret < 0) + goto exit; + data->channel[i].temp = ret; + } + data->last_updated = jiffies; + data->valid = true; + } + +exit: + mutex_unlock(&data->update_lock); + + if (ret < 0) { + data->valid = false; + return ret; + } + + return 0; +} + +static int tmp464_enable_channels(struct tmp464_data *data) +{ + int err; + struct i2c_client *client = data->client; + struct device *dev = &client->dev; + int old = i2c_smbus_read_word_swapped(client, TMP464_CONFIG_REG); + int new, i; + + if (old < 0) { + dev_err(dev, "error reading register, can't disable channels\n"); + return old; + } + + new = old & ~TMP464_CONFIG_REG_REN_MASK; + for (i = 0; i < data->channels; i++) + if (data->channel[i].enabled) + new |= TMP464_CONFIG_REG_REN(i); + + if (new == old) + return 0; + + err = i2c_smbus_write_word_data(client, TMP464_CONFIG_REG, new); + if (err < 0) + dev_err(dev, "error writing register, can't disable channels\n"); + + return err; +} + +static int tmp464_read(struct device *dev, enum hwmon_sensor_types type, + u32 attr, int channel, long *val) +{ + struct tmp464_data *tmp464 = dev_get_drvdata(dev); + int ret = 0; + + ret = tmp464_update_device(tmp464); + if (ret) + return ret; + + switch (attr) { + case hwmon_temp_input: + if (!tmp464->channel[channel].enabled) + return -ENODATA; + *val = temp_from_raw(tmp464->channel[channel].temp); + return 0; + case hwmon_temp_enable: + *val = tmp464->channel[channel].enabled; + return 0; + default: + return -EOPNOTSUPP; + } + +} + +static int tmp464_read_string(struct device *dev, enum hwmon_sensor_types type, + u32 attr, int channel, const char **str) +{ + struct tmp464_data *data = dev_get_drvdata(dev); + + *str = data->channel[channel].label; + + return 0; +} + +static int tmp464_write(struct device *dev, enum hwmon_sensor_types type, + u32 attr, int channel, long val) +{ + struct tmp464_data *data = dev_get_drvdata(dev); + int ret; + + switch (attr) { + case hwmon_temp_enable: + data->channel[channel].enabled = val; + ret = tmp464_enable_channels(data); + break; + default: + ret = -EOPNOTSUPP; + } + + return ret; +} + +static umode_t tmp464_is_visible(const void *data, enum hwmon_sensor_types type, + u32 attr, int channel) +{ + switch (attr) { + case hwmon_temp_input: + return 0444; + case hwmon_temp_label: + return 0444; + case hwmon_temp_enable: + return 0644; + default: + return 0; + } +} + +static int tmp464_init_client(struct tmp464_data *data) +{ + int config, config_orig; + struct i2c_client *client = data->client; + + /* Set the conversion rate to 2 Hz */ + config = i2c_smbus_read_word_swapped(client, TMP464_CONFIG_REG); + if (config < 0) { + dev_err(&client->dev, + "Could not read configuration register (%d)\n", config); + return config; + } + + config_orig = config; + config &= ~TMP464_CONFIG_CONVERSION_RATE_MASK; + config |= (0x05) << TMP464_CONFIG_CONVERSION_RATE_B0; + + if (config != config_orig) { + dev_info(&client->dev, "Set conversion rate to 2 Hz\n"); + i2c_smbus_write_word_data(client, TMP464_CONFIG_REG, config); + } + + /* Start conversions (disable shutdown if necessary) */ + config = i2c_smbus_read_word_swapped(client, TMP464_CONFIG_REG); + if (config < 0) { + dev_err(&client->dev, + "Could not read configuration register (%d)\n", config); + return config; + } + + config_orig = config; + config &= ~TMP464_CONFIG_SHUTDOWN; + + if (config != config_orig) { + dev_info(&client->dev, "Enable monitoring chip\n"); + i2c_smbus_write_word_data(client, TMP464_CONFIG_REG, config); + } + + return tmp464_enable_channels(data); +} + +static int tmp464_detect(struct i2c_client *client, + struct i2c_board_info *info) +{ + enum chips kind; + struct i2c_adapter *adapter = client->adapter; + static const char * const names[] = { + "TMP464" + }; + u8 reg; + + if (!i2c_check_functionality(adapter, I2C_FUNC_SMBUS_WORD_DATA)) + return -ENODEV; + + reg = i2c_smbus_read_word_swapped(client, TMP464_MANUFACTURER_ID_REG); + if (reg != TMP464_MANUFACTURER_ID) + return -ENODEV; + + /* Check for "always return zero" bits */ + reg = i2c_smbus_read_word_swapped(client, TMP464_REG_THERM_STATUS); + if (reg & 0x1f) + return -ENODEV; + reg = i2c_smbus_read_word_swapped(client, TMP464_REG_THERM2_STATUS); + if (reg & 0x1f) + return -ENODEV; + + reg = i2c_smbus_read_word_swapped(client, TMP464_DEVICE_ID_REG); + if (reg < 0) + return reg; + switch (reg) { + case TMP464_DEVICE_ID: + kind = tmp464; + break; + default: + return -ENODEV; + } + + strscpy(info->type, tmp464_id[kind].name, I2C_NAME_SIZE); + dev_info(&adapter->dev, "Detected TI %s chip at 0x%02x\n", + names[kind], client->addr); + + return 0; +} + +static int tmp464_probe_child_from_dt(struct i2c_client *client, + struct device_node *child, + struct tmp464_data *data) + +{ + struct device *dev = &client->dev; + u32 i; + s32 val; + int err; + + err = of_property_read_u32(child, "reg", &i); + if (err) { + dev_err(dev, "missing reg property of %pOFn\n", child); + return err; + } + + if (i >= data->channels) { + dev_err(dev, "invalid reg %d of %pOFn\n", i, child); + return -EINVAL; + } + + of_property_read_string(child, "label", &data->channel[i].label); + if (data->channel[i].label) + data->temp_config[i] |= HWMON_T_LABEL; + + data->channel[i].enabled = of_device_is_available(child); + + err = of_property_read_s32(child, "ti,n-factor", &val); + if (!err) { + if (i == 0) { + dev_err(dev, "n-factor can't be set for internal channel\n"); + return -EINVAL; + } + + if (val > 127 || val < -128) { + dev_err(dev, "n-factor for channel %d invalid (%d)\n", + i, val); + return -EINVAL; + } + i2c_smbus_write_word_data(client, TMP464_N_FACTOR_REG_1 + i - 1, + val); + } + + return 0; +} + +static int tmp464_probe_from_dt(struct i2c_client *client, struct tmp464_data *data) +{ + struct device *dev = &client->dev; + const struct device_node *np = dev->of_node; + struct device_node *child; + int err; + + for_each_child_of_node(np, child) { + if (strcmp(child->name, "channel")) + continue; + + err = tmp464_probe_child_from_dt(client, child, data); + if (err) { + of_node_put(child); + return err; + } + } + + return 0; +} + +static const struct hwmon_ops tmp464_ops = { + .is_visible = tmp464_is_visible, + .read = tmp464_read, + .read_string = tmp464_read_string, + .write = tmp464_write, +}; + +static int tmp464_probe(struct i2c_client *client) +{ + struct device *dev = &client->dev; + struct device *hwmon_dev; + struct tmp464_data *data; + int i, err; + + if (!i2c_check_functionality(client->adapter, + I2C_FUNC_SMBUS_WORD_DATA)) { + dev_err(&client->dev, "i2c functionality check failed\n"); + return -ENODEV; + } + data = devm_kzalloc(dev, sizeof(struct tmp464_data), GFP_KERNEL); + if (!data) + return -ENOMEM; + + mutex_init(&data->update_lock); + if (client->dev.of_node) + data->channels = (unsigned long) + of_device_get_match_data(&client->dev); + else + data->channels = i2c_match_id(tmp464_id, client)->driver_data; + data->client = client; + + for (i = 0; i < data->channels; i++) { + data->temp_config[i] = HWMON_T_INPUT | HWMON_T_ENABLE; + data->channel[i].enabled = true; + } + + err = tmp464_probe_from_dt(client, data); + if (err) + return err; + + err = tmp464_init_client(data); + if (err) + return err; + + data->chip.ops = &tmp464_ops; + data->chip.info = data->info; + + data->info[0] = &data->temp_info; + + data->temp_info.type = hwmon_temp; + data->temp_info.config = data->temp_config; + + hwmon_dev = devm_hwmon_device_register_with_info(dev, client->name, + data, + &data->chip, + NULL); + + return PTR_ERR_OR_ZERO(hwmon_dev); +} + +static struct i2c_driver tmp464_driver = { + .class = I2C_CLASS_HWMON, + .driver = { + .name = "tmp464", + .of_match_table = of_match_ptr(tmp464_of_match), + }, + .probe_new = tmp464_probe, + .id_table = tmp464_id, + .detect = tmp464_detect, + .address_list = normal_i2c, +}; + +module_i2c_driver(tmp464_driver); + +MODULE_AUTHOR("Agathe Porte "); +MODULE_DESCRIPTION("Texas Instruments TMP464 temperature sensor driver"); +MODULE_LICENSE("GPL");