Skip to content

Commit 49c0445

Browse files
cazoummind
authored andcommitted
dt-bindings: clock, reset: Add support for rk3576
Add clock and reset ID defines for rk3576. Compared to the downstream bindings written by Elaine, this uses continous gapless IDs starting at 0. Thus all numbers are different between downstream and upstream, but names are kept exactly the same. Also add documentation for the rk3576 CRU core. Signed-off-by: Elaine Zhang <[email protected]> Signed-off-by: Sugar Zhang <[email protected]> Signed-off-by: Detlev Casanova <[email protected]> Reviewed-by: Rob Herring (Arm) <[email protected]> Link: https://lore.kernel.org/r/0102019199a76766-f3a2b53f-d063-458b-b0d1-dfbc2ea1893c-000000@eu-west-1.amazonses.com Signed-off-by: Heiko Stuebner <[email protected]>
1 parent 3529dc2 commit 49c0445

File tree

3 files changed

+1212
-0
lines changed

3 files changed

+1212
-0
lines changed
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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,rk3576-cru.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Rockchip rk3576 Family Clock and Reset Control Module
8+
9+
maintainers:
10+
- Elaine Zhang <[email protected]>
11+
- Heiko Stuebner <[email protected]>
12+
- Detlev Casanova <[email protected]>
13+
14+
description:
15+
The RK3576 clock controller generates the clock and also implements a reset
16+
controller for SoC peripherals. For example it provides SCLK_UART2 and
17+
PCLK_UART2, as well as SRST_P_UART2 and SRST_S_UART2 for the second UART
18+
module.
19+
20+
properties:
21+
compatible:
22+
const: rockchip,rk3576-cru
23+
24+
reg:
25+
maxItems: 1
26+
27+
"#clock-cells":
28+
const: 1
29+
30+
"#reset-cells":
31+
const: 1
32+
33+
clocks:
34+
maxItems: 2
35+
36+
clock-names:
37+
items:
38+
- const: xin24m
39+
- const: xin32k
40+
41+
required:
42+
- compatible
43+
- reg
44+
- "#clock-cells"
45+
- "#reset-cells"
46+
47+
additionalProperties: false
48+
49+
examples:
50+
- |
51+
clock-controller@27200000 {
52+
compatible = "rockchip,rk3576-cru";
53+
reg = <0xfd7c0000 0x5c000>;
54+
#clock-cells = <1>;
55+
#reset-cells = <1>;
56+
};

0 commit comments

Comments
 (0)