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>; -};