Skip to content

Commit 71b80a3

Browse files
robherringbebarino
authored andcommitted
dt-bindings: clock: Convert nuvoton,npcm750-clk to DT schema
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 f2cb67d commit 71b80a3

File tree

2 files changed

+66
-100
lines changed

2 files changed

+66
-100
lines changed

Documentation/devicetree/bindings/clock/nuvoton,npcm750-clk.txt

Lines changed: 0 additions & 100 deletions
This file was deleted.
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/clock/nuvoton,npcm750-clk.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Nuvoton NPCM7XX Clock Controller
8+
9+
maintainers:
10+
- Tali Perry <[email protected]>
11+
12+
description: >
13+
Nuvoton Poleg BMC NPCM7XX contains an integrated clock controller, which
14+
generates and supplies clocks to all modules within the BMC.
15+
16+
External clocks:
17+
18+
There are six fixed clocks that are generated outside the BMC. All clocks are of
19+
a known fixed value that cannot be changed. clk_refclk, clk_mcbypck and
20+
clk_sysbypck are inputs to the clock controller.
21+
clk_rg1refck, clk_rg2refck and clk_xin are external clocks suppling the
22+
network. They are set on the device tree, but not used by the clock module. The
23+
network devices use them directly.
24+
25+
All available clocks are defined as preprocessor macros in:
26+
dt-bindings/clock/nuvoton,npcm7xx-clock.h
27+
and can be reused as DT sources.
28+
29+
properties:
30+
compatible:
31+
const: nuvoton,npcm750-clk
32+
33+
reg:
34+
maxItems: 1
35+
36+
'#clock-cells':
37+
const: 1
38+
39+
clock-names:
40+
items:
41+
- const: refclk
42+
- const: sysbypck
43+
- const: mcbypck
44+
45+
clocks:
46+
items:
47+
- description: refclk
48+
- description: sysbypck
49+
- description: mcbypck
50+
51+
required:
52+
- compatible
53+
- reg
54+
- '#clock-cells'
55+
56+
additionalProperties: false
57+
58+
examples:
59+
- |
60+
clock-controller@f0801000 {
61+
compatible = "nuvoton,npcm750-clk";
62+
#clock-cells = <1>;
63+
reg = <0xf0801000 0x1000>;
64+
clock-names = "refclk", "sysbypck", "mcbypck";
65+
clocks = <&clk_refclk>, <&clk_sysbypck>, <&clk_mcbypck>;
66+
};

0 commit comments

Comments
 (0)