1c9ccf3a3SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2c9ccf3a3SEmmanuel Vadot# Copyright (C) 2022 Microchip Technology, Inc. and its subsidiaries 3c9ccf3a3SEmmanuel Vadot%YAML 1.2 4c9ccf3a3SEmmanuel Vadot--- 5c9ccf3a3SEmmanuel Vadot$id: http://devicetree.org/schemas/rtc/atmel,at91sam9260-rtt.yaml# 6c9ccf3a3SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 7c9ccf3a3SEmmanuel Vadot 87ef62cebSEmmanuel Vadottitle: Atmel AT91 RTT 9c9ccf3a3SEmmanuel Vadot 10c9ccf3a3SEmmanuel VadotallOf: 11fac71e4eSEmmanuel Vadot - $ref: rtc.yaml# 12c9ccf3a3SEmmanuel Vadot 13c9ccf3a3SEmmanuel Vadotmaintainers: 14c9ccf3a3SEmmanuel Vadot - Alexandre Belloni <alexandre.belloni@bootlin.com> 15c9ccf3a3SEmmanuel Vadot 16c9ccf3a3SEmmanuel Vadotproperties: 17c9ccf3a3SEmmanuel Vadot compatible: 18c9ccf3a3SEmmanuel Vadot oneOf: 19c9ccf3a3SEmmanuel Vadot - items: 20c9ccf3a3SEmmanuel Vadot - const: atmel,at91sam9260-rtt 21c9ccf3a3SEmmanuel Vadot - items: 22*01950c46SEmmanuel Vadot - enum: 23*01950c46SEmmanuel Vadot - microchip,sam9x60-rtt 24*01950c46SEmmanuel Vadot - microchip,sam9x7-rtt 25c9ccf3a3SEmmanuel Vadot - const: atmel,at91sam9260-rtt 26c9ccf3a3SEmmanuel Vadot - items: 27c9ccf3a3SEmmanuel Vadot - const: microchip,sama7g5-rtt 28c9ccf3a3SEmmanuel Vadot - const: microchip,sam9x60-rtt 29c9ccf3a3SEmmanuel Vadot - const: atmel,at91sam9260-rtt 30c9ccf3a3SEmmanuel Vadot 31c9ccf3a3SEmmanuel Vadot reg: 32c9ccf3a3SEmmanuel Vadot maxItems: 1 33c9ccf3a3SEmmanuel Vadot 34c9ccf3a3SEmmanuel Vadot interrupts: 35c9ccf3a3SEmmanuel Vadot maxItems: 1 36c9ccf3a3SEmmanuel Vadot 37c9ccf3a3SEmmanuel Vadot clocks: 38c9ccf3a3SEmmanuel Vadot maxItems: 1 39c9ccf3a3SEmmanuel Vadot 40c9ccf3a3SEmmanuel Vadot atmel,rtt-rtc-time-reg: 41c9ccf3a3SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/phandle-array 42c9ccf3a3SEmmanuel Vadot items: 43c9ccf3a3SEmmanuel Vadot - items: 44c9ccf3a3SEmmanuel Vadot - description: Phandle to the GPBR node. 45c9ccf3a3SEmmanuel Vadot - description: Offset within the GPBR block. 46c9ccf3a3SEmmanuel Vadot description: 47c9ccf3a3SEmmanuel Vadot Should encode the GPBR register used to store the time base when the 48c9ccf3a3SEmmanuel Vadot RTT is used as an RTC. The first cell should point to the GPBR node 49c9ccf3a3SEmmanuel Vadot and the second one encodes the offset within the GPBR block (or in 50c9ccf3a3SEmmanuel Vadot other words, the GPBR register used to store the time base). 51c9ccf3a3SEmmanuel Vadot 52c9ccf3a3SEmmanuel Vadotrequired: 53c9ccf3a3SEmmanuel Vadot - compatible 54c9ccf3a3SEmmanuel Vadot - reg 55c9ccf3a3SEmmanuel Vadot - interrupts 56c9ccf3a3SEmmanuel Vadot - clocks 57c9ccf3a3SEmmanuel Vadot - atmel,rtt-rtc-time-reg 58c9ccf3a3SEmmanuel Vadot 59c9ccf3a3SEmmanuel VadotunevaluatedProperties: false 60c9ccf3a3SEmmanuel Vadot 61c9ccf3a3SEmmanuel Vadotexamples: 62c9ccf3a3SEmmanuel Vadot - | 63c9ccf3a3SEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 64c9ccf3a3SEmmanuel Vadot 65c9ccf3a3SEmmanuel Vadot rtc@fffffd20 { 66c9ccf3a3SEmmanuel Vadot compatible = "atmel,at91sam9260-rtt"; 67c9ccf3a3SEmmanuel Vadot reg = <0xfffffd20 0x10>; 68c9ccf3a3SEmmanuel Vadot interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>; 69c9ccf3a3SEmmanuel Vadot clocks = <&clk32k>; 70c9ccf3a3SEmmanuel Vadot atmel,rtt-rtc-time-reg = <&gpbr 0x0>; 71c9ccf3a3SEmmanuel Vadot }; 72