From: wjjsn <wjjsn@qq.com>
To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
chenhuacai@kernel.org, zhuyinbo@loongson.cn,
mturquette@baylibre.com, sboyd@kernel.org
Cc: linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org,
loongarch@lists.linux.dev, kernel@xen0n.name,
devicetree@vger.kernel.org, wjjsn <wjjsn@qq.com>
Subject: [PATCH v2 1/2] dt-bindings: clock: loongson,ls2k: Add ls2k1000 compatible and deprecate legacy
Date: Sun, 22 Mar 2026 23:08:35 +0800 [thread overview]
Message-ID: <tencent_C35FFFD2C601DB54E967312ED852DDA70F09@qq.com> (raw)
In-Reply-To: <20260322150836.55196-1-wjjsn@qq.com>
Add a SoC-specific compatible string "loongson,ls2k1000-clk" for
Loongson-2K1000.
Mark the legacy "loongson,ls2k-clk" compatible as deprecated using
the structured "deprecated: true" property instead of relying on
textual description.
Update the example to use the new compatible.
Signed-off-by: wjjsn <wjjsn@qq.com>
---
.../bindings/clock/loongson,ls2k-clk.yaml | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/Documentation/devicetree/bindings/clock/loongson,ls2k-clk.yaml b/Documentation/devicetree/bindings/clock/loongson,ls2k-clk.yaml
index c07ad1f85857..b0ef5cd5af32 100644
--- a/Documentation/devicetree/bindings/clock/loongson,ls2k-clk.yaml
+++ b/Documentation/devicetree/bindings/clock/loongson,ls2k-clk.yaml
@@ -15,11 +15,14 @@ description: |
properties:
compatible:
- enum:
- - loongson,ls2k0300-clk
- - loongson,ls2k0500-clk
- - loongson,ls2k-clk # This is for Loongson-2K1000
- - loongson,ls2k2000-clk
+ oneOf:
+ - enum:
+ - loongson,ls2k0300-clk
+ - loongson,ls2k0500-clk
+ - loongson,ls2k1000-clk
+ - loongson,ls2k2000-clk
+ - const: loongson,ls2k-clk
+ deprecated: true
reg:
maxItems: 1
@@ -69,7 +72,7 @@ examples:
};
clk: clock-controller@1fe00480 {
- compatible = "loongson,ls2k-clk";
+ compatible = "loongson,ls2k1000-clk";
reg = <0x1fe00480 0x58>;
#clock-cells = <1>;
clocks = <&ref_100m>;
--
2.43.0
next parent reply other threads:[~2026-03-22 15:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20260322150836.55196-1-wjjsn@qq.com>
2026-03-22 15:08 ` wjjsn [this message]
2026-03-22 20:28 ` [PATCH v2 1/2] dt-bindings: clock: loongson,ls2k: Add ls2k1000 compatible and deprecate legacy Krzysztof Kozlowski
2026-03-22 15:08 ` [PATCH v2 2/2] clk: loongson2: Add ls2k1000 compatible wjjsn
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=tencent_C35FFFD2C601DB54E967312ED852DDA70F09@qq.com \
--to=wjjsn@qq.com \
--cc=chenhuacai@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=kernel@xen0n.name \
--cc=krzk+dt@kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=loongarch@lists.linux.dev \
--cc=mturquette@baylibre.com \
--cc=robh@kernel.org \
--cc=sboyd@kernel.org \
--cc=zhuyinbo@loongson.cn \
/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