Skip to content

Commit 420601d

Browse files
robherringbebarino
authored andcommitted
dt-bindings: clock: Convert fixed-clock binding to json-schema
Convert the fixed-clock binding to DT schema format using json-schema. Cc: Michael Turquette <mturquette@baylibre.com> Cc: Stephen Boyd <sboyd@kernel.org> Cc: linux-clk@vger.kernel.org Signed-off-by: Rob Herring <robh@kernel.org> [sboyd@kernel.org: Drop full stop on title] Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent bfeffd1 commit 420601d

File tree

2 files changed

+44
-23
lines changed

2 files changed

+44
-23
lines changed

Documentation/devicetree/bindings/clock/fixed-clock.txt

Lines changed: 0 additions & 23 deletions
This file was deleted.
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/clock/fixed-clock.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Binding for simple fixed-rate clock sources
8+
9+
maintainers:
10+
- Michael Turquette <mturquette@baylibre.com>
11+
- Stephen Boyd <sboyd@kernel.org>
12+
13+
properties:
14+
compatible:
15+
const: fixed-clock
16+
17+
"#clock-cells":
18+
const: 0
19+
20+
clock-frequency: true
21+
22+
clock-accuracy:
23+
description: accuracy of clock in ppb (parts per billion).
24+
$ref: /schemas/types.yaml#/definitions/uint32
25+
26+
clock-output-names:
27+
maxItems: 1
28+
29+
required:
30+
- compatible
31+
- "#clock-cells"
32+
- clock-frequency
33+
34+
additionalProperties: false
35+
36+
examples:
37+
- |
38+
clock {
39+
compatible = "fixed-clock";
40+
#clock-cells = <0>;
41+
clock-frequency = <1000000000>;
42+
clock-accuracy = <100>;
43+
};
44+
...

0 commit comments

Comments
 (0)