15f62a964SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 25f62a964SEmmanuel Vadot# Copyright (C) 2024 Amlogic, Inc. All rights reserved 35f62a964SEmmanuel Vadot%YAML 1.2 45f62a964SEmmanuel Vadot--- 55f62a964SEmmanuel Vadot$id: http://devicetree.org/schemas/rtc/amlogic,a4-rtc.yaml# 65f62a964SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 75f62a964SEmmanuel Vadot 85f62a964SEmmanuel Vadottitle: Amlogic A4 and A5 RTC 95f62a964SEmmanuel Vadot 105f62a964SEmmanuel Vadotmaintainers: 115f62a964SEmmanuel Vadot - Yiting Deng <yiting.deng@amlogic.com> 125f62a964SEmmanuel Vadot - Xianwei Zhao <xianwei.zhao@amlogic.com> 135f62a964SEmmanuel Vadot 145f62a964SEmmanuel VadotallOf: 155f62a964SEmmanuel Vadot - $ref: rtc.yaml# 165f62a964SEmmanuel Vadot 175f62a964SEmmanuel Vadotproperties: 185f62a964SEmmanuel Vadot compatible: 19*833e5d42SEmmanuel Vadot oneOf: 20*833e5d42SEmmanuel Vadot - enum: 215f62a964SEmmanuel Vadot - amlogic,a4-rtc 225f62a964SEmmanuel Vadot - amlogic,a5-rtc 23*833e5d42SEmmanuel Vadot - items: 24*833e5d42SEmmanuel Vadot - enum: 25*833e5d42SEmmanuel Vadot - amlogic,c3-rtc 26*833e5d42SEmmanuel Vadot - const: amlogic,a5-rtc 275f62a964SEmmanuel Vadot 285f62a964SEmmanuel Vadot reg: 295f62a964SEmmanuel Vadot maxItems: 1 305f62a964SEmmanuel Vadot 315f62a964SEmmanuel Vadot clocks: 325f62a964SEmmanuel Vadot items: 335f62a964SEmmanuel Vadot - description: RTC clock source, available 24M or 32K crystal 345f62a964SEmmanuel Vadot oscillator source. when using 24M, need to divide 24M into 32K. 355f62a964SEmmanuel Vadot - description: RTC module accesses the clock of the apb bus. 365f62a964SEmmanuel Vadot 375f62a964SEmmanuel Vadot clock-names: 385f62a964SEmmanuel Vadot items: 395f62a964SEmmanuel Vadot - const: osc 405f62a964SEmmanuel Vadot - const: sys 415f62a964SEmmanuel Vadot 425f62a964SEmmanuel Vadot interrupts: 435f62a964SEmmanuel Vadot maxItems: 1 445f62a964SEmmanuel Vadot 455f62a964SEmmanuel Vadotrequired: 465f62a964SEmmanuel Vadot - compatible 475f62a964SEmmanuel Vadot - reg 485f62a964SEmmanuel Vadot - clocks 495f62a964SEmmanuel Vadot - clock-names 505f62a964SEmmanuel Vadot - interrupts 515f62a964SEmmanuel Vadot 525f62a964SEmmanuel VadotadditionalProperties: false 535f62a964SEmmanuel Vadot 545f62a964SEmmanuel Vadotexamples: 555f62a964SEmmanuel Vadot - | 565f62a964SEmmanuel Vadot #include <dt-bindings/interrupt-controller/arm-gic.h> 575f62a964SEmmanuel Vadot apb { 585f62a964SEmmanuel Vadot #address-cells = <2>; 595f62a964SEmmanuel Vadot #size-cells = <2>; 605f62a964SEmmanuel Vadot 615f62a964SEmmanuel Vadot rtc@8e600 { 625f62a964SEmmanuel Vadot compatible = "amlogic,a4-rtc"; 635f62a964SEmmanuel Vadot reg = <0x0 0x8e600 0x0 0x38>; 645f62a964SEmmanuel Vadot clocks = <&xtal_32k>, <&clkc_periphs 1>; 655f62a964SEmmanuel Vadot clock-names = "osc", "sys"; 665f62a964SEmmanuel Vadot interrupts = <GIC_SPI 131 IRQ_TYPE_EDGE_RISING>; 675f62a964SEmmanuel Vadot }; 685f62a964SEmmanuel Vadot }; 69