Skip to content

Commit 4334d83

Browse files
robherringdlezcano
authored andcommitted
dt-bindings: timer: Convert marvell,armada-370-timer to DT schema
Convert the Marvell Armada 37x/380/XP Timer binding to DT schema format. Update the compatible entries to match what is in use. "marvell,armada-380-timer" in particular was missing. Signed-off-by: Rob Herring (Arm) <robh@kernel.org> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Link: https://lore.kernel.org/r/20250506022301.2588282-1-robh@kernel.org Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
1 parent 4d54b0b commit 4334d83

File tree

2 files changed

+88
-44
lines changed

2 files changed

+88
-44
lines changed
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/timer/marvell,armada-370-timer.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Marvell Armada 370, 375, 380 and XP Timers
8+
9+
maintainers:
10+
- Andrew Lunn <andrew@lunn.ch>
11+
- Gregory Clement <gregory.clement@bootlin.com>
12+
13+
properties:
14+
compatible:
15+
oneOf:
16+
- items:
17+
- const: marvell,armada-380-timer
18+
- const: marvell,armada-xp-timer
19+
- items:
20+
- const: marvell,armada-375-timer
21+
- const: marvell,armada-370-timer
22+
- enum:
23+
- marvell,armada-370-timer
24+
- marvell,armada-xp-timer
25+
26+
reg:
27+
items:
28+
- description: Global timer registers
29+
- description: Local/private timer registers
30+
31+
interrupts:
32+
items:
33+
- description: Global timer interrupt 0
34+
- description: Global timer interrupt 1
35+
- description: Global timer interrupt 2
36+
- description: Global timer interrupt 3
37+
- description: First private timer interrupt
38+
- description: Second private timer interrupt
39+
40+
clocks:
41+
minItems: 1
42+
maxItems: 2
43+
44+
clock-names:
45+
items:
46+
- const: nbclk
47+
- const: fixed
48+
49+
required:
50+
- compatible
51+
- reg
52+
- interrupts
53+
- clocks
54+
55+
additionalProperties: false
56+
57+
allOf:
58+
- if:
59+
properties:
60+
compatible:
61+
contains:
62+
enum:
63+
- marvell,armada-375-timer
64+
- marvell,armada-xp-timer
65+
then:
66+
properties:
67+
clocks:
68+
minItems: 2
69+
clock-names:
70+
minItems: 2
71+
required:
72+
- clock-names
73+
else:
74+
properties:
75+
clocks:
76+
maxItems: 1
77+
clock-names:
78+
maxItems: 1
79+
80+
examples:
81+
- |
82+
timer@20300 {
83+
compatible = "marvell,armada-xp-timer";
84+
reg = <0x20300 0x30>, <0x21040 0x30>;
85+
interrupts = <37>, <38>, <39>, <40>, <5>, <6>;
86+
clocks = <&coreclk 2>, <&refclk>;
87+
clock-names = "nbclk", "fixed";
88+
};

Documentation/devicetree/bindings/timer/marvell,armada-370-xp-timer.txt

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)