1*4882a593Smuzhiyun* Samsung S3C2410 Clock Controller 2*4882a593Smuzhiyun 3*4882a593SmuzhiyunThe S3C2410 clock controller generates and supplies clock to various controllers 4*4882a593Smuzhiyunwithin the SoC. The clock binding described here is applicable to the s3c2410, 5*4882a593Smuzhiyuns3c2440 and s3c2442 SoCs in the s3c24x family. 6*4882a593Smuzhiyun 7*4882a593SmuzhiyunRequired Properties: 8*4882a593Smuzhiyun 9*4882a593Smuzhiyun- compatible: should be one of the following. 10*4882a593Smuzhiyun - "samsung,s3c2410-clock" - controller compatible with S3C2410 SoC. 11*4882a593Smuzhiyun - "samsung,s3c2440-clock" - controller compatible with S3C2440 SoC. 12*4882a593Smuzhiyun - "samsung,s3c2442-clock" - controller compatible with S3C2442 SoC. 13*4882a593Smuzhiyun- reg: physical base address of the controller and length of memory mapped 14*4882a593Smuzhiyun region. 15*4882a593Smuzhiyun- #clock-cells: should be 1. 16*4882a593Smuzhiyun 17*4882a593SmuzhiyunEach clock is assigned an identifier and client nodes can use this identifier 18*4882a593Smuzhiyunto specify the clock which they consume. Some of the clocks are available only 19*4882a593Smuzhiyunon a particular SoC. 20*4882a593Smuzhiyun 21*4882a593SmuzhiyunAll available clocks are defined as preprocessor macros in 22*4882a593Smuzhiyundt-bindings/clock/s3c2410.h header and can be used in device 23*4882a593Smuzhiyuntree sources. 24*4882a593Smuzhiyun 25*4882a593SmuzhiyunExternal clocks: 26*4882a593Smuzhiyun 27*4882a593SmuzhiyunThe xti clock used as input for the plls is generated outside the SoC. It is 28*4882a593Smuzhiyunexpected that is are defined using standard clock bindings with a 29*4882a593Smuzhiyunclock-output-names value of "xti". 30*4882a593Smuzhiyun 31*4882a593SmuzhiyunExample: Clock controller node: 32*4882a593Smuzhiyun 33*4882a593Smuzhiyun clocks: clock-controller@4c000000 { 34*4882a593Smuzhiyun compatible = "samsung,s3c2410-clock"; 35*4882a593Smuzhiyun reg = <0x4c000000 0x20>; 36*4882a593Smuzhiyun #clock-cells = <1>; 37*4882a593Smuzhiyun }; 38*4882a593Smuzhiyun 39*4882a593SmuzhiyunExample: UART controller node that consumes the clock generated by the clock 40*4882a593Smuzhiyun controller (refer to the standard clock bindings for information about 41*4882a593Smuzhiyun "clocks" and "clock-names" properties): 42*4882a593Smuzhiyun 43*4882a593Smuzhiyun serial@50004000 { 44*4882a593Smuzhiyun compatible = "samsung,s3c2440-uart"; 45*4882a593Smuzhiyun reg = <0x50004000 0x4000>; 46*4882a593Smuzhiyun interrupts = <1 23 3 4>, <1 23 4 4>; 47*4882a593Smuzhiyun clock-names = "uart", "clk_uart_baud2"; 48*4882a593Smuzhiyun clocks = <&clocks PCLK_UART0>, <&clocks PCLK_UART0>; 49*4882a593Smuzhiyun }; 50