Skip to content

Commit a7953b6

Browse files
Sukrut Bellarybebarino
authored andcommitted
dt-bindings: clock: ti: Convert fixed-factor-clock to yaml
This uses the ti,autoidle.yaml for clock autoidle support. Clean up the example to meet the current standards. Add the creator of the original binding as a maintainer. Signed-off-by: Sukrut Bellary <sbellary@baylibre.com> Link: https://lore.kernel.org/r/20250516081612.767559-3-sbellary@baylibre.com Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent 5ffe2d2 commit a7953b6

2 files changed

Lines changed: 76 additions & 42 deletions

File tree

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

Lines changed: 0 additions & 42 deletions
This file was deleted.
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
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/ti,fixed-factor-clock.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: TI fixed factor rate clock sources
8+
9+
maintainers:
10+
- Tero Kristo <kristo@kernel.org>
11+
- Sukrut Bellary <sbellary@baylibre.com>
12+
13+
description:
14+
This consists of a divider and a multiplier used to generate a fixed rate
15+
clock. This also uses the autoidle support from TI autoidle clock.
16+
17+
allOf:
18+
- $ref: ti,autoidle.yaml#
19+
20+
properties:
21+
compatible:
22+
const: ti,fixed-factor-clock
23+
24+
"#clock-cells":
25+
const: 0
26+
27+
reg:
28+
maxItems: 1
29+
30+
ti,clock-div:
31+
$ref: /schemas/types.yaml#/definitions/uint32
32+
description: Fixed divider
33+
minimum: 1
34+
35+
ti,clock-mult:
36+
$ref: /schemas/types.yaml#/definitions/uint32
37+
description: Fixed multiplier
38+
minimum: 1
39+
40+
clocks:
41+
maxItems: 1
42+
43+
clock-output-names:
44+
maxItems: 1
45+
46+
ti,set-rate-parent:
47+
description:
48+
Propagate to parent clock
49+
type: boolean
50+
51+
required:
52+
- compatible
53+
- clocks
54+
- "#clock-cells"
55+
- ti,clock-mult
56+
- ti,clock-div
57+
58+
unevaluatedProperties: false
59+
60+
examples:
61+
- |
62+
bus{
63+
#address-cells = <1>;
64+
#size-cells = <0>;
65+
66+
clock@1b4 {
67+
compatible = "ti,fixed-factor-clock";
68+
reg = <0x1b4>;
69+
clocks = <&dpll_usb_ck>;
70+
#clock-cells = <0>;
71+
ti,clock-mult = <1>;
72+
ti,clock-div = <1>;
73+
ti,autoidle-shift = <8>;
74+
ti,invert-autoidle-bit;
75+
};
76+
};

0 commit comments

Comments
 (0)