File tree Expand file tree Collapse file tree 1 file changed +63
-0
lines changed
Documentation/devicetree/bindings/rtc Expand file tree Collapse file tree 1 file changed +63
-0
lines changed Original file line number Diff line number Diff line change
1
+ # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2
+ # Copyright (C) 2024 Amlogic, Inc. All rights reserved
3
+ %YAML 1.2
4
+ ---
5
+ $id : http://devicetree.org/schemas/rtc/amlogic,a4-rtc.yaml#
6
+ $schema : http://devicetree.org/meta-schemas/core.yaml#
7
+
8
+ title : Amlogic A4 and A5 RTC
9
+
10
+ maintainers :
11
+
12
+ -
Xianwei Zhao <[email protected] >
13
+
14
+ allOf :
15
+ - $ref : rtc.yaml#
16
+
17
+ properties :
18
+ compatible :
19
+ enum :
20
+ - amlogic,a4-rtc
21
+ - amlogic,a5-rtc
22
+
23
+ reg :
24
+ maxItems : 1
25
+
26
+ clocks :
27
+ items :
28
+ - description : RTC clock source, available 24M or 32K crystal
29
+ oscillator source. when using 24M, need to divide 24M into 32K.
30
+ - description : RTC module accesses the clock of the apb bus.
31
+
32
+ clock-names :
33
+ items :
34
+ - const : osc
35
+ - const : sys
36
+
37
+ interrupts :
38
+ maxItems : 1
39
+
40
+ required :
41
+ - compatible
42
+ - reg
43
+ - clocks
44
+ - clock-names
45
+ - interrupts
46
+
47
+ additionalProperties : false
48
+
49
+ examples :
50
+ - |
51
+ #include <dt-bindings/interrupt-controller/arm-gic.h>
52
+ apb {
53
+ #address-cells = <2>;
54
+ #size-cells = <2>;
55
+
56
+ rtc@8e600 {
57
+ compatible = "amlogic,a4-rtc";
58
+ reg = <0x0 0x8e600 0x0 0x38>;
59
+ clocks = <&xtal_32k>, <&clkc_periphs 1>;
60
+ clock-names = "osc", "sys";
61
+ interrupts = <GIC_SPI 131 IRQ_TYPE_EDGE_RISING>;
62
+ };
63
+ };
You can’t perform that action at this time.
0 commit comments