apll.txt 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. Binding for Texas Instruments APLL clock.
  2. Binding status: Unstable - ABI compatibility may be broken in the future
  3. This binding uses the common clock binding[1]. It assumes a
  4. register-mapped APLL with usually two selectable input clocks
  5. (reference clock and bypass clock), with analog phase locked
  6. loop logic for multiplying the input clock to a desired output
  7. clock. This clock also typically supports different operation
  8. modes (locked, low power stop etc.) APLL mostly behaves like
  9. a subtype of a DPLL [2], although a simplified one at that.
  10. [1] Documentation/devicetree/bindings/clock/clock-bindings.txt
  11. [2] Documentation/devicetree/bindings/clock/ti/dpll.txt
  12. Required properties:
  13. - compatible : shall be "ti,dra7-apll-clock" or "ti,omap2-apll-clock"
  14. - #clock-cells : from common clock binding; shall be set to 0.
  15. - clocks : link phandles of parent clocks (clk-ref and clk-bypass)
  16. - reg : address and length of the register set for controlling the APLL.
  17. It contains the information of registers in the following order:
  18. "control" - contains the control register offset
  19. "idlest" - contains the idlest register offset
  20. "autoidle" - contains the autoidle register offset (OMAP2 only)
  21. - ti,clock-frequency : static clock frequency for the clock (OMAP2 only)
  22. - ti,idlest-shift : bit-shift for the idlest field (OMAP2 only)
  23. - ti,bit-shift : bit-shift for enable and autoidle fields (OMAP2 only)
  24. Examples:
  25. apll_pcie_ck: apll_pcie_ck {
  26. #clock-cells = <0>;
  27. clocks = <&apll_pcie_in_clk_mux>, <&dpll_pcie_ref_ck>;
  28. reg = <0x021c>, <0x0220>;
  29. compatible = "ti,dra7-apll-clock";
  30. };
  31. apll96_ck: apll96_ck {
  32. #clock-cells = <0>;
  33. compatible = "ti,omap2-apll-clock";
  34. clocks = <&sys_ck>;
  35. ti,bit-shift = <2>;
  36. ti,idlest-shift = <8>;
  37. ti,clock-frequency = <96000000>;
  38. reg = <0x0500>, <0x0530>, <0x0520>;
  39. };