From patchwork Wed Feb 9 15:53:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Agathe Porte X-Patchwork-Id: 12740421 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 0E5E3C433F5 for ; Wed, 9 Feb 2022 15:53:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236316AbiBIPxb (ORCPT ); Wed, 9 Feb 2022 10:53:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236319AbiBIPx2 (ORCPT ); Wed, 9 Feb 2022 10:53:28 -0500 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80132.outbound.protection.outlook.com [40.107.8.132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37880C05CB82 for ; Wed, 9 Feb 2022 07:53:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AiVBYA28z3Jk5Jbs875NBmIvvM0Vx31VdblDDcizdptLDe9jMTr4JS500Ve7F26wy9FWzpimyufFTQIq5xa/GzUwECaRYXylrYqxJAN/5aWEZralBUrzKzrro4m5RhJZdLYgKmJdk+oRIH36qFaxRqHeM2zNH3LQIWvaa+z0zk87esbhwOrAUrHrbPn0aTUBAg1ZHkUmTkCxmOwEeeXIZBL9dIDfMSZW3nNYa3mltIGFY5HbrH5rjw5PtFNaTzbecIGCrKYpShOVph7nXEm3xdt0mjAiQIPm9xjW8d4sNzK73zvWW2pK1vwQ0LBZKvIl0D433RXZ2TSp9duwnzXkiw== 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=lu1STLv7KXcIh24/bT2J4P37kmjIyNblxS5mx2MkaMY=; b=av5uwshRsbCEbUS+9u4spVV1juhytFKCeQSiiPzyhUVVoE6u5pENpnXcU9bI4qs1yaDiTPVbFL4s3dW9mF3vQmxF1NiGLIVk/meQhCQSeArnxBMSd7d/4x9WTaOw6RIUG6BtKqr4LhOq+7P6E4VKUTV6MT2PNCrj5I65w4wBGEFso2UGopEYXUjedB4EIkIqkatilAkWHeMCa1UZTmtihmrKBmejEpJ08Tz4yLgMr5ReMz4w1OGXBwPeWhDCWTDrEnRKW0itFfRovRvbPkXkUjWFP8m188GIMXMKHjYldIl94WD9O9bXY/k5+useGOTAwIPlukVKTCyaQkSjrlCKDw== 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=lu1STLv7KXcIh24/bT2J4P37kmjIyNblxS5mx2MkaMY=; b=h0UYyMw8ruIQKagm5LTdvKGS1sq2Vr4pgwDUXx06vMJ6eU4zq+ScSxGkfXwkq1buERbx+C44hPO0LH7jarEkXSM7ENZasw+H/Z/FGQwoo9jCAvceJKc6ZNZqHm8RE0SswkuaKWDE4BiOft+pBx0BJIYSsHq3pvnGg/Ym0ioQeb8= 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 DBBPR07MB7627.eurprd07.prod.outlook.com (2603:10a6:10:1e8::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 15:53:28 +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 15:53:28 +0000 From: Agathe Porte To: linux-hwmon@vger.kernel.org Cc: Guenter Roeck , Jean Delvare , Krzysztof Adamski , Agathe Porte Subject: [PATCH v2 1/2] dt-bindings: hwmon: add tmp464.yaml Date: Wed, 9 Feb 2022 16:53:07 +0100 Message-Id: <20220209155308.88938-1-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: PR0P264CA0286.FRAP264.PROD.OUTLOOK.COM (2603:10a6:100:1::34) 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: e3d0c786-a527-45a8-6c24-08d9ebe4509e X-MS-TrafficTypeDiagnostic: DBBPR07MB7627: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: iRFVR0vXRFwmbBLQlS9E4Cl1P5r9r9Tv0FFtBNOnv2uLoXhx4BkOytba9GGzB3NsqszgoJUYenL8wzLiOaFRa069odRT8q2E/RsFvuK14AFb/fSHKhITsttO0YevEX6ftkn1DVmAfmhwgzLyQoBcA8+QqR5uxlCbqs0DjE8utP9muUxT+UQs3yL3eymMHQo5sQ6Sgmtu3rRUQK+e2SsK9Q9EXrLMn+lIQE0b6ASPWRqr0zFGobyVVqVsGjAVTkEnfjFva1fjilMLa9AaZgaUWSRE/uCRdQbCl/wE0+P2s5n7i6ZhcGBrpSAQ/S+lHid0VwD8UzHV3icoqVmzMYznFOPxEphfAU/j+nw92No7FW9rFI2MNJZ3T/MQbNmkniYdYiVv6y0eHj/4Gj5EIaT/RWQwoxxlwoROjdiayRfoDXNAyotrrQGZ4HQ/zFOygjor4mWzGx2Sx12Pao96qjJn8XVZH55gGoVzDyH4hKAnuDhOPtdlLm0Ndt08RtTLYI8gutZrQM0COoigipwHEIULqDomMUDgPd+kvlI0rm5ITbNw/t/iIuLrma596kBO2W7aMDqP8VasPpB3nzDrWO0nAX1BPzQFmCqqkgLqp38qT6Zltwqz6oS4p4Td26qaOiTo3LZsOj2TykyToViC+HnVrfTKoXJqULS8ZoTNEJz0QjTePLBpfv5TA1AUrtKl/QBviC1dTb//S+Na3Rv04XAf57Arqq7zonZrBrt4B5GU9BI= 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)(8676002)(2616005)(107886003)(6506007)(6512007)(4326008)(44832011)(36756003)(6666004)(8936002)(1076003)(86362001)(5660300002)(6486002)(66946007)(966005)(186003)(26005)(66556008)(66476007)(2906002)(6916009)(82960400001)(316002)(38100700002)(54906003)(508600001)(83380400001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?3fmr3EJImoOVYqqoj3gswFM+jEra?= =?utf-8?q?vfd9jQB17l1EhnO/+dfHpcRBOsoukVuksGd3dheuue2xqcVWsbXZPYkLlR4KnokHh?= =?utf-8?q?+A5KUmxUdHrSFzlX4UqiHGt49CMYTz/9aWhqIEAw5C8z10EXUdSs+Mj9+Ce8sz6Xj?= =?utf-8?q?Ppnt8CH+GNPcWYXlrUO4V/q5IczXkm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lCZ4XRl1lF8KYtzPGS80AfNm9YWSQlo6Jmvav?= =?utf-8?q?potCahjcAdWOXD2F14HIWqG8M2wpCSdwt9bn+gjmXtBgUdNfDpYTYZeKhB/pf+V7i?= =?utf-8?q?UXKzCvGVn2Liy8sdOzJH+FPkToh8px3gYqW3fUSP8XA3peokYZAhT9jZuesETmI88?= =?utf-8?q?q9gGPb0AkGw1Giw80gb0l4c9Es3h+g9G/0nlPf+x82ZBmkcnnHlIa9eYP9sx/ffDe?= =?utf-8?q?AN8zUGsR8MnuiiC3sANxzB4UFg6v40Rv/5YkrL4L8fwpI58JxhtMseD43VoRQGkW0?= =?utf-8?q?bzM9nqm+jkNq9N4EvCeIa+z28cDydEPmxO9CMniOe/o9kesBnF+058sDBBAnoGZOM?= =?utf-8?q?kexJYsK29HN+YIaYt9m+C/azL9nRuzZu337hL5dQcytuhIDRhWJXVCJbCXjgyQ2hX?= =?utf-8?q?VoBv/kbU0h6cZC8LoI2wWxSDdFOLEwMq4h7nN9XFYpmke0Wj2RnK1TA2clX4zaEvk?= =?utf-8?q?ZV451o5brtdTtgQe4N8iGcCS/x+4ou3X7WCVZICUlPVPsmy2g6gXY0c=3D?= X-OriginatorOrg: nokia.com X-MS-Exchange-CrossTenant-Network-Message-Id: e3d0c786-a527-45a8-6c24-08d9ebe4509e X-MS-Exchange-CrossTenant-AuthSource: PR3PR07MB6921.eurprd07.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Feb 2022 15:53:28.8359 (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: lkuvHQnqK72MNK8nRwVKDr3uYdit+TRHjiHQ80B1tfAK74gphF/RH/Y6MZFKWd/uyN+MZ2+nUa14g5TqfvrJOA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR07MB7627 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 ++++++++++++++++++ MAINTAINERS | 6 + 2 files changed, 112 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/ti,tmp464.yaml -- 2.34.1 diff --git a/Documentation/devicetree/bindings/hwmon/ti,tmp464.yaml b/Documentation/devicetree/bindings/hwmon/ti,tmp464.yaml new file mode 100644 index 000000000000..8eb43e82f5ad --- /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: + - Agathe Porte + +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"; + }; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 3e461db9cd91..136cd34be715 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -19457,6 +19457,12 @@ 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/devicetree/bindings/hwmon/ti,tmp464.yaml + TMP513 HARDWARE MONITOR DRIVER M: Eric Tremblay L: linux-hwmon@vger.kernel.org