Debian Codegraph @

Documentation/devicetree/bindings/clock/samsung,exynosautov920-clock.yaml

raw
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/clock/samsung,exynosautov920-clock.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Samsung ExynosAuto v920 SoC clock controller
8
9 maintainers:
10 - Sunyeal Hong <[email protected]>
11 - Shin Son <[email protected]>
12 - Chanwoo Choi <[email protected]>
13 - Krzysztof Kozlowski <[email protected]>
14 - Sylwester Nawrocki <[email protected]>
15
16 description: |
17 ExynosAuto v920 clock controller is comprised of several CMU units, generating
18 clocks for different domains. Those CMU units are modeled as separate device
19 tree nodes, and might depend on each other. Root clocks in that clock tree are
20 two external clocks:: OSCCLK/XTCXO (38.4 MHz) and RTCCLK/XrtcXTI (32768 Hz).
21 The external OSCCLK must be defined as fixed-rate clock in dts.
22
23 CMU_TOP is a top-level CMU, where all base clocks are prepared using PLLs and
24 dividers; all other clocks of function blocks (other CMUs) are usually
25 derived from CMU_TOP.
26
27 Each clock is assigned an identifier and client nodes can use this identifier
28 to specify the clock which they consume. All clocks available for usage
29 in clock consumer nodes are defined as preprocessor macros in
30 'include/dt-bindings/clock/samsung,exynosautov920.h' header.
31
32 properties:
33 compatible:
34 enum:
35 - samsung,exynosautov920-cmu-cpucl0
36 - samsung,exynosautov920-cmu-cpucl1
37 - samsung,exynosautov920-cmu-cpucl2
38 - samsung,exynosautov920-cmu-hsi0
39 - samsung,exynosautov920-cmu-hsi1
40 - samsung,exynosautov920-cmu-hsi2
41 - samsung,exynosautov920-cmu-m2m
42 - samsung,exynosautov920-cmu-mfc
43 - samsung,exynosautov920-cmu-mfd
44 - samsung,exynosautov920-cmu-misc
45 - samsung,exynosautov920-cmu-peric0
46 - samsung,exynosautov920-cmu-peric1
47 - samsung,exynosautov920-cmu-top
48
49 clocks:
50 minItems: 1
51 maxItems: 5
52
53 clock-names:
54 minItems: 1
55 maxItems: 5
56
57 "#clock-cells":
58 const: 1
59
60 reg:
61 maxItems: 1
62
63 allOf:
64 - if:
65 properties:
66 compatible:
67 contains:
68 const: samsung,exynosautov920-cmu-top
69
70 then:
71 properties:
72 clocks:
73 items:
74 - description: External reference clock (38.4 MHz)
75
76 clock-names:
77 items:
78 - const: oscclk
79
80 - if:
81 properties:
82 compatible:
83 contains:
84 enum:
85 - samsung,exynosautov920-cmu-cpucl0
86
87 then:
88 properties:
89 clocks:
90 items:
91 - description: External reference clock (38.4 MHz)
92 - description: CMU_CPUCL0 SWITCH clock (from CMU_TOP)
93 - description: CMU_CPUCL0 CLUSTER clock (from CMU_TOP)
94 - description: CMU_CPUCL0 DBG clock (from CMU_TOP)
95
96 clock-names:
97 items:
98 - const: oscclk
99 - const: switch
100 - const: cluster
101 - const: dbg
102
103 - if:
104 properties:
105 compatible:
106 contains:
107 enum:
108 - samsung,exynosautov920-cmu-cpucl1
109
110 then:
111 properties:
112 clocks:
113 items:
114 - description: External reference clock (38.4 MHz)
115 - description: CMU_CPUCL1 SWITCH clock (from CMU_TOP)
116 - description: CMU_CPUCL1 CLUSTER clock (from CMU_TOP)
117
118 clock-names:
119 items:
120 - const: oscclk
121 - const: switch
122 - const: cluster
123
124 - if:
125 properties:
126 compatible:
127 contains:
128 enum:
129 - samsung,exynosautov920-cmu-cpucl2
130
131 then:
132 properties:
133 clocks:
134 items:
135 - description: External reference clock (38.4 MHz)
136 - description: CMU_CPUCL2 SWITCH clock (from CMU_TOP)
137 - description: CMU_CPUCL2 CLUSTER clock (from CMU_TOP)
138
139 clock-names:
140 items:
141 - const: oscclk
142 - const: switch
143 - const: cluster
144
145 - if:
146 properties:
147 compatible:
148 contains:
149 enum:
150 - samsung,exynosautov920-cmu-peric0
151 - samsung,exynosautov920-cmu-peric1
152
153 then:
154 properties:
155 clocks:
156 items:
157 - description: External reference clock (38.4 MHz)
158 - description: CMU_PERICn NOC clock (from CMU_TOP)
159 - description: CMU_PERICn IP clock (from CMU_TOP)
160
161 clock-names:
162 items:
163 - const: oscclk
164 - const: noc
165 - const: ip
166
167 - if:
168 properties:
169 compatible:
170 enum:
171 - samsung,exynosautov920-cmu-misc
172 - samsung,exynosautov920-cmu-hsi0
173
174 then:
175 properties:
176 clocks:
177 items:
178 - description: External reference clock (38.4 MHz)
179 - description: CMU_MISC/CMU_HSI0 NOC clock (from CMU_TOP)
180
181 clock-names:
182 items:
183 - const: oscclk
184 - const: noc
185
186 - if:
187 properties:
188 compatible:
189 contains:
190 const: samsung,exynosautov920-cmu-hsi1
191
192 then:
193 properties:
194 clocks:
195 items:
196 - description: External reference clock (38.4 MHz)
197 - description: CMU_HSI1 NOC clock (from CMU_TOP)
198 - description: CMU_HSI1 USBDRD clock (from CMU_TOP)
199 - description: CMU_HSI1 MMC_CARD clock (from CMU_TOP)
200
201 clock-names:
202 items:
203 - const: oscclk
204 - const: noc
205 - const: usbdrd
206 - const: mmc_card
207
208 - if:
209 properties:
210 compatible:
211 contains:
212 const: samsung,exynosautov920-cmu-hsi2
213
214 then:
215 properties:
216 clocks:
217 items:
218 - description: External reference clock (38.4 MHz)
219 - description: CMU_HSI2 NOC clock (from CMU_TOP)
220 - description: CMU_HSI2 NOC UFS clock (from CMU_TOP)
221 - description: CMU_HSI2 UFS EMBD clock (from CMU_TOP)
222 - description: CMU_HSI2 ETHERNET clock (from CMU_TOP)
223
224 clock-names:
225 items:
226 - const: oscclk
227 - const: noc
228 - const: ufs
229 - const: embd
230 - const: ethernet
231
232 - if:
233 properties:
234 compatible:
235 contains:
236 const: samsung,exynosautov920-cmu-m2m
237
238 then:
239 properties:
240 clocks:
241 items:
242 - description: External reference clock (38.4 MHz)
243 - description: CMU_M2M NOC clock (from CMU_TOP)
244 - description: CMU_M2M JPEG clock (from CMU_TOP)
245
246 clock-names:
247 items:
248 - const: oscclk
249 - const: noc
250 - const: jpeg
251
252 - if:
253 properties:
254 compatible:
255 contains:
256 const: samsung,exynosautov920-cmu-mfc
257
258 then:
259 properties:
260 clocks:
261 items:
262 - description: External reference clock (38.4 MHz)
263 - description: CMU_MFC MFC clock (from CMU_TOP)
264 - description: CMU_MFC WFD clock (from CMU_TOP)
265
266 clock-names:
267 items:
268 - const: oscclk
269 - const: mfc
270 - const: wfd
271
272 - if:
273 properties:
274 compatible:
275 contains:
276 const: samsung,exynosautov920-cmu-mfd
277
278 then:
279 properties:
280 clocks:
281 items:
282 - description: External reference clock (38.4 MHz)
283 - description: CMU_MFD NOC clock (from CMU_TOP)
284
285 clock-names:
286 items:
287 - const: oscclk
288 - const: noc
289
290 required:
291 - compatible
292 - "#clock-cells"
293 - clocks
294 - clock-names
295 - reg
296
297 additionalProperties: false
298
299 examples:
300 # Clock controller node for CMU_PERIC0
301 - |
302 #include <dt-bindings/clock/samsung,exynosautov920.h>
303
304 cmu_peric0: clock-controller@10800000 {
305 compatible = "samsung,exynosautov920-cmu-peric0";
306 reg = <0x10800000 0x8000>;
307 #clock-cells = <1>;
308
309 clocks = <&xtcxo>,
310 <&cmu_top DOUT_CLKCMU_PERIC0_NOC>,
311 <&cmu_top DOUT_CLKCMU_PERIC0_IP>;
312 clock-names = "oscclk",
313 "noc",
314 "ip";
315 };
316
317 ...