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