From: Keguang Zhang <keguang.zhang@gmail.com>
To: linux-clk@vger.kernel.org, devicetree@vger.kernel.org,
linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@kernel.org>, Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Keguang Zhang <keguang.zhang@gmail.com>
Subject: [PATCH 1/2] dt-bindings: clock: Add binding for Loongson-1 clock driver
Date: Fri, 13 Jan 2023 19:07:37 +0800 [thread overview]
Message-ID: <20230113110738.1505973-2-keguang.zhang@gmail.com> (raw)
In-Reply-To: <20230113110738.1505973-1-keguang.zhang@gmail.com>
Add devicetree binding document for the Loongson-1 clock driver.
Signed-off-by: Keguang Zhang <keguang.zhang@gmail.com>
---
.../bindings/clock/loongson,ls1x-clk.yaml | 81 +++++++++++++++++++
1 file changed, 81 insertions(+)
create mode 100644 Documentation/devicetree/bindings/clock/loongson,ls1x-clk.yaml
diff --git a/Documentation/devicetree/bindings/clock/loongson,ls1x-clk.yaml b/Documentation/devicetree/bindings/clock/loongson,ls1x-clk.yaml
new file mode 100644
index 000000000000..4709c6757f1e
--- /dev/null
+++ b/Documentation/devicetree/bindings/clock/loongson,ls1x-clk.yaml
@@ -0,0 +1,81 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/clock/loongson,ls1x-clk.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Loongson-1 Clock Controller
+
+maintainers:
+ - Keguang Zhang <keguang.zhang@gmail.com>
+
+properties:
+ "#clock-cells":
+ const: 0
+
+ compatible:
+ enum:
+ - loongson,ls1b-clk-pll
+ - loongson,ls1b-clk-cpu
+ - loongson,ls1b-clk-ahb
+ - loongson,ls1c-clk-pll
+ - loongson,ls1c-clk-cpu
+ - loongson,ls1c-clk-ahb
+
+ reg:
+ maxItems: 1
+
+ clocks:
+ maxItems: 1
+
+required:
+ - "#clock-cells"
+ - compatible
+ - clocks
+ - reg
+
+additionalProperties: false
+
+examples:
+ - |
+ clocks {
+ #address-cells = <1>;
+ #size-cells = <1>;
+ ranges;
+
+ xtal: xtal {
+ compatible = "fixed-clock";
+ #clock-cells = <0>;
+ clock-frequency = <33000000>;
+ };
+
+ pll: pll@1fe78030 {
+ compatible = "loongson,ls1b-clk-pll";
+ #clock-cells = <0>;
+ clocks = <&xtal>;
+ reg = <0x1fe78030 0x4>;
+ };
+
+ cpu_clk: cpu_clk@1fe78034 {
+ compatible = "loongson,ls1b-clk-cpu";
+ #clock-cells = <0>;
+ clocks = <&pll>;
+ reg = <0x1fe78034 0x4>;
+ };
+
+ ahb_clk: ahb_clk@1fe78034 {
+ compatible = "loongson,ls1b-clk-ahb";
+ #clock-cells = <0>;
+ clocks = <&pll>;
+ reg = <0x1fe78034 0x4>;
+ };
+
+ apb_clk: apb_clk {
+ compatible = "fixed-factor-clock";
+ #clock-cells = <0>;
+ clocks = <&ahb_clk>;
+ clock-div = <2>;
+ clock-mult = <1>;
+ };
+ };
+...
--
2.34.1
next prev parent reply other threads:[~2023-01-13 11:16 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-13 11:07 [PATCH 0/2] Devicetree support for Loongson-1 clock Keguang Zhang
2023-01-13 11:07 ` Keguang Zhang [this message]
2023-01-13 11:17 ` [PATCH 1/2] dt-bindings: clock: Add binding for Loongson-1 clock driver Krzysztof Kozlowski
2023-01-17 10:31 ` Kelvin Cheung
2023-01-17 10:47 ` Krzysztof Kozlowski
2023-01-18 11:16 ` Kelvin Cheung
2023-01-18 11:28 ` Krzysztof Kozlowski
2023-01-13 15:26 ` Rob Herring
2023-01-17 10:54 ` Kelvin Cheung
2023-01-17 11:08 ` Krzysztof Kozlowski
2023-01-13 11:07 ` [PATCH 2/2] clk: loongson1: Refactor to add devicetree support Keguang Zhang
2023-01-13 11:19 ` Krzysztof Kozlowski
2023-01-19 11:13 ` kernel test robot
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=20230113110738.1505973-2-keguang.zhang@gmail.com \
--to=keguang.zhang@gmail.com \
--cc=devicetree@vger.kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@vger.kernel.org \
--cc=mturquette@baylibre.com \
--cc=robh+dt@kernel.org \
--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).