Skip to content

Commit 944b074

Browse files
akemnadebebarino
authored andcommitted
dt-bindings: clock: ti: Convert ti-clkctrl.txt to json-schema
Convert the TI clkctrl clock device tree binding to json-schema. Specify the creator of the original binding as a maintainer. reg property is used mostly with one item, in am3xxx also with an arbitrary number of items, so divert from the original binding specifying two (probably meaning one address and one size). The consumer part of the example is left out because the full consumer node would be needed. Signed-off-by: Andreas Kemnade <andreas@kemnade.info> Link: https://lore.kernel.org/r/20250311180215.173634-1-andreas@kemnade.info Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent 00153c6 commit 944b074

File tree

2 files changed

+65
-63
lines changed

2 files changed

+65
-63
lines changed
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/clock/ti,clkctrl.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Texas Instruments clkctrl clock
8+
9+
maintainers:
10+
- Tony Lindgren <tony@atomide.com>
11+
- Andreas Kemnade <andreas@kemnade.info>
12+
13+
description: |
14+
Texas Instruments SoCs can have a clkctrl clock controller for each
15+
interconnect target module. The clkctrl clock controller manages functional
16+
and interface clocks for each module. Each clkctrl controller can also
17+
gate one or more optional functional clocks for a module, and can have one
18+
or more clock muxes. There is a clkctrl clock controller typically for each
19+
interconnect target module on omap4 and later variants.
20+
21+
The clock consumers can specify the index of the clkctrl clock using
22+
the hardware offset from the clkctrl instance register space. The optional
23+
clocks can be specified by clkctrl hardware offset and the index of the
24+
optional clock.
25+
26+
properties:
27+
compatible:
28+
enum:
29+
- ti,clkctrl
30+
- ti,clkctrl-l4-cfg
31+
- ti,clkctrl-l4-per
32+
- ti,clkctrl-l4-secure
33+
- ti,clkctrl-l4-wkup
34+
35+
"#clock-cells":
36+
const: 2
37+
38+
clock-output-names:
39+
maxItems: 1
40+
41+
reg:
42+
minItems: 1
43+
maxItems: 8 # arbitrary, should be enough
44+
45+
required:
46+
- compatible
47+
- "#clock-cells"
48+
- clock-output-names
49+
- reg
50+
51+
additionalProperties: false
52+
53+
examples:
54+
- |
55+
bus {
56+
#address-cells = <1>;
57+
#size-cells = <1>;
58+
59+
clock@20 {
60+
compatible = "ti,clkctrl";
61+
clock-output-names = "l4_per";
62+
reg = <0x20 0x1b0>;
63+
#clock-cells = <2>;
64+
};
65+
};

Documentation/devicetree/bindings/clock/ti-clkctrl.txt

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

0 commit comments

Comments
 (0)