exynos5433-clock.txt 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462
  1. * Samsung Exynos5433 CMU (Clock Management Units)
  2. The Exynos5433 clock controller generates and supplies clock to various
  3. controllers within the Exynos5433 SoC.
  4. Required Properties:
  5. - compatible: should be one of the following.
  6. - "samsung,exynos5433-cmu-top" - clock controller compatible for CMU_TOP
  7. which generates clocks for IMEM/FSYS/G3D/GSCL/HEVC/MSCL/G2D/MFC/PERIC/PERIS
  8. domains and bus clocks.
  9. - "samsung,exynos5433-cmu-cpif" - clock controller compatible for CMU_CPIF
  10. which generates clocks for LLI (Low Latency Interface) IP.
  11. - "samsung,exynos5433-cmu-mif" - clock controller compatible for CMU_MIF
  12. which generates clocks for DRAM Memory Controller domain.
  13. - "samsung,exynos5433-cmu-peric" - clock controller compatible for CMU_PERIC
  14. which generates clocks for UART/I2C/SPI/I2S/PCM/SPDIF/PWM/SLIMBUS IPs.
  15. - "samsung,exynos5433-cmu-peris" - clock controller compatible for CMU_PERIS
  16. which generates clocks for PMU/TMU/MCT/WDT/RTC/SECKEY/TZPC IPs.
  17. - "samsung,exynos5433-cmu-fsys" - clock controller compatible for CMU_FSYS
  18. which generates clocks for USB/UFS/SDMMC/TSI/PDMA IPs.
  19. - "samsung,exynos5433-cmu-g2d" - clock controller compatible for CMU_G2D
  20. which generates clocks for G2D/MDMA IPs.
  21. - "samsung,exynos5433-cmu-disp" - clock controller compatible for CMU_DISP
  22. which generates clocks for Display (DECON/HDMI/DSIM/MIXER) IPs.
  23. - "samsung,exynos5433-cmu-aud" - clock controller compatible for CMU_AUD
  24. which generates clocks for Cortex-A5/BUS/AUDIO clocks.
  25. - "samsung,exynos5433-cmu-bus0", "samsung,exynos5433-cmu-bus1"
  26. and "samsung,exynos5433-cmu-bus2" - clock controller compatible for CMU_BUS
  27. which generates global data buses clock and global peripheral buses clock.
  28. - "samsung,exynos5433-cmu-g3d" - clock controller compatible for CMU_G3D
  29. which generates clocks for 3D Graphics Engine IP.
  30. - "samsung,exynos5433-cmu-gscl" - clock controller compatible for CMU_GSCL
  31. which generates clocks for GSCALER IPs.
  32. - "samsung,exynos5433-cmu-apollo"- clock controller compatible for CMU_APOLLO
  33. which generates clocks for Cortex-A53 Quad-core processor.
  34. - "samsung,exynos5433-cmu-atlas" - clock controller compatible for CMU_ATLAS
  35. which generates clocks for Cortex-A57 Quad-core processor, CoreSight and
  36. L2 cache controller.
  37. - "samsung,exynos5433-cmu-mscl" - clock controller compatible for CMU_MSCL
  38. which generates clocks for M2M (Memory to Memory) scaler and JPEG IPs.
  39. - "samsung,exynos5433-cmu-mfc" - clock controller compatible for CMU_MFC
  40. which generates clocks for MFC(Multi-Format Codec) IP.
  41. - "samsung,exynos5433-cmu-hevc" - clock controller compatible for CMU_HEVC
  42. which generates clocks for HEVC(High Efficiency Video Codec) decoder IP.
  43. - "samsung,exynos5433-cmu-isp" - clock controller compatible for CMU_ISP
  44. which generates clocks for FIMC-ISP/DRC/SCLC/DIS/3DNR IPs.
  45. - "samsung,exynos5433-cmu-cam0" - clock controller compatible for CMU_CAM0
  46. which generates clocks for MIPI_CSIS{0|1}/FIMC_LITE_{A|B|D}/FIMC_3AA{0|1}
  47. IPs.
  48. - "samsung,exynos5433-cmu-cam1" - clock controller compatible for CMU_CAM1
  49. which generates clocks for Cortex-A5/MIPI_CSIS2/FIMC-LITE_C/FIMC-FD IPs.
  50. - reg: physical base address of the controller and length of memory mapped
  51. region.
  52. - #clock-cells: should be 1.
  53. - clocks: list of the clock controller input clock identifiers,
  54. from common clock bindings. Please refer the next section
  55. to find the input clocks for a given controller.
  56. - clock-names: list of the clock controller input clock names,
  57. as described in clock-bindings.txt.
  58. Input clocks for top clock controller:
  59. - oscclk
  60. - sclk_mphy_pll
  61. - sclk_mfc_pll
  62. - sclk_bus_pll
  63. Input clocks for cpif clock controller:
  64. - oscclk
  65. Input clocks for mif clock controller:
  66. - oscclk
  67. - sclk_mphy_pll
  68. Input clocks for fsys clock controller:
  69. - oscclk
  70. - sclk_ufs_mphy
  71. - div_aclk_fsys_200
  72. - sclk_pcie_100_fsys
  73. - sclk_ufsunipro_fsys
  74. - sclk_mmc2_fsys
  75. - sclk_mmc1_fsys
  76. - sclk_mmc0_fsys
  77. - sclk_usbhost30_fsys
  78. - sclk_usbdrd30_fsys
  79. Input clocks for g2d clock controller:
  80. - oscclk
  81. - aclk_g2d_266
  82. - aclk_g2d_400
  83. Input clocks for disp clock controller:
  84. - oscclk
  85. - sclk_dsim1_disp
  86. - sclk_dsim0_disp
  87. - sclk_dsd_disp
  88. - sclk_decon_tv_eclk_disp
  89. - sclk_decon_vclk_disp
  90. - sclk_decon_eclk_disp
  91. - sclk_decon_tv_vclk_disp
  92. - aclk_disp_333
  93. Input clocks for bus0 clock controller:
  94. - aclk_bus0_400
  95. Input clocks for bus1 clock controller:
  96. - aclk_bus1_400
  97. Input clocks for bus2 clock controller:
  98. - oscclk
  99. - aclk_bus2_400
  100. Input clocks for g3d clock controller:
  101. - oscclk
  102. - aclk_g3d_400
  103. Input clocks for gscl clock controller:
  104. - oscclk
  105. - aclk_gscl_111
  106. - aclk_gscl_333
  107. Input clocks for apollo clock controller:
  108. - oscclk
  109. - sclk_bus_pll_apollo
  110. Input clocks for atlas clock controller:
  111. - oscclk
  112. - sclk_bus_pll_atlas
  113. Input clocks for mscl clock controller:
  114. - oscclk
  115. - sclk_jpeg_mscl
  116. - aclk_mscl_400
  117. Input clocks for mfc clock controller:
  118. - oscclk
  119. - aclk_mfc_400
  120. Input clocks for hevc clock controller:
  121. - oscclk
  122. - aclk_hevc_400
  123. Input clocks for isp clock controller:
  124. - oscclk
  125. - aclk_isp_dis_400
  126. - aclk_isp_400
  127. Input clocks for cam0 clock controller:
  128. - oscclk
  129. - aclk_cam0_333
  130. - aclk_cam0_400
  131. - aclk_cam0_552
  132. Input clocks for cam1 clock controller:
  133. - oscclk
  134. - sclk_isp_uart_cam1
  135. - sclk_isp_spi1_cam1
  136. - sclk_isp_spi0_cam1
  137. - aclk_cam1_333
  138. - aclk_cam1_400
  139. - aclk_cam1_552
  140. Each clock is assigned an identifier and client nodes can use this identifier
  141. to specify the clock which they consume.
  142. All available clocks are defined as preprocessor macros in
  143. dt-bindings/clock/exynos5433.h header and can be used in device
  144. tree sources.
  145. Example 1: Examples of 'oscclk' source clock node are listed below.
  146. xxti: xxti {
  147. compatible = "fixed-clock";
  148. clock-output-names = "oscclk";
  149. #clock-cells = <0>;
  150. };
  151. Example 2: Examples of clock controller nodes are listed below.
  152. cmu_top: clock-controller@10030000 {
  153. compatible = "samsung,exynos5433-cmu-top";
  154. reg = <0x10030000 0x0c04>;
  155. #clock-cells = <1>;
  156. clock-names = "oscclk",
  157. "sclk_mphy_pll",
  158. "sclk_mfc_pll",
  159. "sclk_bus_pll";
  160. clocks = <&xxti>,
  161. <&cmu_cpif CLK_SCLK_MPHY_PLL>,
  162. <&cmu_mif CLK_SCLK_MFC_PLL>,
  163. <&cmu_mif CLK_SCLK_BUS_PLL>;
  164. };
  165. cmu_cpif: clock-controller@10fc0000 {
  166. compatible = "samsung,exynos5433-cmu-cpif";
  167. reg = <0x10fc0000 0x0c04>;
  168. #clock-cells = <1>;
  169. clock-names = "oscclk";
  170. clocks = <&xxti>;
  171. };
  172. cmu_mif: clock-controller@105b0000 {
  173. compatible = "samsung,exynos5433-cmu-mif";
  174. reg = <0x105b0000 0x100c>;
  175. #clock-cells = <1>;
  176. clock-names = "oscclk",
  177. "sclk_mphy_pll";
  178. clocks = <&xxti>,
  179. <&cmu_cpif CLK_SCLK_MPHY_PLL>;
  180. };
  181. cmu_peric: clock-controller@14c80000 {
  182. compatible = "samsung,exynos5433-cmu-peric";
  183. reg = <0x14c80000 0x0b08>;
  184. #clock-cells = <1>;
  185. };
  186. cmu_peris: clock-controller@10040000 {
  187. compatible = "samsung,exynos5433-cmu-peris";
  188. reg = <0x10040000 0x0b20>;
  189. #clock-cells = <1>;
  190. };
  191. cmu_fsys: clock-controller@156e0000 {
  192. compatible = "samsung,exynos5433-cmu-fsys";
  193. reg = <0x156e0000 0x0b04>;
  194. #clock-cells = <1>;
  195. clock-names = "oscclk",
  196. "sclk_ufs_mphy",
  197. "div_aclk_fsys_200",
  198. "sclk_pcie_100_fsys",
  199. "sclk_ufsunipro_fsys",
  200. "sclk_mmc2_fsys",
  201. "sclk_mmc1_fsys",
  202. "sclk_mmc0_fsys",
  203. "sclk_usbhost30_fsys",
  204. "sclk_usbdrd30_fsys";
  205. clocks = <&xxti>,
  206. <&cmu_cpif CLK_SCLK_UFS_MPHY>,
  207. <&cmu_top CLK_DIV_ACLK_FSYS_200>,
  208. <&cmu_top CLK_SCLK_PCIE_100_FSYS>,
  209. <&cmu_top CLK_SCLK_UFSUNIPRO_FSYS>,
  210. <&cmu_top CLK_SCLK_MMC2_FSYS>,
  211. <&cmu_top CLK_SCLK_MMC1_FSYS>,
  212. <&cmu_top CLK_SCLK_MMC0_FSYS>,
  213. <&cmu_top CLK_SCLK_USBHOST30_FSYS>,
  214. <&cmu_top CLK_SCLK_USBDRD30_FSYS>;
  215. };
  216. cmu_g2d: clock-controller@12460000 {
  217. compatible = "samsung,exynos5433-cmu-g2d";
  218. reg = <0x12460000 0x0b08>;
  219. #clock-cells = <1>;
  220. clock-names = "oscclk",
  221. "aclk_g2d_266",
  222. "aclk_g2d_400";
  223. clocks = <&xxti>,
  224. <&cmu_top CLK_ACLK_G2D_266>,
  225. <&cmu_top CLK_ACLK_G2D_400>;
  226. };
  227. cmu_disp: clock-controller@13b90000 {
  228. compatible = "samsung,exynos5433-cmu-disp";
  229. reg = <0x13b90000 0x0c04>;
  230. #clock-cells = <1>;
  231. clock-names = "oscclk",
  232. "sclk_dsim1_disp",
  233. "sclk_dsim0_disp",
  234. "sclk_dsd_disp",
  235. "sclk_decon_tv_eclk_disp",
  236. "sclk_decon_vclk_disp",
  237. "sclk_decon_eclk_disp",
  238. "sclk_decon_tv_vclk_disp",
  239. "aclk_disp_333";
  240. clocks = <&xxti>,
  241. <&cmu_mif CLK_SCLK_DSIM1_DISP>,
  242. <&cmu_mif CLK_SCLK_DSIM0_DISP>,
  243. <&cmu_mif CLK_SCLK_DSD_DISP>,
  244. <&cmu_mif CLK_SCLK_DECON_TV_ECLK_DISP>,
  245. <&cmu_mif CLK_SCLK_DECON_VCLK_DISP>,
  246. <&cmu_mif CLK_SCLK_DECON_ECLK_DISP>,
  247. <&cmu_mif CLK_SCLK_DECON_TV_VCLK_DISP>,
  248. <&cmu_mif CLK_ACLK_DISP_333>;
  249. };
  250. cmu_aud: clock-controller@114c0000 {
  251. compatible = "samsung,exynos5433-cmu-aud";
  252. reg = <0x114c0000 0x0b04>;
  253. #clock-cells = <1>;
  254. };
  255. cmu_bus0: clock-controller@13600000 {
  256. compatible = "samsung,exynos5433-cmu-bus0";
  257. reg = <0x13600000 0x0b04>;
  258. #clock-cells = <1>;
  259. clock-names = "aclk_bus0_400";
  260. clocks = <&cmu_top CLK_ACLK_BUS0_400>;
  261. };
  262. cmu_bus1: clock-controller@14800000 {
  263. compatible = "samsung,exynos5433-cmu-bus1";
  264. reg = <0x14800000 0x0b04>;
  265. #clock-cells = <1>;
  266. clock-names = "aclk_bus1_400";
  267. clocks = <&cmu_top CLK_ACLK_BUS1_400>;
  268. };
  269. cmu_bus2: clock-controller@13400000 {
  270. compatible = "samsung,exynos5433-cmu-bus2";
  271. reg = <0x13400000 0x0b04>;
  272. #clock-cells = <1>;
  273. clock-names = "oscclk", "aclk_bus2_400";
  274. clocks = <&xxti>, <&cmu_mif CLK_ACLK_BUS2_400>;
  275. };
  276. cmu_g3d: clock-controller@14aa0000 {
  277. compatible = "samsung,exynos5433-cmu-g3d";
  278. reg = <0x14aa0000 0x1000>;
  279. #clock-cells = <1>;
  280. clock-names = "oscclk", "aclk_g3d_400";
  281. clocks = <&xxti>, <&cmu_top CLK_ACLK_G3D_400>;
  282. };
  283. cmu_gscl: clock-controller@13cf0000 {
  284. compatible = "samsung,exynos5433-cmu-gscl";
  285. reg = <0x13cf0000 0x0b10>;
  286. #clock-cells = <1>;
  287. clock-names = "oscclk",
  288. "aclk_gscl_111",
  289. "aclk_gscl_333";
  290. clocks = <&xxti>,
  291. <&cmu_top CLK_ACLK_GSCL_111>,
  292. <&cmu_top CLK_ACLK_GSCL_333>;
  293. };
  294. cmu_apollo: clock-controller@11900000 {
  295. compatible = "samsung,exynos5433-cmu-apollo";
  296. reg = <0x11900000 0x1088>;
  297. #clock-cells = <1>;
  298. clock-names = "oscclk", "sclk_bus_pll_apollo";
  299. clocks = <&xxti>, <&cmu_mif CLK_SCLK_BUS_PLL_APOLLO>;
  300. };
  301. cmu_atlas: clock-controller@11800000 {
  302. compatible = "samsung,exynos5433-cmu-atlas";
  303. reg = <0x11800000 0x1088>;
  304. #clock-cells = <1>;
  305. clock-names = "oscclk", "sclk_bus_pll_atlas";
  306. clocks = <&xxti>, <&cmu_mif CLK_SCLK_BUS_PLL_ATLAS>;
  307. };
  308. cmu_mscl: clock-controller@105d0000 {
  309. compatible = "samsung,exynos5433-cmu-mscl";
  310. reg = <0x105d0000 0x0b10>;
  311. #clock-cells = <1>;
  312. clock-names = "oscclk",
  313. "sclk_jpeg_mscl",
  314. "aclk_mscl_400";
  315. clocks = <&xxti>,
  316. <&cmu_top CLK_SCLK_JPEG_MSCL>,
  317. <&cmu_top CLK_ACLK_MSCL_400>;
  318. };
  319. cmu_mfc: clock-controller@15280000 {
  320. compatible = "samsung,exynos5433-cmu-mfc";
  321. reg = <0x15280000 0x0b08>;
  322. #clock-cells = <1>;
  323. clock-names = "oscclk", "aclk_mfc_400";
  324. clocks = <&xxti>, <&cmu_top CLK_ACLK_MFC_400>;
  325. };
  326. cmu_hevc: clock-controller@14f80000 {
  327. compatible = "samsung,exynos5433-cmu-hevc";
  328. reg = <0x14f80000 0x0b08>;
  329. #clock-cells = <1>;
  330. clock-names = "oscclk", "aclk_hevc_400";
  331. clocks = <&xxti>, <&cmu_top CLK_ACLK_HEVC_400>;
  332. };
  333. cmu_isp: clock-controller@146d0000 {
  334. compatible = "samsung,exynos5433-cmu-isp";
  335. reg = <0x146d0000 0x0b0c>;
  336. #clock-cells = <1>;
  337. clock-names = "oscclk",
  338. "aclk_isp_dis_400",
  339. "aclk_isp_400";
  340. clocks = <&xxti>,
  341. <&cmu_top CLK_ACLK_ISP_DIS_400>,
  342. <&cmu_top CLK_ACLK_ISP_400>;
  343. };
  344. cmu_cam0: clock-controller@120d0000 {
  345. compatible = "samsung,exynos5433-cmu-cam0";
  346. reg = <0x120d0000 0x0b0c>;
  347. #clock-cells = <1>;
  348. clock-names = "oscclk",
  349. "aclk_cam0_333",
  350. "aclk_cam0_400",
  351. "aclk_cam0_552";
  352. clocks = <&xxti>,
  353. <&cmu_top CLK_ACLK_CAM0_333>,
  354. <&cmu_top CLK_ACLK_CAM0_400>,
  355. <&cmu_top CLK_ACLK_CAM0_552>;
  356. };
  357. cmu_cam1: clock-controller@145d0000 {
  358. compatible = "samsung,exynos5433-cmu-cam1";
  359. reg = <0x145d0000 0x0b08>;
  360. #clock-cells = <1>;
  361. clock-names = "oscclk",
  362. "sclk_isp_uart_cam1",
  363. "sclk_isp_spi1_cam1",
  364. "sclk_isp_spi0_cam1",
  365. "aclk_cam1_333",
  366. "aclk_cam1_400",
  367. "aclk_cam1_552";
  368. clocks = <&xxti>,
  369. <&cmu_top CLK_SCLK_ISP_UART_CAM1>,
  370. <&cmu_top CLK_SCLK_ISP_SPI1_CAM1>,
  371. <&cmu_top CLK_SCLK_ISP_SPI0_CAM1>,
  372. <&cmu_top CLK_ACLK_CAM1_333>,
  373. <&cmu_top CLK_ACLK_CAM1_400>,
  374. <&cmu_top CLK_ACLK_CAM1_552>;
  375. };
  376. Example 3: UART controller node that consumes the clock generated by the clock
  377. controller.
  378. serial_0: serial@14C10000 {
  379. compatible = "samsung,exynos5433-uart";
  380. reg = <0x14C10000 0x100>;
  381. interrupts = <0 421 0>;
  382. clocks = <&cmu_peric CLK_PCLK_UART0>,
  383. <&cmu_peric CLK_SCLK_UART0>;
  384. clock-names = "uart", "clk_uart_baud0";
  385. pinctrl-names = "default";
  386. pinctrl-0 = <&uart0_bus>;
  387. status = "disabled";
  388. };