Skip to content

Commit 432008d

Browse files
dt-bindings: rtc: alphascale,asm9260-rtc: convert to dtschema
Convert existing binding to dtschema to support validation. This is a direct conversion with no additions. Reviewed-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Javier Carrasco <[email protected]> Reviewed-by: Rob Herring <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexandre Belloni <[email protected]>
1 parent c3c50e7 commit 432008d

File tree

2 files changed

+50
-19
lines changed

2 files changed

+50
-19
lines changed

Documentation/devicetree/bindings/rtc/alphascale,asm9260-rtc.txt

Lines changed: 0 additions & 19 deletions
This file was deleted.
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/rtc/alphascale,asm9260-rtc.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Alphascale asm9260 SoC Real Time Clock
8+
9+
maintainers:
10+
- Javier Carrasco <[email protected]>
11+
12+
allOf:
13+
- $ref: rtc.yaml#
14+
15+
properties:
16+
compatible:
17+
const: alphascale,asm9260-rtc
18+
19+
reg:
20+
maxItems: 1
21+
22+
clocks:
23+
maxItems: 1
24+
25+
clock-names:
26+
const: ahb
27+
28+
interrupts:
29+
maxItems: 1
30+
31+
required:
32+
- compatible
33+
- reg
34+
- clocks
35+
- clock-names
36+
- interrupts
37+
38+
unevaluatedProperties: false
39+
40+
examples:
41+
- |
42+
#include <dt-bindings/clock/alphascale,asm9260.h>
43+
44+
rtc@800a0000 {
45+
compatible = "alphascale,asm9260-rtc";
46+
reg = <0x800a0000 0x100>;
47+
clocks = <&acc CLKID_AHB_RTC>;
48+
clock-names = "ahb";
49+
interrupts = <2>;
50+
};

0 commit comments

Comments
 (0)