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