Skip to content

Commit f79bae1

Browse files
robherringbebarino
authored andcommitted
dt-bindings: clock: Convert fixed-factor-clock to json-schema
Convert the fixed-factor-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 420601d commit f79bae1

File tree

2 files changed

+56
-28
lines changed

2 files changed

+56
-28
lines changed

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

Lines changed: 0 additions & 28 deletions
This file was deleted.
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/clock/fixed-factor-clock.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Binding for simple fixed factor rate clock sources
8+
9+
maintainers:
10+
- Michael Turquette <mturquette@baylibre.com>
11+
- Stephen Boyd <sboyd@kernel.org>
12+
13+
properties:
14+
compatible:
15+
enum:
16+
- allwinner,sun4i-a10-pll3-2x-clk
17+
- fixed-factor-clock
18+
19+
"#clock-cells":
20+
const: 0
21+
22+
clocks:
23+
maxItems: 1
24+
25+
clock-div:
26+
description: Fixed divider
27+
allOf:
28+
- $ref: /schemas/types.yaml#/definitions/uint32
29+
- minimum: 1
30+
31+
clock-mult:
32+
description: Fixed multiplier
33+
$ref: /schemas/types.yaml#/definitions/uint32
34+
35+
clock-output-names:
36+
maxItems: 1
37+
38+
required:
39+
- compatible
40+
- clocks
41+
- "#clock-cells"
42+
- clock-div
43+
- clock-mult
44+
45+
additionalProperties: false
46+
47+
examples:
48+
- |
49+
clock {
50+
compatible = "fixed-factor-clock";
51+
clocks = <&parentclk>;
52+
#clock-cells = <0>;
53+
clock-div = <2>;
54+
clock-mult = <1>;
55+
};
56+
...

0 commit comments

Comments
 (0)