Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp740195pxb; Wed, 1 Sep 2021 08:57:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/nTePoM3i2VJ1TJmDadkbu25MIgy95I7SA8ehKKR7ehia0clums8RYixMkE9XdxRvZwfu X-Received: by 2002:a02:a18d:: with SMTP id n13mr298755jah.120.1630511846333; Wed, 01 Sep 2021 08:57:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630511846; cv=none; d=google.com; s=arc-20160816; b=UtcQoxs9ud+Cg21hMbRZnzqzcJrDFptVG8quQcswrWEjF7uL/1QCgJpp3DWnpBomcv tb4CUL4qRMNh/0rpx4x9giSHGzxDgcHje2VPhLBL0FB+76jDleW9lUCvL4ZaXWWh/Wbu my5ra084DHSNNcPmxkYy6lQK+43KCq+1iMFm7PBVsVK3nI7TxK/J3Z+zXgEMKPdKQrHo GatQt9D6QxQpzE+Q71g7RD7Ax+1XD5Ll5tX8xuD3uj+taNlGjLYiTMIu3/vqYV+Jlr/x ktl1Z+peTjDh36Nw3r5Y151PryXfP/GJUXLzpj+LSelC2jPY8Xi+6qqboH4RidxwI8LD KERA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=LNvoyYhPSL5nYscT63UIkQH1m4+m6xmURpg/DHwHK7E=; b=MfqQO1faoZMH8o8UbQz8AHKgWgTIgwKHi1l9YFFgDiTnSN4oP/eVD20UcJw4sfamiP jX1YvOUvpBJMG4oDIOiVhX3/PBbQyCiXOW0GDc+WW55vByg0700TqR4/twnWRDeskXA7 w7G15RZnWOylqpwaU7t9fThg5+Elinci76xwFrVRL6HQzBlrgorr8JoSZWLYskORibe4 MvF8d2hFsDe6Xt2/6YNhrL8SmwPFK/0wnvwJqyJB6pMJnaz7EKFCU06TN2eLUS7qQAY/ O+8v3jeJ7zIW+k40wNbGwnLTiOV1119sRR4iAD1rYhDhfIbFQ3mW7C87HXroWo5/+rqV 2Hpw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r20si22126165jad.61.2021.09.01.08.57.10; Wed, 01 Sep 2021 08:57:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343887AbhIAP5H (ORCPT + 99 others); Wed, 1 Sep 2021 11:57:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245022AbhIAP5H (ORCPT ); Wed, 1 Sep 2021 11:57:07 -0400 Received: from relay01.th.seeweb.it (relay01.th.seeweb.it [IPv6:2001:4b7a:2000:18::162]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CA35C061575; Wed, 1 Sep 2021 08:56:10 -0700 (PDT) Received: from IcarusMOD.eternityproject.eu (unknown [2.237.20.237]) (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 m-r1.th.seeweb.it (Postfix) with ESMTPSA id 574061FAF9; Wed, 1 Sep 2021 17:56:08 +0200 (CEST) From: AngeloGioacchino Del Regno To: robh+dt@kernel.org Cc: bjorn.andersson@linaro.org, sboyd@kernel.org, vireshk@kernel.org, agross@kernel.org, nm@ti.com, ilia.lin@kernel.org, niklas.cassel@linaro.org, linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, konrad.dybcio@somainline.org, marijn.suijten@somainline.org, martin.botka@somainline.org, ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno Subject: [PATCH 1/2] dt-bindings: opp: qcom-opp: Convert to DT schema Date: Wed, 1 Sep 2021 17:55:58 +0200 Message-Id: <20210901155559.627491-1-angelogioacchino.delregno@somainline.org> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Rewrite the qcom-opp as qcom-level-opp in dt schema format. Signed-off-by: AngeloGioacchino Del Regno --- .../bindings/opp/qcom-level-opp.yaml | 68 +++++++++++++++++++ .../devicetree/bindings/opp/qcom-opp.txt | 19 ------ 2 files changed, 68 insertions(+), 19 deletions(-) create mode 100644 Documentation/devicetree/bindings/opp/qcom-level-opp.yaml delete mode 100644 Documentation/devicetree/bindings/opp/qcom-opp.txt diff --git a/Documentation/devicetree/bindings/opp/qcom-level-opp.yaml b/Documentation/devicetree/bindings/opp/qcom-level-opp.yaml new file mode 100644 index 000000000000..65dd2d5d9566 --- /dev/null +++ b/Documentation/devicetree/bindings/opp/qcom-level-opp.yaml @@ -0,0 +1,68 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/opp/qcom-level-opp.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm OPP bindings for fuse and voltage level OPPs + +maintainers: + - AngeloGioacchino Del Regno + - Niklas Cassel + +allOf: + - $ref: opp-v2-base.yaml# + +properties: + compatible: + const: operating-points-v2-qcom-level + + opp-shared: true + +required: + - compatible + +patternProperties: + '^opp-?[0-9]+$': + type: object + + properties: + opp-level: true + qcom,opp-fuse-level: + description: + At least one positive value representing the fuse corner or level + associated with this OPP node. In case this is used for CPR >=v3, + multiple array entries are referring to different CPR threads. + Sometimes several corners/levels shares a certain fuse + corner/level. A fuse corner/level contains e.g. ref uV, min uV, + and max uV. + $ref: /schemas/types.yaml#/definitions/uint32-array + + required: + - opp-level + - qcom,opp-fuse-level + + unevaluatedProperties: false + +additionalProperties: false + +examples: + - | + cpr_opp_table: opp-table-cpr { + compatible = "operating-points-v2-qcom-level"; + + cpr_opp1: opp1 { + opp-level = <1>; + qcom,opp-fuse-level = <1>; + }; + cpr_opp2: opp2 { + opp-level = <2>; + qcom,opp-fuse-level = <2>; + }; + cpr_opp3: opp3 { + opp-level = <3>; + qcom,opp-fuse-level = <3>; + }; + }; + +... diff --git a/Documentation/devicetree/bindings/opp/qcom-opp.txt b/Documentation/devicetree/bindings/opp/qcom-opp.txt deleted file mode 100644 index 41d3e4ff2dc3..000000000000 --- a/Documentation/devicetree/bindings/opp/qcom-opp.txt +++ /dev/null @@ -1,19 +0,0 @@ -Qualcomm OPP bindings to describe OPP nodes - -The bindings are based on top of the operating-points-v2 bindings -described in Documentation/devicetree/bindings/opp/opp-v2-base.yaml -Additional properties are described below. - -* OPP Table Node - -Required properties: -- compatible: Allow OPPs to express their compatibility. It should be: - "operating-points-v2-qcom-level" - -* OPP Node - -Required properties: -- qcom,opp-fuse-level: A positive value representing the fuse corner/level - associated with this OPP node. Sometimes several corners/levels shares - a certain fuse corner/level. A fuse corner/level contains e.g. ref uV, - min uV, and max uV. -- 2.32.0