Thomas Abraham | 39ce408 | 2011-10-24 14:49:04 +0200 | [diff] [blame] | 1 | * Samsung's S3C Real Time Clock controller |
| 2 | |
| 3 | Required properties: |
| 4 | - compatible: should be one of the following. |
| 5 | * "samsung,s3c2410-rtc" - for controllers compatible with s3c2410 rtc. |
Chanwoo Choi | d67288d | 2014-10-13 15:52:31 -0700 | [diff] [blame] | 6 | * "samsung,s3c2416-rtc" - for controllers compatible with s3c2416 rtc. |
| 7 | * "samsung,s3c2443-rtc" - for controllers compatible with s3c2443 rtc. |
Thomas Abraham | 39ce408 | 2011-10-24 14:49:04 +0200 | [diff] [blame] | 8 | * "samsung,s3c6410-rtc" - for controllers compatible with s3c6410 rtc. |
Krzysztof Kozlowski | 062f49c | 2015-05-02 14:33:55 +0900 | [diff] [blame] | 9 | * "samsung,exynos3250-rtc" - (deprecated) for controllers compatible with |
| 10 | exynos3250 rtc (use "samsung,s3c6410-rtc"). |
Thomas Abraham | 39ce408 | 2011-10-24 14:49:04 +0200 | [diff] [blame] | 11 | - reg: physical base address of the controller and length of memory mapped |
| 12 | region. |
| 13 | - interrupts: Two interrupt numbers to the cpu should be specified. First |
Masanari Iida | f21ccfa | 2013-01-14 15:14:56 +0900 | [diff] [blame] | 14 | interrupt number is the rtc alarm interrupt and second interrupt number |
Thomas Abraham | 39ce408 | 2011-10-24 14:49:04 +0200 | [diff] [blame] | 15 | is the rtc tick interrupt. The number of cells representing a interrupt |
| 16 | depends on the parent interrupt controller. |
Javier Martinez Canillas | 43f3408 | 2016-02-09 14:23:52 -0300 | [diff] [blame] | 17 | - clocks: Must contain a list of phandle and clock specifier for the rtc |
Javier Martinez Canillas | 00c9329 | 2016-02-15 11:11:06 -0300 | [diff] [blame] | 18 | clock and in the case of a s3c6410 compatible controller, also |
| 19 | a source clock. |
| 20 | - clock-names: Must contain "rtc" and for a s3c6410 compatible controller, |
| 21 | a "rtc_src" sorted in the same order as the clocks property. |
Thomas Abraham | 39ce408 | 2011-10-24 14:49:04 +0200 | [diff] [blame] | 22 | |
| 23 | Example: |
| 24 | |
| 25 | rtc@10070000 { |
| 26 | compatible = "samsung,s3c6410-rtc"; |
| 27 | reg = <0x10070000 0x100>; |
| 28 | interrupts = <44 0 45 0>; |
Javier Martinez Canillas | 43f3408 | 2016-02-09 14:23:52 -0300 | [diff] [blame] | 29 | clocks = <&clock CLK_RTC>, <&s2mps11_osc S2MPS11_CLK_AP>; |
| 30 | clock-names = "rtc", "rtc_src"; |
Thomas Abraham | 39ce408 | 2011-10-24 14:49:04 +0200 | [diff] [blame] | 31 | }; |