Merge tag 'linux-kselftest-kunit-fixes-5.11-rc3' of git://git.kernel.org/pub/scm...
[linux/fpc-iii.git] / Documentation / devicetree / bindings / rtc / ingenic,rtc.yaml
blob60e93e86ad9d52981b509f6957a43de3bec22042
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#
7 title: Ingenic SoCs Real-Time Clock DT bindings
9 maintainers:
10   - Paul Cercueil <paul@crapouillou.net>
12 allOf:
13   - $ref: rtc.yaml#
15 properties:
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
30   reg:
31     maxItems: 1
33   interrupts:
34     maxItems: 1
36   clocks:
37     maxItems: 1
39   clock-names:
40     const: rtc
42   system-power-controller:
43     description: |
44       Indicates that the RTC is responsible for powering OFF
45       the system.
46     type: boolean
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)
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)
64 required:
65   - compatible
66   - reg
67   - interrupts
68   - clocks
69   - clock-names
71 unevaluatedProperties: false
73 examples:
74   - |
75     #include <dt-bindings/clock/jz4740-cgu.h>
76     rtc_dev: rtc@10003000 {
77       compatible = "ingenic,jz4740-rtc";
78       reg = <0x10003000 0x40>;
80       interrupt-parent = <&intc>;
81       interrupts = <15>;
83       clocks = <&cgu JZ4740_CLK_RTC>;
84       clock-names = "rtc";
85     };