From patchwork Tue Sep 21 10:28:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12507537 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9ADC7C433F5 for ; Tue, 21 Sep 2021 10:29:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7E69C61100 for ; Tue, 21 Sep 2021 10:29:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231890AbhIUKam (ORCPT ); Tue, 21 Sep 2021 06:30:42 -0400 Received: from smtp-relay-internal-0.canonical.com ([185.125.188.122]:42808 "EHLO smtp-relay-internal-0.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231849AbhIUKak (ORCPT ); Tue, 21 Sep 2021 06:30:40 -0400 Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 49FA03F32A for ; Tue, 21 Sep 2021 10:29:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1632220151; bh=ZNH+zxmaND7rR/DGahGvaHsh9Nt1sNcf9ALxvClhLkg=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=HN5VvmehAHiscpSf2dhdgOyEbpjuS5bvYJ/kSOtRW0YKtLMZAtyEpBqFN10ucNSte 7NOUwbzN1vyyUhSeu2UJr9lJ905ydJxgZEvjr0Lavnu/ln5pmm+IOC5/Dq0Bn9QIYs BH/bXHKQdxSKBKOwr2da8RHIAmSvK4SPu26ut+tIyQtfFhd2sqsIE5vnAYs14t3jXF izOUMt3w4R+K6W1IwRLTdi18MGnY29y8e3E5R66SswJm3bas+7nAY4P4UieWtJ/Ich 47HuofDexkSICFR8C6OOODoM3nXRLv58YfGENjzZ9M2J+7zXjVYrvySkn54Urupsld Ol5zuz4OuuKMg== Received: by mail-wr1-f71.google.com with SMTP id r9-20020a5d4989000000b0015d0fbb8823so8399533wrq.18 for ; Tue, 21 Sep 2021 03:29:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=ZNH+zxmaND7rR/DGahGvaHsh9Nt1sNcf9ALxvClhLkg=; b=OpByUYGUymcoRCjbtuXKU3rkX5bfefYVYOQd2PWjkTbK74E1ybPpgM4SzfzhbfevXz UTW+I6Adw/ocHZmbvIh6yRFVMNHQlKqLrh518to9UA2n4rFhNcj8jKLmwrrtfSlO2VRW 8cXh4H4hvNG2f8lCUgBzmU1Gtw1VH1s5oCJamE/lMrDFYHnQ5X4qjYTLt8u8Prvm6v3A HxUwQx5lBuY5LTTKs3KiKHDIzCTwMGx+9a/CFoDzz4xTGN6ChOCwcl2hoRRxnhmpRu4B JwFeSbXu+9/pJXLVrnShDDgTUskBrf/BnhJQy6wtg7u5SP9Ppc33Q9oszZ0OB+sLf8S2 bFEw== X-Gm-Message-State: AOAM5311V/2izsC/PEekrJahdrxDY91gZeJbGEqaz8n39GGIdgno3qlW vc5Hhdi1TO8sFe5rv+I1Iyge/108mdgayVCRAcKBUcx1kND85ECkRqkSLmO5eietzzdRCCOZcEd IRWdyp6KRmOHKfoSx/WTnedMJBBgzj4ya5GiWqAHY X-Received: by 2002:a5d:590a:: with SMTP id v10mr35069282wrd.87.1632220151042; Tue, 21 Sep 2021 03:29:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzjs+OrN5dFclOS7GJVsxhqz5MGX6J2vh/0CGCqdjnmGePtDYf5XKuf5XnQlhbubwp1F7GrzQ== X-Received: by 2002:a5d:590a:: with SMTP id v10mr35069266wrd.87.1632220150919; Tue, 21 Sep 2021 03:29:10 -0700 (PDT) Received: from localhost.localdomain (lk.84.20.244.219.dc.cable.static.lj-kabel.net. [84.20.244.219]) by smtp.gmail.com with ESMTPSA id m29sm20072380wrb.89.2021.09.21.03.29.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Sep 2021 03:29:10 -0700 (PDT) From: Krzysztof Kozlowski To: Jean Delvare , Guenter Roeck , Rob Herring , Jiri Kosina , Jonathan Cameron , Krzysztof Kozlowski , linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/6] dt-bindings: hwmon: ti,tmp108: convert to dtschema Date: Tue, 21 Sep 2021 12:28:27 +0200 Message-Id: <20210921102832.143352-1-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org Convert the TI TMP108 temperature sensor bindings to DT schema format. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring --- .../devicetree/bindings/hwmon/ti,tmp108.yaml | 50 +++++++++++++++++++ .../devicetree/bindings/hwmon/tmp108.txt | 18 ------- 2 files changed, 50 insertions(+), 18 deletions(-) create mode 100644 Documentation/devicetree/bindings/hwmon/ti,tmp108.yaml delete mode 100644 Documentation/devicetree/bindings/hwmon/tmp108.txt diff --git a/Documentation/devicetree/bindings/hwmon/ti,tmp108.yaml b/Documentation/devicetree/bindings/hwmon/ti,tmp108.yaml new file mode 100644 index 000000000000..eda55bbc172d --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/ti,tmp108.yaml @@ -0,0 +1,50 @@ +# SPDX-License-Identifier: GPL-2.0-only or BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/hwmon/ti,tmp108.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: TMP108 temperature sensor + +maintainers: + - Krzysztof Kozlowski + +properties: + compatible: + enum: + - ti,tmp108 + + interrupts: + items: + - description: alert interrupt + + reg: + maxItems: 1 + + "#thermal-sensor-cells": + const: 0 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + sensor@48 { + compatible = "ti,tmp108"; + reg = <0x48>; + interrupt-parent = <&gpio1>; + interrupts = <7 IRQ_TYPE_LEVEL_LOW>; + pinctrl-names = "default"; + pinctrl-0 = <&tmp_alrt>; + #thermal-sensor-cells = <0>; + }; + }; diff --git a/Documentation/devicetree/bindings/hwmon/tmp108.txt b/Documentation/devicetree/bindings/hwmon/tmp108.txt deleted file mode 100644 index 54d4beed4ee5..000000000000 --- a/Documentation/devicetree/bindings/hwmon/tmp108.txt +++ /dev/null @@ -1,18 +0,0 @@ -TMP108 temperature sensor -------------------------- - -This device supports I2C only. - -Requires node properties: -- compatible : "ti,tmp108" -- reg : the I2C address of the device. This is 0x48, 0x49, 0x4a, or 0x4b. - -Optional properties: -- interrupts: Reference to the TMP108 alert interrupt. -- #thermal-sensor-cells: should be set to 0. - -Example: - tmp108@48 { - compatible = "ti,tmp108"; - reg = <0x48>; - }; From patchwork Tue Sep 21 10:28:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12507535 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DA313C433EF for ; Tue, 21 Sep 2021 10:29:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BD84861100 for ; Tue, 21 Sep 2021 10:29:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231901AbhIUKan (ORCPT ); Tue, 21 Sep 2021 06:30:43 -0400 Received: from smtp-relay-internal-1.canonical.com ([185.125.188.123]:38526 "EHLO smtp-relay-internal-1.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231858AbhIUKal (ORCPT ); Tue, 21 Sep 2021 06:30:41 -0400 Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id D63113FE01 for ; Tue, 21 Sep 2021 10:29:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1632220152; bh=kkbd1KDb/nWZxhh/ldmlBfFp4mqYT4gxg/2gkTeLxNM=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=PMT63a9+wUj8Ked82vumhOIP8SXCE2PuQur5KgHRFab7DbRgg11SsczmvHYVnzGxU jZS/nCWhYtHkBLfGbH0+HBOQCIlQon3Sm2ussmqN5ZDV2xKXiYcBqaIgkMOozXHojf Hdc8kjeCWVciWkju4YG1llymsSIK5JjllLqvFx3b8u1wcCbVYQeYXUnYb5AsGFNgF7 hKFF3twn+GyEf4mBruYBp24aNTx2uuqIf03zwHzw8XQRNfhQpzzAIAl4KSCvynTaRz JSAhFA5BSfT0hZt3DLpZcix5muLbIw52dEd8YywZ4XhHrvsUAi9NDWhRBDQqPwFSS4 EYZFkfODfDXfw== Received: by mail-wr1-f71.google.com with SMTP id l9-20020adfc789000000b00160111fd4e8so3179466wrg.17 for ; Tue, 21 Sep 2021 03:29:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=kkbd1KDb/nWZxhh/ldmlBfFp4mqYT4gxg/2gkTeLxNM=; b=KUm9BGgfE8HU9qzMIphctGu8sO3dOuzMtEImfbsqZZchLWNy6UBXdqWyrzXafq8quH OHD5b6uJ2u2qX1jjoIczCt6O41k0GR8qRO9IsFRB96/CikO12v2PEt2IpoFIpXiSrjAC ctrcKG06o2sRmU5VfeRl3RKAZtRVCmzaQozMpQ37Yuk7D8p91k9C7bEPi5QW8RXpQqVY CkOxqwHZjquo/QFNAwN6F9HIVrpjU693Nvp2CCwDTgPVY1FJgsEiOzKEMm1eDeJb79u+ XGdGmzrQCfddSUGrCjGJhbtNAp8Z08nyK6ntV7Zw6nj2mXuqEw25ao7a9NL7HVRZNVaJ vBPA== X-Gm-Message-State: AOAM531vj8q64bOVS3HDWRTn6PwaJdlMfzZq/4YR3ETAhqeOzJrUwJiG ZMtNAdDrPl8n3/t8oJ/qqpt2FRLTXJ2qbipay/X1h0qcNWZ2PtYshDnTVmPCuK2snxh+4g7v/b+ fAJaLMWoWvuDQ6gfy2ysayB3ABcFaSVJqo4OXNnkb X-Received: by 2002:a5d:69c8:: with SMTP id s8mr33587487wrw.330.1632220152605; Tue, 21 Sep 2021 03:29:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJynCvd3iC/PeHFEd5pjxqSIDrSlRmcR2Me65OCSTR5w4e17865m6RoWwEe2gXcDFUzI51ZGtQ== X-Received: by 2002:a5d:69c8:: with SMTP id s8mr33587469wrw.330.1632220152423; Tue, 21 Sep 2021 03:29:12 -0700 (PDT) Received: from localhost.localdomain (lk.84.20.244.219.dc.cable.static.lj-kabel.net. [84.20.244.219]) by smtp.gmail.com with ESMTPSA id m29sm20072380wrb.89.2021.09.21.03.29.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Sep 2021 03:29:12 -0700 (PDT) From: Krzysztof Kozlowski To: Jean Delvare , Guenter Roeck , Rob Herring , Jiri Kosina , Jonathan Cameron , Krzysztof Kozlowski , linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/6] dt-bindings: hwmon: ti,tmp102: add bindings and remove from trivial devices Date: Tue, 21 Sep 2021 12:28:28 +0200 Message-Id: <20210921102832.143352-2-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210921102832.143352-1-krzysztof.kozlowski@canonical.com> References: <20210921102832.143352-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org The TI TMP102 temperature sensor does not fit into trivial devices bindings due to additional properties. Add separate bindings for it. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring --- .../devicetree/bindings/hwmon/ti,tmp102.yaml | 47 +++++++++++++++++++ .../devicetree/bindings/trivial-devices.yaml | 2 - 2 files changed, 47 insertions(+), 2 deletions(-) create mode 100644 Documentation/devicetree/bindings/hwmon/ti,tmp102.yaml diff --git a/Documentation/devicetree/bindings/hwmon/ti,tmp102.yaml b/Documentation/devicetree/bindings/hwmon/ti,tmp102.yaml new file mode 100644 index 000000000000..d3eff4fac107 --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/ti,tmp102.yaml @@ -0,0 +1,47 @@ +# SPDX-License-Identifier: GPL-2.0-only or BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/hwmon/ti,tmp102.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: TMP102 temperature sensor + +maintainers: + - Krzysztof Kozlowski + +properties: + compatible: + enum: + - ti,tmp102 + + interrupts: + maxItems: 1 + + reg: + maxItems: 1 + + "#thermal-sensor-cells": + const: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + sensor@48 { + compatible = "ti,tmp102"; + reg = <0x48>; + interrupt-parent = <&gpio7>; + interrupts = <16 IRQ_TYPE_LEVEL_LOW>; + #thermal-sensor-cells = <1>; + }; + }; diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Documentation/devicetree/bindings/trivial-devices.yaml index c9333fb81fdf..6ad0628741cf 100644 --- a/Documentation/devicetree/bindings/trivial-devices.yaml +++ b/Documentation/devicetree/bindings/trivial-devices.yaml @@ -317,8 +317,6 @@ properties: # I2C Touch-Screen Controller - ti,tsc2003 # Low Power Digital Temperature Sensor with SMBUS/Two Wire Serial Interface - - ti,tmp102 - # Low Power Digital Temperature Sensor with SMBUS/Two Wire Serial Interface - ti,tmp103 # Thermometer with SPI interface - ti,tmp121 From patchwork Tue Sep 21 10:28:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12507539 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-23.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 92280C433EF for ; Tue, 21 Sep 2021 10:29:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7A0A260F6B for ; Tue, 21 Sep 2021 10:29:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231926AbhIUKao (ORCPT ); Tue, 21 Sep 2021 06:30:44 -0400 Received: from smtp-relay-internal-1.canonical.com ([185.125.188.123]:38556 "EHLO smtp-relay-internal-1.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231897AbhIUKan (ORCPT ); Tue, 21 Sep 2021 06:30:43 -0400 Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 606B940291 for ; Tue, 21 Sep 2021 10:29:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1632220154; bh=1DUxWd5JqgocBkdimT7Y/A3y/8+TydWfjcWcCjG/nZs=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=PEBL8Fn1GpogFpKbTMJtaiI3scJ2udPV7Y4Cy6AuOHTs23QthrjztqkJ0Q51b/oy1 W6RbFrYtoiqdkzO+DrTpruKzdMSU0P99VmuDAB1N+EJGI/kwn40uE4/d7JWhbW9wFL GH0a83QuWSHN2TPdCD9G2ZXBjiZtxTYr/LLA1uEYEY+qvpW9qB1V/jwr3kad8Z78RV 8kqhjZ+bUO5mvGMNlNICYvY2y0J1fkhNDbp/XX71WWQs7wEQa8bNIIED1JvwTKcP+J 7wkLKyWXoX+s0JZe0V7Y425Av1QgFkeh3n1N73mJsMWFg7SvPO2Eoy9GcLUuMG0/zu N1Hg4LKx1FeKg== Received: by mail-wr1-f69.google.com with SMTP id r7-20020a5d6947000000b0015e0f68a63bso8449835wrw.22 for ; Tue, 21 Sep 2021 03:29:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=1DUxWd5JqgocBkdimT7Y/A3y/8+TydWfjcWcCjG/nZs=; b=HaJMWzvcx364uqVrfHpY44LmymKHAMvrYLobStvL/DWlho/LDpwjRsDWjKzdrIrEuX DVWeuU74lucryj370zzrtPTvDdSC7N6myDC1msOHNXpIPKgsYxZECsoz6dck0eInLfwt n9xAshY/0HURk6hdLsyO6PsV5j5O2NDl/OxNmRJS7RIBfmUXMzNm08F+o9GKoqPR/nIz RVoID46brfJYHUqv7fKJrbbQFZwDfRGRMZAGJOGReKKd+f8AHNNonkWq6CLuSobVQX7p eR8xejRLL2BNt0RY7baKnUSgLnsd9Tc8t80Li3gs369g11v8zOQ5p9GIRYgd3rpJICGK q8jw== X-Gm-Message-State: AOAM53093ETTge6MYEUoJ4It/X5RcTugz0pLXHYOjk6ptDJWY4QtnFq4 h/YeDmqcBxEBTzDOLKFzKtYBpGtRs2glb9g4cWATaAnL/xoa+z04O+WimwvpZWYnQArcGAXoj0a m1/3jEd02eK4do+UcrPPX+FohK2BWfSoEbE2D7tyr X-Received: by 2002:a5d:4f02:: with SMTP id c2mr34491879wru.10.1632220154081; Tue, 21 Sep 2021 03:29:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwRjy7wJN4+BNr8/OvaTDhceg6Yn0DsLx0lA30HZaclAHguEcpzI6IcaZ/1l4k9U+WOgBlPw== X-Received: by 2002:a5d:4f02:: with SMTP id c2mr34491860wru.10.1632220153891; Tue, 21 Sep 2021 03:29:13 -0700 (PDT) Received: from localhost.localdomain (lk.84.20.244.219.dc.cable.static.lj-kabel.net. [84.20.244.219]) by smtp.gmail.com with ESMTPSA id m29sm20072380wrb.89.2021.09.21.03.29.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Sep 2021 03:29:13 -0700 (PDT) From: Krzysztof Kozlowski To: Jean Delvare , Guenter Roeck , Rob Herring , Jiri Kosina , Jonathan Cameron , Krzysztof Kozlowski , linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/6] dt-bindings: hwmon: ibm,cffps: move to trivial devices Date: Tue, 21 Sep 2021 12:28:29 +0200 Message-Id: <20210921102832.143352-3-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210921102832.143352-1-krzysztof.kozlowski@canonical.com> References: <20210921102832.143352-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org The IBM Common Form Factor Power Supply Versions 1 and 2 bindings are trivial, so they can be integrated into trivial devices bindings. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring --- .../devicetree/bindings/hwmon/ibm,cffps1.txt | 26 ------------------- .../devicetree/bindings/trivial-devices.yaml | 6 +++++ MAINTAINERS | 1 - 3 files changed, 6 insertions(+), 27 deletions(-) delete mode 100644 Documentation/devicetree/bindings/hwmon/ibm,cffps1.txt diff --git a/Documentation/devicetree/bindings/hwmon/ibm,cffps1.txt b/Documentation/devicetree/bindings/hwmon/ibm,cffps1.txt deleted file mode 100644 index d9a2719f9243..000000000000 --- a/Documentation/devicetree/bindings/hwmon/ibm,cffps1.txt +++ /dev/null @@ -1,26 +0,0 @@ -Device-tree bindings for IBM Common Form Factor Power Supply Versions 1 and 2 ------------------------------------------------------------------------------ - -Required properties: - - compatible : Must be one of the following: - "ibm,cffps1" - "ibm,cffps2" - or "ibm,cffps" if the system - must support any version of the - power supply - - reg = < I2C bus address >; : Address of the power supply on the - I2C bus. - -Example: - - i2c-bus@100 { - #address-cells = <1>; - #size-cells = <0>; - #interrupt-cells = <1>; - < more properties > - - power-supply@68 { - compatible = "ibm,cffps1"; - reg = <0x68>; - }; - }; diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Documentation/devicetree/bindings/trivial-devices.yaml index 6ad0628741cf..791079021f1b 100644 --- a/Documentation/devicetree/bindings/trivial-devices.yaml +++ b/Documentation/devicetree/bindings/trivial-devices.yaml @@ -113,6 +113,12 @@ properties: - mps,mp2975 # Honeywell Humidicon HIH-6130 humidity/temperature sensor - honeywell,hi6130 + # IBM Common Form Factor Power Supply Versions (all versions) + - ibm,cffps + # IBM Common Form Factor Power Supply Versions 1 + - ibm,cffps1 + # IBM Common Form Factor Power Supply Versions 2 + - ibm,cffps2 # Infineon IR36021 digital POL buck controller - infineon,ir36021 # Infineon IR38064 Voltage Regulator diff --git a/MAINTAINERS b/MAINTAINERS index 15c4d3c809e8..cc5df54bdc51 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -14956,7 +14956,6 @@ S: Maintained W: http://hwmon.wiki.kernel.org/ W: http://www.roeck-us.net/linux/drivers/ T: git git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git -F: Documentation/devicetree/bindings/hwmon/ibm,cffps1.txt F: Documentation/devicetree/bindings/hwmon/ltc2978.txt F: Documentation/devicetree/bindings/hwmon/max31785.txt F: Documentation/hwmon/adm1275.rst From patchwork Tue Sep 21 10:28:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12507543 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8BDB2C4332F for ; Tue, 21 Sep 2021 10:29:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 75C6861178 for ; Tue, 21 Sep 2021 10:29:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231986AbhIUKar (ORCPT ); Tue, 21 Sep 2021 06:30:47 -0400 Received: from smtp-relay-internal-1.canonical.com ([185.125.188.123]:38584 "EHLO smtp-relay-internal-1.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231897AbhIUKap (ORCPT ); Tue, 21 Sep 2021 06:30:45 -0400 Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 8EF173FE01 for ; Tue, 21 Sep 2021 10:29:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1632220155; bh=myEI9udE32HikY6HV94XXW8Fjm7KphRiRgu8VFe3DLw=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=I7TSE4mk0gRFzfjvxw+7Joj3Fa6ZZusfIEDvgEKWE9cQAfsnlh7O9KErWFm5404/z ZVcFlM1+QyuWWCKyAvCaTZ6AvL6ONt4xlIvOr4inwVR2N7ijNgfsTSro4W4MSr8xiX 4QvGyVJh53B2Q+zFi4BHJuqdPcUMcpLnNvgBtLsAKRPTMCM0ijKwUShZxlZAXNnamh g0cXiofQc4ngYLLP2iCTOhqi944RWi7YzhwvlNryYxF7qkSAdkWqEFtEBkNCjLNQYh 7oY7jMjAp18a2zi6R66jvcpxCBmjvfzct1ZxI6DE5hoaHoY8xTg+F4CCwBOkUFq/dC EblmUJY8D/2FA== Received: by mail-wr1-f69.google.com with SMTP id x2-20020a5d54c2000000b0015dfd2b4e34so8413421wrv.6 for ; Tue, 21 Sep 2021 03:29:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=myEI9udE32HikY6HV94XXW8Fjm7KphRiRgu8VFe3DLw=; b=mcCqDvhLJ9pxlqcQA91/zrqOhpro+Awo4yDBUuwl5CL1FB4vvRZD2oZYx2Dp0N/KoL JipMWTA7OuZAtdndmW+ZDOmYUBHLWxKLvBmOluDfXkVVUKD+eUZCp4hxEnPFQQITZRuC 5CfWDOOzMMipBNyQek1jzfSgwMcrCvEGNTlH07RfUPDh9RnvsuCNMKIPZXyACB01rClB 4YlkthVP0RXrMLYG4g++eRrFk5UsDNrlvZVu0W/Y883MfEWy3sBW2BYo1a3pO6/eO0PT C07eBSfVD88RJrdGulN+N84XNHTHJsX5JYn0yCwwqyvYYraOKY+EVFXmFjUTY8qZY46s v3Mg== X-Gm-Message-State: AOAM5327tmgDqrb3Hr6pKFWfDaaeZLvL7X6WkDsIKDsdTecs6Ciyhs+V LYaxSqEZCG+bR/ajMYX1Uz0vCDd4pgopqurmWsb066N+wWozXucuol0lFhYzyPrTXNuTPDv8mhM 9QPiFrnVnE4A4hM+sKFXZyn4zR/Pz9p2lSPfaGpBg X-Received: by 2002:a1c:7d06:: with SMTP id y6mr3703316wmc.23.1632220155328; Tue, 21 Sep 2021 03:29:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx8CsNDEe2FpMPJma0T72qL/+ZrHrId9tNK6g3AcRCWKUzyTZt5iXmYH317au3rv9NQnSAlEg== X-Received: by 2002:a1c:7d06:: with SMTP id y6mr3703294wmc.23.1632220155132; Tue, 21 Sep 2021 03:29:15 -0700 (PDT) Received: from localhost.localdomain (lk.84.20.244.219.dc.cable.static.lj-kabel.net. [84.20.244.219]) by smtp.gmail.com with ESMTPSA id m29sm20072380wrb.89.2021.09.21.03.29.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Sep 2021 03:29:14 -0700 (PDT) From: Krzysztof Kozlowski To: Jean Delvare , Guenter Roeck , Rob Herring , Jiri Kosina , Jonathan Cameron , Krzysztof Kozlowski , linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/6] dt-bindings: hwmon: lltc,ltc4151: convert to dtschema Date: Tue, 21 Sep 2021 12:28:30 +0200 Message-Id: <20210921102832.143352-4-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210921102832.143352-1-krzysztof.kozlowski@canonical.com> References: <20210921102832.143352-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org Convert the LTC4151 current and voltage sensor bindings to DT schema format. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring --- .../bindings/hwmon/lltc,ltc4151.yaml | 41 +++++++++++++++++++ .../devicetree/bindings/hwmon/ltc4151.txt | 18 -------- 2 files changed, 41 insertions(+), 18 deletions(-) create mode 100644 Documentation/devicetree/bindings/hwmon/lltc,ltc4151.yaml delete mode 100644 Documentation/devicetree/bindings/hwmon/ltc4151.txt diff --git a/Documentation/devicetree/bindings/hwmon/lltc,ltc4151.yaml b/Documentation/devicetree/bindings/hwmon/lltc,ltc4151.yaml new file mode 100644 index 000000000000..4b5851c326f7 --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/lltc,ltc4151.yaml @@ -0,0 +1,41 @@ +# SPDX-License-Identifier: GPL-2.0-only or BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/hwmon/lltc,ltc4151.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: LTC4151 High Voltage I2C Current and Voltage Monitor + +maintainers: + - Krzysztof Kozlowski + +properties: + compatible: + const: lltc,ltc4151 + + reg: + maxItems: 1 + + shunt-resistor-micro-ohms: + description: + Shunt resistor value in micro-Ohms + default: 1000 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + sensor@6e { + compatible = "lltc,ltc4151"; + reg = <0x6e>; + shunt-resistor-micro-ohms = <1500>; + }; + }; diff --git a/Documentation/devicetree/bindings/hwmon/ltc4151.txt b/Documentation/devicetree/bindings/hwmon/ltc4151.txt deleted file mode 100644 index d008a5ef525a..000000000000 --- a/Documentation/devicetree/bindings/hwmon/ltc4151.txt +++ /dev/null @@ -1,18 +0,0 @@ -LTC4151 High Voltage I2C Current and Voltage Monitor - -Required properties: -- compatible: Must be "lltc,ltc4151" -- reg: I2C address - -Optional properties: -- shunt-resistor-micro-ohms - Shunt resistor value in micro-Ohms - Defaults to <1000> if unset. - -Example: - -ltc4151@6e { - compatible = "lltc,ltc4151"; - reg = <0x6e>; - shunt-resistor-micro-ohms = <1500>; -}; From patchwork Tue Sep 21 10:28:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12507541 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 05697C43217 for ; Tue, 21 Sep 2021 10:29:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E4D476109E for ; Tue, 21 Sep 2021 10:29:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231848AbhIUKas (ORCPT ); Tue, 21 Sep 2021 06:30:48 -0400 Received: from smtp-relay-internal-0.canonical.com ([185.125.188.122]:42824 "EHLO smtp-relay-internal-0.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231947AbhIUKap (ORCPT ); Tue, 21 Sep 2021 06:30:45 -0400 Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id CC0DE40267 for ; Tue, 21 Sep 2021 10:29:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1632220156; bh=JOXzjGlmPlXzv176OGMdy7msusTrGyBdhYwvlOul8IE=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=l9iRyvWO+BUUUD5R5mk6lBtILzHNoDOaMLy0nonDWlzyFk6sSjdej2bgp63F2M6Bw UiK0YP33PvdSrDwd/TgDnLd5RWhzWYY67UgMVORqt6txHb8pUDdTuVhnvGwGs9UOY0 +BXRUshVtNa+NC/kCjVVwQWlJS5o6nc5B1Y4801jqnLx4TNJRrJINdBDQ7lYo4Q3Xw 5bPq/mVyOmT+qhF/ZOgrUA9ZcsCU4Eg6Wig1ERzeFbX8VUpZh452DMh4m2aexuveWK /Jb1umdZVqQqHpCIxhZwCw6vxfA/VWYvw9KUnvPfo7x0fn0LJP/y1/pSSz7MbNXYDM cvrBdVv6w/IAA== Received: by mail-wr1-f70.google.com with SMTP id r15-20020adfce8f000000b0015df1098ccbso8433065wrn.4 for ; Tue, 21 Sep 2021 03:29:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=JOXzjGlmPlXzv176OGMdy7msusTrGyBdhYwvlOul8IE=; b=PtNp6SQ1fU/6KWgOCcYdtRpxxnXnySxB9px8gfDmPJm8225hdJk3er6kWJdQtq1Df4 CIh0VLKdMYMa8os71b8cYGh0emM9srhSut2IYtTkZIKwagN/9B08BF+Foj/3G/c7uzXt gwJ00RZ8QO4qcfmIPe0qFB2E2J6Vyq+nZOabeydzvFPMnWd1kYgQjCbEkAQHx9Neh7zL ViI4Yu4gnLIrX0CZ1hu5kmGggG1tlqsKQRO7tmgTNFiv8FbuZILytj+inxf4UphI88AJ DqbnoJxe1ij6omw/N/rbJKXFDhu3n4zFfYDzLcj9NzL5OFm4wQDWsyOnJjM/qACgVVM5 LL/g== X-Gm-Message-State: AOAM533XMgPk5IOISLWsE+mKrgFKZ3P3p/7Ohel9VhFU0Ay7z3eDHXpE QObYI48LlJXuMWaJQWRCz9Lwzu7hzxYFpjLNgTR6w7pS3BxalXbB7/p7BFqTN0HsZvnVPMs6m0H CvJ6l3Avsw7x6PCJOMz3XjwyDMRH3qR1i2EwTrD/f X-Received: by 2002:adf:d216:: with SMTP id j22mr34546931wrh.295.1632220156547; Tue, 21 Sep 2021 03:29:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwKogt/K6fEvl4nqJryVGtR+Bgt5oZ44S6BpR4v8fZ6A8tSIu6NyHYuSz70bv4PYE6GoKy/oQ== X-Received: by 2002:adf:d216:: with SMTP id j22mr34546915wrh.295.1632220156416; Tue, 21 Sep 2021 03:29:16 -0700 (PDT) Received: from localhost.localdomain (lk.84.20.244.219.dc.cable.static.lj-kabel.net. [84.20.244.219]) by smtp.gmail.com with ESMTPSA id m29sm20072380wrb.89.2021.09.21.03.29.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Sep 2021 03:29:16 -0700 (PDT) From: Krzysztof Kozlowski To: Jean Delvare , Guenter Roeck , Rob Herring , Jiri Kosina , Jonathan Cameron , Krzysztof Kozlowski , linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 5/6] dt-bindings: hwmon: microchip,mcp3021: convert to dtschema Date: Tue, 21 Sep 2021 12:28:31 +0200 Message-Id: <20210921102832.143352-5-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210921102832.143352-1-krzysztof.kozlowski@canonical.com> References: <20210921102832.143352-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org Convert the Microchip MCP3021 ADC bindings to DT schema format. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring --- .../devicetree/bindings/hwmon/mcp3021.txt | 21 --------- .../bindings/hwmon/microchip,mcp3021.yaml | 43 +++++++++++++++++++ 2 files changed, 43 insertions(+), 21 deletions(-) delete mode 100644 Documentation/devicetree/bindings/hwmon/mcp3021.txt create mode 100644 Documentation/devicetree/bindings/hwmon/microchip,mcp3021.yaml diff --git a/Documentation/devicetree/bindings/hwmon/mcp3021.txt b/Documentation/devicetree/bindings/hwmon/mcp3021.txt deleted file mode 100644 index 294318ba6914..000000000000 --- a/Documentation/devicetree/bindings/hwmon/mcp3021.txt +++ /dev/null @@ -1,21 +0,0 @@ -mcp3021 properties - -Required properties: -- compatible: Must be one of the following: - - "microchip,mcp3021" for mcp3021 - - "microchip,mcp3221" for mcp3221 -- reg: I2C address - -Optional properties: - -- reference-voltage-microvolt - Reference voltage in microvolt (uV) - -Example: - -mcp3021@4d { - compatible = "microchip,mcp3021"; - reg = <0x4d>; - - reference-voltage-microvolt = <4500000>; /* 4.5 V */ -}; diff --git a/Documentation/devicetree/bindings/hwmon/microchip,mcp3021.yaml b/Documentation/devicetree/bindings/hwmon/microchip,mcp3021.yaml new file mode 100644 index 000000000000..c42051f8a191 --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/microchip,mcp3021.yaml @@ -0,0 +1,43 @@ +# SPDX-License-Identifier: GPL-2.0-only or BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/hwmon/microchip,mcp3021.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Microchip MCP3021 A/D converter + +maintainers: + - Krzysztof Kozlowski + +properties: + compatible: + enum: + - microchip,mcp3021 + - microchip,mcp3221 + + reg: + maxItems: 1 + + reference-voltage-microvolt: + description: + VDD supply power and reference voltage + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + adc@4d { + compatible = "microchip,mcp3021"; + reg = <0x4d>; + + reference-voltage-microvolt = <4500000>; /* 4.5 V */ + }; + }; From patchwork Tue Sep 21 10:28:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12507545 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CDAB7C433FE for ; Tue, 21 Sep 2021 10:29:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B56F161183 for ; Tue, 21 Sep 2021 10:29:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231912AbhIUKaw (ORCPT ); Tue, 21 Sep 2021 06:30:52 -0400 Received: from smtp-relay-internal-0.canonical.com ([185.125.188.122]:42872 "EHLO smtp-relay-internal-0.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231975AbhIUKaq (ORCPT ); Tue, 21 Sep 2021 06:30:46 -0400 Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 1FBA73F32A for ; Tue, 21 Sep 2021 10:29:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1632220158; bh=T3tR462VfAp1i1pzt2P4d077ekPtmSrX+PhUDbMpO4c=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=vd5lVmZnuloKToXNtCtM63iUdXSdZzHYwxo33zdR/tU/hLWErx6Uwf6GzRP33z77y jykPcKSTerUWiu6/6wSG2CUAMhRUgcuhojirEDU4Ljqt5cJUZjFuDDqb0e32t6TXEP W2Fsw7pKv4kRzehv2iyONWDo7+l2hZQ6rbqUTEJf3OqBx6pk3uOMJUsFz/stFFFgj1 Doi/uA6JNOBJblR32BCF7U2EwX3vIQ1RhKY+TzWe+cO0WmNcsewYIhzr1qMgLeq08r DP37u9fMs0eSezSrV8xjKe08tqMheubbi6/y6mrDk042hBZvVi919BfHG+c8XxxM3s NI/1rq1WD9T/g== Received: by mail-wr1-f72.google.com with SMTP id s14-20020adff80e000000b001601b124f50so1598748wrp.5 for ; Tue, 21 Sep 2021 03:29:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=T3tR462VfAp1i1pzt2P4d077ekPtmSrX+PhUDbMpO4c=; b=hHTJkDrV2TlO69GkCRMn7PJWxA5PFhnV2OYqqv0jmZ1+aWG4+X5BJraJLyXFTSdMhe dJqvbDZ80AaUmYtztYbKgEt0Nab4nhqnN+6hD6CSBGqZTaWve0OgI1xeR6hGAGcyW6cd V7lP7wJ47zfs/2yGg05h5MhttQw8EZKmj/DQvhVGE00XGEZJgmythqUav4RNsy97a6Rj l3iR9SVM6t+/+FXPWCagzha2B14qq3jnik9IoUDEWO0okRFOTVe/Xeng4i8dM+2wyPXt jOOwTGW8Ld8Ern9SybEADH9+SyrKMnQCzsrIIyA1ovhtSenaux7RMgxMo4ZgrOnvSI2T 3DMA== X-Gm-Message-State: AOAM530kWUfIH/WQyAp0a8WwcLR+luvxZ3qzZ7HgahqRj/FSxRmgYHKK SjCli9B2t7vpQvMswvHAon94K7RWN1ZR3FN6ukpJz1/EFHXmCTjbWJ1mdFm6hFIJgaVdNrU5bqg NO+yNhQmJUclGuptdp5iYVHNeVimO1XD6s1bkZ+Cs X-Received: by 2002:adf:e5c2:: with SMTP id a2mr33443272wrn.251.1632220157836; Tue, 21 Sep 2021 03:29:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwnJvWL9Bi/X/lBFdqN24wBSMEKxNp9lhhc6jvJf/1Y8+u79SSxor7b8LphncTkeSWQrO5H5Q== X-Received: by 2002:adf:e5c2:: with SMTP id a2mr33443250wrn.251.1632220157648; Tue, 21 Sep 2021 03:29:17 -0700 (PDT) Received: from localhost.localdomain (lk.84.20.244.219.dc.cable.static.lj-kabel.net. [84.20.244.219]) by smtp.gmail.com with ESMTPSA id m29sm20072380wrb.89.2021.09.21.03.29.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Sep 2021 03:29:17 -0700 (PDT) From: Krzysztof Kozlowski To: Jean Delvare , Guenter Roeck , Rob Herring , Jiri Kosina , Jonathan Cameron , Krzysztof Kozlowski , linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 6/6] dt-bindings: hwmon: sensirion,sht15: convert to dtschema Date: Tue, 21 Sep 2021 12:28:32 +0200 Message-Id: <20210921102832.143352-6-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210921102832.143352-1-krzysztof.kozlowski@canonical.com> References: <20210921102832.143352-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org Convert the Sensirion SHT15 humidity sensor to DT schema format. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring --- .../bindings/hwmon/sensirion,sht15.yaml | 43 +++++++++++++++++++ .../devicetree/bindings/hwmon/sht15.txt | 19 -------- 2 files changed, 43 insertions(+), 19 deletions(-) create mode 100644 Documentation/devicetree/bindings/hwmon/sensirion,sht15.yaml delete mode 100644 Documentation/devicetree/bindings/hwmon/sht15.txt diff --git a/Documentation/devicetree/bindings/hwmon/sensirion,sht15.yaml b/Documentation/devicetree/bindings/hwmon/sensirion,sht15.yaml new file mode 100644 index 000000000000..4669217d01e1 --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/sensirion,sht15.yaml @@ -0,0 +1,43 @@ +# SPDX-License-Identifier: GPL-2.0-only or BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/hwmon/sensirion,sht15.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Sensirion SHT15 humidity and temperature sensor + +maintainers: + - Krzysztof Kozlowski + +properties: + compatible: + const: sensirion,sht15 + + clk-gpios: + maxItems: 1 + + data-gpios: + maxItems: 1 + + vcc-supply: + description: regulator that drives the VCC pin + +required: + - compatible + - clk-gpios + - data-gpios + - vcc-supply + +additionalProperties: false + +examples: + - | + sensor { + compatible = "sensirion,sht15"; + clk-gpios = <&gpio4 12 0>; + data-gpios = <&gpio4 13 0>; + vcc-supply = <®_sht15>; + + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_sensor>; + }; diff --git a/Documentation/devicetree/bindings/hwmon/sht15.txt b/Documentation/devicetree/bindings/hwmon/sht15.txt deleted file mode 100644 index 6a80277cc426..000000000000 --- a/Documentation/devicetree/bindings/hwmon/sht15.txt +++ /dev/null @@ -1,19 +0,0 @@ -Sensirion SHT15 Humidity and Temperature Sensor - -Required properties: - - - "compatible": must be "sensirion,sht15". - - "data-gpios": GPIO connected to the data line. - - "clk-gpios": GPIO connected to the clock line. - - "vcc-supply": regulator that drives the VCC pin. - -Example: - - sensor { - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_sensor>; - compatible = "sensirion,sht15"; - clk-gpios = <&gpio4 12 0>; - data-gpios = <&gpio4 13 0>; - vcc-supply = <®_sht15>; - };