xref: /freebsd-src/sys/contrib/device-tree/Bindings/clock/fixed-factor-clock.yaml (revision 7d0873ebb83b19ba1e8a89e679470d885efe12e3)
1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0
2c66ec88fSEmmanuel Vadot%YAML 1.2
3c66ec88fSEmmanuel Vadot---
4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/clock/fixed-factor-clock.yaml#
5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6c66ec88fSEmmanuel Vadot
78bab661aSEmmanuel Vadottitle: Simple fixed factor rate clock sources
8c66ec88fSEmmanuel Vadot
9c66ec88fSEmmanuel Vadotmaintainers:
10c66ec88fSEmmanuel Vadot  - Michael Turquette <mturquette@baylibre.com>
11c66ec88fSEmmanuel Vadot  - Stephen Boyd <sboyd@kernel.org>
12c66ec88fSEmmanuel Vadot
13c66ec88fSEmmanuel Vadotproperties:
14*7d0873ebSEmmanuel Vadot  $nodename:
15*7d0873ebSEmmanuel Vadot    anyOf:
16*7d0873ebSEmmanuel Vadot      - description:
17*7d0873ebSEmmanuel Vadot          If the frequency is fixed, the preferred name is 'clock-<freq>' with
18*7d0873ebSEmmanuel Vadot          <freq> being the output frequency.
19*7d0873ebSEmmanuel Vadot        pattern: "^clock-([0-9]+|[0-9a-z-]+)$"
20*7d0873ebSEmmanuel Vadot      - description: Any name allowed
21*7d0873ebSEmmanuel Vadot        deprecated: true
22*7d0873ebSEmmanuel Vadot
23c66ec88fSEmmanuel Vadot  compatible:
24c66ec88fSEmmanuel Vadot    enum:
25c66ec88fSEmmanuel Vadot      - fixed-factor-clock
26c66ec88fSEmmanuel Vadot
27c66ec88fSEmmanuel Vadot  "#clock-cells":
28c66ec88fSEmmanuel Vadot    const: 0
29c66ec88fSEmmanuel Vadot
30c66ec88fSEmmanuel Vadot  clocks:
31c66ec88fSEmmanuel Vadot    maxItems: 1
32c66ec88fSEmmanuel Vadot
33c66ec88fSEmmanuel Vadot  clock-div:
34c66ec88fSEmmanuel Vadot    description: Fixed divider
35c66ec88fSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
36c66ec88fSEmmanuel Vadot    minimum: 1
37c66ec88fSEmmanuel Vadot
38c66ec88fSEmmanuel Vadot  clock-mult:
39c66ec88fSEmmanuel Vadot    description: Fixed multiplier
40c66ec88fSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
41c66ec88fSEmmanuel Vadot
42c66ec88fSEmmanuel Vadot  clock-output-names:
43c66ec88fSEmmanuel Vadot    maxItems: 1
44c66ec88fSEmmanuel Vadot
45c66ec88fSEmmanuel Vadotrequired:
46c66ec88fSEmmanuel Vadot  - compatible
47c66ec88fSEmmanuel Vadot  - clocks
48c66ec88fSEmmanuel Vadot  - "#clock-cells"
49c66ec88fSEmmanuel Vadot  - clock-div
50c66ec88fSEmmanuel Vadot  - clock-mult
51c66ec88fSEmmanuel Vadot
52c66ec88fSEmmanuel VadotadditionalProperties: false
53c66ec88fSEmmanuel Vadot
54c66ec88fSEmmanuel Vadotexamples:
55c66ec88fSEmmanuel Vadot  - |
56c66ec88fSEmmanuel Vadot    clock {
57c66ec88fSEmmanuel Vadot      compatible = "fixed-factor-clock";
58c66ec88fSEmmanuel Vadot      clocks = <&parentclk>;
59c66ec88fSEmmanuel Vadot      #clock-cells = <0>;
60c66ec88fSEmmanuel Vadot      clock-div = <2>;
61c66ec88fSEmmanuel Vadot      clock-mult = <1>;
62c66ec88fSEmmanuel Vadot    };
63c66ec88fSEmmanuel Vadot...
64