1*5f62a964SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*5f62a964SEmmanuel Vadot# Copyright (C) 2024 Amlogic, Inc. All rights reserved 3*5f62a964SEmmanuel Vadot%YAML 1.2 4*5f62a964SEmmanuel Vadot--- 5*5f62a964SEmmanuel Vadot$id: http://devicetree.org/schemas/rtc/amlogic,a4-rtc.yaml# 6*5f62a964SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 7*5f62a964SEmmanuel Vadot 8*5f62a964SEmmanuel Vadottitle: Amlogic A4 and A5 RTC 9*5f62a964SEmmanuel Vadot 10*5f62a964SEmmanuel Vadotmaintainers: 11*5f62a964SEmmanuel Vadot - Yiting Deng <yiting.deng@amlogic.com> 12*5f62a964SEmmanuel Vadot - Xianwei Zhao <xianwei.zhao@amlogic.com> 13*5f62a964SEmmanuel Vadot 14*5f62a964SEmmanuel VadotallOf: 15*5f62a964SEmmanuel Vadot - $ref: rtc.yaml# 16*5f62a964SEmmanuel Vadot 17*5f62a964SEmmanuel Vadotproperties: 18*5f62a964SEmmanuel Vadot compatible: 19*5f62a964SEmmanuel Vadot enum: 20*5f62a964SEmmanuel Vadot - amlogic,a4-rtc 21*5f62a964SEmmanuel Vadot - amlogic,a5-rtc 22*5f62a964SEmmanuel Vadot 23*5f62a964SEmmanuel Vadot reg: 24*5f62a964SEmmanuel Vadot maxItems: 1 25*5f62a964SEmmanuel Vadot 26*5f62a964SEmmanuel Vadot clocks: 27*5f62a964SEmmanuel Vadot items: 28*5f62a964SEmmanuel Vadot - description: RTC clock source, available 24M or 32K crystal 29*5f62a964SEmmanuel Vadot oscillator source. when using 24M, need to divide 24M into 32K. 30*5f62a964SEmmanuel Vadot - description: RTC module accesses the clock of the apb bus. 31*5f62a964SEmmanuel Vadot 32*5f62a964SEmmanuel Vadot clock-names: 33*5f62a964SEmmanuel Vadot items: 34*5f62a964SEmmanuel Vadot - const: osc 35*5f62a964SEmmanuel Vadot - const: sys 36*5f62a964SEmmanuel Vadot 37*5f62a964SEmmanuel Vadot interrupts: 38*5f62a964SEmmanuel Vadot maxItems: 1 39*5f62a964SEmmanuel Vadot 40*5f62a964SEmmanuel Vadotrequired: 41*5f62a964SEmmanuel Vadot - compatible 42*5f62a964SEmmanuel Vadot - reg 43*5f62a964SEmmanuel Vadot - clocks 44*5f62a964SEmmanuel Vadot - clock-names 45*5f62a964SEmmanuel Vadot - interrupts 46*5f62a964SEmmanuel Vadot 47*5f62a964SEmmanuel VadotadditionalProperties: false 48*5f62a964SEmmanuel Vadot 49*5f62a964SEmmanuel Vadotexamples: 50*5f62a964SEmmanuel Vadot - | 51*5f62a964SEmmanuel Vadot #include <dt-bindings/interrupt-controller/arm-gic.h> 52*5f62a964SEmmanuel Vadot apb { 53*5f62a964SEmmanuel Vadot #address-cells = <2>; 54*5f62a964SEmmanuel Vadot #size-cells = <2>; 55*5f62a964SEmmanuel Vadot 56*5f62a964SEmmanuel Vadot rtc@8e600 { 57*5f62a964SEmmanuel Vadot compatible = "amlogic,a4-rtc"; 58*5f62a964SEmmanuel Vadot reg = <0x0 0x8e600 0x0 0x38>; 59*5f62a964SEmmanuel Vadot clocks = <&xtal_32k>, <&clkc_periphs 1>; 60*5f62a964SEmmanuel Vadot clock-names = "osc", "sys"; 61*5f62a964SEmmanuel Vadot interrupts = <GIC_SPI 131 IRQ_TYPE_EDGE_RISING>; 62*5f62a964SEmmanuel Vadot }; 63*5f62a964SEmmanuel Vadot }; 64