diff options
author | Heiko Stuebner <heiko@sntech.de> | 2014-02-24 19:50:44 -0500 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2014-04-14 13:11:36 -0400 |
commit | 7d03fed8e56ba5ffdae67c64d181a010a2a56d9b (patch) | |
tree | c5694d9e386ccdfe5fc7e95b596f9f767cb34400 /Documentation/devicetree/bindings | |
parent | ea5d6a8d3ee606086118d3b4d4b3a49693e92960 (diff) |
dt-bindings: add documentation for s3c2412 clock controller
Describe the clock controller of the s3c2412.
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'Documentation/devicetree/bindings')
-rw-r--r-- | Documentation/devicetree/bindings/clock/samsung,s3c2412-clock.txt | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/clock/samsung,s3c2412-clock.txt b/Documentation/devicetree/bindings/clock/samsung,s3c2412-clock.txt new file mode 100644 index 000000000000..2b430960ba47 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/samsung,s3c2412-clock.txt | |||
@@ -0,0 +1,50 @@ | |||
1 | * Samsung S3C2412 Clock Controller | ||
2 | |||
3 | The S3C2412 clock controller generates and supplies clock to various controllers | ||
4 | within the SoC. The clock binding described here is applicable to the s3c2412 | ||
5 | and s3c2413 SoCs in the s3c24x family. | ||
6 | |||
7 | Required Properties: | ||
8 | |||
9 | - compatible: should be "samsung,s3c2412-clock" | ||
10 | - reg: physical base address of the controller and length of memory mapped | ||
11 | region. | ||
12 | - #clock-cells: should be 1. | ||
13 | |||
14 | Each clock is assigned an identifier and client nodes can use this identifier | ||
15 | to specify the clock which they consume. Some of the clocks are available only | ||
16 | on a particular SoC. | ||
17 | |||
18 | All available clocks are defined as preprocessor macros in | ||
19 | dt-bindings/clock/s3c2412.h header and can be used in device | ||
20 | tree sources. | ||
21 | |||
22 | External clocks: | ||
23 | |||
24 | There are several clocks that are generated outside the SoC. It is expected | ||
25 | that they are defined using standard clock bindings with following | ||
26 | clock-output-names: | ||
27 | - "xti" - crystal input - required, | ||
28 | - "ext" - external clock source - optional, | ||
29 | |||
30 | Example: Clock controller node: | ||
31 | |||
32 | clocks: clock-controller@4c000000 { | ||
33 | compatible = "samsung,s3c2412-clock"; | ||
34 | reg = <0x4c000000 0x20>; | ||
35 | #clock-cells = <1>; | ||
36 | }; | ||
37 | |||
38 | Example: UART controller node that consumes the clock generated by the clock | ||
39 | controller (refer to the standard clock bindings for information about | ||
40 | "clocks" and "clock-names" properties): | ||
41 | |||
42 | serial@50004000 { | ||
43 | compatible = "samsung,s3c2412-uart"; | ||
44 | reg = <0x50004000 0x4000>; | ||
45 | interrupts = <1 23 3 4>, <1 23 4 4>; | ||
46 | clock-names = "uart", "clk_uart_baud2", "clk_uart_baud3"; | ||
47 | clocks = <&clocks PCLK_UART0>, <&clocks PCLK_UART0>, | ||
48 | <&clocks SCLK_UART>; | ||
49 | status = "disabled"; | ||
50 | }; | ||