1*cd9102e9SKrzysztof Kozlowski /* SPDX-License-Identifier: GPL-2.0 */ 22ce16c53STomasz Figa /* 32ce16c53STomasz Figa * Copyright (c) 2014 Samsung Electronics Co., Ltd. 42ce16c53STomasz Figa * Author: Tomasz Figa <t.figa@samsung.com> 52ce16c53STomasz Figa * 62ce16c53STomasz Figa * Device Tree binding constants for Samsung Exynos3250 clock controllers. 72ce16c53STomasz Figa */ 82ce16c53STomasz Figa 92ce16c53STomasz Figa #ifndef _DT_BINDINGS_CLOCK_SAMSUNG_EXYNOS3250_CLOCK_H 102ce16c53STomasz Figa #define _DT_BINDINGS_CLOCK_SAMSUNG_EXYNOS3250_CLOCK_H 112ce16c53STomasz Figa 122ce16c53STomasz Figa /* 132ce16c53STomasz Figa * Let each exported clock get a unique index, which is used on DT-enabled 142ce16c53STomasz Figa * platforms to lookup the clock from a clock specifier. These indices are 152ce16c53STomasz Figa * therefore considered an ABI and so must not be changed. This implies 162ce16c53STomasz Figa * that new clocks should be added either in free spaces between clock groups 172ce16c53STomasz Figa * or at the end. 182ce16c53STomasz Figa */ 192ce16c53STomasz Figa 202ce16c53STomasz Figa 212ce16c53STomasz Figa /* 222ce16c53STomasz Figa * Main CMU 232ce16c53STomasz Figa */ 242ce16c53STomasz Figa 252ce16c53STomasz Figa #define CLK_OSCSEL 1 262ce16c53STomasz Figa #define CLK_FIN_PLL 2 272ce16c53STomasz Figa #define CLK_FOUT_APLL 3 282ce16c53STomasz Figa #define CLK_FOUT_VPLL 4 292ce16c53STomasz Figa #define CLK_FOUT_UPLL 5 302ce16c53STomasz Figa #define CLK_FOUT_MPLL 6 317c9422efSChanwoo Choi #define CLK_ARM_CLK 7 322ce16c53STomasz Figa 332ce16c53STomasz Figa /* Muxes */ 342ce16c53STomasz Figa #define CLK_MOUT_MPLL_USER_L 16 352ce16c53STomasz Figa #define CLK_MOUT_GDL 17 362ce16c53STomasz Figa #define CLK_MOUT_MPLL_USER_R 18 372ce16c53STomasz Figa #define CLK_MOUT_GDR 19 382ce16c53STomasz Figa #define CLK_MOUT_EBI 20 392ce16c53STomasz Figa #define CLK_MOUT_ACLK_200 21 402ce16c53STomasz Figa #define CLK_MOUT_ACLK_160 22 412ce16c53STomasz Figa #define CLK_MOUT_ACLK_100 23 422ce16c53STomasz Figa #define CLK_MOUT_ACLK_266_1 24 432ce16c53STomasz Figa #define CLK_MOUT_ACLK_266_0 25 442ce16c53STomasz Figa #define CLK_MOUT_ACLK_266 26 452ce16c53STomasz Figa #define CLK_MOUT_VPLL 27 462ce16c53STomasz Figa #define CLK_MOUT_EPLL_USER 28 472ce16c53STomasz Figa #define CLK_MOUT_EBI_1 29 482ce16c53STomasz Figa #define CLK_MOUT_UPLL 30 492ce16c53STomasz Figa #define CLK_MOUT_ACLK_400_MCUISP_SUB 31 502ce16c53STomasz Figa #define CLK_MOUT_MPLL 32 512ce16c53STomasz Figa #define CLK_MOUT_ACLK_400_MCUISP 33 522ce16c53STomasz Figa #define CLK_MOUT_VPLLSRC 34 532ce16c53STomasz Figa #define CLK_MOUT_CAM1 35 542ce16c53STomasz Figa #define CLK_MOUT_CAM_BLK 36 552ce16c53STomasz Figa #define CLK_MOUT_MFC 37 562ce16c53STomasz Figa #define CLK_MOUT_MFC_1 38 572ce16c53STomasz Figa #define CLK_MOUT_MFC_0 39 582ce16c53STomasz Figa #define CLK_MOUT_G3D 40 592ce16c53STomasz Figa #define CLK_MOUT_G3D_1 41 602ce16c53STomasz Figa #define CLK_MOUT_G3D_0 42 612ce16c53STomasz Figa #define CLK_MOUT_MIPI0 43 622ce16c53STomasz Figa #define CLK_MOUT_FIMD0 44 632ce16c53STomasz Figa #define CLK_MOUT_UART_ISP 45 642ce16c53STomasz Figa #define CLK_MOUT_SPI1_ISP 46 652ce16c53STomasz Figa #define CLK_MOUT_SPI0_ISP 47 662ce16c53STomasz Figa #define CLK_MOUT_TSADC 48 672ce16c53STomasz Figa #define CLK_MOUT_MMC1 49 682ce16c53STomasz Figa #define CLK_MOUT_MMC0 50 692ce16c53STomasz Figa #define CLK_MOUT_UART1 51 702ce16c53STomasz Figa #define CLK_MOUT_UART0 52 712ce16c53STomasz Figa #define CLK_MOUT_SPI1 53 722ce16c53STomasz Figa #define CLK_MOUT_SPI0 54 732ce16c53STomasz Figa #define CLK_MOUT_AUDIO 55 742ce16c53STomasz Figa #define CLK_MOUT_MPLL_USER_C 56 752ce16c53STomasz Figa #define CLK_MOUT_HPM 57 762ce16c53STomasz Figa #define CLK_MOUT_CORE 58 772ce16c53STomasz Figa #define CLK_MOUT_APLL 59 782ce16c53STomasz Figa #define CLK_MOUT_ACLK_266_SUB 60 79fd00bbcdSChanwoo Choi #define CLK_MOUT_UART2 61 80fd00bbcdSChanwoo Choi #define CLK_MOUT_MMC2 62 812ce16c53STomasz Figa 822ce16c53STomasz Figa /* Dividers */ 832ce16c53STomasz Figa #define CLK_DIV_GPL 64 842ce16c53STomasz Figa #define CLK_DIV_GDL 65 852ce16c53STomasz Figa #define CLK_DIV_GPR 66 862ce16c53STomasz Figa #define CLK_DIV_GDR 67 872ce16c53STomasz Figa #define CLK_DIV_MPLL_PRE 68 882ce16c53STomasz Figa #define CLK_DIV_ACLK_400_MCUISP 69 892ce16c53STomasz Figa #define CLK_DIV_EBI 70 902ce16c53STomasz Figa #define CLK_DIV_ACLK_200 71 912ce16c53STomasz Figa #define CLK_DIV_ACLK_160 72 922ce16c53STomasz Figa #define CLK_DIV_ACLK_100 73 932ce16c53STomasz Figa #define CLK_DIV_ACLK_266 74 942ce16c53STomasz Figa #define CLK_DIV_CAM1 75 952ce16c53STomasz Figa #define CLK_DIV_CAM_BLK 76 962ce16c53STomasz Figa #define CLK_DIV_MFC 77 972ce16c53STomasz Figa #define CLK_DIV_G3D 78 982ce16c53STomasz Figa #define CLK_DIV_MIPI0_PRE 79 992ce16c53STomasz Figa #define CLK_DIV_MIPI0 80 1002ce16c53STomasz Figa #define CLK_DIV_FIMD0 81 1012ce16c53STomasz Figa #define CLK_DIV_UART_ISP 82 1022ce16c53STomasz Figa #define CLK_DIV_SPI1_ISP_PRE 83 1032ce16c53STomasz Figa #define CLK_DIV_SPI1_ISP 84 1042ce16c53STomasz Figa #define CLK_DIV_SPI0_ISP_PRE 85 1052ce16c53STomasz Figa #define CLK_DIV_SPI0_ISP 86 1062ce16c53STomasz Figa #define CLK_DIV_TSADC_PRE 87 1072ce16c53STomasz Figa #define CLK_DIV_TSADC 88 1082ce16c53STomasz Figa #define CLK_DIV_MMC1_PRE 89 1092ce16c53STomasz Figa #define CLK_DIV_MMC1 90 1102ce16c53STomasz Figa #define CLK_DIV_MMC0_PRE 91 1112ce16c53STomasz Figa #define CLK_DIV_MMC0 92 1122ce16c53STomasz Figa #define CLK_DIV_UART1 93 1132ce16c53STomasz Figa #define CLK_DIV_UART0 94 1142ce16c53STomasz Figa #define CLK_DIV_SPI1_PRE 95 1152ce16c53STomasz Figa #define CLK_DIV_SPI1 96 1162ce16c53STomasz Figa #define CLK_DIV_SPI0_PRE 97 1172ce16c53STomasz Figa #define CLK_DIV_SPI0 98 1182ce16c53STomasz Figa #define CLK_DIV_PCM 99 1192ce16c53STomasz Figa #define CLK_DIV_AUDIO 100 1202ce16c53STomasz Figa #define CLK_DIV_I2S 101 1212ce16c53STomasz Figa #define CLK_DIV_CORE2 102 1222ce16c53STomasz Figa #define CLK_DIV_APLL 103 1232ce16c53STomasz Figa #define CLK_DIV_PCLK_DBG 104 1242ce16c53STomasz Figa #define CLK_DIV_ATB 105 1252ce16c53STomasz Figa #define CLK_DIV_COREM 106 1262ce16c53STomasz Figa #define CLK_DIV_CORE 107 1272ce16c53STomasz Figa #define CLK_DIV_HPM 108 1282ce16c53STomasz Figa #define CLK_DIV_COPY 109 129fd00bbcdSChanwoo Choi #define CLK_DIV_UART2 110 130fd00bbcdSChanwoo Choi #define CLK_DIV_MMC2_PRE 111 131fd00bbcdSChanwoo Choi #define CLK_DIV_MMC2 112 1322ce16c53STomasz Figa 1332ce16c53STomasz Figa /* Gates */ 1342ce16c53STomasz Figa #define CLK_ASYNC_G3D 128 1352ce16c53STomasz Figa #define CLK_ASYNC_MFCL 129 1362ce16c53STomasz Figa #define CLK_PPMULEFT 130 1372ce16c53STomasz Figa #define CLK_GPIO_LEFT 131 1382ce16c53STomasz Figa #define CLK_ASYNC_ISPMX 132 1392ce16c53STomasz Figa #define CLK_ASYNC_FSYSD 133 1402ce16c53STomasz Figa #define CLK_ASYNC_LCD0X 134 1412ce16c53STomasz Figa #define CLK_ASYNC_CAMX 135 1422ce16c53STomasz Figa #define CLK_PPMURIGHT 136 1432ce16c53STomasz Figa #define CLK_GPIO_RIGHT 137 1442ce16c53STomasz Figa #define CLK_MONOCNT 138 1452ce16c53STomasz Figa #define CLK_TZPC6 139 1462ce16c53STomasz Figa #define CLK_PROVISIONKEY1 140 1472ce16c53STomasz Figa #define CLK_PROVISIONKEY0 141 1482ce16c53STomasz Figa #define CLK_CMU_ISPPART 142 1492ce16c53STomasz Figa #define CLK_TMU_APBIF 143 1502ce16c53STomasz Figa #define CLK_KEYIF 144 1512ce16c53STomasz Figa #define CLK_RTC 145 1522ce16c53STomasz Figa #define CLK_WDT 146 1532ce16c53STomasz Figa #define CLK_MCT 147 1542ce16c53STomasz Figa #define CLK_SECKEY 148 1552ce16c53STomasz Figa #define CLK_TZPC5 149 1562ce16c53STomasz Figa #define CLK_TZPC4 150 1572ce16c53STomasz Figa #define CLK_TZPC3 151 1582ce16c53STomasz Figa #define CLK_TZPC2 152 1592ce16c53STomasz Figa #define CLK_TZPC1 153 1602ce16c53STomasz Figa #define CLK_TZPC0 154 1612ce16c53STomasz Figa #define CLK_CMU_COREPART 155 1622ce16c53STomasz Figa #define CLK_CMU_TOPPART 156 1632ce16c53STomasz Figa #define CLK_PMU_APBIF 157 1642ce16c53STomasz Figa #define CLK_SYSREG 158 1652ce16c53STomasz Figa #define CLK_CHIP_ID 159 1662ce16c53STomasz Figa #define CLK_QEJPEG 160 1672ce16c53STomasz Figa #define CLK_PIXELASYNCM1 161 1682ce16c53STomasz Figa #define CLK_PIXELASYNCM0 162 1692ce16c53STomasz Figa #define CLK_PPMUCAMIF 163 1702ce16c53STomasz Figa #define CLK_QEM2MSCALER 164 1712ce16c53STomasz Figa #define CLK_QEGSCALER1 165 1722ce16c53STomasz Figa #define CLK_QEGSCALER0 166 1732ce16c53STomasz Figa #define CLK_SMMUJPEG 167 1742ce16c53STomasz Figa #define CLK_SMMUM2M2SCALER 168 1752ce16c53STomasz Figa #define CLK_SMMUGSCALER1 169 1762ce16c53STomasz Figa #define CLK_SMMUGSCALER0 170 1772ce16c53STomasz Figa #define CLK_JPEG 171 1782ce16c53STomasz Figa #define CLK_M2MSCALER 172 1792ce16c53STomasz Figa #define CLK_GSCALER1 173 1802ce16c53STomasz Figa #define CLK_GSCALER0 174 1812ce16c53STomasz Figa #define CLK_QEMFC 175 1822ce16c53STomasz Figa #define CLK_PPMUMFC_L 176 1832ce16c53STomasz Figa #define CLK_SMMUMFC_L 177 1842ce16c53STomasz Figa #define CLK_MFC 178 1852ce16c53STomasz Figa #define CLK_SMMUG3D 179 1862ce16c53STomasz Figa #define CLK_QEG3D 180 1872ce16c53STomasz Figa #define CLK_PPMUG3D 181 1882ce16c53STomasz Figa #define CLK_G3D 182 1892ce16c53STomasz Figa #define CLK_QE_CH1_LCD 183 1902ce16c53STomasz Figa #define CLK_QE_CH0_LCD 184 1912ce16c53STomasz Figa #define CLK_PPMULCD0 185 1922ce16c53STomasz Figa #define CLK_SMMUFIMD0 186 1932ce16c53STomasz Figa #define CLK_DSIM0 187 1942ce16c53STomasz Figa #define CLK_FIMD0 188 1952ce16c53STomasz Figa #define CLK_CAM1 189 1962ce16c53STomasz Figa #define CLK_UART_ISP_TOP 190 1972ce16c53STomasz Figa #define CLK_SPI1_ISP_TOP 191 1982ce16c53STomasz Figa #define CLK_SPI0_ISP_TOP 192 1992ce16c53STomasz Figa #define CLK_TSADC 193 2002ce16c53STomasz Figa #define CLK_PPMUFILE 194 2012ce16c53STomasz Figa #define CLK_USBOTG 195 2022ce16c53STomasz Figa #define CLK_USBHOST 196 2032ce16c53STomasz Figa #define CLK_SROMC 197 2042ce16c53STomasz Figa #define CLK_SDMMC1 198 2052ce16c53STomasz Figa #define CLK_SDMMC0 199 2062ce16c53STomasz Figa #define CLK_PDMA1 200 2072ce16c53STomasz Figa #define CLK_PDMA0 201 2082ce16c53STomasz Figa #define CLK_PWM 202 2092ce16c53STomasz Figa #define CLK_PCM 203 2102ce16c53STomasz Figa #define CLK_I2S 204 2112ce16c53STomasz Figa #define CLK_SPI1 205 2122ce16c53STomasz Figa #define CLK_SPI0 206 2132ce16c53STomasz Figa #define CLK_I2C7 207 2142ce16c53STomasz Figa #define CLK_I2C6 208 2152ce16c53STomasz Figa #define CLK_I2C5 209 2162ce16c53STomasz Figa #define CLK_I2C4 210 2172ce16c53STomasz Figa #define CLK_I2C3 211 2182ce16c53STomasz Figa #define CLK_I2C2 212 2192ce16c53STomasz Figa #define CLK_I2C1 213 2202ce16c53STomasz Figa #define CLK_I2C0 214 2212ce16c53STomasz Figa #define CLK_UART1 215 2222ce16c53STomasz Figa #define CLK_UART0 216 2232ce16c53STomasz Figa #define CLK_BLOCK_LCD 217 2242ce16c53STomasz Figa #define CLK_BLOCK_G3D 218 2252ce16c53STomasz Figa #define CLK_BLOCK_MFC 219 2262ce16c53STomasz Figa #define CLK_BLOCK_CAM 220 2272ce16c53STomasz Figa #define CLK_SMIES 221 228fd00bbcdSChanwoo Choi #define CLK_UART2 222 229fd00bbcdSChanwoo Choi #define CLK_SDMMC2 223 2302ce16c53STomasz Figa 2312ce16c53STomasz Figa /* Special clocks */ 2322ce16c53STomasz Figa #define CLK_SCLK_JPEG 224 2332ce16c53STomasz Figa #define CLK_SCLK_M2MSCALER 225 2342ce16c53STomasz Figa #define CLK_SCLK_GSCALER1 226 2352ce16c53STomasz Figa #define CLK_SCLK_GSCALER0 227 2362ce16c53STomasz Figa #define CLK_SCLK_MFC 228 2372ce16c53STomasz Figa #define CLK_SCLK_G3D 229 2382ce16c53STomasz Figa #define CLK_SCLK_MIPIDPHY2L 230 2392ce16c53STomasz Figa #define CLK_SCLK_MIPI0 231 2402ce16c53STomasz Figa #define CLK_SCLK_FIMD0 232 2412ce16c53STomasz Figa #define CLK_SCLK_CAM1 233 2422ce16c53STomasz Figa #define CLK_SCLK_UART_ISP 234 2432ce16c53STomasz Figa #define CLK_SCLK_SPI1_ISP 235 2442ce16c53STomasz Figa #define CLK_SCLK_SPI0_ISP 236 2452ce16c53STomasz Figa #define CLK_SCLK_UPLL 237 2462ce16c53STomasz Figa #define CLK_SCLK_TSADC 238 2472ce16c53STomasz Figa #define CLK_SCLK_EBI 239 2482ce16c53STomasz Figa #define CLK_SCLK_MMC1 240 2492ce16c53STomasz Figa #define CLK_SCLK_MMC0 241 2502ce16c53STomasz Figa #define CLK_SCLK_I2S 242 2512ce16c53STomasz Figa #define CLK_SCLK_PCM 243 2522ce16c53STomasz Figa #define CLK_SCLK_SPI1 244 2532ce16c53STomasz Figa #define CLK_SCLK_SPI0 245 2542ce16c53STomasz Figa #define CLK_SCLK_UART1 246 2552ce16c53STomasz Figa #define CLK_SCLK_UART0 247 256fd00bbcdSChanwoo Choi #define CLK_SCLK_UART2 248 257fd00bbcdSChanwoo Choi #define CLK_SCLK_MMC2 249 2582ce16c53STomasz Figa 2592ce16c53STomasz Figa /* 260e3c3f19bSKrzysztof Kozlowski * CMU DMC 261e3c3f19bSKrzysztof Kozlowski */ 262e3c3f19bSKrzysztof Kozlowski 263e3c3f19bSKrzysztof Kozlowski #define CLK_FOUT_BPLL 1 264e3c3f19bSKrzysztof Kozlowski #define CLK_FOUT_EPLL 2 265e3c3f19bSKrzysztof Kozlowski 266e3c3f19bSKrzysztof Kozlowski /* Muxes */ 267e3c3f19bSKrzysztof Kozlowski #define CLK_MOUT_MPLL_MIF 8 268e3c3f19bSKrzysztof Kozlowski #define CLK_MOUT_BPLL 9 269e3c3f19bSKrzysztof Kozlowski #define CLK_MOUT_DPHY 10 270e3c3f19bSKrzysztof Kozlowski #define CLK_MOUT_DMC_BUS 11 271e3c3f19bSKrzysztof Kozlowski #define CLK_MOUT_EPLL 12 272e3c3f19bSKrzysztof Kozlowski 273e3c3f19bSKrzysztof Kozlowski /* Dividers */ 274e3c3f19bSKrzysztof Kozlowski #define CLK_DIV_DMC 16 275e3c3f19bSKrzysztof Kozlowski #define CLK_DIV_DPHY 17 276e3c3f19bSKrzysztof Kozlowski #define CLK_DIV_DMC_PRE 18 277e3c3f19bSKrzysztof Kozlowski #define CLK_DIV_DMCP 19 278e3c3f19bSKrzysztof Kozlowski #define CLK_DIV_DMCD 20 279e3c3f19bSKrzysztof Kozlowski 280e3c3f19bSKrzysztof Kozlowski /* 281045ecad0STomasz Figa * CMU ISP 282045ecad0STomasz Figa */ 283045ecad0STomasz Figa 284045ecad0STomasz Figa /* Dividers */ 285045ecad0STomasz Figa 286045ecad0STomasz Figa #define CLK_DIV_ISP1 1 287045ecad0STomasz Figa #define CLK_DIV_ISP0 2 288045ecad0STomasz Figa #define CLK_DIV_MCUISP1 3 289045ecad0STomasz Figa #define CLK_DIV_MCUISP0 4 290045ecad0STomasz Figa #define CLK_DIV_MPWM 5 291045ecad0STomasz Figa 292045ecad0STomasz Figa /* Gates */ 293045ecad0STomasz Figa 294045ecad0STomasz Figa #define CLK_UART_ISP 8 295045ecad0STomasz Figa #define CLK_WDT_ISP 9 296045ecad0STomasz Figa #define CLK_PWM_ISP 10 297045ecad0STomasz Figa #define CLK_I2C1_ISP 11 298045ecad0STomasz Figa #define CLK_I2C0_ISP 12 299045ecad0STomasz Figa #define CLK_MPWM_ISP 13 300045ecad0STomasz Figa #define CLK_MCUCTL_ISP 14 301045ecad0STomasz Figa #define CLK_PPMUISPX 15 302045ecad0STomasz Figa #define CLK_PPMUISPMX 16 303045ecad0STomasz Figa #define CLK_QE_LITE1 17 304045ecad0STomasz Figa #define CLK_QE_LITE0 18 305045ecad0STomasz Figa #define CLK_QE_FD 19 306045ecad0STomasz Figa #define CLK_QE_DRC 20 307045ecad0STomasz Figa #define CLK_QE_ISP 21 308045ecad0STomasz Figa #define CLK_CSIS1 22 309045ecad0STomasz Figa #define CLK_SMMU_LITE1 23 310045ecad0STomasz Figa #define CLK_SMMU_LITE0 24 311045ecad0STomasz Figa #define CLK_SMMU_FD 25 312045ecad0STomasz Figa #define CLK_SMMU_DRC 26 313045ecad0STomasz Figa #define CLK_SMMU_ISP 27 314045ecad0STomasz Figa #define CLK_GICISP 28 315045ecad0STomasz Figa #define CLK_CSIS0 29 316045ecad0STomasz Figa #define CLK_MCUISP 30 317045ecad0STomasz Figa #define CLK_LITE1 31 318045ecad0STomasz Figa #define CLK_LITE0 32 319045ecad0STomasz Figa #define CLK_FD 33 320045ecad0STomasz Figa #define CLK_DRC 34 321045ecad0STomasz Figa #define CLK_ISP 35 322045ecad0STomasz Figa #define CLK_QE_ISPCX 36 323045ecad0STomasz Figa #define CLK_QE_SCALERP 37 324045ecad0STomasz Figa #define CLK_QE_SCALERC 38 325045ecad0STomasz Figa #define CLK_SMMU_SCALERP 39 326045ecad0STomasz Figa #define CLK_SMMU_SCALERC 40 327045ecad0STomasz Figa #define CLK_SCALERP 41 328045ecad0STomasz Figa #define CLK_SCALERC 42 329045ecad0STomasz Figa #define CLK_SPI1_ISP 43 330045ecad0STomasz Figa #define CLK_SPI0_ISP 44 331045ecad0STomasz Figa #define CLK_SMMU_ISPCX 45 332045ecad0STomasz Figa #define CLK_ASYNCAXIM 46 333045ecad0STomasz Figa #define CLK_SCLK_MPWM_ISP 47 334045ecad0STomasz Figa 3352ce16c53STomasz Figa #endif /* _DT_BINDINGS_CLOCK_SAMSUNG_EXYNOS3250_CLOCK_H */ 336