devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
To: Bjorn Andersson <andersson@kernel.org>,
	 Michael Turquette <mturquette@baylibre.com>,
	 Stephen Boyd <sboyd@kernel.org>, Rob Herring <robh@kernel.org>,
	 Krzysztof Kozlowski <krzk+dt@kernel.org>,
	 Conor Dooley <conor+dt@kernel.org>,
	Taniya Das <quic_tdas@quicinc.com>,
	 Robert Marko <robimarko@gmail.com>,
	 Konrad Dybcio <konrad.dybcio@linaro.org>
Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org,
	 devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH 01/10] dt-bindings: clock: qcom: split the non-PD schema for GCC
Date: Tue, 28 May 2024 23:43:19 +0300	[thread overview]
Message-ID: <20240528-qcom-gdscs-v1-1-03cf1b102a4f@linaro.org> (raw)
In-Reply-To: <20240528-qcom-gdscs-v1-0-03cf1b102a4f@linaro.org>

On some of Qualcomm platforms the Global Clock Controller (GCC) doesn't
provide power domains. Split no-PD version from the common qcom,gcc schema.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
---
 .../devicetree/bindings/clock/qcom,gcc-nopd.yaml   | 38 ++++++++++++++++++++++
 .../devicetree/bindings/clock/qcom,gcc.yaml        | 19 ++---------
 2 files changed, 41 insertions(+), 16 deletions(-)

diff --git a/Documentation/devicetree/bindings/clock/qcom,gcc-nopd.yaml b/Documentation/devicetree/bindings/clock/qcom,gcc-nopd.yaml
new file mode 100644
index 000000000000..a941e75a930a
--- /dev/null
+++ b/Documentation/devicetree/bindings/clock/qcom,gcc-nopd.yaml
@@ -0,0 +1,38 @@
+# SPDX-License-Identifier: GPL-2.0-only
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/clock/qcom,gcc-nopd.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Qualcomm Global Clock & Reset Controller Common Properties
+
+maintainers:
+  - Stephen Boyd <sboyd@kernel.org>
+  - Taniya Das <quic_tdas@quicinc.com>
+
+description: |
+  Common bindings for Qualcomm global clock control module providing the
+  clocks and resets.
+
+properties:
+  '#clock-cells':
+    const: 1
+
+  '#reset-cells':
+    const: 1
+
+  reg:
+    maxItems: 1
+
+  protected-clocks:
+    description:
+      Protected clock specifier list as per common clock binding.
+
+required:
+  - reg
+  - '#clock-cells'
+  - '#reset-cells'
+
+additionalProperties: true
+
+...
diff --git a/Documentation/devicetree/bindings/clock/qcom,gcc.yaml b/Documentation/devicetree/bindings/clock/qcom,gcc.yaml
index 788825105f24..e7ec15b1780d 100644
--- a/Documentation/devicetree/bindings/clock/qcom,gcc.yaml
+++ b/Documentation/devicetree/bindings/clock/qcom,gcc.yaml
@@ -14,27 +14,14 @@ description: |
   Common bindings for Qualcomm global clock control module providing the
   clocks, resets and power domains.
 
-properties:
-  '#clock-cells':
-    const: 1
-
-  '#reset-cells':
-    const: 1
+allOf:
+  - $ref: qcom,gcc-nopd.yaml
 
+properties:
   '#power-domain-cells':
     const: 1
 
-  reg:
-    maxItems: 1
-
-  protected-clocks:
-    description:
-      Protected clock specifier list as per common clock binding.
-
 required:
-  - reg
-  - '#clock-cells'
-  - '#reset-cells'
   - '#power-domain-cells'
 
 additionalProperties: true

-- 
2.39.2


  reply	other threads:[~2024-05-28 20:43 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-28 20:43 [PATCH 00/10] dt-bindings: clock: qcom,gcc: handle the controllers without power domains Dmitry Baryshkov
2024-05-28 20:43 ` Dmitry Baryshkov [this message]
2024-05-29  7:34   ` [PATCH 01/10] dt-bindings: clock: qcom: split the non-PD schema for GCC Krzysztof Kozlowski
2024-05-29  7:58     ` Dmitry Baryshkov
2024-05-29 12:30       ` Krzysztof Kozlowski
2024-05-28 20:43 ` [PATCH 02/10] dt-bindings: clock: qcom,gcc-apq8064: use non-power-domain version of GCC schema Dmitry Baryshkov
2024-05-28 22:02   ` Rob Herring (Arm)
2024-05-28 20:43 ` [PATCH 03/10] dt-bindings: clock: qcom,gcc-msm8660: " Dmitry Baryshkov
2024-05-28 22:02   ` Rob Herring (Arm)
2024-05-28 20:43 ` [PATCH 04/10] dt-bindings: clock: qcom,gcc-ipq6018: " Dmitry Baryshkov
2024-05-28 22:02   ` Rob Herring (Arm)
2024-05-28 20:43 ` [PATCH 05/10] dt-bindings: clock: qcom,gcc-nopd.yaml: force node name Dmitry Baryshkov
2024-05-29  7:39   ` Krzysztof Kozlowski
2024-05-29  7:40     ` Dmitry Baryshkov
2024-05-28 20:43 ` [PATCH 06/10] ARM: dts: qcom: apq8064: drop #power-domain-cells property of GCC Dmitry Baryshkov
2024-05-28 20:43 ` [PATCH 07/10] ARM: dts: qcom: msm8660: " Dmitry Baryshkov
2024-05-28 20:43 ` [PATCH 08/10] ARM: dts: qcom: msm8960: " Dmitry Baryshkov
2024-05-28 20:43 ` [PATCH 09/10] arm64: dts: qcom: ipq6018: fix GCC node name Dmitry Baryshkov
2024-05-29  7:39   ` Krzysztof Kozlowski
2024-05-28 20:43 ` [PATCH 10/10] arm64: dts: qcom: ipq8074: " Dmitry Baryshkov
2024-05-29  7:39   ` Krzysztof Kozlowski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240528-qcom-gdscs-v1-1-03cf1b102a4f@linaro.org \
    --to=dmitry.baryshkov@linaro.org \
    --cc=andersson@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=konrad.dybcio@linaro.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mturquette@baylibre.com \
    --cc=quic_tdas@quicinc.com \
    --cc=robh@kernel.org \
    --cc=robimarko@gmail.com \
    --cc=sboyd@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).