Skip to content

Commit 7aeeac5

Browse files
robherringdlezcano
authored andcommitted
dt-bindings: timer: Convert arm,mps2-timer to DT schema
Convert the Arm MPS2 Timer binding to DT schema format. It's a straight-forward conversion. Signed-off-by: Rob Herring (Arm) <[email protected]> Reviewed-by: Liviu Dudau <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Daniel Lezcano <[email protected]>
1 parent f4cc180 commit 7aeeac5

File tree

2 files changed

+49
-28
lines changed

2 files changed

+49
-28
lines changed

Documentation/devicetree/bindings/timer/arm,mps2-timer.txt

Lines changed: 0 additions & 28 deletions
This file was deleted.
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/arm,mps2-timer.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: ARM MPS2 timer
8+
9+
maintainers:
10+
- Vladimir Murzin <[email protected]>
11+
12+
description:
13+
The MPS2 platform has simple general-purpose 32 bits timers.
14+
15+
properties:
16+
compatible:
17+
const: arm,mps2-timer
18+
19+
reg:
20+
maxItems: 1
21+
22+
interrupts:
23+
maxItems: 1
24+
25+
clocks:
26+
maxItems: 1
27+
28+
clock-frequency:
29+
description: Rate in Hz of the timer input clock
30+
31+
oneOf:
32+
- required: [clocks]
33+
- required: [clock-frequency]
34+
35+
required:
36+
- compatible
37+
- reg
38+
- interrupts
39+
40+
additionalProperties: false
41+
42+
examples:
43+
- |
44+
timer@40000000 {
45+
compatible = "arm,mps2-timer";
46+
reg = <0x40000000 0x1000>;
47+
interrupts = <8>;
48+
clocks = <&sysclk>;
49+
};

0 commit comments

Comments
 (0)