1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/rtc/ingenic,rtc.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Ingenic SoCs Real-Time Clock DT bindings
8
9maintainers:
10  - Paul Cercueil <paul@crapouillou.net>
11
12allOf:
13  - $ref: rtc.yaml#
14
15properties:
16  compatible:
17    oneOf:
18      - enum:
19          - ingenic,jz4740-rtc
20          - ingenic,jz4760-rtc
21      - items:
22          - const: ingenic,jz4725b-rtc
23          - const: ingenic,jz4740-rtc
24      - items:
25          - enum:
26              - ingenic,jz4770-rtc
27              - ingenic,jz4780-rtc
28          - const: ingenic,jz4760-rtc
29
30  reg:
31    maxItems: 1
32
33  interrupts:
34    maxItems: 1
35
36  clocks:
37    maxItems: 1
38
39  clock-names:
40    const: rtc
41
42  system-power-controller:
43    description: |
44      Indicates that the RTC is responsible for powering OFF
45      the system.
46    type: boolean
47
48  ingenic,reset-pin-assert-time-ms:
49    minimum: 0
50    maximum: 125
51    default: 60
52    description: |
53      Reset pin low-level assertion time after wakeup
54      (assuming RTC clock at 32 kHz)
55
56  ingenic,min-wakeup-pin-assert-time-ms:
57    minimum: 0
58    maximum: 2000
59    default: 100
60    description: |
61      Minimum wakeup pin assertion time
62      (assuming RTC clock at 32 kHz)
63
64required:
65  - compatible
66  - reg
67  - interrupts
68  - clocks
69  - clock-names
70
71examples:
72  - |
73    #include <dt-bindings/clock/jz4740-cgu.h>
74    rtc_dev: rtc@10003000 {
75      compatible = "ingenic,jz4740-rtc";
76      reg = <0x10003000 0x40>;
77
78      interrupt-parent = <&intc>;
79      interrupts = <15>;
80
81      clocks = <&cgu JZ4740_CLK_RTC>;
82      clock-names = "rtc";
83    };
84