xref: /freebsd-src/sys/contrib/device-tree/Bindings/rtc/amlogic,meson6-rtc.yaml (revision 84943d6f38e936ac3b7a3947ca26eeb27a39f938)
18bab661aSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
28bab661aSEmmanuel Vadot%YAML 1.2
38bab661aSEmmanuel Vadot---
48bab661aSEmmanuel Vadot$id: http://devicetree.org/schemas/rtc/amlogic,meson6-rtc.yaml#
58bab661aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
68bab661aSEmmanuel Vadot
78bab661aSEmmanuel Vadottitle: Amlogic Meson6, Meson8, Meson8b and Meson8m2 RTC
88bab661aSEmmanuel Vadot
98bab661aSEmmanuel Vadotmaintainers:
108bab661aSEmmanuel Vadot  - Neil Armstrong <neil.armstrong@linaro.org>
118bab661aSEmmanuel Vadot  - Martin Blumenstingl <martin.blumenstingl@googlemail.com>
128bab661aSEmmanuel Vadot
138bab661aSEmmanuel VadotallOf:
148bab661aSEmmanuel Vadot  - $ref: rtc.yaml#
158bab661aSEmmanuel Vadot  - $ref: /schemas/nvmem/nvmem.yaml#
16*84943d6fSEmmanuel Vadot  - $ref: /schemas/nvmem/nvmem-deprecated-cells.yaml#
178bab661aSEmmanuel Vadot
188bab661aSEmmanuel Vadotproperties:
198bab661aSEmmanuel Vadot  compatible:
208bab661aSEmmanuel Vadot    enum:
218bab661aSEmmanuel Vadot      - amlogic,meson6-rtc
228bab661aSEmmanuel Vadot      - amlogic,meson8-rtc
238bab661aSEmmanuel Vadot      - amlogic,meson8b-rtc
248bab661aSEmmanuel Vadot      - amlogic,meson8m2-rtc
258bab661aSEmmanuel Vadot
268bab661aSEmmanuel Vadot  reg:
278bab661aSEmmanuel Vadot    maxItems: 1
288bab661aSEmmanuel Vadot
298bab661aSEmmanuel Vadot  clocks:
308bab661aSEmmanuel Vadot    maxItems: 1
318bab661aSEmmanuel Vadot
328bab661aSEmmanuel Vadot  interrupts:
338bab661aSEmmanuel Vadot    maxItems: 1
348bab661aSEmmanuel Vadot
358bab661aSEmmanuel Vadot  resets:
368bab661aSEmmanuel Vadot    maxItems: 1
378bab661aSEmmanuel Vadot
388bab661aSEmmanuel Vadot  vdd-supply: true
398bab661aSEmmanuel Vadot
408bab661aSEmmanuel Vadotrequired:
418bab661aSEmmanuel Vadot  - compatible
428bab661aSEmmanuel Vadot  - reg
438bab661aSEmmanuel Vadot
448bab661aSEmmanuel VadotunevaluatedProperties: false
458bab661aSEmmanuel Vadot
468bab661aSEmmanuel Vadotexamples:
478bab661aSEmmanuel Vadot  - |
488bab661aSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/irq.h>
498bab661aSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
508bab661aSEmmanuel Vadot    rtc: rtc@740 {
518bab661aSEmmanuel Vadot        compatible = "amlogic,meson6-rtc";
528bab661aSEmmanuel Vadot        reg = <0x740 0x14>;
538bab661aSEmmanuel Vadot        interrupts = <GIC_SPI 72 IRQ_TYPE_EDGE_RISING>;
548bab661aSEmmanuel Vadot        clocks = <&rtc32k_xtal>;
558bab661aSEmmanuel Vadot        vdd-supply = <&rtc_vdd>;
568bab661aSEmmanuel Vadot        resets = <&reset_rtc>;
578bab661aSEmmanuel Vadot        #address-cells = <1>;
588bab661aSEmmanuel Vadot        #size-cells = <1>;
598bab661aSEmmanuel Vadot
608bab661aSEmmanuel Vadot        mac@0 {
618bab661aSEmmanuel Vadot            reg = <0 6>;
628bab661aSEmmanuel Vadot        };
638bab661aSEmmanuel Vadot    };
64