Skip to content

Commit ce57cf7

Browse files
Yiting Dengalexandrebelloni
authored andcommitted
dt-bindings: rtc: Add Amlogic A4 and A5 RTC
Add documentation describing the Amlogic A4(A113L2) and A5(A113X2) RTC. Signed-off-by: Yiting Deng <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Xianwei Zhao <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexandre Belloni <[email protected]>
1 parent 82ee16c commit ce57cf7

File tree

1 file changed

+63
-0
lines changed

1 file changed

+63
-0
lines changed
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
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+
8+
title: Amlogic A4 and A5 RTC
9+
10+
maintainers:
11+
- Yiting Deng <[email protected]>
12+
- Xianwei Zhao <[email protected]>
13+
14+
allOf:
15+
- $ref: rtc.yaml#
16+
17+
properties:
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+
40+
required:
41+
- compatible
42+
- reg
43+
- clocks
44+
- clock-names
45+
- interrupts
46+
47+
additionalProperties: false
48+
49+
examples:
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+
};

0 commit comments

Comments
 (0)