Amlogic A4 and A5 RTC
Schema identifier ($id): "http://devicetree.org/schemas/rtc/amlogic,a4-rtc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Yiting Deng <yiting.deng@amlogic.com>", "Xianwei Zhao <xianwei.zhao@amlogic.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):rtc.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"amlogic,a5-rtc"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Array item rules (items) #
Item 1
RTC clock source, available 24M or 32K crystal oscillator source. when using 24M, need to divide 24M into 32K.
Item 2
RTC module accesses the clock of the apb bus.
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"osc"
Item 2
Exact value (
const):"sys"
interrupts — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "interrupts"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
apb {
#address-cells = <2>;
#size-cells = <2>;
rtc@8e600 {
compatible = "amlogic,a4-rtc";
reg = <0x0 0x8e600 0x0 0x38>;
clocks = <&xtal_32k>, <&clkc_periphs 1>;
clock-names = "osc", "sys";
interrupts = <GIC_SPI 131 IRQ_TYPE_EDGE_RISING>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 2: Copyright (C) 2024 Amlogic, Inc. All rights reserved