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