xref: /linux/Documentation/devicetree/bindings/clock/pwm-clock.yaml (revision fd7d598270724cc787982ea48bbe17ad383a8b7f)
1# SPDX-License-Identifier: GPL-2.0
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/clock/pwm-clock.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: An external clock signal driven by a PWM pin.
8
9maintainers:
10  - Philipp Zabel <p.zabel@pengutronix.de>
11
12properties:
13  compatible:
14    const: pwm-clock
15
16  '#clock-cells':
17    const: 0
18
19  clock-frequency:
20    description: Exact output frequency, in case the PWM period is not exact
21      but was rounded to nanoseconds.
22
23  clock-output-names:
24    maxItems: 1
25
26  pwms:
27    maxItems: 1
28
29required:
30  - compatible
31  - '#clock-cells'
32  - pwms
33
34additionalProperties: false
35
36examples:
37  - |
38    clock {
39        compatible = "pwm-clock";
40        #clock-cells = <0>;
41        clock-frequency = <25000000>;
42        clock-output-names = "mipi_mclk";
43        pwms = <&pwm2 0 40>; /* 1 / 40 ns = 25 MHz */
44    };
45...
46