xref: /freebsd/sys/contrib/device-tree/Bindings/rtc/xlnx,zynqmp-rtc.yaml (revision 5956d97f4b3204318ceb6aa9c77bd0bc6ea87a41)
1*5956d97fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*5956d97fSEmmanuel Vadot%YAML 1.2
3*5956d97fSEmmanuel Vadot---
4*5956d97fSEmmanuel Vadot$id: http://devicetree.org/schemas/rtc/xlnx,zynqmp-rtc.yaml#
5*5956d97fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*5956d97fSEmmanuel Vadot
7*5956d97fSEmmanuel Vadottitle: Xilinx Zynq Ultrascale+ MPSoC Real Time Clock
8*5956d97fSEmmanuel Vadot
9*5956d97fSEmmanuel Vadotdescription:
10*5956d97fSEmmanuel Vadot  RTC controller for the Xilinx Zynq MPSoC Real Time Clock.
11*5956d97fSEmmanuel Vadot  The RTC controller has separate IRQ lines for seconds and alarm.
12*5956d97fSEmmanuel Vadot
13*5956d97fSEmmanuel Vadotmaintainers:
14*5956d97fSEmmanuel Vadot  - Michal Simek <michal.simek@xilinx.com>
15*5956d97fSEmmanuel Vadot
16*5956d97fSEmmanuel VadotallOf:
17*5956d97fSEmmanuel Vadot  - $ref: rtc.yaml#
18*5956d97fSEmmanuel Vadot
19*5956d97fSEmmanuel Vadotproperties:
20*5956d97fSEmmanuel Vadot  compatible:
21*5956d97fSEmmanuel Vadot    const: xlnx,zynqmp-rtc
22*5956d97fSEmmanuel Vadot
23*5956d97fSEmmanuel Vadot  reg:
24*5956d97fSEmmanuel Vadot    maxItems: 1
25*5956d97fSEmmanuel Vadot
26*5956d97fSEmmanuel Vadot  interrupts:
27*5956d97fSEmmanuel Vadot    minItems: 2
28*5956d97fSEmmanuel Vadot
29*5956d97fSEmmanuel Vadot  interrupt-names:
30*5956d97fSEmmanuel Vadot    items:
31*5956d97fSEmmanuel Vadot      - const: alarm
32*5956d97fSEmmanuel Vadot      - const: sec
33*5956d97fSEmmanuel Vadot
34*5956d97fSEmmanuel Vadot  calibration:
35*5956d97fSEmmanuel Vadot    description: |
36*5956d97fSEmmanuel Vadot      calibration value for 1 sec period which will
37*5956d97fSEmmanuel Vadot      be programmed directly to calibration register.
38*5956d97fSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
39*5956d97fSEmmanuel Vadot    minimum: 0x1
40*5956d97fSEmmanuel Vadot    maximum: 0x1FFFFF
41*5956d97fSEmmanuel Vadot    default: 0x198233
42*5956d97fSEmmanuel Vadot
43*5956d97fSEmmanuel Vadotrequired:
44*5956d97fSEmmanuel Vadot  - compatible
45*5956d97fSEmmanuel Vadot  - reg
46*5956d97fSEmmanuel Vadot  - interrupts
47*5956d97fSEmmanuel Vadot  - interrupt-names
48*5956d97fSEmmanuel Vadot
49*5956d97fSEmmanuel VadotadditionalProperties: false
50*5956d97fSEmmanuel Vadot
51*5956d97fSEmmanuel Vadotexamples:
52*5956d97fSEmmanuel Vadot  - |
53*5956d97fSEmmanuel Vadot    soc {
54*5956d97fSEmmanuel Vadot      #address-cells = <2>;
55*5956d97fSEmmanuel Vadot      #size-cells = <2>;
56*5956d97fSEmmanuel Vadot
57*5956d97fSEmmanuel Vadot      rtc: rtc@ffa60000 {
58*5956d97fSEmmanuel Vadot        compatible = "xlnx,zynqmp-rtc";
59*5956d97fSEmmanuel Vadot        reg = <0x0 0xffa60000 0x0 0x100>;
60*5956d97fSEmmanuel Vadot        interrupt-parent = <&gic>;
61*5956d97fSEmmanuel Vadot        interrupts = <0 26 4>, <0 27 4>;
62*5956d97fSEmmanuel Vadot        interrupt-names = "alarm", "sec";
63*5956d97fSEmmanuel Vadot        calibration = <0x198233>;
64*5956d97fSEmmanuel Vadot      };
65*5956d97fSEmmanuel Vadot    };
66