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