Skip to content

Commit 157265a

Browse files
robherringdlezcano
authored andcommitted
dt-bindings: timer: Convert csky,mptimer to DT schema
Convert the C-SKY Multi-processor timer binding to DT schema format. It's a straight-forward conversion. Signed-off-by: Rob Herring (Arm) <[email protected]> Acked-by: Guo Ren <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Daniel Lezcano <[email protected]>
1 parent ea1ab43 commit 157265a

File tree

2 files changed

+46
-42
lines changed

2 files changed

+46
-42
lines changed

Documentation/devicetree/bindings/timer/csky,mptimer.txt

Lines changed: 0 additions & 42 deletions
This file was deleted.
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/timer/csky,mptimer.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: C-SKY Multi-processors Timer
8+
9+
maintainers:
10+
- Flavio Suligoi <[email protected]>
11+
- Guo Ren <[email protected]>
12+
13+
description: |
14+
C-SKY multi-processors timer is designed for C-SKY SMP system and the regs are
15+
accessed by cpu co-processor 4 registers with mtcr/mfcr.
16+
17+
- PTIM_CTLR "cr<0, 14>" Control reg to start reset timer.
18+
- PTIM_TSR "cr<1, 14>" Interrupt cleanup status reg.
19+
- PTIM_CCVR "cr<3, 14>" Current counter value reg.
20+
- PTIM_LVR "cr<6, 14>" Window value reg to trigger next event.
21+
22+
properties:
23+
compatible:
24+
items:
25+
- const: csky,mptimer
26+
27+
clocks:
28+
maxItems: 1
29+
30+
interrupts:
31+
maxItems: 1
32+
33+
required:
34+
- compatible
35+
- clocks
36+
- interrupts
37+
38+
additionalProperties: false
39+
40+
examples:
41+
- |
42+
timer {
43+
compatible = "csky,mptimer";
44+
clocks = <&dummy_apb_clk>;
45+
interrupts = <16>;
46+
};

0 commit comments

Comments
 (0)