Skip to content

Commit b33037a

Browse files
AnimeshAgarwal28bebarino
authored andcommitted
dt-bindings: clock: nxp,lpc3220-clk: Convert bindings to DT schema
Convert the NXP LPC32xx Clock Controller bindings to yaml format. Cc: Daniel Baluta <[email protected]> Signed-off-by: Animesh Agarwal <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Stephen Boyd <[email protected]>
1 parent 8400291 commit b33037a

File tree

2 files changed

+51
-30
lines changed

2 files changed

+51
-30
lines changed

Documentation/devicetree/bindings/clock/nxp,lpc3220-clk.txt

Lines changed: 0 additions & 30 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/nxp,lpc3220-clk.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: NXP LPC32xx Clock Controller
8+
9+
maintainers:
10+
- Animesh Agarwal <[email protected]>
11+
12+
properties:
13+
compatible:
14+
const: nxp,lpc3220-clk
15+
16+
reg:
17+
maxItems: 1
18+
19+
'#clock-cells':
20+
const: 1
21+
22+
clocks:
23+
minItems: 1
24+
items:
25+
- description: External 32768 Hz oscillator.
26+
- description: Optional high frequency oscillator.
27+
28+
clock-names:
29+
minItems: 1
30+
items:
31+
- const: xtal_32k
32+
- const: xtal
33+
34+
required:
35+
- compatible
36+
- reg
37+
- '#clock-cells'
38+
- clocks
39+
- clock-names
40+
41+
additionalProperties: false
42+
43+
examples:
44+
- |
45+
clock-controller@0 {
46+
compatible = "nxp,lpc3220-clk";
47+
reg = <0x00 0x114>;
48+
#clock-cells = <1>;
49+
clocks = <&xtal_32k>, <&xtal>;
50+
clock-names = "xtal_32k", "xtal";
51+
};

0 commit comments

Comments
 (0)