18c2ecf20Sopenharmony_ci* Samsung S3C2443 Clock Controller 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ciThe S3C2443 clock controller generates and supplies clock to various controllers 48c2ecf20Sopenharmony_ciwithin the SoC. The clock binding described here is applicable to all SoCs in 58c2ecf20Sopenharmony_cithe s3c24x family starting with the s3c2443. 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ciRequired Properties: 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci- compatible: should be one of the following. 108c2ecf20Sopenharmony_ci - "samsung,s3c2416-clock" - controller compatible with S3C2416 SoC. 118c2ecf20Sopenharmony_ci - "samsung,s3c2443-clock" - controller compatible with S3C2443 SoC. 128c2ecf20Sopenharmony_ci - "samsung,s3c2450-clock" - controller compatible with S3C2450 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/s3c2443.h header and can be used in device 238c2ecf20Sopenharmony_citree sources. 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ciExternal clocks: 268c2ecf20Sopenharmony_ci 278c2ecf20Sopenharmony_ciThere are several clocks that are generated outside the SoC. It is expected 288c2ecf20Sopenharmony_cithat they are defined using standard clock bindings with following 298c2ecf20Sopenharmony_ciclock-output-names: 308c2ecf20Sopenharmony_ci - "xti" - crystal input - required, 318c2ecf20Sopenharmony_ci - "ext" - external clock source - optional, 328c2ecf20Sopenharmony_ci - "ext_i2s" - external I2S clock - optional, 338c2ecf20Sopenharmony_ci - "ext_uart" - external uart clock - optional, 348c2ecf20Sopenharmony_ci 358c2ecf20Sopenharmony_ciExample: Clock controller node: 368c2ecf20Sopenharmony_ci 378c2ecf20Sopenharmony_ci clocks: clock-controller@4c000000 { 388c2ecf20Sopenharmony_ci compatible = "samsung,s3c2416-clock"; 398c2ecf20Sopenharmony_ci reg = <0x4c000000 0x40>; 408c2ecf20Sopenharmony_ci #clock-cells = <1>; 418c2ecf20Sopenharmony_ci }; 428c2ecf20Sopenharmony_ci 438c2ecf20Sopenharmony_ciExample: UART controller node that consumes the clock generated by the clock 448c2ecf20Sopenharmony_ci controller (refer to the standard clock bindings for information about 458c2ecf20Sopenharmony_ci "clocks" and "clock-names" properties): 468c2ecf20Sopenharmony_ci 478c2ecf20Sopenharmony_ci serial@50004000 { 488c2ecf20Sopenharmony_ci compatible = "samsung,s3c2440-uart"; 498c2ecf20Sopenharmony_ci reg = <0x50004000 0x4000>; 508c2ecf20Sopenharmony_ci interrupts = <1 23 3 4>, <1 23 4 4>; 518c2ecf20Sopenharmony_ci clock-names = "uart", "clk_uart_baud2", 528c2ecf20Sopenharmony_ci "clk_uart_baud3"; 538c2ecf20Sopenharmony_ci clocks = <&clocks PCLK_UART0>, <&clocks PCLK_UART0>, 548c2ecf20Sopenharmony_ci <&clocks SCLK_UART>; 558c2ecf20Sopenharmony_ci }; 56