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