mvebu-gated-clock.txt 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. * Gated Clock bindings for Marvell EBU SoCs
  2. Marvell Armada 370/375/380/385/XP, Dove and Kirkwood allow some
  3. peripheral clocks to be gated to save some power. The clock consumer
  4. should specify the desired clock by having the clock ID in its
  5. "clocks" phandle cell. The clock ID is directly mapped to the
  6. corresponding clock gating control bit in HW to ease manual clock
  7. lookup in datasheet.
  8. The following is a list of provided IDs for Armada 370:
  9. ID Clock Peripheral
  10. -----------------------------------
  11. 0 Audio AC97 Cntrl
  12. 1 pex0_en PCIe 0 Clock out
  13. 2 pex1_en PCIe 1 Clock out
  14. 3 ge1 Gigabit Ethernet 1
  15. 4 ge0 Gigabit Ethernet 0
  16. 5 pex0 PCIe Cntrl 0
  17. 9 pex1 PCIe Cntrl 1
  18. 15 sata0 SATA Host 0
  19. 17 sdio SDHCI Host
  20. 25 tdm Time Division Mplx
  21. 28 ddr DDR Cntrl
  22. 30 sata1 SATA Host 0
  23. The following is a list of provided IDs for Armada 375:
  24. ID Clock Peripheral
  25. -----------------------------------
  26. 2 mu Management Unit
  27. 3 pp Packet Processor
  28. 4 ptp PTP
  29. 5 pex0 PCIe 0 Clock out
  30. 6 pex1 PCIe 1 Clock out
  31. 8 audio Audio Cntrl
  32. 11 nd_clk Nand Flash Cntrl
  33. 14 sata0_link SATA 0 Link
  34. 15 sata0_core SATA 0 Core
  35. 16 usb3 USB3 Host
  36. 17 sdio SDHCI Host
  37. 18 usb USB Host
  38. 19 gop Gigabit Ethernet MAC
  39. 20 sata1_link SATA 1 Link
  40. 21 sata1_core SATA 1 Core
  41. 22 xor0 XOR DMA 0
  42. 23 xor1 XOR DMA 0
  43. 24 copro Coprocessor
  44. 25 tdm Time Division Mplx
  45. 28 crypto0_enc Cryptographic Unit Port 0 Encryption
  46. 29 crypto0_core Cryptographic Unit Port 0 Core
  47. 30 crypto1_enc Cryptographic Unit Port 1 Encryption
  48. 31 crypto1_core Cryptographic Unit Port 1 Core
  49. The following is a list of provided IDs for Armada 380/385:
  50. ID Clock Peripheral
  51. -----------------------------------
  52. 0 audio Audio
  53. 2 ge2 Gigabit Ethernet 2
  54. 3 ge1 Gigabit Ethernet 1
  55. 4 ge0 Gigabit Ethernet 0
  56. 5 pex1 PCIe 1
  57. 6 pex2 PCIe 2
  58. 7 pex3 PCIe 3
  59. 8 pex0 PCIe 0
  60. 9 usb3h0 USB3 Host 0
  61. 10 usb3h1 USB3 Host 1
  62. 11 usb3d USB3 Device
  63. 13 bm Buffer Management
  64. 14 crypto0z Cryptographic 0 Z
  65. 15 sata0 SATA 0
  66. 16 crypto1z Cryptographic 1 Z
  67. 17 sdio SDIO
  68. 18 usb2 USB 2
  69. 21 crypto1 Cryptographic 1
  70. 22 xor0 XOR 0
  71. 23 crypto0 Cryptographic 0
  72. 25 tdm Time Division Multiplexing
  73. 28 xor1 XOR 1
  74. 30 sata1 SATA 1
  75. The following is a list of provided IDs for Armada XP:
  76. ID Clock Peripheral
  77. -----------------------------------
  78. 0 audio Audio Cntrl
  79. 1 ge3 Gigabit Ethernet 3
  80. 2 ge2 Gigabit Ethernet 2
  81. 3 ge1 Gigabit Ethernet 1
  82. 4 ge0 Gigabit Ethernet 0
  83. 5 pex0 PCIe Cntrl 0
  84. 6 pex1 PCIe Cntrl 1
  85. 7 pex2 PCIe Cntrl 2
  86. 8 pex3 PCIe Cntrl 3
  87. 13 bp
  88. 14 sata0lnk
  89. 15 sata0 SATA Host 0
  90. 16 lcd LCD Cntrl
  91. 17 sdio SDHCI Host
  92. 18 usb0 USB Host 0
  93. 19 usb1 USB Host 1
  94. 20 usb2 USB Host 2
  95. 22 xor0 XOR DMA 0
  96. 23 crypto CESA engine
  97. 25 tdm Time Division Mplx
  98. 28 xor1 XOR DMA 1
  99. 29 sata1lnk
  100. 30 sata1 SATA Host 0
  101. The following is a list of provided IDs for Dove:
  102. ID Clock Peripheral
  103. -----------------------------------
  104. 0 usb0 USB Host 0
  105. 1 usb1 USB Host 1
  106. 2 ge Gigabit Ethernet
  107. 3 sata SATA Host
  108. 4 pex0 PCIe Cntrl 0
  109. 5 pex1 PCIe Cntrl 1
  110. 8 sdio0 SDHCI Host 0
  111. 9 sdio1 SDHCI Host 1
  112. 10 nand NAND Cntrl
  113. 11 camera Camera Cntrl
  114. 12 i2s0 I2S Cntrl 0
  115. 13 i2s1 I2S Cntrl 1
  116. 15 crypto CESA engine
  117. 21 ac97 AC97 Cntrl
  118. 22 pdma Peripheral DMA
  119. 23 xor0 XOR DMA 0
  120. 24 xor1 XOR DMA 1
  121. 30 gephy Gigabit Ethernel PHY
  122. Note: gephy(30) is implemented as a parent clock of ge(2)
  123. The following is a list of provided IDs for Kirkwood:
  124. ID Clock Peripheral
  125. -----------------------------------
  126. 0 ge0 Gigabit Ethernet 0
  127. 2 pex0 PCIe Cntrl 0
  128. 3 usb0 USB Host 0
  129. 4 sdio SDIO Cntrl
  130. 5 tsu Transp. Stream Unit
  131. 6 dunit SDRAM Cntrl
  132. 7 runit Runit
  133. 8 xor0 XOR DMA 0
  134. 9 audio I2S Cntrl 0
  135. 14 sata0 SATA Host 0
  136. 15 sata1 SATA Host 1
  137. 16 xor1 XOR DMA 1
  138. 17 crypto CESA engine
  139. 18 pex1 PCIe Cntrl 1
  140. 19 ge1 Gigabit Ethernet 1
  141. 20 tdm Time Division Mplx
  142. Required properties:
  143. - compatible : shall be one of the following:
  144. "marvell,armada-370-gating-clock" - for Armada 370 SoC clock gating
  145. "marvell,armada-375-gating-clock" - for Armada 375 SoC clock gating
  146. "marvell,armada-380-gating-clock" - for Armada 380/385 SoC clock gating
  147. "marvell,armada-xp-gating-clock" - for Armada XP SoC clock gating
  148. "marvell,dove-gating-clock" - for Dove SoC clock gating
  149. "marvell,kirkwood-gating-clock" - for Kirkwood SoC clock gating
  150. - reg : shall be the register address of the Clock Gating Control register
  151. - #clock-cells : from common clock binding; shall be set to 1
  152. Optional properties:
  153. - clocks : default parent clock phandle (e.g. tclk)
  154. Example:
  155. gate_clk: clock-gating-control@d0038 {
  156. compatible = "marvell,dove-gating-clock";
  157. reg = <0xd0038 0x4>;
  158. /* default parent clock is tclk */
  159. clocks = <&core_clk 0>;
  160. #clock-cells = <1>;
  161. };
  162. sdio0: sdio@92000 {
  163. compatible = "marvell,dove-sdhci";
  164. /* get clk gate bit 8 (sdio0) */
  165. clocks = <&gate_clk 8>;
  166. };