Skip to content

Commit 75cc482

Browse files
robherringbebarino
authored andcommitted
dt-bindings: clock: Convert marvell,berlin2-clk to DT schema
Convert the Marvell Berlin2 clock binding to DT schema format. It's a straight forward conversion. Signed-off-by: Rob Herring (Arm) <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent e3fcba9 commit 75cc482

File tree

2 files changed

+51
-31
lines changed

2 files changed

+51
-31
lines changed

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

Lines changed: 0 additions & 31 deletions
This file was deleted.
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/clock/marvell,berlin2-clk.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Marvell Berlin Clock Controller
8+
9+
maintainers:
10+
- Jisheng Zhang <[email protected]>
11+
12+
description:
13+
Clock related registers are spread among the chip control registers. Berlin
14+
clock node should be a sub-node of the chip controller node. Marvell Berlin2
15+
(BG2, BG2CD, BG2Q) SoCs share the same IP for PLLs and clocks, with some minor
16+
differences in features and register layout.
17+
18+
properties:
19+
compatible:
20+
enum:
21+
- marvell,berlin2-clk
22+
- marvell,berlin2q-clk
23+
24+
'#clock-cells':
25+
const: 1
26+
27+
clocks:
28+
maxItems: 1
29+
30+
clock-names:
31+
items:
32+
- enum:
33+
- refclk
34+
- video_ext0
35+
36+
required:
37+
- compatible
38+
- '#clock-cells'
39+
- clocks
40+
- clock-names
41+
42+
additionalProperties: false
43+
44+
examples:
45+
- |
46+
clock-controller {
47+
compatible = "marvell,berlin2q-clk";
48+
#clock-cells = <1>;
49+
clocks = <&refclk>;
50+
clock-names = "refclk";
51+
};

0 commit comments

Comments
 (0)