Skip to content

Commit 59e7166

Browse files
committed
dt-bindings: clock: renesas: div6: Convert to json-schema
Convert the Renesas CPG DIV6 Clock Device Tree binding documentation to json-schema. Drop R-Car Gen2 compatible values, which were obsoleted by the unified "Renesas Clock Pulse Generator / Module Standby and Software Reset" DT bindings. Update the example to match reality. Signed-off-by: Geert Uytterhoeven <[email protected]> Reviewed-by: Stephen Boyd <[email protected]> Reviewed-by: Rob Herring <[email protected]> Reviewed-by: Niklas Söderlund <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent ace3420 commit 59e7166

File tree

2 files changed

+60
-40
lines changed

2 files changed

+60
-40
lines changed
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/clock/renesas,cpg-div6-clock.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Renesas CPG DIV6 Clock
8+
9+
maintainers:
10+
- Geert Uytterhoeven <[email protected]>
11+
12+
description:
13+
The CPG DIV6 clocks are variable factor clocks provided by the Clock Pulse
14+
Generator (CPG). Their clock input is divided by a configurable factor from 1
15+
to 64.
16+
17+
properties:
18+
compatible:
19+
items:
20+
- enum:
21+
- renesas,r8a73a4-div6-clock # R-Mobile APE6
22+
- renesas,r8a7740-div6-clock # R-Mobile A1
23+
- renesas,sh73a0-div6-clock # SH-Mobile AG5
24+
- const: renesas,cpg-div6-clock
25+
26+
reg:
27+
maxItems: 1
28+
29+
clocks:
30+
oneOf:
31+
- maxItems: 1
32+
- maxItems: 4
33+
- maxItems: 8
34+
description:
35+
For clocks with multiple parents, invalid settings must be specified as
36+
"<0>".
37+
38+
'#clock-cells':
39+
const: 0
40+
41+
clock-output-names: true
42+
43+
required:
44+
- compatible
45+
- reg
46+
- clocks
47+
- '#clock-cells'
48+
49+
additionalProperties: false
50+
51+
examples:
52+
- |
53+
#include <dt-bindings/clock/r8a73a4-clock.h>
54+
sdhi2_clk: sdhi2_clk@e615007c {
55+
compatible = "renesas,r8a73a4-div6-clock", "renesas,cpg-div6-clock";
56+
reg = <0xe615007c 4>;
57+
clocks = <&pll1_div2_clk>, <&cpg_clocks R8A73A4_CLK_PLL2S>, <0>,
58+
<&extal2_clk>;
59+
#clock-cells = <0>;
60+
};

Documentation/devicetree/bindings/clock/renesas,cpg-div6-clocks.txt

Lines changed: 0 additions & 40 deletions
This file was deleted.

0 commit comments

Comments
 (0)