Skip to content

Commit 0cd74ee

Browse files
Elaine Zhangmmind
authored andcommitted
dt-binding: clock: Document rockchip, rk3568-cru bindings
Document the device tree bindings of the rockchip Rk3568 SoC clock driver in Documentation/devicetree/bindings/clock/rockchip,rk3568-cru.yaml. Signed-off-by: Elaine Zhang <[email protected]> Reviewed-by: Kever Yang <[email protected]> Reviewed-by: Rob Herring <[email protected]> Acked-by: Stephen Boyd <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Heiko Stuebner <[email protected]>
1 parent 0865517 commit 0cd74ee

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/clock/rockchip,rk3568-cru.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: ROCKCHIP rk3568 Family Clock Control Module Binding
8+
9+
maintainers:
10+
- Elaine Zhang <[email protected]>
11+
- Heiko Stuebner <[email protected]>
12+
13+
description: |
14+
The RK3568 clock controller generates the clock and also implements a
15+
reset controller for SoC peripherals.
16+
(examples: provide SCLK_UART1\PCLK_UART1 and SRST_P_UART1\SRST_S_UART1 for UART module)
17+
Each clock is assigned an identifier and client nodes can use this identifier
18+
to specify the clock which they consume. All available clocks are defined as
19+
preprocessor macros in the dt-bindings/clock/rk3568-cru.h headers and can be
20+
used in device tree sources.
21+
22+
properties:
23+
compatible:
24+
enum:
25+
- rockchip,rk3568-cru
26+
- rockchip,rk3568-pmucru
27+
28+
reg:
29+
maxItems: 1
30+
31+
"#clock-cells":
32+
const: 1
33+
34+
"#reset-cells":
35+
const: 1
36+
37+
required:
38+
- compatible
39+
- reg
40+
- "#clock-cells"
41+
- "#reset-cells"
42+
43+
additionalProperties: false
44+
45+
examples:
46+
# Clock Control Module node:
47+
- |
48+
pmucru: clock-controller@fdd00000 {
49+
compatible = "rockchip,rk3568-pmucru";
50+
reg = <0xfdd00000 0x1000>;
51+
#clock-cells = <1>;
52+
#reset-cells = <1>;
53+
};
54+
- |
55+
cru: clock-controller@fdd20000 {
56+
compatible = "rockchip,rk3568-cru";
57+
reg = <0xfdd20000 0x1000>;
58+
#clock-cells = <1>;
59+
#reset-cells = <1>;
60+
};

0 commit comments

Comments
 (0)