18c2ecf20Sopenharmony_ci* Samsung S3C2410 Clock Controller
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciThe S3C2410 clock controller generates and supplies clock to various controllers
48c2ecf20Sopenharmony_ciwithin the SoC. The clock binding described here is applicable to the s3c2410,
58c2ecf20Sopenharmony_cis3c2440 and s3c2442 SoCs in the s3c24x family.
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ciRequired Properties:
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci- compatible: should be one of the following.
108c2ecf20Sopenharmony_ci  - "samsung,s3c2410-clock" - controller compatible with S3C2410 SoC.
118c2ecf20Sopenharmony_ci  - "samsung,s3c2440-clock" - controller compatible with S3C2440 SoC.
128c2ecf20Sopenharmony_ci  - "samsung,s3c2442-clock" - controller compatible with S3C2442 SoC.
138c2ecf20Sopenharmony_ci- reg: physical base address of the controller and length of memory mapped
148c2ecf20Sopenharmony_ci  region.
158c2ecf20Sopenharmony_ci- #clock-cells: should be 1.
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ciEach clock is assigned an identifier and client nodes can use this identifier
188c2ecf20Sopenharmony_cito specify the clock which they consume. Some of the clocks are available only
198c2ecf20Sopenharmony_cion a particular SoC.
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ciAll available clocks are defined as preprocessor macros in
228c2ecf20Sopenharmony_cidt-bindings/clock/s3c2410.h header and can be used in device
238c2ecf20Sopenharmony_citree sources.
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ciExternal clocks:
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_ciThe xti clock used as input for the plls is generated outside the SoC. It is
288c2ecf20Sopenharmony_ciexpected that is are defined using standard clock bindings with a
298c2ecf20Sopenharmony_ciclock-output-names value of "xti".
308c2ecf20Sopenharmony_ci
318c2ecf20Sopenharmony_ciExample: Clock controller node:
328c2ecf20Sopenharmony_ci
338c2ecf20Sopenharmony_ci	clocks: clock-controller@4c000000 {
348c2ecf20Sopenharmony_ci		compatible = "samsung,s3c2410-clock";
358c2ecf20Sopenharmony_ci		reg = <0x4c000000 0x20>;
368c2ecf20Sopenharmony_ci		#clock-cells = <1>;
378c2ecf20Sopenharmony_ci	};
388c2ecf20Sopenharmony_ci
398c2ecf20Sopenharmony_ciExample: UART controller node that consumes the clock generated by the clock
408c2ecf20Sopenharmony_ci  controller (refer to the standard clock bindings for information about
418c2ecf20Sopenharmony_ci  "clocks" and "clock-names" properties):
428c2ecf20Sopenharmony_ci
438c2ecf20Sopenharmony_ci	serial@50004000 {
448c2ecf20Sopenharmony_ci		compatible = "samsung,s3c2440-uart";
458c2ecf20Sopenharmony_ci		reg = <0x50004000 0x4000>;
468c2ecf20Sopenharmony_ci		interrupts = <1 23 3 4>, <1 23 4 4>;
478c2ecf20Sopenharmony_ci		clock-names = "uart", "clk_uart_baud2";
488c2ecf20Sopenharmony_ci		clocks = <&clocks PCLK_UART0>, <&clocks PCLK_UART0>;
498c2ecf20Sopenharmony_ci	};
50