Skip to content

Commit 8ffba40

Browse files
YinboZhubebarino
authored andcommitted
dt-bindings: clock: add loongson-2 clock
Add the Loongson-2 clock binding with DT schema format using json-schema. Signed-off-by: Yinbo Zhu <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent 01d63ce commit 8ffba40

File tree

2 files changed

+64
-0
lines changed

2 files changed

+64
-0
lines changed
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/clock/loongson,ls2k-clk.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Loongson-2 SoC Clock Control Module
8+
9+
maintainers:
10+
- Yinbo Zhu <[email protected]>
11+
12+
description: |
13+
Loongson-2 SoC clock control module is an integrated clock controller, which
14+
generates and supplies to all modules.
15+
16+
properties:
17+
compatible:
18+
enum:
19+
- loongson,ls2k-clk
20+
21+
reg:
22+
maxItems: 1
23+
24+
clocks:
25+
items:
26+
- description: 100m ref
27+
28+
clock-names:
29+
items:
30+
- const: ref_100m
31+
32+
'#clock-cells':
33+
const: 1
34+
description:
35+
The clock consumer should specify the desired clock by having the clock
36+
ID in its "clocks" phandle cell. See include/dt-bindings/clock/loongson,ls2k-clk.h
37+
for the full list of Loongson-2 SoC clock IDs.
38+
39+
required:
40+
- compatible
41+
- reg
42+
- clocks
43+
- clock-names
44+
- '#clock-cells'
45+
46+
additionalProperties: false
47+
48+
examples:
49+
- |
50+
ref_100m: clock-ref-100m {
51+
compatible = "fixed-clock";
52+
#clock-cells = <0>;
53+
clock-frequency = <100000000>;
54+
clock-output-names = "ref_100m";
55+
};
56+
57+
clk: clock-controller@1fe00480 {
58+
compatible = "loongson,ls2k-clk";
59+
reg = <0x1fe00480 0x58>;
60+
#clock-cells = <1>;
61+
clocks = <&ref_100m>;
62+
clock-names = "ref_100m";
63+
};

MAINTAINERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12199,6 +12199,7 @@ LOONGSON-2 SOC SERIES CLOCK DRIVER
1219912199
M: Yinbo Zhu <[email protected]>
1220012200
1220112201
S: Maintained
12202+
F: Documentation/devicetree/bindings/clock/loongson,ls2k-clk.yaml
1220212203
F: include/dt-bindings/clock/loongson,ls2k-clk.h
1220312204

1220412205
LSILOGIC MPT FUSION DRIVERS (FC/SAS/SPI)

0 commit comments

Comments
 (0)