xref: /freebsd-src/sys/contrib/device-tree/Bindings/rtc/microchip,mfps-rtc.yaml (revision 7ef62cebc2f965b0f640263e179276928885e33d)
1c9ccf3a3SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2c9ccf3a3SEmmanuel Vadot%YAML 1.2
3c9ccf3a3SEmmanuel Vadot---
4c9ccf3a3SEmmanuel Vadot$id: http://devicetree.org/schemas/rtc/microchip,mfps-rtc.yaml#
5c9ccf3a3SEmmanuel Vadot
6c9ccf3a3SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
7c9ccf3a3SEmmanuel Vadot
8*7ef62cebSEmmanuel Vadottitle: Microchip PolarFire Soc (MPFS) RTC
9c9ccf3a3SEmmanuel Vadot
10c9ccf3a3SEmmanuel VadotallOf:
11c9ccf3a3SEmmanuel Vadot  - $ref: rtc.yaml#
12c9ccf3a3SEmmanuel Vadot
13c9ccf3a3SEmmanuel Vadotmaintainers:
14c9ccf3a3SEmmanuel Vadot  - Daire McNamara <daire.mcnamara@microchip.com>
15c9ccf3a3SEmmanuel Vadot  - Lewis Hanly <lewis.hanly@microchip.com>
16c9ccf3a3SEmmanuel Vadot
17c9ccf3a3SEmmanuel Vadotproperties:
18c9ccf3a3SEmmanuel Vadot  compatible:
19c9ccf3a3SEmmanuel Vadot    enum:
20c9ccf3a3SEmmanuel Vadot      - microchip,mpfs-rtc
21c9ccf3a3SEmmanuel Vadot
22c9ccf3a3SEmmanuel Vadot  reg:
23c9ccf3a3SEmmanuel Vadot    maxItems: 1
24c9ccf3a3SEmmanuel Vadot
25c9ccf3a3SEmmanuel Vadot  interrupts:
26c9ccf3a3SEmmanuel Vadot    items:
27c9ccf3a3SEmmanuel Vadot      - description: |
28c9ccf3a3SEmmanuel Vadot          RTC_WAKEUP interrupt
29c9ccf3a3SEmmanuel Vadot      - description: |
30c9ccf3a3SEmmanuel Vadot          RTC_MATCH, asserted when the content of the Alarm register is equal
31c9ccf3a3SEmmanuel Vadot          to that of the RTC's count register.
32c9ccf3a3SEmmanuel Vadot
33c9ccf3a3SEmmanuel Vadot  clocks:
34c9ccf3a3SEmmanuel Vadot    items:
35c9ccf3a3SEmmanuel Vadot      - description: |
36c9ccf3a3SEmmanuel Vadot          AHB clock
37c9ccf3a3SEmmanuel Vadot      - description: |
38c9ccf3a3SEmmanuel Vadot          Reference clock: divided by the prescaler to create a time-based
39c9ccf3a3SEmmanuel Vadot          strobe (typically 1 Hz) for the calendar counter. By default, the rtc
40c9ccf3a3SEmmanuel Vadot          on the PolarFire SoC shares it's reference with MTIMER so this will
41c9ccf3a3SEmmanuel Vadot          be a 1 MHz clock.
42c9ccf3a3SEmmanuel Vadot
43c9ccf3a3SEmmanuel Vadot  clock-names:
44c9ccf3a3SEmmanuel Vadot    items:
45c9ccf3a3SEmmanuel Vadot      - const: rtc
46c9ccf3a3SEmmanuel Vadot      - const: rtcref
47c9ccf3a3SEmmanuel Vadot
48c9ccf3a3SEmmanuel Vadotrequired:
49c9ccf3a3SEmmanuel Vadot  - compatible
50c9ccf3a3SEmmanuel Vadot  - reg
51c9ccf3a3SEmmanuel Vadot  - interrupts
52c9ccf3a3SEmmanuel Vadot  - clocks
53c9ccf3a3SEmmanuel Vadot  - clock-names
54c9ccf3a3SEmmanuel Vadot
55c9ccf3a3SEmmanuel VadotadditionalProperties: false
56c9ccf3a3SEmmanuel Vadot
57c9ccf3a3SEmmanuel Vadotexamples:
58c9ccf3a3SEmmanuel Vadot  - |
59c9ccf3a3SEmmanuel Vadot    #include "dt-bindings/clock/microchip,mpfs-clock.h"
60c9ccf3a3SEmmanuel Vadot    rtc@20124000 {
61c9ccf3a3SEmmanuel Vadot        compatible = "microchip,mpfs-rtc";
62c9ccf3a3SEmmanuel Vadot        reg = <0x20124000 0x1000>;
63c9ccf3a3SEmmanuel Vadot        clocks = <&clkcfg CLK_RTC>, <&clkcfg CLK_RTCREF>;
64c9ccf3a3SEmmanuel Vadot        clock-names = "rtc", "rtcref";
65c9ccf3a3SEmmanuel Vadot        interrupts = <80>, <81>;
66c9ccf3a3SEmmanuel Vadot    };
67c9ccf3a3SEmmanuel Vadot...
68