GNU Linux-libre 6.8.9-gnu
[releases.git] / Documentation / devicetree / bindings / rtc / ti,k3-rtc.yaml
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
7 title: Texas Instruments K3 Real Time Clock
8
9 maintainers:
10   - Nishanth Menon <nm@ti.com>
11
12 description: |
13   This RTC appears in the AM62x family of SoCs.
14
15 allOf:
16   - $ref: rtc.yaml#
17
18 properties:
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
42 required:
43   - compatible
44   - reg
45   - interrupts
46   - clocks
47   - clock-names
48
49 unevaluatedProperties: false
50
51 examples:
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     };