Skip to content

Commit ae18e25

Browse files
Akhila-YSclaudiubeznea
authored andcommitted
dt-bindings: arm: atmel,at91rm9200-st: convert to DT schema
Convert System Timer binding to YAML format. Changes during conversion: - Add "#address-cells" and "#size-cells" to the properties and required as watchdog is defined as a child node to the timer parent node. - Define watchdog as a pattern property along with unit address in examples. Acked-by: Conor Dooley <[email protected]> Signed-off-by: Akhila YS <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Claudiu Beznea <[email protected]>
1 parent 67f386b commit ae18e25

2 files changed

Lines changed: 69 additions & 9 deletions

File tree

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/arm/atmel,at91rm9200-st.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Atmel System Timer
8+
9+
maintainers:
10+
- Nicolas Ferre <[email protected]>
11+
- Claudiu Beznea <[email protected]>
12+
13+
description:
14+
The System Timer (ST) module in AT91RM9200 provides periodic tick and
15+
alarm capabilities. It is exposed as a simple multi-function device
16+
(simple-mfd + syscon) because it shares its register space and interrupt
17+
with other System Controller blocks.
18+
19+
properties:
20+
compatible:
21+
items:
22+
- const: atmel,at91rm9200-st
23+
- const: syscon
24+
- const: simple-mfd
25+
26+
reg:
27+
maxItems: 1
28+
29+
interrupts:
30+
maxItems: 1
31+
32+
clocks:
33+
maxItems: 1
34+
35+
"#address-cells":
36+
const: 1
37+
38+
"#size-cells":
39+
const: 1
40+
41+
patternProperties:
42+
"^watchdog@[0-9a-f]+$":
43+
$ref: /schemas/watchdog/atmel,at91rm9200-wdt.yaml#
44+
45+
required:
46+
- compatible
47+
- reg
48+
- interrupts
49+
- clocks
50+
51+
unevaluatedProperties: false
52+
53+
examples:
54+
- |
55+
#include <dt-bindings/interrupt-controller/irq.h>
56+
timer@fffffd00 {
57+
compatible = "atmel,at91rm9200-st", "syscon", "simple-mfd";
58+
reg = <0xfffffd00 0x100>;
59+
interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
60+
clocks = <&slow_xtal>;
61+
#address-cells = <1>;
62+
#size-cells = <1>;
63+
64+
watchdog@fffffd40 {
65+
compatible = "atmel,at91rm9200-wdt";
66+
reg = <0xfffffd40 0x40>;
67+
};
68+
};
69+
...

Documentation/devicetree/bindings/arm/atmel-sysregs.txt

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
11
Atmel system registers
22

3-
System Timer (ST) required properties:
4-
- compatible: Should be "atmel,at91rm9200-st", "syscon", "simple-mfd"
5-
- reg: Should contain registers location and length
6-
- interrupts: Should contain interrupt for the ST which is the IRQ line
7-
shared across all System Controller members.
8-
- clocks: phandle to input clock.
9-
Its subnodes can be:
10-
- watchdog: compatible should be "atmel,at91rm9200-wdt"
11-
123
RAMC SDRAM/DDR Controller required properties:
134
- compatible: Should be "atmel,at91rm9200-sdramc", "syscon" or
145
"atmel,at91sam9260-sdramc" or

0 commit comments

Comments
 (0)