Thomas Abraham | e062b57 | 2013-03-09 17:02:52 +0900 | [diff] [blame] | 1 | * Samsung Exynos4 Clock Controller |
| 2 | |
| 3 | The Exynos4 clock controller generates and supplies clock to various controllers |
| 4 | within the Exynos4 SoC. The clock binding described here is applicable to all |
| 5 | SoC's in the Exynos4 family. |
| 6 | |
| 7 | Required Properties: |
| 8 | |
Laurent Pinchart | cdbea09 | 2013-11-18 12:46:12 +0100 | [diff] [blame] | 9 | - compatible: should be one of the following. |
Thomas Abraham | e062b57 | 2013-03-09 17:02:52 +0900 | [diff] [blame] | 10 | - "samsung,exynos4210-clock" - controller compatible with Exynos4210 SoC. |
| 11 | - "samsung,exynos4412-clock" - controller compatible with Exynos4412 SoC. |
| 12 | |
| 13 | - reg: physical base address of the controller and length of memory mapped |
| 14 | region. |
| 15 | |
| 16 | - #clock-cells: should be 1. |
| 17 | |
Andrzej Hajda | 1c75a78 | 2014-02-26 09:53:30 +0900 | [diff] [blame] | 18 | Each clock is assigned an identifier and client nodes can use this identifier |
| 19 | to specify the clock which they consume. |
Thomas Abraham | e062b57 | 2013-03-09 17:02:52 +0900 | [diff] [blame] | 20 | |
Andrzej Hajda | 1c75a78 | 2014-02-26 09:53:30 +0900 | [diff] [blame] | 21 | All available clocks are defined as preprocessor macros in |
| 22 | dt-bindings/clock/exynos4.h header and can be used in device |
| 23 | tree sources. |
Thomas Abraham | e062b57 | 2013-03-09 17:02:52 +0900 | [diff] [blame] | 24 | |
| 25 | Example 1: An example of a clock controller node is listed below. |
| 26 | |
| 27 | clock: clock-controller@0x10030000 { |
| 28 | compatible = "samsung,exynos4210-clock"; |
| 29 | reg = <0x10030000 0x20000>; |
| 30 | #clock-cells = <1>; |
| 31 | }; |
| 32 | |
| 33 | Example 2: UART controller node that consumes the clock generated by the clock |
| 34 | controller. Refer to the standard clock bindings for information |
| 35 | about 'clocks' and 'clock-names' property. |
| 36 | |
| 37 | serial@13820000 { |
| 38 | compatible = "samsung,exynos4210-uart"; |
| 39 | reg = <0x13820000 0x100>; |
| 40 | interrupts = <0 54 0>; |
Andrzej Hajda | 1c75a78 | 2014-02-26 09:53:30 +0900 | [diff] [blame] | 41 | clocks = <&clock CLK_UART2>, <&clock CLK_SCLK_UART2>; |
Thomas Abraham | e062b57 | 2013-03-09 17:02:52 +0900 | [diff] [blame] | 42 | clock-names = "uart", "clk_uart_baud0"; |
| 43 | }; |