Skip to content

Commit 7de0b8b

Browse files
lkundrakbebarino
authored andcommitted
dt-bindings: clock: Convert marvell,mmp2-clock to json-schema
Convert the fixed-factor-clock binding to DT schema format using json-schema. While at that, fix a couple of small errors: make the file base name match the compatible string, add an example and document the reg-names property. Signed-off-by: Lubomir Rintel <[email protected]> Reviewed-by: Rob Herring <[email protected]> Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent cb8dbfe commit 7de0b8b

File tree

2 files changed

+62
-21
lines changed

2 files changed

+62
-21
lines changed
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/clock/marvell,mmp2-clock.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Marvell MMP2 Clock Controller
8+
9+
maintainers:
10+
- Lubomir Rintel <[email protected]>
11+
12+
description: |
13+
The MMP2 clock subsystem generates and supplies clock to various
14+
controllers within the MMP2 SoC.
15+
16+
Each clock is assigned an identifier and client nodes use this identifier
17+
to specify the clock which they consume.
18+
19+
All these identifiers could be found in <dt-bindings/clock/marvell,mmp2.h>.
20+
21+
properties:
22+
compatible:
23+
const: marvell,mmp2-clock # controller compatible with MMP2 SoC
24+
25+
reg:
26+
items:
27+
- description: MPMU register region
28+
- description: APMU register region
29+
- description: APBC register region
30+
31+
reg-names:
32+
items:
33+
- const: mpmu
34+
- const: apmu
35+
- const: apbc
36+
37+
'#clock-cells':
38+
const: 1
39+
40+
'#reset-cells':
41+
const: 1
42+
43+
required:
44+
- compatible
45+
- reg
46+
- reg-names
47+
- '#clock-cells'
48+
- '#reset-cells'
49+
50+
additionalProperties: false
51+
52+
examples:
53+
- |
54+
clock-controller@d4050000 {
55+
compatible = "marvell,mmp2-clock";
56+
reg = <0xd4050000 0x1000>,
57+
<0xd4282800 0x400>,
58+
<0xd4015000 0x1000>;
59+
reg-names = "mpmu", "apmu", "apbc";
60+
#clock-cells = <1>;
61+
#reset-cells = <1>;
62+
};

Documentation/devicetree/bindings/clock/marvell,mmp2.txt

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

0 commit comments

Comments
 (0)