xref: /freebsd/sys/contrib/device-tree/Bindings/rtc/amlogic,meson6-rtc.yaml (revision fac71e4e09885bb2afa3d984a0c239a52e1a7418)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/rtc/amlogic,meson6-rtc.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Amlogic Meson6, Meson8, Meson8b and Meson8m2 RTC
8
9maintainers:
10  - Neil Armstrong <neil.armstrong@linaro.org>
11  - Martin Blumenstingl <martin.blumenstingl@googlemail.com>
12
13allOf:
14  - $ref: rtc.yaml#
15  - $ref: /schemas/nvmem/nvmem.yaml#
16
17properties:
18  compatible:
19    enum:
20      - amlogic,meson6-rtc
21      - amlogic,meson8-rtc
22      - amlogic,meson8b-rtc
23      - amlogic,meson8m2-rtc
24
25  reg:
26    maxItems: 1
27
28  clocks:
29    maxItems: 1
30
31  interrupts:
32    maxItems: 1
33
34  resets:
35    maxItems: 1
36
37  vdd-supply: true
38
39required:
40  - compatible
41  - reg
42
43unevaluatedProperties: false
44
45examples:
46  - |
47    #include <dt-bindings/interrupt-controller/irq.h>
48    #include <dt-bindings/interrupt-controller/arm-gic.h>
49    rtc: rtc@740 {
50        compatible = "amlogic,meson6-rtc";
51        reg = <0x740 0x14>;
52        interrupts = <GIC_SPI 72 IRQ_TYPE_EDGE_RISING>;
53        clocks = <&rtc32k_xtal>;
54        vdd-supply = <&rtc_vdd>;
55        resets = <&reset_rtc>;
56        #address-cells = <1>;
57        #size-cells = <1>;
58
59        mac@0 {
60            reg = <0 6>;
61        };
62    };
63