xref: /linux/Documentation/devicetree/bindings/clock/fixed-factor-clock.yaml (revision 4b4193256c8d3bc3a5397b5cd9494c2ad386317d)
1f79bae16SRob Herring# SPDX-License-Identifier: GPL-2.0
2f79bae16SRob Herring%YAML 1.2
3f79bae16SRob Herring---
4f79bae16SRob Herring$id: http://devicetree.org/schemas/clock/fixed-factor-clock.yaml#
5f79bae16SRob Herring$schema: http://devicetree.org/meta-schemas/core.yaml#
6f79bae16SRob Herring
7f79bae16SRob Herringtitle: Binding for simple fixed factor rate clock sources
8f79bae16SRob Herring
9f79bae16SRob Herringmaintainers:
10f79bae16SRob Herring  - Michael Turquette <mturquette@baylibre.com>
11f79bae16SRob Herring  - Stephen Boyd <sboyd@kernel.org>
12f79bae16SRob Herring
13f79bae16SRob Herringproperties:
14f79bae16SRob Herring  compatible:
15f79bae16SRob Herring    enum:
16f79bae16SRob Herring      - allwinner,sun4i-a10-pll3-2x-clk
17f79bae16SRob Herring      - fixed-factor-clock
18f79bae16SRob Herring
19f79bae16SRob Herring  "#clock-cells":
20f79bae16SRob Herring    const: 0
21f79bae16SRob Herring
22f79bae16SRob Herring  clocks:
23f79bae16SRob Herring    maxItems: 1
24f79bae16SRob Herring
25f79bae16SRob Herring  clock-div:
26f79bae16SRob Herring    description: Fixed divider
27*3d21a460SRob Herring    $ref: /schemas/types.yaml#/definitions/uint32
28*3d21a460SRob Herring    minimum: 1
29f79bae16SRob Herring
30f79bae16SRob Herring  clock-mult:
31f79bae16SRob Herring    description: Fixed multiplier
32f79bae16SRob Herring    $ref: /schemas/types.yaml#/definitions/uint32
33f79bae16SRob Herring
34f79bae16SRob Herring  clock-output-names:
35f79bae16SRob Herring    maxItems: 1
36f79bae16SRob Herring
37f79bae16SRob Herringrequired:
38f79bae16SRob Herring  - compatible
39f79bae16SRob Herring  - clocks
40f79bae16SRob Herring  - "#clock-cells"
41f79bae16SRob Herring  - clock-div
42f79bae16SRob Herring  - clock-mult
43f79bae16SRob Herring
44f79bae16SRob HerringadditionalProperties: false
45f79bae16SRob Herring
46f79bae16SRob Herringexamples:
47f79bae16SRob Herring  - |
48f79bae16SRob Herring    clock {
49f79bae16SRob Herring      compatible = "fixed-factor-clock";
50f79bae16SRob Herring      clocks = <&parentclk>;
51f79bae16SRob Herring      #clock-cells = <0>;
52f79bae16SRob Herring      clock-div = <2>;
53f79bae16SRob Herring      clock-mult = <1>;
54f79bae16SRob Herring    };
55f79bae16SRob Herring...
56