xref: /linux/Documentation/devicetree/bindings/clock/allwinner,sun4i-a10-ccu.yaml (revision f9429c1fba87ee820cd31e8eaa2e4c64e27d6439)
1b467ec06SMaxime Ripard# SPDX-License-Identifier: GPL-2.0
2b467ec06SMaxime Ripard%YAML 1.2
3b467ec06SMaxime Ripard---
4b467ec06SMaxime Ripard$id: http://devicetree.org/schemas/phy/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>
11b467ec06SMaxime Ripard  - Maxime Ripard <maxime.ripard@bootlin.com>
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
34*f9429c1fSIcenowy 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
39b467ec06SMaxime Ripard      - allwinner,sun50i-h5-ccu
40b467ec06SMaxime Ripard      - allwinner,sun50i-h6-ccu
41b467ec06SMaxime Ripard      - allwinner,sun50i-h6-r-ccu
42b467ec06SMaxime Ripard      - allwinner,suniv-f1c100s-ccu
43b467ec06SMaxime Ripard      - nextthing,gr8-ccu
44b467ec06SMaxime Ripard
45b467ec06SMaxime Ripard  reg:
46b467ec06SMaxime Ripard    maxItems: 1
47b467ec06SMaxime Ripard
48b467ec06SMaxime Ripard  clocks:
49b467ec06SMaxime Ripard    minItems: 2
50b467ec06SMaxime Ripard    maxItems: 4
51b467ec06SMaxime Ripard    items:
52b467ec06SMaxime Ripard      - description: High Frequency Oscillator (usually at 24MHz)
53b467ec06SMaxime Ripard      - description: Low Frequency Oscillator (usually at 32kHz)
54b467ec06SMaxime Ripard      - description: Internal Oscillator
55b467ec06SMaxime Ripard      - description: Peripherals PLL
56b467ec06SMaxime Ripard
57b467ec06SMaxime Ripard  clock-names:
58b467ec06SMaxime Ripard    minItems: 2
59b467ec06SMaxime Ripard    maxItems: 4
60b467ec06SMaxime Ripard    items:
61b467ec06SMaxime Ripard      - const: hosc
62b467ec06SMaxime Ripard      - const: losc
63b467ec06SMaxime Ripard      - const: iosc
64b467ec06SMaxime Ripard      - const: pll-periph
65b467ec06SMaxime Ripard
66b467ec06SMaxime Ripardrequired:
67b467ec06SMaxime Ripard  - "#clock-cells"
68b467ec06SMaxime Ripard  - "#reset-cells"
69b467ec06SMaxime Ripard  - compatible
70b467ec06SMaxime Ripard  - reg
71b467ec06SMaxime Ripard  - clocks
72b467ec06SMaxime Ripard  - clock-names
73b467ec06SMaxime Ripard
74b467ec06SMaxime Ripardif:
75b467ec06SMaxime Ripard  properties:
76b467ec06SMaxime Ripard    compatible:
77b467ec06SMaxime Ripard      enum:
78b467ec06SMaxime Ripard        - allwinner,sun8i-a83t-r-ccu
79b467ec06SMaxime Ripard        - allwinner,sun8i-h3-r-ccu
80b467ec06SMaxime Ripard        - allwinner,sun50i-a64-r-ccu
81b467ec06SMaxime Ripard        - allwinner,sun50i-h6-r-ccu
82b467ec06SMaxime Ripard
83b467ec06SMaxime Ripardthen:
84b467ec06SMaxime Ripard  properties:
85b467ec06SMaxime Ripard    clocks:
86b467ec06SMaxime Ripard      minItems: 4
87b467ec06SMaxime Ripard      maxItems: 4
88b467ec06SMaxime Ripard
89b467ec06SMaxime Ripard    clock-names:
90b467ec06SMaxime Ripard      minItems: 4
91b467ec06SMaxime Ripard      maxItems: 4
92b467ec06SMaxime Ripard
93b467ec06SMaxime Ripardelse:
94b467ec06SMaxime Ripard  if:
95b467ec06SMaxime Ripard    properties:
96b467ec06SMaxime Ripard      compatible:
97b467ec06SMaxime Ripard        const: allwinner,sun50i-h6-ccu
98b467ec06SMaxime Ripard
99b467ec06SMaxime Ripard  then:
100b467ec06SMaxime Ripard    properties:
101b467ec06SMaxime Ripard      clocks:
102b467ec06SMaxime Ripard        minItems: 3
103b467ec06SMaxime Ripard        maxItems: 3
104b467ec06SMaxime Ripard
105b467ec06SMaxime Ripard      clock-names:
106b467ec06SMaxime Ripard        minItems: 3
107b467ec06SMaxime Ripard        maxItems: 3
108b467ec06SMaxime Ripard
109b467ec06SMaxime Ripard  else:
110b467ec06SMaxime Ripard    properties:
111b467ec06SMaxime Ripard      clocks:
112b467ec06SMaxime Ripard        minItems: 2
113b467ec06SMaxime Ripard        maxItems: 2
114b467ec06SMaxime Ripard
115b467ec06SMaxime Ripard      clock-names:
116b467ec06SMaxime Ripard        minItems: 2
117b467ec06SMaxime Ripard        maxItems: 2
118b467ec06SMaxime Ripard
119b467ec06SMaxime RipardadditionalProperties: false
120b467ec06SMaxime Ripard
121b467ec06SMaxime Ripardexamples:
122b467ec06SMaxime Ripard  - |
123b467ec06SMaxime Ripard    ccu: clock@1c20000 {
124b467ec06SMaxime Ripard        compatible = "allwinner,sun8i-h3-ccu";
125b467ec06SMaxime Ripard        reg = <0x01c20000 0x400>;
126b467ec06SMaxime Ripard        clocks = <&osc24M>, <&osc32k>;
127b467ec06SMaxime Ripard        clock-names = "hosc", "losc";
128b467ec06SMaxime Ripard        #clock-cells = <1>;
129b467ec06SMaxime Ripard        #reset-cells = <1>;
130b467ec06SMaxime Ripard    };
131b467ec06SMaxime Ripard
132b467ec06SMaxime Ripard  - |
133b467ec06SMaxime Ripard    r_ccu: clock@1f01400 {
134b467ec06SMaxime Ripard        compatible = "allwinner,sun50i-a64-r-ccu";
135b467ec06SMaxime Ripard        reg = <0x01f01400 0x100>;
136b467ec06SMaxime Ripard        clocks = <&osc24M>, <&osc32k>, <&iosc>, <&ccu 11>;
137b467ec06SMaxime Ripard        clock-names = "hosc", "losc", "iosc", "pll-periph";
138b467ec06SMaxime Ripard        #clock-cells = <1>;
139b467ec06SMaxime Ripard        #reset-cells = <1>;
140b467ec06SMaxime Ripard    };
141b467ec06SMaxime Ripard
142b467ec06SMaxime Ripard...
143