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
7title: Binding for simple fixed factor rate clock sources
8
9maintainers:
10  - Michael Turquette <mturquette@baylibre.com>
11  - Stephen Boyd <sboyd@kernel.org>
12
13properties:
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
38required:
39  - compatible
40  - clocks
41  - "#clock-cells"
42  - clock-div
43  - clock-mult
44
45additionalProperties: false
46
47examples:
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...
57