xref: /linux/Documentation/devicetree/bindings/clock/fixed-factor-clock.yaml (revision f73a058be5d70dd81a43f16b2bbff4b1576a7af8)
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: Simple fixed factor rate clock sources
8
9maintainers:
10  - Michael Turquette <mturquette@baylibre.com>
11  - Stephen Boyd <sboyd@kernel.org>
12
13properties:
14  $nodename:
15    anyOf:
16      - description:
17          If the frequency is fixed, the preferred name is 'clock-<freq>' with
18          <freq> being the output frequency.
19        pattern: "^clock-([0-9]+|[0-9a-z-]+)$"
20      - description: Any name allowed
21        deprecated: true
22
23  compatible:
24    enum:
25      - fixed-factor-clock
26
27  "#clock-cells":
28    const: 0
29
30  clocks:
31    maxItems: 1
32
33  clock-div:
34    description: Fixed divider
35    $ref: /schemas/types.yaml#/definitions/uint32
36    minimum: 1
37
38  clock-mult:
39    description: Fixed multiplier
40    $ref: /schemas/types.yaml#/definitions/uint32
41
42  clock-output-names:
43    maxItems: 1
44
45required:
46  - compatible
47  - clocks
48  - "#clock-cells"
49  - clock-div
50  - clock-mult
51
52additionalProperties: false
53
54examples:
55  - |
56    clock {
57      compatible = "fixed-factor-clock";
58      clocks = <&parentclk>;
59      #clock-cells = <0>;
60      clock-div = <2>;
61      clock-mult = <1>;
62    };
63...
64