Skip to content

Commit 2b3b58f

Browse files
robherringdlezcano
authored andcommitted
dt-bindings: timer: Convert ezchip,nps400-timer to DT schema
Convert the EZChip NPS400 Timer bindings to DT schema format. It's a straight-forward conversion. The 2 bindings only differ in compatible and one required property, so the schemas can be combined. Signed-off-by: Rob Herring (Arm) <robh@kernel.org> Link: https://lore.kernel.org/r/20250506022237.2587355-1-robh@kernel.org Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
1 parent d65a30c commit 2b3b58f

File tree

3 files changed

+45
-32
lines changed

3 files changed

+45
-32
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/ezchip,nps400-timer.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: EZChip NPS400 Timers
8+
9+
maintainers:
10+
- Noam Camus <noamca@mellanox.com>
11+
12+
properties:
13+
compatible:
14+
enum:
15+
- ezchip,nps400-timer0
16+
- ezchip,nps400-timer1
17+
18+
interrupts:
19+
maxItems: 1
20+
21+
clocks:
22+
maxItems: 1
23+
24+
required:
25+
- compatible
26+
- clocks
27+
28+
additionalProperties: false
29+
30+
allOf:
31+
- if:
32+
properties:
33+
compatible:
34+
contains:
35+
const: ezchip,nps400-timer0
36+
then:
37+
required: [ interrupts ]
38+
39+
examples:
40+
- |
41+
timer {
42+
compatible = "ezchip,nps400-timer0";
43+
interrupts = <3>;
44+
clocks = <&sysclk>;
45+
};

Documentation/devicetree/bindings/timer/ezchip,nps400-timer0.txt

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

Documentation/devicetree/bindings/timer/ezchip,nps400-timer1.txt

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

0 commit comments

Comments
 (0)