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