blob: d51b236939bf360aeff7ee8c081944e8f6f9364b [file] [log] [blame]
Tom Rini53633a82024-02-29 12:33:36 -05001# SPDX-License-Identifier: GPL-2.0
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/rtc/s3c-rtc.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Samsung S3C, S5P and Exynos Real Time Clock controller
8
9maintainers:
10 - Krzysztof Kozlowski <krzk@kernel.org>
11
12properties:
13 compatible:
14 oneOf:
15 - enum:
16 - samsung,s3c2410-rtc
17 - samsung,s3c2416-rtc
18 - samsung,s3c2443-rtc
19 - samsung,s3c6410-rtc
20 - const: samsung,exynos3250-rtc
21 deprecated: true
22
23 reg:
24 maxItems: 1
25
26 clocks:
27 description:
28 Must contain a list of phandle and clock specifier for the rtc
29 clock and in the case of a s3c6410 compatible controller, also
30 a source clock.
31 minItems: 1
32 maxItems: 2
33
34 clock-names:
35 description:
36 Must contain "rtc" and for a s3c6410 compatible controller
37 also "rtc_src".
38 minItems: 1
39 maxItems: 2
40
41 interrupts:
42 description:
43 Two interrupt numbers to the cpu should be specified. First
44 interrupt number is the rtc alarm interrupt and second interrupt number
45 is the rtc tick interrupt. The number of cells representing a interrupt
46 depends on the parent interrupt controller.
47 minItems: 2
48 maxItems: 2
49
50allOf:
51 - $ref: rtc.yaml#
52 - if:
53 properties:
54 compatible:
55 contains:
56 enum:
57 - samsung,s3c6410-rtc
58 - samsung,exynos3250-rtc
59 then:
60 properties:
61 clocks:
62 minItems: 2
63 maxItems: 2
64 clock-names:
65 items:
66 - const: rtc
67 - const: rtc_src
68 else:
69 properties:
70 clocks:
71 minItems: 1
72 maxItems: 1
73 clock-names:
74 items:
75 - const: rtc
76
77unevaluatedProperties: false
78
79examples:
80 - |
81 #include <dt-bindings/clock/exynos5420.h>
82 #include <dt-bindings/clock/samsung,s2mps11.h>
83
84 rtc@10070000 {
85 compatible = "samsung,s3c6410-rtc";
86 reg = <0x10070000 0x100>;
87 interrupts = <0 44 4>, <0 45 4>;
88 clocks = <&clock CLK_RTC>,
89 <&s2mps11_osc S2MPS11_CLK_AP>;
90 clock-names = "rtc", "rtc_src";
91 };