fixed-factor-clock.txt 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. Binding for TI fixed factor rate clock sources.
  2. Binding status: Unstable - ABI compatibility may be broken in the future
  3. This binding uses the common clock binding[1], and also uses the autoidle
  4. support from TI autoidle clock [2].
  5. [1] Documentation/devicetree/bindings/clock/clock-bindings.txt
  6. [2] Documentation/devicetree/bindings/clock/ti/autoidle.txt
  7. Required properties:
  8. - compatible : shall be "ti,fixed-factor-clock".
  9. - #clock-cells : from common clock binding; shall be set to 0.
  10. - ti,clock-div: fixed divider.
  11. - ti,clock-mult: fixed multiplier.
  12. - clocks: parent clock.
  13. Optional properties:
  14. - ti,autoidle-shift: bit shift of the autoidle enable bit for the clock,
  15. see [2]
  16. - reg: offset for the autoidle register of this clock, see [2]
  17. - ti,invert-autoidle-bit: autoidle is enabled by setting the bit to 0, see [2]
  18. - ti,set-rate-parent: clk_set_rate is propagated to parent
  19. Example:
  20. clock {
  21. compatible = "ti,fixed-factor-clock";
  22. clocks = <&parentclk>;
  23. #clock-cells = <0>;
  24. ti,clock-div = <2>;
  25. ti,clock-mult = <1>;
  26. };
  27. dpll_usb_clkdcoldo_ck: dpll_usb_clkdcoldo_ck {
  28. #clock-cells = <0>;
  29. compatible = "ti,fixed-factor-clock";
  30. clocks = <&dpll_usb_ck>;
  31. ti,clock-div = <1>;
  32. ti,autoidle-shift = <8>;
  33. reg = <0x01b4>;
  34. ti,clock-mult = <1>;
  35. ti,invert-autoidle-bit;
  36. };