[PATCH v3 1/2] dt-bindings: clock: loongson,ls2k: Add ls2k1000 compatible and deprecate legacy
From: wjjsn
Date: Sun Mar 22 2026 - 11:21:00 EST
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@xxxxxx>
---
.../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