From patchwork Mon Jul 3 14:08:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: JuenKit Yip X-Patchwork-Id: 13300182 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 66DF1EB64DC for ; Mon, 3 Jul 2023 14:09:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230041AbjGCOJe (ORCPT ); Mon, 3 Jul 2023 10:09:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230513AbjGCOJF (ORCPT ); Mon, 3 Jul 2023 10:09:05 -0400 Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01olkn2080.outbound.protection.outlook.com [40.92.65.80]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41C5FE51; Mon, 3 Jul 2023 07:09:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ARs+kX7hjJnGqC/ZGQ9sdJLBy/FNjKRHAXzcEycU3FG/1SWtMVHOpqHQQMkS0fkKOsmDtFD6MwNg5oRuhXR+jIWZxBaLUPoZsTB48N3NphL2+VzTk+dxKYNtBOGdvCXiTfYFR7URhGg1CEowGwB9lqlGq5ltP/yMcNKG0q0t0X+itkKKYAb86aruLDmEfxn90D87rezYCyQJn+2MvJEUu3+Rl/0t2K3y/00xkDRYiOXmJrxrFxBEGgZOlLDPDcxAN5zPVE/U0JA1/wTknBT8gvd4+4CeAd3lzmO276J3a86eg3utC/qjZixvQ+jXZyU+GgYr1xuIoKbauhbesAylMw== 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=sv2o6+vjhzW6qaV1JOzkZVGbSpstwXHterdeoFQmHBY=; b=KIG3tfFhBRvMByCYb9wsCoTE1rIT7jKy8eaGCwJVsnfXIjQUb9xwSfl/WkTwxfwrt283IJKtbLkOjJsonT09EOAzdbMk+6Y+tRf3yThqZgWnWrj3JnPfAEqnBdFVlr/1bvauNwXqaL7wL5zItLd+7kA+1JD4mCQEGFGv160SW30MZiWLCPEcTjv+mVLw9ZYW/vIFuIJD1S4sIhjs+7z//akojBt/vEYzIhEhIDWuLbxeB/K5nBeqDsCj+abC8WdJB6djAeFWfZfLJFKGx0lSMdq2lI4H6KGS/6Z8Y/YfBrqosNrJdUTEAiT8OFfsoLR/NzBzMhcLLnbDDDOHAhx+hA== 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=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=sv2o6+vjhzW6qaV1JOzkZVGbSpstwXHterdeoFQmHBY=; b=bxhS3yAZ3wr1lOqfgpDSArdVYcv0ZE3Nv6AU+MDGylJ+J0kGE1wjbs5AbJ0m4kVGA/skncshv/5xPgtey/05QkH7FvQTNlOOSvw9bcQXr3XHchyD5MIjCOtqsnbh4GKyRWIZNfQYn6v39i+JXHbz14igGoaX6gdEkLZmpwO0RtQ8UazeeA5Vwo+4lZ0XXADPUpPTmAkwWQXW3lkqfdyBY3YDTTCmeigvhtq61BuzCeBz/zSClcW4rYbU/IQtC/OiwPjkbvNc6CT9EH85MoYti2kZ/jnTEOZWSjphicjJ3DfvcKLIhukuGFjGV4mCRG5lwmt8GUnLcnOmEJBhVtDB3g== Received: from DB4PR10MB6261.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:10:383::21) by AM7PR10MB3891.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:178::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6544.24; Mon, 3 Jul 2023 14:09:02 +0000 Received: from DB4PR10MB6261.EURPRD10.PROD.OUTLOOK.COM ([fe80::628a:d617:46f:2a88]) by DB4PR10MB6261.EURPRD10.PROD.OUTLOOK.COM ([fe80::628a:d617:46f:2a88%7]) with mapi id 15.20.6544.024; Mon, 3 Jul 2023 14:09:02 +0000 From: JuenKit Yip To: jdelvare@suse.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linux@roeck-us.net Cc: linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, JuenKit Yip Subject: [PATCH v3 3/3] dt-bindings: hwmon: add sht3x devicetree binding Date: Mon, 3 Jul 2023 22:08:18 +0800 Message-ID: X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230703140818.427403-1-JuenKit_Yip@hotmail.com> References: <20230703140818.427403-1-JuenKit_Yip@hotmail.com> X-TMN: [/ddmm/QR9sWj20GwZqie23rmJjUZLKm8Ob13MgHFT2xvFEa++P8AjNrO/8KP5INA] X-ClientProxiedBy: TYCP286CA0023.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:263::10) To DB4PR10MB6261.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:10:383::21) X-Microsoft-Original-Message-ID: <20230703140818.427403-3-JuenKit_Yip@hotmail.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB4PR10MB6261:EE_|AM7PR10MB3891:EE_ X-MS-Office365-Filtering-Correlation-Id: 85df2f39-12c2-4ab5-cc1e-08db7bcf0d5a X-MS-Exchange-SLB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bkiE+S5dqYSVso83uDVEFrZvKXnYePRJWm+47selhO2LcZ7ITjIq4LLweZTKb+DL5h0JcnUserLwnr5yxhnHGyJZmMSuHQlS1efPC7sYx6Y3i5A/9B3pYjW+P3vJ7QHP8pMMNEVi23tqrQ5zJFZdGTrqsmVyalCN4IUY8II9xqGEjNHNqQyZHM0+KrcXcb4ObDyxKqgj6pfxYg+Q0P57SUws+aV/DbpexuHNZu+izClIl4dT+nKFPE5ye2QuqThU2GYWUJreuImpmNwGJoRx0D20AxrB+W71HnUJ0y/ZJinxa0wdwW7nrjpSV2SxYdUJlaBKCJ2IQPCfumfP9RFtdKeMiKn7kQDdHH+q9VPx0lkbBEefReFMAnh/cejSFVirLAay677e3cIvm/iHYBFPzhsDCC3JffJv1BtFt0ZjseYBCFv5oALwG14ENwWmuSAFPW9fWQdfZVcNgayS0pdYk/o6eQuBCLX1lOdQxOa+6J1J9r+hSh+Y08vJEdvpmUdVxFvtbOwMBCfUjy+18etK+wkOyfZW2rTW+LWgmT6CjH6P7agRvEddqQFXmOeqD/+y836G1kU9KhX+7qNwYoy8iXiCvQRmnSTjie3IscorrmbhhYLO1raqa3R0xN+OLkVPImuo5SMJW9P9oBGLxmRQIh1giaDpYPJBiVmUtrPJf3xymrr6zev/Gk4g74J5mqS0Kxtyb/UejsNOQiY1YU0+8GUOxX+feinysdKs7rZl7Okm7HJYIveb6nqnkqCmo= X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-6b909.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: 85df2f39-12c2-4ab5-cc1e-08db7bcf0d5a X-MS-Exchange-CrossTenant-AuthSource: DB4PR10MB6261.EURPRD10.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jul 2023 14:09:01.9962 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR10MB3891 Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org add sht3x devicetree binding files Signed-off-by: JuenKit Yip --- v3: - fix wildcards problem - add vdd-supply property .../bindings/hwmon/sensirion,sht3x.yaml | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/sensirion,sht3x.yaml diff --git a/Documentation/devicetree/bindings/hwmon/sensirion,sht3x.yaml b/Documentation/devicetree/bindings/hwmon/sensirion,sht3x.yaml new file mode 100644 index 000000000000..bef2eb492a47 --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/sensirion,sht3x.yaml @@ -0,0 +1,45 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/hwmon/sensirion,sht3x.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Sensirion SHT3x-DIS humidity and temperature sensor + +maintainers: + - JuenKit Yip + +properties: + compatible: + enum: + - sensirion,sht30 + - sensirion,sht31 + - sensirion,sht35 + - sensirion,sts30 + - sensirion,sts31 + - sensirion,sts35 + + reg: + maxItems: 1 + + vdd-supply: + description: regulator that drives the VDD pin + +required: + - compatible + - reg + - vdd-supply + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + sensor@4a { + compatible = "sensirion,sht31"; + reg = <0x4a>; + vdd-supply = <®_sht31>; + }; + };