mvebu-gated-clock.txt 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  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. 10 usb3h1 USB3 Host 1
  85. 15 sata0 SATA 0
  86. 17 sdio SDIO
  87. 22 xor0 XOR 0
  88. 28 xor1 XOR 1
  89. The following is a list of provided IDs for Armada XP:
  90. ID Clock Peripheral
  91. -----------------------------------
  92. 0 audio Audio Cntrl
  93. 1 ge3 Gigabit Ethernet 3
  94. 2 ge2 Gigabit Ethernet 2
  95. 3 ge1 Gigabit Ethernet 1
  96. 4 ge0 Gigabit Ethernet 0
  97. 5 pex0 PCIe Cntrl 0
  98. 6 pex1 PCIe Cntrl 1
  99. 7 pex2 PCIe Cntrl 2
  100. 8 pex3 PCIe Cntrl 3
  101. 13 bp
  102. 14 sata0lnk
  103. 15 sata0 SATA Host 0
  104. 16 lcd LCD Cntrl
  105. 17 sdio SDHCI Host
  106. 18 usb0 USB Host 0
  107. 19 usb1 USB Host 1
  108. 20 usb2 USB Host 2
  109. 22 xor0 XOR DMA 0
  110. 23 crypto CESA engine
  111. 25 tdm Time Division Mplx
  112. 28 xor1 XOR DMA 1
  113. 29 sata1lnk
  114. 30 sata1 SATA Host 0
  115. The following is a list of provided IDs for Dove:
  116. ID Clock Peripheral
  117. -----------------------------------
  118. 0 usb0 USB Host 0
  119. 1 usb1 USB Host 1
  120. 2 ge Gigabit Ethernet
  121. 3 sata SATA Host
  122. 4 pex0 PCIe Cntrl 0
  123. 5 pex1 PCIe Cntrl 1
  124. 8 sdio0 SDHCI Host 0
  125. 9 sdio1 SDHCI Host 1
  126. 10 nand NAND Cntrl
  127. 11 camera Camera Cntrl
  128. 12 i2s0 I2S Cntrl 0
  129. 13 i2s1 I2S Cntrl 1
  130. 15 crypto CESA engine
  131. 21 ac97 AC97 Cntrl
  132. 22 pdma Peripheral DMA
  133. 23 xor0 XOR DMA 0
  134. 24 xor1 XOR DMA 1
  135. 30 gephy Gigabit Ethernel PHY
  136. Note: gephy(30) is implemented as a parent clock of ge(2)
  137. The following is a list of provided IDs for Kirkwood:
  138. ID Clock Peripheral
  139. -----------------------------------
  140. 0 ge0 Gigabit Ethernet 0
  141. 2 pex0 PCIe Cntrl 0
  142. 3 usb0 USB Host 0
  143. 4 sdio SDIO Cntrl
  144. 5 tsu Transp. Stream Unit
  145. 6 dunit SDRAM Cntrl
  146. 7 runit Runit
  147. 8 xor0 XOR DMA 0
  148. 9 audio I2S Cntrl 0
  149. 14 sata0 SATA Host 0
  150. 15 sata1 SATA Host 1
  151. 16 xor1 XOR DMA 1
  152. 17 crypto CESA engine
  153. 18 pex1 PCIe Cntrl 1
  154. 19 ge1 Gigabit Ethernet 1
  155. 20 tdm Time Division Mplx
  156. Required properties:
  157. - compatible : shall be one of the following:
  158. "marvell,armada-370-gating-clock" - for Armada 370 SoC clock gating
  159. "marvell,armada-375-gating-clock" - for Armada 375 SoC clock gating
  160. "marvell,armada-380-gating-clock" - for Armada 380/385 SoC clock gating
  161. "marvell,armada-390-gating-clock" - for Armada 39x SoC clock gating
  162. "marvell,armada-xp-gating-clock" - for Armada XP SoC clock gating
  163. "marvell,dove-gating-clock" - for Dove SoC clock gating
  164. "marvell,kirkwood-gating-clock" - for Kirkwood SoC clock gating
  165. - reg : shall be the register address of the Clock Gating Control register
  166. - #clock-cells : from common clock binding; shall be set to 1
  167. Optional properties:
  168. - clocks : default parent clock phandle (e.g. tclk)
  169. Example:
  170. gate_clk: clock-gating-control@d0038 {
  171. compatible = "marvell,dove-gating-clock";
  172. reg = <0xd0038 0x4>;
  173. /* default parent clock is tclk */
  174. clocks = <&core_clk 0>;
  175. #clock-cells = <1>;
  176. };
  177. sdio0: sdio@92000 {
  178. compatible = "marvell,dove-sdhci";
  179. /* get clk gate bit 8 (sdio0) */
  180. clocks = <&gate_clk 8>;
  181. };