xref: /freebsd/sys/contrib/device-tree/Bindings/rtc/xlnx,zynqmp-rtc.yaml (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
15956d97fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
25956d97fSEmmanuel Vadot%YAML 1.2
35956d97fSEmmanuel Vadot---
45956d97fSEmmanuel Vadot$id: http://devicetree.org/schemas/rtc/xlnx,zynqmp-rtc.yaml#
55956d97fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
65956d97fSEmmanuel Vadot
75956d97fSEmmanuel Vadottitle: Xilinx Zynq Ultrascale+ MPSoC Real Time Clock
85956d97fSEmmanuel Vadot
95956d97fSEmmanuel Vadotdescription:
105956d97fSEmmanuel Vadot  RTC controller for the Xilinx Zynq MPSoC Real Time Clock.
115956d97fSEmmanuel Vadot  The RTC controller has separate IRQ lines for seconds and alarm.
125956d97fSEmmanuel Vadot
135956d97fSEmmanuel Vadotmaintainers:
14*f126890aSEmmanuel Vadot  - Michal Simek <michal.simek@amd.com>
155956d97fSEmmanuel Vadot
165956d97fSEmmanuel VadotallOf:
175956d97fSEmmanuel Vadot  - $ref: rtc.yaml#
185956d97fSEmmanuel Vadot
195956d97fSEmmanuel Vadotproperties:
205956d97fSEmmanuel Vadot  compatible:
215956d97fSEmmanuel Vadot    const: xlnx,zynqmp-rtc
225956d97fSEmmanuel Vadot
235956d97fSEmmanuel Vadot  reg:
245956d97fSEmmanuel Vadot    maxItems: 1
255956d97fSEmmanuel Vadot
26b97ee269SEmmanuel Vadot  clocks:
27b97ee269SEmmanuel Vadot    maxItems: 1
28b97ee269SEmmanuel Vadot
29b97ee269SEmmanuel Vadot  clock-names:
30b97ee269SEmmanuel Vadot    items:
31b97ee269SEmmanuel Vadot      - const: rtc
32b97ee269SEmmanuel Vadot
335956d97fSEmmanuel Vadot  interrupts:
34b97ee269SEmmanuel Vadot    maxItems: 2
355956d97fSEmmanuel Vadot
365956d97fSEmmanuel Vadot  interrupt-names:
375956d97fSEmmanuel Vadot    items:
385956d97fSEmmanuel Vadot      - const: alarm
395956d97fSEmmanuel Vadot      - const: sec
405956d97fSEmmanuel Vadot
415956d97fSEmmanuel Vadot  calibration:
425956d97fSEmmanuel Vadot    description: |
435956d97fSEmmanuel Vadot      calibration value for 1 sec period which will
445956d97fSEmmanuel Vadot      be programmed directly to calibration register.
455956d97fSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
465956d97fSEmmanuel Vadot    minimum: 0x1
475956d97fSEmmanuel Vadot    maximum: 0x1FFFFF
485956d97fSEmmanuel Vadot    default: 0x198233
49b97ee269SEmmanuel Vadot    deprecated: true
505956d97fSEmmanuel Vadot
515956d97fSEmmanuel Vadotrequired:
525956d97fSEmmanuel Vadot  - compatible
535956d97fSEmmanuel Vadot  - reg
545956d97fSEmmanuel Vadot  - interrupts
555956d97fSEmmanuel Vadot  - interrupt-names
565956d97fSEmmanuel Vadot
575956d97fSEmmanuel VadotadditionalProperties: false
585956d97fSEmmanuel Vadot
595956d97fSEmmanuel Vadotexamples:
605956d97fSEmmanuel Vadot  - |
615956d97fSEmmanuel Vadot    soc {
625956d97fSEmmanuel Vadot      #address-cells = <2>;
635956d97fSEmmanuel Vadot      #size-cells = <2>;
645956d97fSEmmanuel Vadot
655956d97fSEmmanuel Vadot      rtc: rtc@ffa60000 {
665956d97fSEmmanuel Vadot        compatible = "xlnx,zynqmp-rtc";
675956d97fSEmmanuel Vadot        reg = <0x0 0xffa60000 0x0 0x100>;
685956d97fSEmmanuel Vadot        interrupt-parent = <&gic>;
695956d97fSEmmanuel Vadot        interrupts = <0 26 4>, <0 27 4>;
705956d97fSEmmanuel Vadot        interrupt-names = "alarm", "sec";
715956d97fSEmmanuel Vadot        calibration = <0x198233>;
72b97ee269SEmmanuel Vadot        clock-names = "rtc";
73b97ee269SEmmanuel Vadot        clocks = <&rtc_clk>;
745956d97fSEmmanuel Vadot      };
755956d97fSEmmanuel Vadot    };
76