pwm-clock.txt 862 B

1234567891011121314151617181920212223242526
  1. Binding for an external clock signal driven by a PWM pin.
  2. This binding uses the common clock binding[1] and the common PWM binding[2].
  3. [1] Documentation/devicetree/bindings/clock/clock-bindings.txt
  4. [2] Documentation/devicetree/bindings/pwm/pwm.txt
  5. Required properties:
  6. - compatible : shall be "pwm-clock".
  7. - #clock-cells : from common clock binding; shall be set to 0.
  8. - pwms : from common PWM binding; this determines the clock frequency
  9. via the period given in the PWM specifier.
  10. Optional properties:
  11. - clock-output-names : From common clock binding.
  12. - clock-frequency : Exact output frequency, in case the PWM period
  13. is not exact but was rounded to nanoseconds.
  14. Example:
  15. clock {
  16. compatible = "pwm-clock";
  17. #clock-cells = <0>;
  18. clock-frequency = <25000000>;
  19. clock-output-names = "mipi_mclk";
  20. pwms = <&pwm2 0 40>; /* 1 / 40 ns = 25 MHz */
  21. };