xref: /freebsd/sys/contrib/device-tree/Bindings/rtc/mstar,msc313-rtc.yaml (revision fe75646a0234a261c0013bf1840fdac4acaf0cec)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/rtc/mstar,msc313-rtc.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Mstar MSC313e RTC
8
9allOf:
10  - $ref: rtc.yaml#
11
12maintainers:
13  - Daniel Palmer <daniel@0x0f.com>
14  - Romain Perier <romain.perier@gmail.com>
15
16properties:
17  compatible:
18    enum:
19      - mstar,msc313-rtc
20
21  reg:
22    maxItems: 1
23
24  interrupts:
25    maxItems: 1
26
27  start-year: true
28
29  clocks:
30    maxItems: 1
31
32required:
33  - compatible
34  - reg
35  - interrupts
36  - clocks
37
38additionalProperties: false
39
40examples:
41  - |
42    #include <dt-bindings/interrupt-controller/arm-gic.h>
43    rtc@2400 {
44        compatible = "mstar,msc313-rtc";
45        reg = <0x2400 0x40>;
46        clocks = <&xtal_div2>;
47        interrupts-extended = <&intc_irq GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
48    };
49...
50