xref: /freebsd/sys/contrib/device-tree/Bindings/rtc/haoyu,hym8563.yaml (revision 02e9120893770924227138ba49df1edb3896112a)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/rtc/haoyu,hym8563.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Haoyu Microelectronics HYM8563 RTC
8
9maintainers:
10  - Alexandre Belloni <alexandre.belloni@bootlin.com>
11
12properties:
13  compatible:
14    const: haoyu,hym8563
15
16  reg:
17    maxItems: 1
18
19  interrupts:
20    maxItems: 1
21
22  "#clock-cells":
23    const: 0
24
25  clock-output-names:
26    description: From common clock binding to override the default output clock name.
27    maxItems: 1
28
29  wakeup-source:
30    description: Enables wake up of host system on alarm.
31
32allOf:
33  - $ref: rtc.yaml
34
35unevaluatedProperties: false
36
37required:
38  - compatible
39  - reg
40  - "#clock-cells"
41
42examples:
43  - |
44    #include <dt-bindings/interrupt-controller/irq.h>
45
46    i2c {
47        #address-cells = <1>;
48        #size-cells = <0>;
49
50        rtc@51 {
51            compatible = "haoyu,hym8563";
52            reg = <0x51>;
53            interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
54            #clock-cells = <0>;
55        };
56    };
57