xref: /linux/Documentation/devicetree/bindings/rtc/s3c-rtc.yaml (revision e3966940559d52aa1800a008dcfeec218dd31f88)
1# 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,s3c6410-rtc
17      - items:
18          - enum:
19              - samsung,exynos7-rtc
20              - samsung,exynos850-rtc
21          - const: samsung,s3c6410-rtc
22      - const: samsung,exynos3250-rtc
23        deprecated: true
24
25  reg:
26    maxItems: 1
27
28  clocks:
29    maxItems: 2
30
31  clock-names:
32    items:
33      - const: rtc
34      - const: rtc_src
35
36  interrupts:
37    description:
38      Two interrupt numbers to the cpu should be specified. First
39      interrupt number is the rtc alarm interrupt and second interrupt number
40      is the rtc tick interrupt. The number of cells representing a interrupt
41      depends on the parent interrupt controller.
42    minItems: 2
43    maxItems: 2
44
45allOf:
46  - $ref: rtc.yaml#
47
48unevaluatedProperties: false
49
50examples:
51  - |
52    #include <dt-bindings/clock/exynos5420.h>
53    #include <dt-bindings/clock/samsung,s2mps11.h>
54
55    rtc@10070000 {
56        compatible = "samsung,s3c6410-rtc";
57        reg = <0x10070000 0x100>;
58        interrupts = <0 44 4>, <0 45 4>;
59        clocks = <&clock CLK_RTC>,
60                 <&s2mps11_osc S2MPS11_CLK_AP>;
61        clock-names = "rtc", "rtc_src";
62    };
63