1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/rtc/ti,k3-rtc.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Texas Instruments K3 Real Time Clock
8
9maintainers:
10  - Nishanth Menon <nm@ti.com>
11
12description: |
13  This RTC appears in the AM62x family of SoCs.
14
15allOf:
16  - $ref: rtc.yaml#
17
18properties:
19  compatible:
20    enum:
21      - ti,am62-rtc
22
23  reg:
24    maxItems: 1
25
26  interrupts:
27    maxItems: 1
28
29  clocks:
30    items:
31      - description: VBUS Interface clock
32      - description: 32k Clock source (external or internal).
33
34  clock-names:
35    items:
36      - const: vbus
37      - const: osc32k
38
39  power-domains:
40    maxItems: 1
41
42required:
43  - compatible
44  - reg
45  - interrupts
46  - clocks
47  - clock-names
48
49unevaluatedProperties: false
50
51examples:
52  - |
53    #include <dt-bindings/interrupt-controller/arm-gic.h>
54    rtc@2b1f0000 {
55        compatible = "ti,am62-rtc";
56        reg = <0x2b1f0000 0x100>;
57        interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>;
58        power-domains = <&bar 0>;
59        clocks = <&foo 0>, <&foo 1>;
60        clock-names = "vbus", "osc32k";
61        wakeup-source;
62    };
63