xref: /linux/Documentation/devicetree/bindings/clock/fixed-clock.yaml (revision 90d32e92011eaae8e70a9169b4e7acf4ca8f9d3a)
1# SPDX-License-Identifier: GPL-2.0
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/clock/fixed-clock.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Simple fixed-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          Preferred name is 'clock-<freq>' with <freq> being the output
18          frequency as defined in the 'clock-frequency' property.
19        pattern: "^clock-([0-9]+|[a-z0-9-]+)$"
20      - description: Any name allowed
21        deprecated: true
22
23  compatible:
24    const: fixed-clock
25
26  "#clock-cells":
27    const: 0
28
29  clock-frequency: true
30
31  clock-accuracy:
32    description: accuracy of clock in ppb (parts per billion).
33    $ref: /schemas/types.yaml#/definitions/uint32
34
35  clock-output-names:
36    maxItems: 1
37
38required:
39  - compatible
40  - "#clock-cells"
41  - clock-frequency
42
43additionalProperties: false
44
45examples:
46  - |
47    clock {
48      compatible = "fixed-clock";
49      #clock-cells = <0>;
50      clock-frequency = <1000000000>;
51      clock-accuracy = <100>;
52    };
53...
54