xref: /linux/Documentation/devicetree/bindings/clock/allwinner,sun4i-a10-ccu.yaml (revision 2f704c29699dc3809d80095da8cf2cd5d19b28c4)
1b467ec06SMaxime Ripard# SPDX-License-Identifier: GPL-2.0
2b467ec06SMaxime Ripard%YAML 1.2
3b467ec06SMaxime Ripard---
4c7842d10SRob Herring$id: http://devicetree.org/schemas/clock/allwinner,sun4i-a10-ccu.yaml#
5b467ec06SMaxime Ripard$schema: http://devicetree.org/meta-schemas/core.yaml#
6b467ec06SMaxime Ripard
7b467ec06SMaxime Ripardtitle: Allwinner Clock Control Unit Device Tree Bindings
8b467ec06SMaxime Ripard
9b467ec06SMaxime Ripardmaintainers:
10b467ec06SMaxime Ripard  - Chen-Yu Tsai <wens@csie.org>
115c7404bbSMaxime Ripard  - Maxime Ripard <mripard@kernel.org>
12b467ec06SMaxime Ripard
13b467ec06SMaxime Ripardproperties:
14b467ec06SMaxime Ripard  "#clock-cells":
15b467ec06SMaxime Ripard    const: 1
16b467ec06SMaxime Ripard
17b467ec06SMaxime Ripard  "#reset-cells":
18b467ec06SMaxime Ripard    const: 1
19b467ec06SMaxime Ripard
20b467ec06SMaxime Ripard  compatible:
21b467ec06SMaxime Ripard    enum:
22b467ec06SMaxime Ripard      - allwinner,sun4i-a10-ccu
23b467ec06SMaxime Ripard      - allwinner,sun5i-a10s-ccu
24b467ec06SMaxime Ripard      - allwinner,sun5i-a13-ccu
25b467ec06SMaxime Ripard      - allwinner,sun6i-a31-ccu
26b467ec06SMaxime Ripard      - allwinner,sun7i-a20-ccu
27b467ec06SMaxime Ripard      - allwinner,sun8i-a23-ccu
28b467ec06SMaxime Ripard      - allwinner,sun8i-a33-ccu
29b467ec06SMaxime Ripard      - allwinner,sun8i-a83t-ccu
30b467ec06SMaxime Ripard      - allwinner,sun8i-a83t-r-ccu
31b467ec06SMaxime Ripard      - allwinner,sun8i-h3-ccu
32b467ec06SMaxime Ripard      - allwinner,sun8i-h3-r-ccu
33b467ec06SMaxime Ripard      - allwinner,sun8i-r40-ccu
34f9429c1fSIcenowy Zheng      - allwinner,sun8i-v3-ccu
35b467ec06SMaxime Ripard      - allwinner,sun8i-v3s-ccu
36b467ec06SMaxime Ripard      - allwinner,sun9i-a80-ccu
37b467ec06SMaxime Ripard      - allwinner,sun50i-a64-ccu
38b467ec06SMaxime Ripard      - allwinner,sun50i-a64-r-ccu
39*2f704c29SYangtao Li      - allwinner,sun50i-a100-ccu
40*2f704c29SYangtao Li      - allwinner,sun50i-a100-r-ccu
41b467ec06SMaxime Ripard      - allwinner,sun50i-h5-ccu
42b467ec06SMaxime Ripard      - allwinner,sun50i-h6-ccu
43b467ec06SMaxime Ripard      - allwinner,sun50i-h6-r-ccu
44b467ec06SMaxime Ripard      - allwinner,suniv-f1c100s-ccu
45b467ec06SMaxime Ripard      - nextthing,gr8-ccu
46b467ec06SMaxime Ripard
47b467ec06SMaxime Ripard  reg:
48b467ec06SMaxime Ripard    maxItems: 1
49b467ec06SMaxime Ripard
50b467ec06SMaxime Ripard  clocks:
51b467ec06SMaxime Ripard    minItems: 2
52b467ec06SMaxime Ripard    maxItems: 4
53b467ec06SMaxime Ripard    items:
54b467ec06SMaxime Ripard      - description: High Frequency Oscillator (usually at 24MHz)
55b467ec06SMaxime Ripard      - description: Low Frequency Oscillator (usually at 32kHz)
56b467ec06SMaxime Ripard      - description: Internal Oscillator
57b467ec06SMaxime Ripard      - description: Peripherals PLL
58b467ec06SMaxime Ripard
59b467ec06SMaxime Ripard  clock-names:
60b467ec06SMaxime Ripard    minItems: 2
61b467ec06SMaxime Ripard    maxItems: 4
62b467ec06SMaxime Ripard    items:
63b467ec06SMaxime Ripard      - const: hosc
64b467ec06SMaxime Ripard      - const: losc
65b467ec06SMaxime Ripard      - const: iosc
66b467ec06SMaxime Ripard      - const: pll-periph
67b467ec06SMaxime Ripard
68b467ec06SMaxime Ripardrequired:
69b467ec06SMaxime Ripard  - "#clock-cells"
70b467ec06SMaxime Ripard  - "#reset-cells"
71b467ec06SMaxime Ripard  - compatible
72b467ec06SMaxime Ripard  - reg
73b467ec06SMaxime Ripard  - clocks
74b467ec06SMaxime Ripard  - clock-names
75b467ec06SMaxime Ripard
76b467ec06SMaxime Ripardif:
77b467ec06SMaxime Ripard  properties:
78b467ec06SMaxime Ripard    compatible:
79b467ec06SMaxime Ripard      enum:
80b467ec06SMaxime Ripard        - allwinner,sun8i-a83t-r-ccu
81b467ec06SMaxime Ripard        - allwinner,sun8i-h3-r-ccu
82b467ec06SMaxime Ripard        - allwinner,sun50i-a64-r-ccu
83*2f704c29SYangtao Li        - allwinner,sun50i-a100-r-ccu
84b467ec06SMaxime Ripard        - allwinner,sun50i-h6-r-ccu
85b467ec06SMaxime Ripard
86b467ec06SMaxime Ripardthen:
87b467ec06SMaxime Ripard  properties:
88b467ec06SMaxime Ripard    clocks:
89b467ec06SMaxime Ripard      minItems: 4
90b467ec06SMaxime Ripard      maxItems: 4
91b467ec06SMaxime Ripard
92b467ec06SMaxime Ripard    clock-names:
93b467ec06SMaxime Ripard      minItems: 4
94b467ec06SMaxime Ripard      maxItems: 4
95b467ec06SMaxime Ripard
96b467ec06SMaxime Ripardelse:
97b467ec06SMaxime Ripard  if:
98b467ec06SMaxime Ripard    properties:
99b467ec06SMaxime Ripard      compatible:
100*2f704c29SYangtao Li        enum:
101*2f704c29SYangtao Li          - allwinner,sun50i-a100-ccu
102*2f704c29SYangtao Li          - allwinner,sun50i-h6-ccu
103b467ec06SMaxime Ripard
104b467ec06SMaxime Ripard  then:
105b467ec06SMaxime Ripard    properties:
106b467ec06SMaxime Ripard      clocks:
107b467ec06SMaxime Ripard        minItems: 3
108b467ec06SMaxime Ripard        maxItems: 3
109b467ec06SMaxime Ripard
110b467ec06SMaxime Ripard      clock-names:
111b467ec06SMaxime Ripard        minItems: 3
112b467ec06SMaxime Ripard        maxItems: 3
113b467ec06SMaxime Ripard
114b467ec06SMaxime Ripard  else:
115b467ec06SMaxime Ripard    properties:
116b467ec06SMaxime Ripard      clocks:
117b467ec06SMaxime Ripard        minItems: 2
118b467ec06SMaxime Ripard        maxItems: 2
119b467ec06SMaxime Ripard
120b467ec06SMaxime Ripard      clock-names:
121b467ec06SMaxime Ripard        minItems: 2
122b467ec06SMaxime Ripard        maxItems: 2
123b467ec06SMaxime Ripard
124b467ec06SMaxime RipardadditionalProperties: false
125b467ec06SMaxime Ripard
126b467ec06SMaxime Ripardexamples:
127b467ec06SMaxime Ripard  - |
128b467ec06SMaxime Ripard    ccu: clock@1c20000 {
129b467ec06SMaxime Ripard        compatible = "allwinner,sun8i-h3-ccu";
130b467ec06SMaxime Ripard        reg = <0x01c20000 0x400>;
131b467ec06SMaxime Ripard        clocks = <&osc24M>, <&osc32k>;
132b467ec06SMaxime Ripard        clock-names = "hosc", "losc";
133b467ec06SMaxime Ripard        #clock-cells = <1>;
134b467ec06SMaxime Ripard        #reset-cells = <1>;
135b467ec06SMaxime Ripard    };
136b467ec06SMaxime Ripard
137b467ec06SMaxime Ripard  - |
138b467ec06SMaxime Ripard    r_ccu: clock@1f01400 {
139b467ec06SMaxime Ripard        compatible = "allwinner,sun50i-a64-r-ccu";
140b467ec06SMaxime Ripard        reg = <0x01f01400 0x100>;
141b467ec06SMaxime Ripard        clocks = <&osc24M>, <&osc32k>, <&iosc>, <&ccu 11>;
142b467ec06SMaxime Ripard        clock-names = "hosc", "losc", "iosc", "pll-periph";
143b467ec06SMaxime Ripard        #clock-cells = <1>;
144b467ec06SMaxime Ripard        #reset-cells = <1>;
145b467ec06SMaxime Ripard    };
146b467ec06SMaxime Ripard
147b467ec06SMaxime Ripard...
148