14cbcc0d7SConor Dooley# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 24cbcc0d7SConor Dooley%YAML 1.2 34cbcc0d7SConor Dooley--- 44cbcc0d7SConor Dooley$id: http://devicetree.org/schemas/rtc/microchip,mfps-rtc.yaml# 54cbcc0d7SConor Dooley 64cbcc0d7SConor Dooley$schema: http://devicetree.org/meta-schemas/core.yaml# 74cbcc0d7SConor Dooley 84cbcc0d7SConor Dooleytitle: Microchip PolarFire Soc (MPFS) RTC Device Tree Bindings 94cbcc0d7SConor Dooley 104cbcc0d7SConor DooleyallOf: 114cbcc0d7SConor Dooley - $ref: rtc.yaml# 124cbcc0d7SConor Dooley 134cbcc0d7SConor Dooleymaintainers: 144cbcc0d7SConor Dooley - Daire McNamara <daire.mcnamara@microchip.com> 154cbcc0d7SConor Dooley - Lewis Hanly <lewis.hanly@microchip.com> 164cbcc0d7SConor Dooley 174cbcc0d7SConor Dooleyproperties: 184cbcc0d7SConor Dooley compatible: 194cbcc0d7SConor Dooley enum: 204cbcc0d7SConor Dooley - microchip,mpfs-rtc 214cbcc0d7SConor Dooley 224cbcc0d7SConor Dooley reg: 234cbcc0d7SConor Dooley maxItems: 1 244cbcc0d7SConor Dooley 254cbcc0d7SConor Dooley interrupts: 264cbcc0d7SConor Dooley items: 274cbcc0d7SConor Dooley - description: | 284cbcc0d7SConor Dooley RTC_WAKEUP interrupt 294cbcc0d7SConor Dooley - description: | 304cbcc0d7SConor Dooley RTC_MATCH, asserted when the content of the Alarm register is equal 314cbcc0d7SConor Dooley to that of the RTC's count register. 324cbcc0d7SConor Dooley 334cbcc0d7SConor Dooley clocks: 34*8e8fbab4SConor Dooley items: 35*8e8fbab4SConor Dooley - description: | 36*8e8fbab4SConor Dooley AHB clock 37*8e8fbab4SConor Dooley - description: | 38*8e8fbab4SConor Dooley Reference clock: divided by the prescaler to create a time-based 39*8e8fbab4SConor Dooley strobe (typically 1 Hz) for the calendar counter. By default, the rtc 40*8e8fbab4SConor Dooley on the PolarFire SoC shares it's reference with MTIMER so this will 41*8e8fbab4SConor Dooley be a 1 MHz clock. 424cbcc0d7SConor Dooley 434cbcc0d7SConor Dooley clock-names: 444cbcc0d7SConor Dooley items: 454cbcc0d7SConor Dooley - const: rtc 46*8e8fbab4SConor Dooley - const: rtcref 474cbcc0d7SConor Dooley 484cbcc0d7SConor Dooleyrequired: 494cbcc0d7SConor Dooley - compatible 504cbcc0d7SConor Dooley - reg 514cbcc0d7SConor Dooley - interrupts 524cbcc0d7SConor Dooley - clocks 534cbcc0d7SConor Dooley - clock-names 544cbcc0d7SConor Dooley 554cbcc0d7SConor DooleyadditionalProperties: false 564cbcc0d7SConor Dooley 574cbcc0d7SConor Dooleyexamples: 584cbcc0d7SConor Dooley - | 59*8e8fbab4SConor Dooley #include "dt-bindings/clock/microchip,mpfs-clock.h" 604cbcc0d7SConor Dooley rtc@20124000 { 614cbcc0d7SConor Dooley compatible = "microchip,mpfs-rtc"; 624cbcc0d7SConor Dooley reg = <0x20124000 0x1000>; 63*8e8fbab4SConor Dooley clocks = <&clkcfg CLK_RTC>, <&clkcfg CLK_RTCREF>; 64*8e8fbab4SConor Dooley clock-names = "rtc", "rtcref"; 654cbcc0d7SConor Dooley interrupts = <80>, <81>; 664cbcc0d7SConor Dooley }; 674cbcc0d7SConor Dooley... 68