Skip to content

Commit e1794c5

Browse files
CL Wangalexandrebelloni
authored andcommitted
dt-bindings: rtc: Add support for ATCRTC100 RTC
Document Device Tree bindings for the Andes ATCRTC100 Real-Time Clock. Signed-off-by: CL Wang <cl634@andestech.com> Reviewed-by: Conor Dooley <conor.dooley@microchip.com> Link: https://patch.msgid.link/20250915031439.2680364-2-cl634@andestech.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
1 parent 1fd7078 commit e1794c5

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/rtc/andestech,atcrtc100.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Andes ATCRTC100 Real-Time Clock
8+
9+
maintainers:
10+
- CL Wang <cl634@andestech.com>
11+
12+
allOf:
13+
- $ref: rtc.yaml#
14+
15+
properties:
16+
compatible:
17+
enum:
18+
- andestech,atcrtc100
19+
20+
reg:
21+
maxItems: 1
22+
23+
interrupts:
24+
items:
25+
- description: Periodic timekeeping interrupt
26+
- description: RTC alarm interrupt
27+
28+
required:
29+
- compatible
30+
- reg
31+
- interrupts
32+
33+
unevaluatedProperties: false
34+
35+
examples:
36+
- |
37+
#include <dt-bindings/interrupt-controller/irq.h>
38+
39+
rtc@f0300000 {
40+
compatible = "andestech,atcrtc100";
41+
reg = <0xf0300000 0x100>;
42+
interrupts = <1 IRQ_TYPE_LEVEL_HIGH>, <2 IRQ_TYPE_LEVEL_HIGH>;
43+
};

0 commit comments

Comments
 (0)