mvebu-gated-clock.txt 4.9 KB

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