dra7-atl.txt 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. Device Tree Clock bindings for ATL (Audio Tracking Logic) of DRA7 SoC.
  2. The ATL IP is used to generate clock to be used to synchronize baseband and
  3. audio codec. A single ATL IP provides four ATL clock instances sharing the same
  4. functional clock but can be configured to provide different clocks.
  5. ATL can maintain a clock averages to some desired frequency based on the bws/aws
  6. signals - can compensate the drift between the two ws signal.
  7. In order to provide the support for ATL and it's output clocks (which can be used
  8. internally within the SoC or external components) two sets of bindings is needed:
  9. Clock tree binding:
  10. This binding uses the common clock binding[1].
  11. To be able to integrate the ATL clocks with DT clock tree.
  12. Provides ccf level representation of the ATL clocks to be used by drivers.
  13. Since the clock instances are part of a single IP this binding is used as a node
  14. for the DT clock tree, the IP driver is needed to handle the actual configuration
  15. of the IP.
  16. [1] Documentation/devicetree/bindings/clock/clock-bindings.txt
  17. Required properties:
  18. - compatible : shall be "ti,dra7-atl-clock"
  19. - #clock-cells : from common clock binding; shall be set to 0.
  20. - clocks : link phandles to functional clock of ATL
  21. Binding for the IP driver:
  22. This binding is used to configure the IP driver which is going to handle the
  23. configuration of the IP for the ATL clock instances.
  24. Required properties:
  25. - compatible : shall be "ti,dra7-atl"
  26. - reg : base address for the ATL IP
  27. - ti,provided-clocks : List of phandles to the clocks associated with the ATL
  28. - clocks : link phandles to functional clock of ATL
  29. - clock-names : Shall be set to "fck"
  30. - ti,hwmods : Shall be set to "atl"
  31. Optional properties:
  32. Configuration of ATL instances:
  33. - atl{0/1/2/3} {
  34. - bws : Baseband word select signal selection
  35. - aws : Audio word select signal selection
  36. };
  37. For valid word select signals, see the dt-bindings/clk/ti-dra7-atl.h include
  38. file.
  39. Examples:
  40. /* clock bindings for atl provided clocks */
  41. atl_clkin0_ck: atl_clkin0_ck {
  42. #clock-cells = <0>;
  43. compatible = "ti,dra7-atl-clock";
  44. clocks = <&atl_gfclk_mux>;
  45. };
  46. atl_clkin1_ck: atl_clkin1_ck {
  47. #clock-cells = <0>;
  48. compatible = "ti,dra7-atl-clock";
  49. clocks = <&atl_gfclk_mux>;
  50. };
  51. atl_clkin2_ck: atl_clkin2_ck {
  52. #clock-cells = <0>;
  53. compatible = "ti,dra7-atl-clock";
  54. clocks = <&atl_gfclk_mux>;
  55. };
  56. atl_clkin3_ck: atl_clkin3_ck {
  57. #clock-cells = <0>;
  58. compatible = "ti,dra7-atl-clock";
  59. clocks = <&atl_gfclk_mux>;
  60. };
  61. /* binding for the IP */
  62. atl: atl@4843c000 {
  63. compatible = "ti,dra7-atl";
  64. reg = <0x4843c000 0x3ff>;
  65. ti,hwmods = "atl";
  66. ti,provided-clocks = <&atl_clkin0_ck>, <&atl_clkin1_ck>,
  67. <&atl_clkin2_ck>, <&atl_clkin3_ck>;
  68. clocks = <&atl_gfclk_mux>;
  69. clock-names = "fck";
  70. status = "disabled";
  71. };
  72. #include <dt-bindings/clk/ti-dra7-atl.h>
  73. &atl {
  74. status = "okay";
  75. atl2 {
  76. bws = <DRA7_ATL_WS_MCASP2_FSX>;
  77. aws = <DRA7_ATL_WS_MCASP3_FSX>;
  78. };
  79. };