0001 Binding for an external clock signal driven by a PWM pin.
0002
0003 This binding uses the common clock binding[1] and the common PWM binding[2].
0004
0005 [1] Documentation/devicetree/bindings/clock/clock-bindings.txt
0006 [2] Documentation/devicetree/bindings/pwm/pwm.txt
0007
0008 Required properties:
0009 - compatible : shall be "pwm-clock".
0010 - #clock-cells : from common clock binding; shall be set to 0.
0011 - pwms : from common PWM binding; this determines the clock frequency
0012 via the period given in the PWM specifier.
0013
0014 Optional properties:
0015 - clock-output-names : From common clock binding.
0016 - clock-frequency : Exact output frequency, in case the PWM period
0017 is not exact but was rounded to nanoseconds.
0018
0019 Example:
0020 clock {
0021 compatible = "pwm-clock";
0022 #clock-cells = <0>;
0023 clock-frequency = <25000000>;
0024 clock-output-names = "mipi_mclk";
0025 pwms = <&pwm2 0 40>; /* 1 / 40 ns = 25 MHz */
0026 };