diff options
Diffstat (limited to 'include')
21 files changed, 2558 insertions, 2 deletions
diff --git a/include/dt-bindings/clk/exynos-audss-clk.h b/include/dt-bindings/clk/exynos-audss-clk.h index 8279f427c60f..0ae6f5a75d2a 100644 --- a/include/dt-bindings/clk/exynos-audss-clk.h +++ b/include/dt-bindings/clk/exynos-audss-clk.h | |||
@@ -19,7 +19,8 @@ | |||
19 | #define EXYNOS_SCLK_I2S 7 | 19 | #define EXYNOS_SCLK_I2S 7 |
20 | #define EXYNOS_PCM_BUS 8 | 20 | #define EXYNOS_PCM_BUS 8 |
21 | #define EXYNOS_SCLK_PCM 9 | 21 | #define EXYNOS_SCLK_PCM 9 |
22 | #define EXYNOS_ADMA 10 | ||
22 | 23 | ||
23 | #define EXYNOS_AUDSS_MAX_CLKS 10 | 24 | #define EXYNOS_AUDSS_MAX_CLKS 11 |
24 | 25 | ||
25 | #endif | 26 | #endif |
diff --git a/include/dt-bindings/clock/exynos4.h b/include/dt-bindings/clock/exynos4.h new file mode 100644 index 000000000000..75aff336dfb0 --- /dev/null +++ b/include/dt-bindings/clock/exynos4.h | |||
@@ -0,0 +1,244 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2013 Samsung Electronics Co., Ltd. | ||
3 | * Author: Andrzej Haja <a.hajda@samsung.com> | ||
4 | * | ||
5 | * This program is free software; you can redistribute it and/or modify | ||
6 | * it under the terms of the GNU General Public License version 2 as | ||
7 | * published by the Free Software Foundation. | ||
8 | * | ||
9 | * Device Tree binding constants for Exynos4 clock controller. | ||
10 | */ | ||
11 | |||
12 | #ifndef _DT_BINDINGS_CLOCK_EXYNOS_4_H | ||
13 | #define _DT_BINDINGS_CLOCK_EXYNOS_4_H | ||
14 | |||
15 | /* core clocks */ | ||
16 | #define CLK_XXTI 1 | ||
17 | #define CLK_XUSBXTI 2 | ||
18 | #define CLK_FIN_PLL 3 | ||
19 | #define CLK_FOUT_APLL 4 | ||
20 | #define CLK_FOUT_MPLL 5 | ||
21 | #define CLK_FOUT_EPLL 6 | ||
22 | #define CLK_FOUT_VPLL 7 | ||
23 | #define CLK_SCLK_APLL 8 | ||
24 | #define CLK_SCLK_MPLL 9 | ||
25 | #define CLK_SCLK_EPLL 10 | ||
26 | #define CLK_SCLK_VPLL 11 | ||
27 | #define CLK_ARM_CLK 12 | ||
28 | #define CLK_ACLK200 13 | ||
29 | #define CLK_ACLK100 14 | ||
30 | #define CLK_ACLK160 15 | ||
31 | #define CLK_ACLK133 16 | ||
32 | #define CLK_MOUT_MPLL_USER_T 17 /* Exynos4x12 only */ | ||
33 | #define CLK_MOUT_MPLL_USER_C 18 /* Exynos4x12 only */ | ||
34 | #define CLK_MOUT_CORE 19 | ||
35 | #define CLK_MOUT_APLL 20 | ||
36 | |||
37 | /* gate for special clocks (sclk) */ | ||
38 | #define CLK_SCLK_FIMC0 128 | ||
39 | #define CLK_SCLK_FIMC1 129 | ||
40 | #define CLK_SCLK_FIMC2 130 | ||
41 | #define CLK_SCLK_FIMC3 131 | ||
42 | #define CLK_SCLK_CAM0 132 | ||
43 | #define CLK_SCLK_CAM1 133 | ||
44 | #define CLK_SCLK_CSIS0 134 | ||
45 | #define CLK_SCLK_CSIS1 135 | ||
46 | #define CLK_SCLK_HDMI 136 | ||
47 | #define CLK_SCLK_MIXER 137 | ||
48 | #define CLK_SCLK_DAC 138 | ||
49 | #define CLK_SCLK_PIXEL 139 | ||
50 | #define CLK_SCLK_FIMD0 140 | ||
51 | #define CLK_SCLK_MDNIE0 141 /* Exynos4412 only */ | ||
52 | #define CLK_SCLK_MDNIE_PWM0 142 | ||
53 | #define CLK_SCLK_MIPI0 143 | ||
54 | #define CLK_SCLK_AUDIO0 144 | ||
55 | #define CLK_SCLK_MMC0 145 | ||
56 | #define CLK_SCLK_MMC1 146 | ||
57 | #define CLK_SCLK_MMC2 147 | ||
58 | #define CLK_SCLK_MMC3 148 | ||
59 | #define CLK_SCLK_MMC4 149 | ||
60 | #define CLK_SCLK_SATA 150 /* Exynos4210 only */ | ||
61 | #define CLK_SCLK_UART0 151 | ||
62 | #define CLK_SCLK_UART1 152 | ||
63 | #define CLK_SCLK_UART2 153 | ||
64 | #define CLK_SCLK_UART3 154 | ||
65 | #define CLK_SCLK_UART4 155 | ||
66 | #define CLK_SCLK_AUDIO1 156 | ||
67 | #define CLK_SCLK_AUDIO2 157 | ||
68 | #define CLK_SCLK_SPDIF 158 | ||
69 | #define CLK_SCLK_SPI0 159 | ||
70 | #define CLK_SCLK_SPI1 160 | ||
71 | #define CLK_SCLK_SPI2 161 | ||
72 | #define CLK_SCLK_SLIMBUS 162 | ||
73 | #define CLK_SCLK_FIMD1 163 /* Exynos4210 only */ | ||
74 | #define CLK_SCLK_MIPI1 164 /* Exynos4210 only */ | ||
75 | #define CLK_SCLK_PCM1 165 | ||
76 | #define CLK_SCLK_PCM2 166 | ||
77 | #define CLK_SCLK_I2S1 167 | ||
78 | #define CLK_SCLK_I2S2 168 | ||
79 | #define CLK_SCLK_MIPIHSI 169 /* Exynos4412 only */ | ||
80 | #define CLK_SCLK_MFC 170 | ||
81 | #define CLK_SCLK_PCM0 171 | ||
82 | #define CLK_SCLK_G3D 172 | ||
83 | #define CLK_SCLK_PWM_ISP 173 /* Exynos4x12 only */ | ||
84 | #define CLK_SCLK_SPI0_ISP 174 /* Exynos4x12 only */ | ||
85 | #define CLK_SCLK_SPI1_ISP 175 /* Exynos4x12 only */ | ||
86 | #define CLK_SCLK_UART_ISP 176 /* Exynos4x12 only */ | ||
87 | #define CLK_SCLK_FIMG2D 177 | ||
88 | |||
89 | /* gate clocks */ | ||
90 | #define CLK_FIMC0 256 | ||
91 | #define CLK_FIMC1 257 | ||
92 | #define CLK_FIMC2 258 | ||
93 | #define CLK_FIMC3 259 | ||
94 | #define CLK_CSIS0 260 | ||
95 | #define CLK_CSIS1 261 | ||
96 | #define CLK_JPEG 262 | ||
97 | #define CLK_SMMU_FIMC0 263 | ||
98 | #define CLK_SMMU_FIMC1 264 | ||
99 | #define CLK_SMMU_FIMC2 265 | ||
100 | #define CLK_SMMU_FIMC3 266 | ||
101 | #define CLK_SMMU_JPEG 267 | ||
102 | #define CLK_VP 268 | ||
103 | #define CLK_MIXER 269 | ||
104 | #define CLK_TVENC 270 /* Exynos4210 only */ | ||
105 | #define CLK_HDMI 271 | ||
106 | #define CLK_SMMU_TV 272 | ||
107 | #define CLK_MFC 273 | ||
108 | #define CLK_SMMU_MFCL 274 | ||
109 | #define CLK_SMMU_MFCR 275 | ||
110 | #define CLK_G3D 276 | ||
111 | #define CLK_G2D 277 | ||
112 | #define CLK_ROTATOR 278 /* Exynos4210 only */ | ||
113 | #define CLK_MDMA 279 /* Exynos4210 only */ | ||
114 | #define CLK_SMMU_G2D 280 /* Exynos4210 only */ | ||
115 | #define CLK_SMMU_ROTATOR 281 /* Exynos4210 only */ | ||
116 | #define CLK_SMMU_MDMA 282 /* Exynos4210 only */ | ||
117 | #define CLK_FIMD0 283 | ||
118 | #define CLK_MIE0 284 | ||
119 | #define CLK_MDNIE0 285 /* Exynos4412 only */ | ||
120 | #define CLK_DSIM0 286 | ||
121 | #define CLK_SMMU_FIMD0 287 | ||
122 | #define CLK_FIMD1 288 /* Exynos4210 only */ | ||
123 | #define CLK_MIE1 289 /* Exynos4210 only */ | ||
124 | #define CLK_DSIM1 290 /* Exynos4210 only */ | ||
125 | #define CLK_SMMU_FIMD1 291 /* Exynos4210 only */ | ||
126 | #define CLK_PDMA0 292 | ||
127 | #define CLK_PDMA1 293 | ||
128 | #define CLK_PCIE_PHY 294 | ||
129 | #define CLK_SATA_PHY 295 /* Exynos4210 only */ | ||
130 | #define CLK_TSI 296 | ||
131 | #define CLK_SDMMC0 297 | ||
132 | #define CLK_SDMMC1 298 | ||
133 | #define CLK_SDMMC2 299 | ||
134 | #define CLK_SDMMC3 300 | ||
135 | #define CLK_SDMMC4 301 | ||
136 | #define CLK_SATA 302 /* Exynos4210 only */ | ||
137 | #define CLK_SROMC 303 | ||
138 | #define CLK_USB_HOST 304 | ||
139 | #define CLK_USB_DEVICE 305 | ||
140 | #define CLK_PCIE 306 | ||
141 | #define CLK_ONENAND 307 | ||
142 | #define CLK_NFCON 308 | ||
143 | #define CLK_SMMU_PCIE 309 | ||
144 | #define CLK_GPS 310 | ||
145 | #define CLK_SMMU_GPS 311 | ||
146 | #define CLK_UART0 312 | ||
147 | #define CLK_UART1 313 | ||
148 | #define CLK_UART2 314 | ||
149 | #define CLK_UART3 315 | ||
150 | #define CLK_UART4 316 | ||
151 | #define CLK_I2C0 317 | ||
152 | #define CLK_I2C1 318 | ||
153 | #define CLK_I2C2 319 | ||
154 | #define CLK_I2C3 320 | ||
155 | #define CLK_I2C4 321 | ||
156 | #define CLK_I2C5 322 | ||
157 | #define CLK_I2C6 323 | ||
158 | #define CLK_I2C7 324 | ||
159 | #define CLK_I2C_HDMI 325 | ||
160 | #define CLK_TSADC 326 | ||
161 | #define CLK_SPI0 327 | ||
162 | #define CLK_SPI1 328 | ||
163 | #define CLK_SPI2 329 | ||
164 | #define CLK_I2S1 330 | ||
165 | #define CLK_I2S2 331 | ||
166 | #define CLK_PCM0 332 | ||
167 | #define CLK_I2S0 333 | ||
168 | #define CLK_PCM1 334 | ||
169 | #define CLK_PCM2 335 | ||
170 | #define CLK_PWM 336 | ||
171 | #define CLK_SLIMBUS 337 | ||
172 | #define CLK_SPDIF 338 | ||
173 | #define CLK_AC97 339 | ||
174 | #define CLK_MODEMIF 340 | ||
175 | #define CLK_CHIPID 341 | ||
176 | #define CLK_SYSREG 342 | ||
177 | #define CLK_HDMI_CEC 343 | ||
178 | #define CLK_MCT 344 | ||
179 | #define CLK_WDT 345 | ||
180 | #define CLK_RTC 346 | ||
181 | #define CLK_KEYIF 347 | ||
182 | #define CLK_AUDSS 348 | ||
183 | #define CLK_MIPI_HSI 349 /* Exynos4210 only */ | ||
184 | #define CLK_MDMA2 350 /* Exynos4210 only */ | ||
185 | #define CLK_PIXELASYNCM0 351 | ||
186 | #define CLK_PIXELASYNCM1 352 | ||
187 | #define CLK_FIMC_LITE0 353 /* Exynos4x12 only */ | ||
188 | #define CLK_FIMC_LITE1 354 /* Exynos4x12 only */ | ||
189 | #define CLK_PPMUISPX 355 /* Exynos4x12 only */ | ||
190 | #define CLK_PPMUISPMX 356 /* Exynos4x12 only */ | ||
191 | #define CLK_FIMC_ISP 357 /* Exynos4x12 only */ | ||
192 | #define CLK_FIMC_DRC 358 /* Exynos4x12 only */ | ||
193 | #define CLK_FIMC_FD 359 /* Exynos4x12 only */ | ||
194 | #define CLK_MCUISP 360 /* Exynos4x12 only */ | ||
195 | #define CLK_GICISP 361 /* Exynos4x12 only */ | ||
196 | #define CLK_SMMU_ISP 362 /* Exynos4x12 only */ | ||
197 | #define CLK_SMMU_DRC 363 /* Exynos4x12 only */ | ||
198 | #define CLK_SMMU_FD 364 /* Exynos4x12 only */ | ||
199 | #define CLK_SMMU_LITE0 365 /* Exynos4x12 only */ | ||
200 | #define CLK_SMMU_LITE1 366 /* Exynos4x12 only */ | ||
201 | #define CLK_MCUCTL_ISP 367 /* Exynos4x12 only */ | ||
202 | #define CLK_MPWM_ISP 368 /* Exynos4x12 only */ | ||
203 | #define CLK_I2C0_ISP 369 /* Exynos4x12 only */ | ||
204 | #define CLK_I2C1_ISP 370 /* Exynos4x12 only */ | ||
205 | #define CLK_MTCADC_ISP 371 /* Exynos4x12 only */ | ||
206 | #define CLK_PWM_ISP 372 /* Exynos4x12 only */ | ||
207 | #define CLK_WDT_ISP 373 /* Exynos4x12 only */ | ||
208 | #define CLK_UART_ISP 374 /* Exynos4x12 only */ | ||
209 | #define CLK_ASYNCAXIM 375 /* Exynos4x12 only */ | ||
210 | #define CLK_SMMU_ISPCX 376 /* Exynos4x12 only */ | ||
211 | #define CLK_SPI0_ISP 377 /* Exynos4x12 only */ | ||
212 | #define CLK_SPI1_ISP 378 /* Exynos4x12 only */ | ||
213 | #define CLK_PWM_ISP_SCLK 379 /* Exynos4x12 only */ | ||
214 | #define CLK_SPI0_ISP_SCLK 380 /* Exynos4x12 only */ | ||
215 | #define CLK_SPI1_ISP_SCLK 381 /* Exynos4x12 only */ | ||
216 | #define CLK_UART_ISP_SCLK 382 /* Exynos4x12 only */ | ||
217 | #define CLK_TMU_APBIF 383 | ||
218 | |||
219 | /* mux clocks */ | ||
220 | #define CLK_MOUT_FIMC0 384 | ||
221 | #define CLK_MOUT_FIMC1 385 | ||
222 | #define CLK_MOUT_FIMC2 386 | ||
223 | #define CLK_MOUT_FIMC3 387 | ||
224 | #define CLK_MOUT_CAM0 388 | ||
225 | #define CLK_MOUT_CAM1 389 | ||
226 | #define CLK_MOUT_CSIS0 390 | ||
227 | #define CLK_MOUT_CSIS1 391 | ||
228 | #define CLK_MOUT_G3D0 392 | ||
229 | #define CLK_MOUT_G3D1 393 | ||
230 | #define CLK_MOUT_G3D 394 | ||
231 | #define CLK_ACLK400_MCUISP 395 /* Exynos4x12 only */ | ||
232 | |||
233 | /* div clocks */ | ||
234 | #define CLK_DIV_ISP0 450 /* Exynos4x12 only */ | ||
235 | #define CLK_DIV_ISP1 451 /* Exynos4x12 only */ | ||
236 | #define CLK_DIV_MCUISP0 452 /* Exynos4x12 only */ | ||
237 | #define CLK_DIV_MCUISP1 453 /* Exynos4x12 only */ | ||
238 | #define CLK_DIV_ACLK200 454 /* Exynos4x12 only */ | ||
239 | #define CLK_DIV_ACLK400_MCUISP 455 /* Exynos4x12 only */ | ||
240 | |||
241 | /* must be greater than maximal clock id */ | ||
242 | #define CLK_NR_CLKS 456 | ||
243 | |||
244 | #endif /* _DT_BINDINGS_CLOCK_EXYNOS_4_H */ | ||
diff --git a/include/dt-bindings/clock/exynos5250.h b/include/dt-bindings/clock/exynos5250.h new file mode 100644 index 000000000000..922f2dca9bf0 --- /dev/null +++ b/include/dt-bindings/clock/exynos5250.h | |||
@@ -0,0 +1,160 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2013 Samsung Electronics Co., Ltd. | ||
3 | * Author: Andrzej Haja <a.hajda@samsung.com> | ||
4 | * | ||
5 | * This program is free software; you can redistribute it and/or modify | ||
6 | * it under the terms of the GNU General Public License version 2 as | ||
7 | * published by the Free Software Foundation. | ||
8 | * | ||
9 | * Device Tree binding constants for Exynos5250 clock controller. | ||
10 | */ | ||
11 | |||
12 | #ifndef _DT_BINDINGS_CLOCK_EXYNOS_5250_H | ||
13 | #define _DT_BINDINGS_CLOCK_EXYNOS_5250_H | ||
14 | |||
15 | /* core clocks */ | ||
16 | #define CLK_FIN_PLL 1 | ||
17 | #define CLK_FOUT_APLL 2 | ||
18 | #define CLK_FOUT_MPLL 3 | ||
19 | #define CLK_FOUT_BPLL 4 | ||
20 | #define CLK_FOUT_GPLL 5 | ||
21 | #define CLK_FOUT_CPLL 6 | ||
22 | #define CLK_FOUT_EPLL 7 | ||
23 | #define CLK_FOUT_VPLL 8 | ||
24 | |||
25 | /* gate for special clocks (sclk) */ | ||
26 | #define CLK_SCLK_CAM_BAYER 128 | ||
27 | #define CLK_SCLK_CAM0 129 | ||
28 | #define CLK_SCLK_CAM1 130 | ||
29 | #define CLK_SCLK_GSCL_WA 131 | ||
30 | #define CLK_SCLK_GSCL_WB 132 | ||
31 | #define CLK_SCLK_FIMD1 133 | ||
32 | #define CLK_SCLK_MIPI1 134 | ||
33 | #define CLK_SCLK_DP 135 | ||
34 | #define CLK_SCLK_HDMI 136 | ||
35 | #define CLK_SCLK_PIXEL 137 | ||
36 | #define CLK_SCLK_AUDIO0 138 | ||
37 | #define CLK_SCLK_MMC0 139 | ||
38 | #define CLK_SCLK_MMC1 140 | ||
39 | #define CLK_SCLK_MMC2 141 | ||
40 | #define CLK_SCLK_MMC3 142 | ||
41 | #define CLK_SCLK_SATA 143 | ||
42 | #define CLK_SCLK_USB3 144 | ||
43 | #define CLK_SCLK_JPEG 145 | ||
44 | #define CLK_SCLK_UART0 146 | ||
45 | #define CLK_SCLK_UART1 147 | ||
46 | #define CLK_SCLK_UART2 148 | ||
47 | #define CLK_SCLK_UART3 149 | ||
48 | #define CLK_SCLK_PWM 150 | ||
49 | #define CLK_SCLK_AUDIO1 151 | ||
50 | #define CLK_SCLK_AUDIO2 152 | ||
51 | #define CLK_SCLK_SPDIF 153 | ||
52 | #define CLK_SCLK_SPI0 154 | ||
53 | #define CLK_SCLK_SPI1 155 | ||
54 | #define CLK_SCLK_SPI2 156 | ||
55 | #define CLK_DIV_I2S1 157 | ||
56 | #define CLK_DIV_I2S2 158 | ||
57 | #define CLK_SCLK_HDMIPHY 159 | ||
58 | #define CLK_DIV_PCM0 160 | ||
59 | |||
60 | /* gate clocks */ | ||
61 | #define CLK_GSCL0 256 | ||
62 | #define CLK_GSCL1 257 | ||
63 | #define CLK_GSCL2 258 | ||
64 | #define CLK_GSCL3 259 | ||
65 | #define CLK_GSCL_WA 260 | ||
66 | #define CLK_GSCL_WB 261 | ||
67 | #define CLK_SMMU_GSCL0 262 | ||
68 | #define CLK_SMMU_GSCL1 263 | ||
69 | #define CLK_SMMU_GSCL2 264 | ||
70 | #define CLK_SMMU_GSCL3 265 | ||
71 | #define CLK_MFC 266 | ||
72 | #define CLK_SMMU_MFCL 267 | ||
73 | #define CLK_SMMU_MFCR 268 | ||
74 | #define CLK_ROTATOR 269 | ||
75 | #define CLK_JPEG 270 | ||
76 | #define CLK_MDMA1 271 | ||
77 | #define CLK_SMMU_ROTATOR 272 | ||
78 | #define CLK_SMMU_JPEG 273 | ||
79 | #define CLK_SMMU_MDMA1 274 | ||
80 | #define CLK_PDMA0 275 | ||
81 | #define CLK_PDMA1 276 | ||
82 | #define CLK_SATA 277 | ||
83 | #define CLK_USBOTG 278 | ||
84 | #define CLK_MIPI_HSI 279 | ||
85 | #define CLK_SDMMC0 280 | ||
86 | #define CLK_SDMMC1 281 | ||
87 | #define CLK_SDMMC2 282 | ||
88 | #define CLK_SDMMC3 283 | ||
89 | #define CLK_SROMC 284 | ||
90 | #define CLK_USB2 285 | ||
91 | #define CLK_USB3 286 | ||
92 | #define CLK_SATA_PHYCTRL 287 | ||
93 | #define CLK_SATA_PHYI2C 288 | ||
94 | #define CLK_UART0 289 | ||
95 | #define CLK_UART1 290 | ||
96 | #define CLK_UART2 291 | ||
97 | #define CLK_UART3 292 | ||
98 | #define CLK_UART4 293 | ||
99 | #define CLK_I2C0 294 | ||
100 | #define CLK_I2C1 295 | ||
101 | #define CLK_I2C2 296 | ||
102 | #define CLK_I2C3 297 | ||
103 | #define CLK_I2C4 298 | ||
104 | #define CLK_I2C5 299 | ||
105 | #define CLK_I2C6 300 | ||
106 | #define CLK_I2C7 301 | ||
107 | #define CLK_I2C_HDMI 302 | ||
108 | #define CLK_ADC 303 | ||
109 | #define CLK_SPI0 304 | ||
110 | #define CLK_SPI1 305 | ||
111 | #define CLK_SPI2 306 | ||
112 | #define CLK_I2S1 307 | ||
113 | #define CLK_I2S2 308 | ||
114 | #define CLK_PCM1 309 | ||
115 | #define CLK_PCM2 310 | ||
116 | #define CLK_PWM 311 | ||
117 | #define CLK_SPDIF 312 | ||
118 | #define CLK_AC97 313 | ||
119 | #define CLK_HSI2C0 314 | ||
120 | #define CLK_HSI2C1 315 | ||
121 | #define CLK_HSI2C2 316 | ||
122 | #define CLK_HSI2C3 317 | ||
123 | #define CLK_CHIPID 318 | ||
124 | #define CLK_SYSREG 319 | ||
125 | #define CLK_PMU 320 | ||
126 | #define CLK_CMU_TOP 321 | ||
127 | #define CLK_CMU_CORE 322 | ||
128 | #define CLK_CMU_MEM 323 | ||
129 | #define CLK_TZPC0 324 | ||
130 | #define CLK_TZPC1 325 | ||
131 | #define CLK_TZPC2 326 | ||
132 | #define CLK_TZPC3 327 | ||
133 | #define CLK_TZPC4 328 | ||
134 | #define CLK_TZPC5 329 | ||
135 | #define CLK_TZPC6 330 | ||
136 | #define CLK_TZPC7 331 | ||
137 | #define CLK_TZPC8 332 | ||
138 | #define CLK_TZPC9 333 | ||
139 | #define CLK_HDMI_CEC 334 | ||
140 | #define CLK_MCT 335 | ||
141 | #define CLK_WDT 336 | ||
142 | #define CLK_RTC 337 | ||
143 | #define CLK_TMU 338 | ||
144 | #define CLK_FIMD1 339 | ||
145 | #define CLK_MIE1 340 | ||
146 | #define CLK_DSIM0 341 | ||
147 | #define CLK_DP 342 | ||
148 | #define CLK_MIXER 343 | ||
149 | #define CLK_HDMI 344 | ||
150 | #define CLK_G2D 345 | ||
151 | #define CLK_MDMA0 346 | ||
152 | #define CLK_SMMU_MDMA0 347 | ||
153 | |||
154 | /* mux clocks */ | ||
155 | #define CLK_MOUT_HDMI 1024 | ||
156 | |||
157 | /* must be greater than maximal clock id */ | ||
158 | #define CLK_NR_CLKS 1025 | ||
159 | |||
160 | #endif /* _DT_BINDINGS_CLOCK_EXYNOS_5250_H */ | ||
diff --git a/include/dt-bindings/clock/exynos5420.h b/include/dt-bindings/clock/exynos5420.h new file mode 100644 index 000000000000..5eefd8813f02 --- /dev/null +++ b/include/dt-bindings/clock/exynos5420.h | |||
@@ -0,0 +1,188 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2013 Samsung Electronics Co., Ltd. | ||
3 | * Author: Andrzej Haja <a.hajda@samsung.com> | ||
4 | * | ||
5 | * This program is free software; you can redistribute it and/or modify | ||
6 | * it under the terms of the GNU General Public License version 2 as | ||
7 | * published by the Free Software Foundation. | ||
8 | * | ||
9 | * Device Tree binding constants for Exynos5420 clock controller. | ||
10 | */ | ||
11 | |||
12 | #ifndef _DT_BINDINGS_CLOCK_EXYNOS_5420_H | ||
13 | #define _DT_BINDINGS_CLOCK_EXYNOS_5420_H | ||
14 | |||
15 | /* core clocks */ | ||
16 | #define CLK_FIN_PLL 1 | ||
17 | #define CLK_FOUT_APLL 2 | ||
18 | #define CLK_FOUT_CPLL 3 | ||
19 | #define CLK_FOUT_DPLL 4 | ||
20 | #define CLK_FOUT_EPLL 5 | ||
21 | #define CLK_FOUT_RPLL 6 | ||
22 | #define CLK_FOUT_IPLL 7 | ||
23 | #define CLK_FOUT_SPLL 8 | ||
24 | #define CLK_FOUT_VPLL 9 | ||
25 | #define CLK_FOUT_MPLL 10 | ||
26 | #define CLK_FOUT_BPLL 11 | ||
27 | #define CLK_FOUT_KPLL 12 | ||
28 | |||
29 | /* gate for special clocks (sclk) */ | ||
30 | #define CLK_SCLK_UART0 128 | ||
31 | #define CLK_SCLK_UART1 129 | ||
32 | #define CLK_SCLK_UART2 130 | ||
33 | #define CLK_SCLK_UART3 131 | ||
34 | #define CLK_SCLK_MMC0 132 | ||
35 | #define CLK_SCLK_MMC1 133 | ||
36 | #define CLK_SCLK_MMC2 134 | ||
37 | #define CLK_SCLK_SPI0 135 | ||
38 | #define CLK_SCLK_SPI1 136 | ||
39 | #define CLK_SCLK_SPI2 137 | ||
40 | #define CLK_SCLK_I2S1 138 | ||
41 | #define CLK_SCLK_I2S2 139 | ||
42 | #define CLK_SCLK_PCM1 140 | ||
43 | #define CLK_SCLK_PCM2 141 | ||
44 | #define CLK_SCLK_SPDIF 142 | ||
45 | #define CLK_SCLK_HDMI 143 | ||
46 | #define CLK_SCLK_PIXEL 144 | ||
47 | #define CLK_SCLK_DP1 145 | ||
48 | #define CLK_SCLK_MIPI1 146 | ||
49 | #define CLK_SCLK_FIMD1 147 | ||
50 | #define CLK_SCLK_MAUDIO0 148 | ||
51 | #define CLK_SCLK_MAUPCM0 149 | ||
52 | #define CLK_SCLK_USBD300 150 | ||
53 | #define CLK_SCLK_USBD301 151 | ||
54 | #define CLK_SCLK_USBPHY300 152 | ||
55 | #define CLK_SCLK_USBPHY301 153 | ||
56 | #define CLK_SCLK_UNIPRO 154 | ||
57 | #define CLK_SCLK_PWM 155 | ||
58 | #define CLK_SCLK_GSCL_WA 156 | ||
59 | #define CLK_SCLK_GSCL_WB 157 | ||
60 | #define CLK_SCLK_HDMIPHY 158 | ||
61 | |||
62 | /* gate clocks */ | ||
63 | #define CLK_ACLK66_PERIC 256 | ||
64 | #define CLK_UART0 257 | ||
65 | #define CLK_UART1 258 | ||
66 | #define CLK_UART2 259 | ||
67 | #define CLK_UART3 260 | ||
68 | #define CLK_I2C0 261 | ||
69 | #define CLK_I2C1 262 | ||
70 | #define CLK_I2C2 263 | ||
71 | #define CLK_I2C3 264 | ||
72 | #define CLK_I2C4 265 | ||
73 | #define CLK_I2C5 266 | ||
74 | #define CLK_I2C6 267 | ||
75 | #define CLK_I2C7 268 | ||
76 | #define CLK_I2C_HDMI 269 | ||
77 | #define CLK_TSADC 270 | ||
78 | #define CLK_SPI0 271 | ||
79 | #define CLK_SPI1 272 | ||
80 | #define CLK_SPI2 273 | ||
81 | #define CLK_KEYIF 274 | ||
82 | #define CLK_I2S1 275 | ||
83 | #define CLK_I2S2 276 | ||
84 | #define CLK_PCM1 277 | ||
85 | #define CLK_PCM2 278 | ||
86 | #define CLK_PWM 279 | ||
87 | #define CLK_SPDIF 280 | ||
88 | #define CLK_I2C8 281 | ||
89 | #define CLK_I2C9 282 | ||
90 | #define CLK_I2C10 283 | ||
91 | #define CLK_ACLK66_PSGEN 300 | ||
92 | #define CLK_CHIPID 301 | ||
93 | #define CLK_SYSREG 302 | ||
94 | #define CLK_TZPC0 303 | ||
95 | #define CLK_TZPC1 304 | ||
96 | #define CLK_TZPC2 305 | ||
97 | #define CLK_TZPC3 306 | ||
98 | #define CLK_TZPC4 307 | ||
99 | #define CLK_TZPC5 308 | ||
100 | #define CLK_TZPC6 309 | ||
101 | #define CLK_TZPC7 310 | ||
102 | #define CLK_TZPC8 311 | ||
103 | #define CLK_TZPC9 312 | ||
104 | #define CLK_HDMI_CEC 313 | ||
105 | #define CLK_SECKEY 314 | ||
106 | #define CLK_MCT 315 | ||
107 | #define CLK_WDT 316 | ||
108 | #define CLK_RTC 317 | ||
109 | #define CLK_TMU 318 | ||
110 | #define CLK_TMU_GPU 319 | ||
111 | #define CLK_PCLK66_GPIO 330 | ||
112 | #define CLK_ACLK200_FSYS2 350 | ||
113 | #define CLK_MMC0 351 | ||
114 | #define CLK_MMC1 352 | ||
115 | #define CLK_MMC2 353 | ||
116 | #define CLK_SROMC 354 | ||
117 | #define CLK_UFS 355 | ||
118 | #define CLK_ACLK200_FSYS 360 | ||
119 | #define CLK_TSI 361 | ||
120 | #define CLK_PDMA0 362 | ||
121 | #define CLK_PDMA1 363 | ||
122 | #define CLK_RTIC 364 | ||
123 | #define CLK_USBH20 365 | ||
124 | #define CLK_USBD300 366 | ||
125 | #define CLK_USBD301 367 | ||
126 | #define CLK_ACLK400_MSCL 380 | ||
127 | #define CLK_MSCL0 381 | ||
128 | #define CLK_MSCL1 382 | ||
129 | #define CLK_MSCL2 383 | ||
130 | #define CLK_SMMU_MSCL0 384 | ||
131 | #define CLK_SMMU_MSCL1 385 | ||
132 | #define CLK_SMMU_MSCL2 386 | ||
133 | #define CLK_ACLK333 400 | ||
134 | #define CLK_MFC 401 | ||
135 | #define CLK_SMMU_MFCL 402 | ||
136 | #define CLK_SMMU_MFCR 403 | ||
137 | #define CLK_ACLK200_DISP1 410 | ||
138 | #define CLK_DSIM1 411 | ||
139 | #define CLK_DP1 412 | ||
140 | #define CLK_HDMI 413 | ||
141 | #define CLK_ACLK300_DISP1 420 | ||
142 | #define CLK_FIMD1 421 | ||
143 | #define CLK_SMMU_FIMD1 422 | ||
144 | #define CLK_ACLK166 430 | ||
145 | #define CLK_MIXER 431 | ||
146 | #define CLK_ACLK266 440 | ||
147 | #define CLK_ROTATOR 441 | ||
148 | #define CLK_MDMA1 442 | ||
149 | #define CLK_SMMU_ROTATOR 443 | ||
150 | #define CLK_SMMU_MDMA1 444 | ||
151 | #define CLK_ACLK300_JPEG 450 | ||
152 | #define CLK_JPEG 451 | ||
153 | #define CLK_JPEG2 452 | ||
154 | #define CLK_SMMU_JPEG 453 | ||
155 | #define CLK_ACLK300_GSCL 460 | ||
156 | #define CLK_SMMU_GSCL0 461 | ||
157 | #define CLK_SMMU_GSCL1 462 | ||
158 | #define CLK_GSCL_WA 463 | ||
159 | #define CLK_GSCL_WB 464 | ||
160 | #define CLK_GSCL0 465 | ||
161 | #define CLK_GSCL1 466 | ||
162 | #define CLK_CLK_3AA 467 | ||
163 | #define CLK_ACLK266_G2D 470 | ||
164 | #define CLK_SSS 471 | ||
165 | #define CLK_SLIM_SSS 472 | ||
166 | #define CLK_MDMA0 473 | ||
167 | #define CLK_ACLK333_G2D 480 | ||
168 | #define CLK_G2D 481 | ||
169 | #define CLK_ACLK333_432_GSCL 490 | ||
170 | #define CLK_SMMU_3AA 491 | ||
171 | #define CLK_SMMU_FIMCL0 492 | ||
172 | #define CLK_SMMU_FIMCL1 493 | ||
173 | #define CLK_SMMU_FIMCL3 494 | ||
174 | #define CLK_FIMC_LITE3 495 | ||
175 | #define CLK_ACLK_G3D 500 | ||
176 | #define CLK_G3D 501 | ||
177 | #define CLK_SMMU_MIXER 502 | ||
178 | |||
179 | /* mux clocks */ | ||
180 | #define CLK_MOUT_HDMI 640 | ||
181 | |||
182 | /* divider clocks */ | ||
183 | #define CLK_DOUT_PIXEL 768 | ||
184 | |||
185 | /* must be greater than maximal clock id */ | ||
186 | #define CLK_NR_CLKS 769 | ||
187 | |||
188 | #endif /* _DT_BINDINGS_CLOCK_EXYNOS_5420_H */ | ||
diff --git a/include/dt-bindings/clock/exynos5440.h b/include/dt-bindings/clock/exynos5440.h new file mode 100644 index 000000000000..70cd85077fa9 --- /dev/null +++ b/include/dt-bindings/clock/exynos5440.h | |||
@@ -0,0 +1,42 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2013 Samsung Electronics Co., Ltd. | ||
3 | * Author: Andrzej Haja <a.hajda-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> | ||
4 | * | ||
5 | * This program is free software; you can redistribute it and/or modify | ||
6 | * it under the terms of the GNU General Public License version 2 as | ||
7 | * published by the Free Software Foundation. | ||
8 | * | ||
9 | * Device Tree binding constants for Exynos5440 clock controller. | ||
10 | */ | ||
11 | |||
12 | #ifndef _DT_BINDINGS_CLOCK_EXYNOS_5440_H | ||
13 | #define _DT_BINDINGS_CLOCK_EXYNOS_5440_H | ||
14 | |||
15 | #define CLK_XTAL 1 | ||
16 | #define CLK_ARM_CLK 2 | ||
17 | #define CLK_SPI_BAUD 16 | ||
18 | #define CLK_PB0_250 17 | ||
19 | #define CLK_PR0_250 18 | ||
20 | #define CLK_PR1_250 19 | ||
21 | #define CLK_B_250 20 | ||
22 | #define CLK_B_125 21 | ||
23 | #define CLK_B_200 22 | ||
24 | #define CLK_SATA 23 | ||
25 | #define CLK_USB 24 | ||
26 | #define CLK_GMAC0 25 | ||
27 | #define CLK_CS250 26 | ||
28 | #define CLK_PB0_250_O 27 | ||
29 | #define CLK_PR0_250_O 28 | ||
30 | #define CLK_PR1_250_O 29 | ||
31 | #define CLK_B_250_O 30 | ||
32 | #define CLK_B_125_O 31 | ||
33 | #define CLK_B_200_O 32 | ||
34 | #define CLK_SATA_O 33 | ||
35 | #define CLK_USB_O 34 | ||
36 | #define CLK_GMAC0_O 35 | ||
37 | #define CLK_CS250_O 36 | ||
38 | |||
39 | /* must be greater than maximal clock id */ | ||
40 | #define CLK_NR_CLKS 37 | ||
41 | |||
42 | #endif /* _DT_BINDINGS_CLOCK_EXYNOS_5440_H */ | ||
diff --git a/include/dt-bindings/clock/hi3620-clock.h b/include/dt-bindings/clock/hi3620-clock.h new file mode 100644 index 000000000000..6eaa6a45e110 --- /dev/null +++ b/include/dt-bindings/clock/hi3620-clock.h | |||
@@ -0,0 +1,152 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2012-2013 Hisilicon Limited. | ||
3 | * Copyright (c) 2012-2013 Linaro Limited. | ||
4 | * | ||
5 | * Author: Haojian Zhuang <haojian.zhuang@linaro.org> | ||
6 | * Xin Li <li.xin@linaro.org> | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License as published by | ||
10 | * the Free Software Foundation; either version 2 of the License, or | ||
11 | * (at your option) any later version. | ||
12 | * | ||
13 | * This program is distributed in the hope that it will be useful, | ||
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
16 | * GNU General Public License for more details. | ||
17 | * | ||
18 | * You should have received a copy of the GNU General Public License along | ||
19 | * with this program; if not, write to the Free Software Foundation, Inc., | ||
20 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | ||
21 | * | ||
22 | */ | ||
23 | |||
24 | #ifndef __DTS_HI3620_CLOCK_H | ||
25 | #define __DTS_HI3620_CLOCK_H | ||
26 | |||
27 | #define HI3620_NONE_CLOCK 0 | ||
28 | |||
29 | /* fixed rate & fixed factor clocks */ | ||
30 | #define HI3620_OSC32K 1 | ||
31 | #define HI3620_OSC26M 2 | ||
32 | #define HI3620_PCLK 3 | ||
33 | #define HI3620_PLL_ARM0 4 | ||
34 | #define HI3620_PLL_ARM1 5 | ||
35 | #define HI3620_PLL_PERI 6 | ||
36 | #define HI3620_PLL_USB 7 | ||
37 | #define HI3620_PLL_HDMI 8 | ||
38 | #define HI3620_PLL_GPU 9 | ||
39 | #define HI3620_RCLK_TCXO 10 | ||
40 | #define HI3620_RCLK_CFGAXI 11 | ||
41 | #define HI3620_RCLK_PICO 12 | ||
42 | |||
43 | /* mux clocks */ | ||
44 | #define HI3620_TIMER0_MUX 32 | ||
45 | #define HI3620_TIMER1_MUX 33 | ||
46 | #define HI3620_TIMER2_MUX 34 | ||
47 | #define HI3620_TIMER3_MUX 35 | ||
48 | #define HI3620_TIMER4_MUX 36 | ||
49 | #define HI3620_TIMER5_MUX 37 | ||
50 | #define HI3620_TIMER6_MUX 38 | ||
51 | #define HI3620_TIMER7_MUX 39 | ||
52 | #define HI3620_TIMER8_MUX 40 | ||
53 | #define HI3620_TIMER9_MUX 41 | ||
54 | #define HI3620_UART0_MUX 42 | ||
55 | #define HI3620_UART1_MUX 43 | ||
56 | #define HI3620_UART2_MUX 44 | ||
57 | #define HI3620_UART3_MUX 45 | ||
58 | #define HI3620_UART4_MUX 46 | ||
59 | #define HI3620_SPI0_MUX 47 | ||
60 | #define HI3620_SPI1_MUX 48 | ||
61 | #define HI3620_SPI2_MUX 49 | ||
62 | #define HI3620_SAXI_MUX 50 | ||
63 | #define HI3620_PWM0_MUX 51 | ||
64 | #define HI3620_PWM1_MUX 52 | ||
65 | #define HI3620_SD_MUX 53 | ||
66 | #define HI3620_MMC1_MUX 54 | ||
67 | #define HI3620_MMC1_MUX2 55 | ||
68 | #define HI3620_G2D_MUX 56 | ||
69 | #define HI3620_VENC_MUX 57 | ||
70 | #define HI3620_VDEC_MUX 58 | ||
71 | #define HI3620_VPP_MUX 59 | ||
72 | #define HI3620_EDC0_MUX 60 | ||
73 | #define HI3620_LDI0_MUX 61 | ||
74 | #define HI3620_EDC1_MUX 62 | ||
75 | #define HI3620_LDI1_MUX 63 | ||
76 | #define HI3620_RCLK_HSIC 64 | ||
77 | #define HI3620_MMC2_MUX 65 | ||
78 | #define HI3620_MMC3_MUX 66 | ||
79 | |||
80 | /* divider clocks */ | ||
81 | #define HI3620_SHAREAXI_DIV 128 | ||
82 | #define HI3620_CFGAXI_DIV 129 | ||
83 | #define HI3620_SD_DIV 130 | ||
84 | #define HI3620_MMC1_DIV 131 | ||
85 | #define HI3620_HSIC_DIV 132 | ||
86 | #define HI3620_MMC2_DIV 133 | ||
87 | #define HI3620_MMC3_DIV 134 | ||
88 | |||
89 | /* gate clocks */ | ||
90 | #define HI3620_TIMERCLK01 160 | ||
91 | #define HI3620_TIMER_RCLK01 161 | ||
92 | #define HI3620_TIMERCLK23 162 | ||
93 | #define HI3620_TIMER_RCLK23 163 | ||
94 | #define HI3620_TIMERCLK45 164 | ||
95 | #define HI3620_TIMERCLK67 165 | ||
96 | #define HI3620_TIMERCLK89 166 | ||
97 | #define HI3620_RTCCLK 167 | ||
98 | #define HI3620_KPC_CLK 168 | ||
99 | #define HI3620_GPIOCLK0 169 | ||
100 | #define HI3620_GPIOCLK1 170 | ||
101 | #define HI3620_GPIOCLK2 171 | ||
102 | #define HI3620_GPIOCLK3 172 | ||
103 | #define HI3620_GPIOCLK4 173 | ||
104 | #define HI3620_GPIOCLK5 174 | ||
105 | #define HI3620_GPIOCLK6 175 | ||
106 | #define HI3620_GPIOCLK7 176 | ||
107 | #define HI3620_GPIOCLK8 177 | ||
108 | #define HI3620_GPIOCLK9 178 | ||
109 | #define HI3620_GPIOCLK10 179 | ||
110 | #define HI3620_GPIOCLK11 180 | ||
111 | #define HI3620_GPIOCLK12 181 | ||
112 | #define HI3620_GPIOCLK13 182 | ||
113 | #define HI3620_GPIOCLK14 183 | ||
114 | #define HI3620_GPIOCLK15 184 | ||
115 | #define HI3620_GPIOCLK16 185 | ||
116 | #define HI3620_GPIOCLK17 186 | ||
117 | #define HI3620_GPIOCLK18 187 | ||
118 | #define HI3620_GPIOCLK19 188 | ||
119 | #define HI3620_GPIOCLK20 189 | ||
120 | #define HI3620_GPIOCLK21 190 | ||
121 | #define HI3620_DPHY0_CLK 191 | ||
122 | #define HI3620_DPHY1_CLK 192 | ||
123 | #define HI3620_DPHY2_CLK 193 | ||
124 | #define HI3620_USBPHY_CLK 194 | ||
125 | #define HI3620_ACP_CLK 195 | ||
126 | #define HI3620_PWMCLK0 196 | ||
127 | #define HI3620_PWMCLK1 197 | ||
128 | #define HI3620_UARTCLK0 198 | ||
129 | #define HI3620_UARTCLK1 199 | ||
130 | #define HI3620_UARTCLK2 200 | ||
131 | #define HI3620_UARTCLK3 201 | ||
132 | #define HI3620_UARTCLK4 202 | ||
133 | #define HI3620_SPICLK0 203 | ||
134 | #define HI3620_SPICLK1 204 | ||
135 | #define HI3620_SPICLK2 205 | ||
136 | #define HI3620_I2CCLK0 206 | ||
137 | #define HI3620_I2CCLK1 207 | ||
138 | #define HI3620_I2CCLK2 208 | ||
139 | #define HI3620_I2CCLK3 209 | ||
140 | #define HI3620_SCI_CLK 210 | ||
141 | #define HI3620_DDRC_PER_CLK 211 | ||
142 | #define HI3620_DMAC_CLK 212 | ||
143 | #define HI3620_USB2DVC_CLK 213 | ||
144 | #define HI3620_SD_CLK 214 | ||
145 | #define HI3620_MMC_CLK1 215 | ||
146 | #define HI3620_MMC_CLK2 216 | ||
147 | #define HI3620_MMC_CLK3 217 | ||
148 | #define HI3620_MCU_CLK 218 | ||
149 | |||
150 | #define HI3620_NR_CLKS 219 | ||
151 | |||
152 | #endif /* __DTS_HI3620_CLOCK_H */ | ||
diff --git a/include/dt-bindings/clock/qcom,gcc-msm8660.h b/include/dt-bindings/clock/qcom,gcc-msm8660.h new file mode 100644 index 000000000000..67665f6813dd --- /dev/null +++ b/include/dt-bindings/clock/qcom,gcc-msm8660.h | |||
@@ -0,0 +1,276 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2013, The Linux Foundation. All rights reserved. | ||
3 | * | ||
4 | * This software is licensed under the terms of the GNU General Public | ||
5 | * License version 2, as published by the Free Software Foundation, and | ||
6 | * may be copied, distributed, and modified under those terms. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | */ | ||
13 | |||
14 | #ifndef _DT_BINDINGS_CLK_MSM_GCC_8660_H | ||
15 | #define _DT_BINDINGS_CLK_MSM_GCC_8660_H | ||
16 | |||
17 | #define AFAB_CLK_SRC 0 | ||
18 | #define AFAB_CORE_CLK 1 | ||
19 | #define SCSS_A_CLK 2 | ||
20 | #define SCSS_H_CLK 3 | ||
21 | #define SCSS_XO_SRC_CLK 4 | ||
22 | #define AFAB_EBI1_CH0_A_CLK 5 | ||
23 | #define AFAB_EBI1_CH1_A_CLK 6 | ||
24 | #define AFAB_AXI_S0_FCLK 7 | ||
25 | #define AFAB_AXI_S1_FCLK 8 | ||
26 | #define AFAB_AXI_S2_FCLK 9 | ||
27 | #define AFAB_AXI_S3_FCLK 10 | ||
28 | #define AFAB_AXI_S4_FCLK 11 | ||
29 | #define SFAB_CORE_CLK 12 | ||
30 | #define SFAB_AXI_S0_FCLK 13 | ||
31 | #define SFAB_AXI_S1_FCLK 14 | ||
32 | #define SFAB_AXI_S2_FCLK 15 | ||
33 | #define SFAB_AXI_S3_FCLK 16 | ||
34 | #define SFAB_AXI_S4_FCLK 17 | ||
35 | #define SFAB_AHB_S0_FCLK 18 | ||
36 | #define SFAB_AHB_S1_FCLK 19 | ||
37 | #define SFAB_AHB_S2_FCLK 20 | ||
38 | #define SFAB_AHB_S3_FCLK 21 | ||
39 | #define SFAB_AHB_S4_FCLK 22 | ||
40 | #define SFAB_AHB_S5_FCLK 23 | ||
41 | #define SFAB_AHB_S6_FCLK 24 | ||
42 | #define SFAB_ADM0_M0_A_CLK 25 | ||
43 | #define SFAB_ADM0_M1_A_CLK 26 | ||
44 | #define SFAB_ADM0_M2_A_CLK 27 | ||
45 | #define ADM0_CLK 28 | ||
46 | #define ADM0_PBUS_CLK 29 | ||
47 | #define SFAB_ADM1_M0_A_CLK 30 | ||
48 | #define SFAB_ADM1_M1_A_CLK 31 | ||
49 | #define SFAB_ADM1_M2_A_CLK 32 | ||
50 | #define MMFAB_ADM1_M3_A_CLK 33 | ||
51 | #define ADM1_CLK 34 | ||
52 | #define ADM1_PBUS_CLK 35 | ||
53 | #define IMEM0_A_CLK 36 | ||
54 | #define MAHB0_CLK 37 | ||
55 | #define SFAB_LPASS_Q6_A_CLK 38 | ||
56 | #define SFAB_AFAB_M_A_CLK 39 | ||
57 | #define AFAB_SFAB_M0_A_CLK 40 | ||
58 | #define AFAB_SFAB_M1_A_CLK 41 | ||
59 | #define DFAB_CLK_SRC 42 | ||
60 | #define DFAB_CLK 43 | ||
61 | #define DFAB_CORE_CLK 44 | ||
62 | #define SFAB_DFAB_M_A_CLK 45 | ||
63 | #define DFAB_SFAB_M_A_CLK 46 | ||
64 | #define DFAB_SWAY0_H_CLK 47 | ||
65 | #define DFAB_SWAY1_H_CLK 48 | ||
66 | #define DFAB_ARB0_H_CLK 49 | ||
67 | #define DFAB_ARB1_H_CLK 50 | ||
68 | #define PPSS_H_CLK 51 | ||
69 | #define PPSS_PROC_CLK 52 | ||
70 | #define PPSS_TIMER0_CLK 53 | ||
71 | #define PPSS_TIMER1_CLK 54 | ||
72 | #define PMEM_A_CLK 55 | ||
73 | #define DMA_BAM_H_CLK 56 | ||
74 | #define SIC_H_CLK 57 | ||
75 | #define SPS_TIC_H_CLK 58 | ||
76 | #define SLIMBUS_H_CLK 59 | ||
77 | #define SLIMBUS_XO_SRC_CLK 60 | ||
78 | #define CFPB_2X_CLK_SRC 61 | ||
79 | #define CFPB_CLK 62 | ||
80 | #define CFPB0_H_CLK 63 | ||
81 | #define CFPB1_H_CLK 64 | ||
82 | #define CFPB2_H_CLK 65 | ||
83 | #define EBI2_2X_CLK 66 | ||
84 | #define EBI2_CLK 67 | ||
85 | #define SFAB_CFPB_M_H_CLK 68 | ||
86 | #define CFPB_MASTER_H_CLK 69 | ||
87 | #define SFAB_CFPB_S_HCLK 70 | ||
88 | #define CFPB_SPLITTER_H_CLK 71 | ||
89 | #define TSIF_H_CLK 72 | ||
90 | #define TSIF_INACTIVITY_TIMERS_CLK 73 | ||
91 | #define TSIF_REF_SRC 74 | ||
92 | #define TSIF_REF_CLK 75 | ||
93 | #define CE1_H_CLK 76 | ||
94 | #define CE2_H_CLK 77 | ||
95 | #define SFPB_H_CLK_SRC 78 | ||
96 | #define SFPB_H_CLK 79 | ||
97 | #define SFAB_SFPB_M_H_CLK 80 | ||
98 | #define SFAB_SFPB_S_H_CLK 81 | ||
99 | #define RPM_PROC_CLK 82 | ||
100 | #define RPM_BUS_H_CLK 83 | ||
101 | #define RPM_SLEEP_CLK 84 | ||
102 | #define RPM_TIMER_CLK 85 | ||
103 | #define MODEM_AHB1_H_CLK 86 | ||
104 | #define MODEM_AHB2_H_CLK 87 | ||
105 | #define RPM_MSG_RAM_H_CLK 88 | ||
106 | #define SC_H_CLK 89 | ||
107 | #define SC_A_CLK 90 | ||
108 | #define PMIC_ARB0_H_CLK 91 | ||
109 | #define PMIC_ARB1_H_CLK 92 | ||
110 | #define PMIC_SSBI2_SRC 93 | ||
111 | #define PMIC_SSBI2_CLK 94 | ||
112 | #define SDC1_H_CLK 95 | ||
113 | #define SDC2_H_CLK 96 | ||
114 | #define SDC3_H_CLK 97 | ||
115 | #define SDC4_H_CLK 98 | ||
116 | #define SDC5_H_CLK 99 | ||
117 | #define SDC1_SRC 100 | ||
118 | #define SDC2_SRC 101 | ||
119 | #define SDC3_SRC 102 | ||
120 | #define SDC4_SRC 103 | ||
121 | #define SDC5_SRC 104 | ||
122 | #define SDC1_CLK 105 | ||
123 | #define SDC2_CLK 106 | ||
124 | #define SDC3_CLK 107 | ||
125 | #define SDC4_CLK 108 | ||
126 | #define SDC5_CLK 109 | ||
127 | #define USB_HS1_H_CLK 110 | ||
128 | #define USB_HS1_XCVR_SRC 111 | ||
129 | #define USB_HS1_XCVR_CLK 112 | ||
130 | #define USB_HS2_H_CLK 113 | ||
131 | #define USB_HS2_XCVR_SRC 114 | ||
132 | #define USB_HS2_XCVR_CLK 115 | ||
133 | #define USB_FS1_H_CLK 116 | ||
134 | #define USB_FS1_XCVR_FS_SRC 117 | ||
135 | #define USB_FS1_XCVR_FS_CLK 118 | ||
136 | #define USB_FS1_SYSTEM_CLK 119 | ||
137 | #define USB_FS2_H_CLK 120 | ||
138 | #define USB_FS2_XCVR_FS_SRC 121 | ||
139 | #define USB_FS2_XCVR_FS_CLK 122 | ||
140 | #define USB_FS2_SYSTEM_CLK 123 | ||
141 | #define GSBI_COMMON_SIM_SRC 124 | ||
142 | #define GSBI1_H_CLK 125 | ||
143 | #define GSBI2_H_CLK 126 | ||
144 | #define GSBI3_H_CLK 127 | ||
145 | #define GSBI4_H_CLK 128 | ||
146 | #define GSBI5_H_CLK 129 | ||
147 | #define GSBI6_H_CLK 130 | ||
148 | #define GSBI7_H_CLK 131 | ||
149 | #define GSBI8_H_CLK 132 | ||
150 | #define GSBI9_H_CLK 133 | ||
151 | #define GSBI10_H_CLK 134 | ||
152 | #define GSBI11_H_CLK 135 | ||
153 | #define GSBI12_H_CLK 136 | ||
154 | #define GSBI1_UART_SRC 137 | ||
155 | #define GSBI1_UART_CLK 138 | ||
156 | #define GSBI2_UART_SRC 139 | ||
157 | #define GSBI2_UART_CLK 140 | ||
158 | #define GSBI3_UART_SRC 141 | ||
159 | #define GSBI3_UART_CLK 142 | ||
160 | #define GSBI4_UART_SRC 143 | ||
161 | #define GSBI4_UART_CLK 144 | ||
162 | #define GSBI5_UART_SRC 145 | ||
163 | #define GSBI5_UART_CLK 146 | ||
164 | #define GSBI6_UART_SRC 147 | ||
165 | #define GSBI6_UART_CLK 148 | ||
166 | #define GSBI7_UART_SRC 149 | ||
167 | #define GSBI7_UART_CLK 150 | ||
168 | #define GSBI8_UART_SRC 151 | ||
169 | #define GSBI8_UART_CLK 152 | ||
170 | #define GSBI9_UART_SRC 153 | ||
171 | #define GSBI9_UART_CLK 154 | ||
172 | #define GSBI10_UART_SRC 155 | ||
173 | #define GSBI10_UART_CLK 156 | ||
174 | #define GSBI11_UART_SRC 157 | ||
175 | #define GSBI11_UART_CLK 158 | ||
176 | #define GSBI12_UART_SRC 159 | ||
177 | #define GSBI12_UART_CLK 160 | ||
178 | #define GSBI1_QUP_SRC 161 | ||
179 | #define GSBI1_QUP_CLK 162 | ||
180 | #define GSBI2_QUP_SRC 163 | ||
181 | #define GSBI2_QUP_CLK 164 | ||
182 | #define GSBI3_QUP_SRC 165 | ||
183 | #define GSBI3_QUP_CLK 166 | ||
184 | #define GSBI4_QUP_SRC 167 | ||
185 | #define GSBI4_QUP_CLK 168 | ||
186 | #define GSBI5_QUP_SRC 169 | ||
187 | #define GSBI5_QUP_CLK 170 | ||
188 | #define GSBI6_QUP_SRC 171 | ||
189 | #define GSBI6_QUP_CLK 172 | ||
190 | #define GSBI7_QUP_SRC 173 | ||
191 | #define GSBI7_QUP_CLK 174 | ||
192 | #define GSBI8_QUP_SRC 175 | ||
193 | #define GSBI8_QUP_CLK 176 | ||
194 | #define GSBI9_QUP_SRC 177 | ||
195 | #define GSBI9_QUP_CLK 178 | ||
196 | #define GSBI10_QUP_SRC 179 | ||
197 | #define GSBI10_QUP_CLK 180 | ||
198 | #define GSBI11_QUP_SRC 181 | ||
199 | #define GSBI11_QUP_CLK 182 | ||
200 | #define GSBI12_QUP_SRC 183 | ||
201 | #define GSBI12_QUP_CLK 184 | ||
202 | #define GSBI1_SIM_CLK 185 | ||
203 | #define GSBI2_SIM_CLK 186 | ||
204 | #define GSBI3_SIM_CLK 187 | ||
205 | #define GSBI4_SIM_CLK 188 | ||
206 | #define GSBI5_SIM_CLK 189 | ||
207 | #define GSBI6_SIM_CLK 190 | ||
208 | #define GSBI7_SIM_CLK 191 | ||
209 | #define GSBI8_SIM_CLK 192 | ||
210 | #define GSBI9_SIM_CLK 193 | ||
211 | #define GSBI10_SIM_CLK 194 | ||
212 | #define GSBI11_SIM_CLK 195 | ||
213 | #define GSBI12_SIM_CLK 196 | ||
214 | #define SPDM_CFG_H_CLK 197 | ||
215 | #define SPDM_MSTR_H_CLK 198 | ||
216 | #define SPDM_FF_CLK_SRC 199 | ||
217 | #define SPDM_FF_CLK 200 | ||
218 | #define SEC_CTRL_CLK 201 | ||
219 | #define SEC_CTRL_ACC_CLK_SRC 202 | ||
220 | #define SEC_CTRL_ACC_CLK 203 | ||
221 | #define TLMM_H_CLK 204 | ||
222 | #define TLMM_CLK 205 | ||
223 | #define MARM_CLK_SRC 206 | ||
224 | #define MARM_CLK 207 | ||
225 | #define MAHB1_SRC 208 | ||
226 | #define MAHB1_CLK 209 | ||
227 | #define SFAB_MSS_S_H_CLK 210 | ||
228 | #define MAHB2_SRC 211 | ||
229 | #define MAHB2_CLK 212 | ||
230 | #define MSS_MODEM_CLK_SRC 213 | ||
231 | #define MSS_MODEM_CXO_CLK 214 | ||
232 | #define MSS_SLP_CLK 215 | ||
233 | #define MSS_SYS_REF_CLK 216 | ||
234 | #define TSSC_CLK_SRC 217 | ||
235 | #define TSSC_CLK 218 | ||
236 | #define PDM_SRC 219 | ||
237 | #define PDM_CLK 220 | ||
238 | #define GP0_SRC 221 | ||
239 | #define GP0_CLK 222 | ||
240 | #define GP1_SRC 223 | ||
241 | #define GP1_CLK 224 | ||
242 | #define GP2_SRC 225 | ||
243 | #define GP2_CLK 226 | ||
244 | #define PMEM_CLK 227 | ||
245 | #define MPM_CLK 228 | ||
246 | #define EBI1_ASFAB_SRC 229 | ||
247 | #define EBI1_CLK_SRC 230 | ||
248 | #define EBI1_CH0_CLK 231 | ||
249 | #define EBI1_CH1_CLK 232 | ||
250 | #define SFAB_SMPSS_S_H_CLK 233 | ||
251 | #define PRNG_SRC 234 | ||
252 | #define PRNG_CLK 235 | ||
253 | #define PXO_SRC 236 | ||
254 | #define LPASS_CXO_CLK 237 | ||
255 | #define LPASS_PXO_CLK 238 | ||
256 | #define SPDM_CY_PORT0_CLK 239 | ||
257 | #define SPDM_CY_PORT1_CLK 240 | ||
258 | #define SPDM_CY_PORT2_CLK 241 | ||
259 | #define SPDM_CY_PORT3_CLK 242 | ||
260 | #define SPDM_CY_PORT4_CLK 243 | ||
261 | #define SPDM_CY_PORT5_CLK 244 | ||
262 | #define SPDM_CY_PORT6_CLK 245 | ||
263 | #define SPDM_CY_PORT7_CLK 246 | ||
264 | #define PLL0 247 | ||
265 | #define PLL0_VOTE 248 | ||
266 | #define PLL5 249 | ||
267 | #define PLL6 250 | ||
268 | #define PLL6_VOTE 251 | ||
269 | #define PLL8 252 | ||
270 | #define PLL8_VOTE 253 | ||
271 | #define PLL9 254 | ||
272 | #define PLL10 255 | ||
273 | #define PLL11 256 | ||
274 | #define PLL12 257 | ||
275 | |||
276 | #endif | ||
diff --git a/include/dt-bindings/clock/qcom,gcc-msm8960.h b/include/dt-bindings/clock/qcom,gcc-msm8960.h new file mode 100644 index 000000000000..03bbf49d43b7 --- /dev/null +++ b/include/dt-bindings/clock/qcom,gcc-msm8960.h | |||
@@ -0,0 +1,313 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2013, The Linux Foundation. All rights reserved. | ||
3 | * | ||
4 | * This software is licensed under the terms of the GNU General Public | ||
5 | * License version 2, as published by the Free Software Foundation, and | ||
6 | * may be copied, distributed, and modified under those terms. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | */ | ||
13 | |||
14 | #ifndef _DT_BINDINGS_CLK_MSM_GCC_8960_H | ||
15 | #define _DT_BINDINGS_CLK_MSM_GCC_8960_H | ||
16 | |||
17 | #define AFAB_CLK_SRC 0 | ||
18 | #define AFAB_CORE_CLK 1 | ||
19 | #define SFAB_MSS_Q6_SW_A_CLK 2 | ||
20 | #define SFAB_MSS_Q6_FW_A_CLK 3 | ||
21 | #define QDSS_STM_CLK 4 | ||
22 | #define SCSS_A_CLK 5 | ||
23 | #define SCSS_H_CLK 6 | ||
24 | #define SCSS_XO_SRC_CLK 7 | ||
25 | #define AFAB_EBI1_CH0_A_CLK 8 | ||
26 | #define AFAB_EBI1_CH1_A_CLK 9 | ||
27 | #define AFAB_AXI_S0_FCLK 10 | ||
28 | #define AFAB_AXI_S1_FCLK 11 | ||
29 | #define AFAB_AXI_S2_FCLK 12 | ||
30 | #define AFAB_AXI_S3_FCLK 13 | ||
31 | #define AFAB_AXI_S4_FCLK 14 | ||
32 | #define SFAB_CORE_CLK 15 | ||
33 | #define SFAB_AXI_S0_FCLK 16 | ||
34 | #define SFAB_AXI_S1_FCLK 17 | ||
35 | #define SFAB_AXI_S2_FCLK 18 | ||
36 | #define SFAB_AXI_S3_FCLK 19 | ||
37 | #define SFAB_AXI_S4_FCLK 20 | ||
38 | #define SFAB_AHB_S0_FCLK 21 | ||
39 | #define SFAB_AHB_S1_FCLK 22 | ||
40 | #define SFAB_AHB_S2_FCLK 23 | ||
41 | #define SFAB_AHB_S3_FCLK 24 | ||
42 | #define SFAB_AHB_S4_FCLK 25 | ||
43 | #define SFAB_AHB_S5_FCLK 26 | ||
44 | #define SFAB_AHB_S6_FCLK 27 | ||
45 | #define SFAB_AHB_S7_FCLK 28 | ||
46 | #define QDSS_AT_CLK_SRC 29 | ||
47 | #define QDSS_AT_CLK 30 | ||
48 | #define QDSS_TRACECLKIN_CLK_SRC 31 | ||
49 | #define QDSS_TRACECLKIN_CLK 32 | ||
50 | #define QDSS_TSCTR_CLK_SRC 33 | ||
51 | #define QDSS_TSCTR_CLK 34 | ||
52 | #define SFAB_ADM0_M0_A_CLK 35 | ||
53 | #define SFAB_ADM0_M1_A_CLK 36 | ||
54 | #define SFAB_ADM0_M2_A_CLK 37 | ||
55 | #define ADM0_CLK 38 | ||
56 | #define ADM0_PBUS_CLK 39 | ||
57 | #define MSS_XPU_CLK 40 | ||
58 | #define IMEM0_A_CLK 41 | ||
59 | #define QDSS_H_CLK 42 | ||
60 | #define PCIE_A_CLK 43 | ||
61 | #define PCIE_AUX_CLK 44 | ||
62 | #define PCIE_PHY_REF_CLK 45 | ||
63 | #define PCIE_H_CLK 46 | ||
64 | #define SFAB_CLK_SRC 47 | ||
65 | #define MAHB0_CLK 48 | ||
66 | #define Q6SW_CLK_SRC 49 | ||
67 | #define Q6SW_CLK 50 | ||
68 | #define Q6FW_CLK_SRC 51 | ||
69 | #define Q6FW_CLK 52 | ||
70 | #define SFAB_MSS_M_A_CLK 53 | ||
71 | #define SFAB_USB3_M_A_CLK 54 | ||
72 | #define SFAB_LPASS_Q6_A_CLK 55 | ||
73 | #define SFAB_AFAB_M_A_CLK 56 | ||
74 | #define AFAB_SFAB_M0_A_CLK 57 | ||
75 | #define AFAB_SFAB_M1_A_CLK 58 | ||
76 | #define SFAB_SATA_S_H_CLK 59 | ||
77 | #define DFAB_CLK_SRC 60 | ||
78 | #define DFAB_CLK 61 | ||
79 | #define SFAB_DFAB_M_A_CLK 62 | ||
80 | #define DFAB_SFAB_M_A_CLK 63 | ||
81 | #define DFAB_SWAY0_H_CLK 64 | ||
82 | #define DFAB_SWAY1_H_CLK 65 | ||
83 | #define DFAB_ARB0_H_CLK 66 | ||
84 | #define DFAB_ARB1_H_CLK 67 | ||
85 | #define PPSS_H_CLK 68 | ||
86 | #define PPSS_PROC_CLK 69 | ||
87 | #define PPSS_TIMER0_CLK 70 | ||
88 | #define PPSS_TIMER1_CLK 71 | ||
89 | #define PMEM_A_CLK 72 | ||
90 | #define DMA_BAM_H_CLK 73 | ||
91 | #define SIC_H_CLK 74 | ||
92 | #define SPS_TIC_H_CLK 75 | ||
93 | #define SLIMBUS_H_CLK 76 | ||
94 | #define SLIMBUS_XO_SRC_CLK 77 | ||
95 | #define CFPB_2X_CLK_SRC 78 | ||
96 | #define CFPB_CLK 79 | ||
97 | #define CFPB0_H_CLK 80 | ||
98 | #define CFPB1_H_CLK 81 | ||
99 | #define CFPB2_H_CLK 82 | ||
100 | #define SFAB_CFPB_M_H_CLK 83 | ||
101 | #define CFPB_MASTER_H_CLK 84 | ||
102 | #define SFAB_CFPB_S_HCLK 85 | ||
103 | #define CFPB_SPLITTER_H_CLK 86 | ||
104 | #define TSIF_H_CLK 87 | ||
105 | #define TSIF_INACTIVITY_TIMERS_CLK 88 | ||
106 | #define TSIF_REF_SRC 89 | ||
107 | #define TSIF_REF_CLK 90 | ||
108 | #define CE1_H_CLK 91 | ||
109 | #define CE1_CORE_CLK 92 | ||
110 | #define CE1_SLEEP_CLK 93 | ||
111 | #define CE2_H_CLK 94 | ||
112 | #define CE2_CORE_CLK 95 | ||
113 | #define CE2_SLEEP_CLK 96 | ||
114 | #define SFPB_H_CLK_SRC 97 | ||
115 | #define SFPB_H_CLK 98 | ||
116 | #define SFAB_SFPB_M_H_CLK 99 | ||
117 | #define SFAB_SFPB_S_H_CLK 100 | ||
118 | #define RPM_PROC_CLK 101 | ||
119 | #define RPM_BUS_H_CLK 102 | ||
120 | #define RPM_SLEEP_CLK 103 | ||
121 | #define RPM_TIMER_CLK 104 | ||
122 | #define RPM_MSG_RAM_H_CLK 105 | ||
123 | #define PMIC_ARB0_H_CLK 106 | ||
124 | #define PMIC_ARB1_H_CLK 107 | ||
125 | #define PMIC_SSBI2_SRC 108 | ||
126 | #define PMIC_SSBI2_CLK 109 | ||
127 | #define SDC1_H_CLK 110 | ||
128 | #define SDC2_H_CLK 111 | ||
129 | #define SDC3_H_CLK 112 | ||
130 | #define SDC4_H_CLK 113 | ||
131 | #define SDC5_H_CLK 114 | ||
132 | #define SDC1_SRC 115 | ||
133 | #define SDC2_SRC 116 | ||
134 | #define SDC3_SRC 117 | ||
135 | #define SDC4_SRC 118 | ||
136 | #define SDC5_SRC 119 | ||
137 | #define SDC1_CLK 120 | ||
138 | #define SDC2_CLK 121 | ||
139 | #define SDC3_CLK 122 | ||
140 | #define SDC4_CLK 123 | ||
141 | #define SDC5_CLK 124 | ||
142 | #define DFAB_A2_H_CLK 125 | ||
143 | #define USB_HS1_H_CLK 126 | ||
144 | #define USB_HS1_XCVR_SRC 127 | ||
145 | #define USB_HS1_XCVR_CLK 128 | ||
146 | #define USB_HSIC_H_CLK 129 | ||
147 | #define USB_HSIC_XCVR_FS_SRC 130 | ||
148 | #define USB_HSIC_XCVR_FS_CLK 131 | ||
149 | #define USB_HSIC_SYSTEM_CLK_SRC 132 | ||
150 | #define USB_HSIC_SYSTEM_CLK 133 | ||
151 | #define CFPB0_C0_H_CLK 134 | ||
152 | #define CFPB0_C1_H_CLK 135 | ||
153 | #define CFPB0_D0_H_CLK 136 | ||
154 | #define CFPB0_D1_H_CLK 137 | ||
155 | #define USB_FS1_H_CLK 138 | ||
156 | #define USB_FS1_XCVR_FS_SRC 139 | ||
157 | #define USB_FS1_XCVR_FS_CLK 140 | ||
158 | #define USB_FS1_SYSTEM_CLK 141 | ||
159 | #define USB_FS2_H_CLK 142 | ||
160 | #define USB_FS2_XCVR_FS_SRC 143 | ||
161 | #define USB_FS2_XCVR_FS_CLK 144 | ||
162 | #define USB_FS2_SYSTEM_CLK 145 | ||
163 | #define GSBI_COMMON_SIM_SRC 146 | ||
164 | #define GSBI1_H_CLK 147 | ||
165 | #define GSBI2_H_CLK 148 | ||
166 | #define GSBI3_H_CLK 149 | ||
167 | #define GSBI4_H_CLK 150 | ||
168 | #define GSBI5_H_CLK 151 | ||
169 | #define GSBI6_H_CLK 152 | ||
170 | #define GSBI7_H_CLK 153 | ||
171 | #define GSBI8_H_CLK 154 | ||
172 | #define GSBI9_H_CLK 155 | ||
173 | #define GSBI10_H_CLK 156 | ||
174 | #define GSBI11_H_CLK 157 | ||
175 | #define GSBI12_H_CLK 158 | ||
176 | #define GSBI1_UART_SRC 159 | ||
177 | #define GSBI1_UART_CLK 160 | ||
178 | #define GSBI2_UART_SRC 161 | ||
179 | #define GSBI2_UART_CLK 162 | ||
180 | #define GSBI3_UART_SRC 163 | ||
181 | #define GSBI3_UART_CLK 164 | ||
182 | #define GSBI4_UART_SRC 165 | ||
183 | #define GSBI4_UART_CLK 166 | ||
184 | #define GSBI5_UART_SRC 167 | ||
185 | #define GSBI5_UART_CLK 168 | ||
186 | #define GSBI6_UART_SRC 169 | ||
187 | #define GSBI6_UART_CLK 170 | ||
188 | #define GSBI7_UART_SRC 171 | ||
189 | #define GSBI7_UART_CLK 172 | ||
190 | #define GSBI8_UART_SRC 173 | ||
191 | #define GSBI8_UART_CLK 174 | ||
192 | #define GSBI9_UART_SRC 175 | ||
193 | #define GSBI9_UART_CLK 176 | ||
194 | #define GSBI10_UART_SRC 177 | ||
195 | #define GSBI10_UART_CLK 178 | ||
196 | #define GSBI11_UART_SRC 179 | ||
197 | #define GSBI11_UART_CLK 180 | ||
198 | #define GSBI12_UART_SRC 181 | ||
199 | #define GSBI12_UART_CLK 182 | ||
200 | #define GSBI1_QUP_SRC 183 | ||
201 | #define GSBI1_QUP_CLK 184 | ||
202 | #define GSBI2_QUP_SRC 185 | ||
203 | #define GSBI2_QUP_CLK 186 | ||
204 | #define GSBI3_QUP_SRC 187 | ||
205 | #define GSBI3_QUP_CLK 188 | ||
206 | #define GSBI4_QUP_SRC 189 | ||
207 | #define GSBI4_QUP_CLK 190 | ||
208 | #define GSBI5_QUP_SRC 191 | ||
209 | #define GSBI5_QUP_CLK 192 | ||
210 | #define GSBI6_QUP_SRC 193 | ||
211 | #define GSBI6_QUP_CLK 194 | ||
212 | #define GSBI7_QUP_SRC 195 | ||
213 | #define GSBI7_QUP_CLK 196 | ||
214 | #define GSBI8_QUP_SRC 197 | ||
215 | #define GSBI8_QUP_CLK 198 | ||
216 | #define GSBI9_QUP_SRC 199 | ||
217 | #define GSBI9_QUP_CLK 200 | ||
218 | #define GSBI10_QUP_SRC 201 | ||
219 | #define GSBI10_QUP_CLK 202 | ||
220 | #define GSBI11_QUP_SRC 203 | ||
221 | #define GSBI11_QUP_CLK 204 | ||
222 | #define GSBI12_QUP_SRC 205 | ||
223 | #define GSBI12_QUP_CLK 206 | ||
224 | #define GSBI1_SIM_CLK 207 | ||
225 | #define GSBI2_SIM_CLK 208 | ||
226 | #define GSBI3_SIM_CLK 209 | ||
227 | #define GSBI4_SIM_CLK 210 | ||
228 | #define GSBI5_SIM_CLK 211 | ||
229 | #define GSBI6_SIM_CLK 212 | ||
230 | #define GSBI7_SIM_CLK 213 | ||
231 | #define GSBI8_SIM_CLK 214 | ||
232 | #define GSBI9_SIM_CLK 215 | ||
233 | #define GSBI10_SIM_CLK 216 | ||
234 | #define GSBI11_SIM_CLK 217 | ||
235 | #define GSBI12_SIM_CLK 218 | ||
236 | #define USB_HSIC_HSIC_CLK_SRC 219 | ||
237 | #define USB_HSIC_HSIC_CLK 220 | ||
238 | #define USB_HSIC_HSIO_CAL_CLK 221 | ||
239 | #define SPDM_CFG_H_CLK 222 | ||
240 | #define SPDM_MSTR_H_CLK 223 | ||
241 | #define SPDM_FF_CLK_SRC 224 | ||
242 | #define SPDM_FF_CLK 225 | ||
243 | #define SEC_CTRL_CLK 226 | ||
244 | #define SEC_CTRL_ACC_CLK_SRC 227 | ||
245 | #define SEC_CTRL_ACC_CLK 228 | ||
246 | #define TLMM_H_CLK 229 | ||
247 | #define TLMM_CLK 230 | ||
248 | #define SFAB_MSS_S_H_CLK 231 | ||
249 | #define MSS_SLP_CLK 232 | ||
250 | #define MSS_Q6SW_JTAG_CLK 233 | ||
251 | #define MSS_Q6FW_JTAG_CLK 234 | ||
252 | #define MSS_S_H_CLK 235 | ||
253 | #define MSS_CXO_SRC_CLK 236 | ||
254 | #define SATA_H_CLK 237 | ||
255 | #define SATA_SRC_CLK 238 | ||
256 | #define SATA_RXOOB_CLK 239 | ||
257 | #define SATA_PMALIVE_CLK 240 | ||
258 | #define SATA_PHY_REF_CLK 241 | ||
259 | #define TSSC_CLK_SRC 242 | ||
260 | #define TSSC_CLK 243 | ||
261 | #define PDM_SRC 244 | ||
262 | #define PDM_CLK 245 | ||
263 | #define GP0_SRC 246 | ||
264 | #define GP0_CLK 247 | ||
265 | #define GP1_SRC 248 | ||
266 | #define GP1_CLK 249 | ||
267 | #define GP2_SRC 250 | ||
268 | #define GP2_CLK 251 | ||
269 | #define MPM_CLK 252 | ||
270 | #define EBI1_CLK_SRC 253 | ||
271 | #define EBI1_CH0_CLK 254 | ||
272 | #define EBI1_CH1_CLK 255 | ||
273 | #define EBI1_2X_CLK 256 | ||
274 | #define EBI1_CH0_DQ_CLK 257 | ||
275 | #define EBI1_CH1_DQ_CLK 258 | ||
276 | #define EBI1_CH0_CA_CLK 259 | ||
277 | #define EBI1_CH1_CA_CLK 260 | ||
278 | #define EBI1_XO_CLK 261 | ||
279 | #define SFAB_SMPSS_S_H_CLK 262 | ||
280 | #define PRNG_SRC 263 | ||
281 | #define PRNG_CLK 264 | ||
282 | #define PXO_SRC 265 | ||
283 | #define LPASS_CXO_CLK 266 | ||
284 | #define LPASS_PXO_CLK 267 | ||
285 | #define SPDM_CY_PORT0_CLK 268 | ||
286 | #define SPDM_CY_PORT1_CLK 269 | ||
287 | #define SPDM_CY_PORT2_CLK 270 | ||
288 | #define SPDM_CY_PORT3_CLK 271 | ||
289 | #define SPDM_CY_PORT4_CLK 272 | ||
290 | #define SPDM_CY_PORT5_CLK 273 | ||
291 | #define SPDM_CY_PORT6_CLK 274 | ||
292 | #define SPDM_CY_PORT7_CLK 275 | ||
293 | #define PLL0 276 | ||
294 | #define PLL0_VOTE 277 | ||
295 | #define PLL3 278 | ||
296 | #define PLL3_VOTE 279 | ||
297 | #define PLL4_VOTE 280 | ||
298 | #define PLL5 281 | ||
299 | #define PLL5_VOTE 282 | ||
300 | #define PLL6 283 | ||
301 | #define PLL6_VOTE 284 | ||
302 | #define PLL7_VOTE 285 | ||
303 | #define PLL8 286 | ||
304 | #define PLL8_VOTE 287 | ||
305 | #define PLL9 288 | ||
306 | #define PLL10 289 | ||
307 | #define PLL11 290 | ||
308 | #define PLL12 291 | ||
309 | #define PLL13 292 | ||
310 | #define PLL14 293 | ||
311 | #define PLL14_VOTE 294 | ||
312 | |||
313 | #endif | ||
diff --git a/include/dt-bindings/clock/qcom,gcc-msm8974.h b/include/dt-bindings/clock/qcom,gcc-msm8974.h new file mode 100644 index 000000000000..223ca174d9d3 --- /dev/null +++ b/include/dt-bindings/clock/qcom,gcc-msm8974.h | |||
@@ -0,0 +1,320 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2013, The Linux Foundation. All rights reserved. | ||
3 | * | ||
4 | * This software is licensed under the terms of the GNU General Public | ||
5 | * License version 2, as published by the Free Software Foundation, and | ||
6 | * may be copied, distributed, and modified under those terms. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | */ | ||
13 | |||
14 | #ifndef _DT_BINDINGS_CLK_MSM_GCC_8974_H | ||
15 | #define _DT_BINDINGS_CLK_MSM_GCC_8974_H | ||
16 | |||
17 | #define GPLL0 0 | ||
18 | #define GPLL0_VOTE 1 | ||
19 | #define CONFIG_NOC_CLK_SRC 2 | ||
20 | #define GPLL2 3 | ||
21 | #define GPLL2_VOTE 4 | ||
22 | #define GPLL3 5 | ||
23 | #define GPLL3_VOTE 6 | ||
24 | #define PERIPH_NOC_CLK_SRC 7 | ||
25 | #define BLSP_UART_SIM_CLK_SRC 8 | ||
26 | #define QDSS_TSCTR_CLK_SRC 9 | ||
27 | #define BIMC_DDR_CLK_SRC 10 | ||
28 | #define SYSTEM_NOC_CLK_SRC 11 | ||
29 | #define GPLL1 12 | ||
30 | #define GPLL1_VOTE 13 | ||
31 | #define RPM_CLK_SRC 14 | ||
32 | #define GCC_BIMC_CLK 15 | ||
33 | #define BIMC_DDR_CPLL0_ROOT_CLK_SRC 16 | ||
34 | #define KPSS_AHB_CLK_SRC 17 | ||
35 | #define QDSS_AT_CLK_SRC 18 | ||
36 | #define USB30_MASTER_CLK_SRC 19 | ||
37 | #define BIMC_DDR_CPLL1_ROOT_CLK_SRC 20 | ||
38 | #define QDSS_STM_CLK_SRC 21 | ||
39 | #define ACC_CLK_SRC 22 | ||
40 | #define SEC_CTRL_CLK_SRC 23 | ||
41 | #define BLSP1_QUP1_I2C_APPS_CLK_SRC 24 | ||
42 | #define BLSP1_QUP1_SPI_APPS_CLK_SRC 25 | ||
43 | #define BLSP1_QUP2_I2C_APPS_CLK_SRC 26 | ||
44 | #define BLSP1_QUP2_SPI_APPS_CLK_SRC 27 | ||
45 | #define BLSP1_QUP3_I2C_APPS_CLK_SRC 28 | ||
46 | #define BLSP1_QUP3_SPI_APPS_CLK_SRC 29 | ||
47 | #define BLSP1_QUP4_I2C_APPS_CLK_SRC 30 | ||
48 | #define BLSP1_QUP4_SPI_APPS_CLK_SRC 31 | ||
49 | #define BLSP1_QUP5_I2C_APPS_CLK_SRC 32 | ||
50 | #define BLSP1_QUP5_SPI_APPS_CLK_SRC 33 | ||
51 | #define BLSP1_QUP6_I2C_APPS_CLK_SRC 34 | ||
52 | #define BLSP1_QUP6_SPI_APPS_CLK_SRC 35 | ||
53 | #define BLSP1_UART1_APPS_CLK_SRC 36 | ||
54 | #define BLSP1_UART2_APPS_CLK_SRC 37 | ||
55 | #define BLSP1_UART3_APPS_CLK_SRC 38 | ||
56 | #define BLSP1_UART4_APPS_CLK_SRC 39 | ||
57 | #define BLSP1_UART5_APPS_CLK_SRC 40 | ||
58 | #define BLSP1_UART6_APPS_CLK_SRC 41 | ||
59 | #define BLSP2_QUP1_I2C_APPS_CLK_SRC 42 | ||
60 | #define BLSP2_QUP1_SPI_APPS_CLK_SRC 43 | ||
61 | #define BLSP2_QUP2_I2C_APPS_CLK_SRC 44 | ||
62 | #define BLSP2_QUP2_SPI_APPS_CLK_SRC 45 | ||
63 | #define BLSP2_QUP3_I2C_APPS_CLK_SRC 46 | ||
64 | #define BLSP2_QUP3_SPI_APPS_CLK_SRC 47 | ||
65 | #define BLSP2_QUP4_I2C_APPS_CLK_SRC 48 | ||
66 | #define BLSP2_QUP4_SPI_APPS_CLK_SRC 49 | ||
67 | #define BLSP2_QUP5_I2C_APPS_CLK_SRC 50 | ||
68 | #define BLSP2_QUP5_SPI_APPS_CLK_SRC 51 | ||
69 | #define BLSP2_QUP6_I2C_APPS_CLK_SRC 52 | ||
70 | #define BLSP2_QUP6_SPI_APPS_CLK_SRC 53 | ||
71 | #define BLSP2_UART1_APPS_CLK_SRC 54 | ||
72 | #define BLSP2_UART2_APPS_CLK_SRC 55 | ||
73 | #define BLSP2_UART3_APPS_CLK_SRC 56 | ||
74 | #define BLSP2_UART4_APPS_CLK_SRC 57 | ||
75 | #define BLSP2_UART5_APPS_CLK_SRC 58 | ||
76 | #define BLSP2_UART6_APPS_CLK_SRC 59 | ||
77 | #define CE1_CLK_SRC 60 | ||
78 | #define CE2_CLK_SRC 61 | ||
79 | #define GP1_CLK_SRC 62 | ||
80 | #define GP2_CLK_SRC 63 | ||
81 | #define GP3_CLK_SRC 64 | ||
82 | #define PDM2_CLK_SRC 65 | ||
83 | #define QDSS_TRACECLKIN_CLK_SRC 66 | ||
84 | #define RBCPR_CLK_SRC 67 | ||
85 | #define SDCC1_APPS_CLK_SRC 68 | ||
86 | #define SDCC2_APPS_CLK_SRC 69 | ||
87 | #define SDCC3_APPS_CLK_SRC 70 | ||
88 | #define SDCC4_APPS_CLK_SRC 71 | ||
89 | #define SPMI_AHB_CLK_SRC 72 | ||
90 | #define SPMI_SER_CLK_SRC 73 | ||
91 | #define TSIF_REF_CLK_SRC 74 | ||
92 | #define USB30_MOCK_UTMI_CLK_SRC 75 | ||
93 | #define USB_HS_SYSTEM_CLK_SRC 76 | ||
94 | #define USB_HSIC_CLK_SRC 77 | ||
95 | #define USB_HSIC_IO_CAL_CLK_SRC 78 | ||
96 | #define USB_HSIC_SYSTEM_CLK_SRC 79 | ||
97 | #define GCC_BAM_DMA_AHB_CLK 80 | ||
98 | #define GCC_BAM_DMA_INACTIVITY_TIMERS_CLK 81 | ||
99 | #define GCC_BIMC_CFG_AHB_CLK 82 | ||
100 | #define GCC_BIMC_KPSS_AXI_CLK 83 | ||
101 | #define GCC_BIMC_SLEEP_CLK 84 | ||
102 | #define GCC_BIMC_SYSNOC_AXI_CLK 85 | ||
103 | #define GCC_BIMC_XO_CLK 86 | ||
104 | #define GCC_BLSP1_AHB_CLK 87 | ||
105 | #define GCC_BLSP1_SLEEP_CLK 88 | ||
106 | #define GCC_BLSP1_QUP1_I2C_APPS_CLK 89 | ||
107 | #define GCC_BLSP1_QUP1_SPI_APPS_CLK 90 | ||
108 | #define GCC_BLSP1_QUP2_I2C_APPS_CLK 91 | ||
109 | #define GCC_BLSP1_QUP2_SPI_APPS_CLK 92 | ||
110 | #define GCC_BLSP1_QUP3_I2C_APPS_CLK 93 | ||
111 | #define GCC_BLSP1_QUP3_SPI_APPS_CLK 94 | ||
112 | #define GCC_BLSP1_QUP4_I2C_APPS_CLK 95 | ||
113 | #define GCC_BLSP1_QUP4_SPI_APPS_CLK 96 | ||
114 | #define GCC_BLSP1_QUP5_I2C_APPS_CLK 97 | ||
115 | #define GCC_BLSP1_QUP5_SPI_APPS_CLK 98 | ||
116 | #define GCC_BLSP1_QUP6_I2C_APPS_CLK 99 | ||
117 | #define GCC_BLSP1_QUP6_SPI_APPS_CLK 100 | ||
118 | #define GCC_BLSP1_UART1_APPS_CLK 101 | ||
119 | #define GCC_BLSP1_UART1_SIM_CLK 102 | ||
120 | #define GCC_BLSP1_UART2_APPS_CLK 103 | ||
121 | #define GCC_BLSP1_UART2_SIM_CLK 104 | ||
122 | #define GCC_BLSP1_UART3_APPS_CLK 105 | ||
123 | #define GCC_BLSP1_UART3_SIM_CLK 106 | ||
124 | #define GCC_BLSP1_UART4_APPS_CLK 107 | ||
125 | #define GCC_BLSP1_UART4_SIM_CLK 108 | ||
126 | #define GCC_BLSP1_UART5_APPS_CLK 109 | ||
127 | #define GCC_BLSP1_UART5_SIM_CLK 110 | ||
128 | #define GCC_BLSP1_UART6_APPS_CLK 111 | ||
129 | #define GCC_BLSP1_UART6_SIM_CLK 112 | ||
130 | #define GCC_BLSP2_AHB_CLK 113 | ||
131 | #define GCC_BLSP2_SLEEP_CLK 114 | ||
132 | #define GCC_BLSP2_QUP1_I2C_APPS_CLK 115 | ||
133 | #define GCC_BLSP2_QUP1_SPI_APPS_CLK 116 | ||
134 | #define GCC_BLSP2_QUP2_I2C_APPS_CLK 117 | ||
135 | #define GCC_BLSP2_QUP2_SPI_APPS_CLK 118 | ||
136 | #define GCC_BLSP2_QUP3_I2C_APPS_CLK 119 | ||
137 | #define GCC_BLSP2_QUP3_SPI_APPS_CLK 120 | ||
138 | #define GCC_BLSP2_QUP4_I2C_APPS_CLK 121 | ||
139 | #define GCC_BLSP2_QUP4_SPI_APPS_CLK 122 | ||
140 | #define GCC_BLSP2_QUP5_I2C_APPS_CLK 123 | ||
141 | #define GCC_BLSP2_QUP5_SPI_APPS_CLK 124 | ||
142 | #define GCC_BLSP2_QUP6_I2C_APPS_CLK 125 | ||
143 | #define GCC_BLSP2_QUP6_SPI_APPS_CLK 126 | ||
144 | #define GCC_BLSP2_UART1_APPS_CLK 127 | ||
145 | #define GCC_BLSP2_UART1_SIM_CLK 128 | ||
146 | #define GCC_BLSP2_UART2_APPS_CLK 129 | ||
147 | #define GCC_BLSP2_UART2_SIM_CLK 130 | ||
148 | #define GCC_BLSP2_UART3_APPS_CLK 131 | ||
149 | #define GCC_BLSP2_UART3_SIM_CLK 132 | ||
150 | #define GCC_BLSP2_UART4_APPS_CLK 133 | ||
151 | #define GCC_BLSP2_UART4_SIM_CLK 134 | ||
152 | #define GCC_BLSP2_UART5_APPS_CLK 135 | ||
153 | #define GCC_BLSP2_UART5_SIM_CLK 136 | ||
154 | #define GCC_BLSP2_UART6_APPS_CLK 137 | ||
155 | #define GCC_BLSP2_UART6_SIM_CLK 138 | ||
156 | #define GCC_BOOT_ROM_AHB_CLK 139 | ||
157 | #define GCC_CE1_AHB_CLK 140 | ||
158 | #define GCC_CE1_AXI_CLK 141 | ||
159 | #define GCC_CE1_CLK 142 | ||
160 | #define GCC_CE2_AHB_CLK 143 | ||
161 | #define GCC_CE2_AXI_CLK 144 | ||
162 | #define GCC_CE2_CLK 145 | ||
163 | #define GCC_CNOC_BUS_TIMEOUT0_AHB_CLK 146 | ||
164 | #define GCC_CNOC_BUS_TIMEOUT1_AHB_CLK 147 | ||
165 | #define GCC_CNOC_BUS_TIMEOUT2_AHB_CLK 148 | ||
166 | #define GCC_CNOC_BUS_TIMEOUT3_AHB_CLK 149 | ||
167 | #define GCC_CNOC_BUS_TIMEOUT4_AHB_CLK 150 | ||
168 | #define GCC_CNOC_BUS_TIMEOUT5_AHB_CLK 151 | ||
169 | #define GCC_CNOC_BUS_TIMEOUT6_AHB_CLK 152 | ||
170 | #define GCC_CFG_NOC_AHB_CLK 153 | ||
171 | #define GCC_CFG_NOC_DDR_CFG_CLK 154 | ||
172 | #define GCC_CFG_NOC_RPM_AHB_CLK 155 | ||
173 | #define GCC_BIMC_DDR_CPLL0_CLK 156 | ||
174 | #define GCC_BIMC_DDR_CPLL1_CLK 157 | ||
175 | #define GCC_DDR_DIM_CFG_CLK 158 | ||
176 | #define GCC_DDR_DIM_SLEEP_CLK 159 | ||
177 | #define GCC_DEHR_CLK 160 | ||
178 | #define GCC_AHB_CLK 161 | ||
179 | #define GCC_IM_SLEEP_CLK 162 | ||
180 | #define GCC_XO_CLK 163 | ||
181 | #define GCC_XO_DIV4_CLK 164 | ||
182 | #define GCC_GP1_CLK 165 | ||
183 | #define GCC_GP2_CLK 166 | ||
184 | #define GCC_GP3_CLK 167 | ||
185 | #define GCC_IMEM_AXI_CLK 168 | ||
186 | #define GCC_IMEM_CFG_AHB_CLK 169 | ||
187 | #define GCC_KPSS_AHB_CLK 170 | ||
188 | #define GCC_KPSS_AXI_CLK 171 | ||
189 | #define GCC_LPASS_Q6_AXI_CLK 172 | ||
190 | #define GCC_MMSS_NOC_AT_CLK 173 | ||
191 | #define GCC_MMSS_NOC_CFG_AHB_CLK 174 | ||
192 | #define GCC_OCMEM_NOC_CFG_AHB_CLK 175 | ||
193 | #define GCC_OCMEM_SYS_NOC_AXI_CLK 176 | ||
194 | #define GCC_MPM_AHB_CLK 177 | ||
195 | #define GCC_MSG_RAM_AHB_CLK 178 | ||
196 | #define GCC_MSS_CFG_AHB_CLK 179 | ||
197 | #define GCC_MSS_Q6_BIMC_AXI_CLK 180 | ||
198 | #define GCC_NOC_CONF_XPU_AHB_CLK 181 | ||
199 | #define GCC_PDM2_CLK 182 | ||
200 | #define GCC_PDM_AHB_CLK 183 | ||
201 | #define GCC_PDM_XO4_CLK 184 | ||
202 | #define GCC_PERIPH_NOC_AHB_CLK 185 | ||
203 | #define GCC_PERIPH_NOC_AT_CLK 186 | ||
204 | #define GCC_PERIPH_NOC_CFG_AHB_CLK 187 | ||
205 | #define GCC_PERIPH_NOC_MPU_CFG_AHB_CLK 188 | ||
206 | #define GCC_PERIPH_XPU_AHB_CLK 189 | ||
207 | #define GCC_PNOC_BUS_TIMEOUT0_AHB_CLK 190 | ||
208 | #define GCC_PNOC_BUS_TIMEOUT1_AHB_CLK 191 | ||
209 | #define GCC_PNOC_BUS_TIMEOUT2_AHB_CLK 192 | ||
210 | #define GCC_PNOC_BUS_TIMEOUT3_AHB_CLK 193 | ||
211 | #define GCC_PNOC_BUS_TIMEOUT4_AHB_CLK 194 | ||
212 | #define GCC_PRNG_AHB_CLK 195 | ||
213 | #define GCC_QDSS_AT_CLK 196 | ||
214 | #define GCC_QDSS_CFG_AHB_CLK 197 | ||
215 | #define GCC_QDSS_DAP_AHB_CLK 198 | ||
216 | #define GCC_QDSS_DAP_CLK 199 | ||
217 | #define GCC_QDSS_ETR_USB_CLK 200 | ||
218 | #define GCC_QDSS_STM_CLK 201 | ||
219 | #define GCC_QDSS_TRACECLKIN_CLK 202 | ||
220 | #define GCC_QDSS_TSCTR_DIV16_CLK 203 | ||
221 | #define GCC_QDSS_TSCTR_DIV2_CLK 204 | ||
222 | #define GCC_QDSS_TSCTR_DIV3_CLK 205 | ||
223 | #define GCC_QDSS_TSCTR_DIV4_CLK 206 | ||
224 | #define GCC_QDSS_TSCTR_DIV8_CLK 207 | ||
225 | #define GCC_QDSS_RBCPR_XPU_AHB_CLK 208 | ||
226 | #define GCC_RBCPR_AHB_CLK 209 | ||
227 | #define GCC_RBCPR_CLK 210 | ||
228 | #define GCC_RPM_BUS_AHB_CLK 211 | ||
229 | #define GCC_RPM_PROC_HCLK 212 | ||
230 | #define GCC_RPM_SLEEP_CLK 213 | ||
231 | #define GCC_RPM_TIMER_CLK 214 | ||
232 | #define GCC_SDCC1_AHB_CLK 215 | ||
233 | #define GCC_SDCC1_APPS_CLK 216 | ||
234 | #define GCC_SDCC1_INACTIVITY_TIMERS_CLK 217 | ||
235 | #define GCC_SDCC2_AHB_CLK 218 | ||
236 | #define GCC_SDCC2_APPS_CLK 219 | ||
237 | #define GCC_SDCC2_INACTIVITY_TIMERS_CLK 220 | ||
238 | #define GCC_SDCC3_AHB_CLK 221 | ||
239 | #define GCC_SDCC3_APPS_CLK 222 | ||
240 | #define GCC_SDCC3_INACTIVITY_TIMERS_CLK 223 | ||
241 | #define GCC_SDCC4_AHB_CLK 224 | ||
242 | #define GCC_SDCC4_APPS_CLK 225 | ||
243 | #define GCC_SDCC4_INACTIVITY_TIMERS_CLK 226 | ||
244 | #define GCC_SEC_CTRL_ACC_CLK 227 | ||
245 | #define GCC_SEC_CTRL_AHB_CLK 228 | ||
246 | #define GCC_SEC_CTRL_BOOT_ROM_PATCH_CLK 229 | ||
247 | #define GCC_SEC_CTRL_CLK 230 | ||
248 | #define GCC_SEC_CTRL_SENSE_CLK 231 | ||
249 | #define GCC_SNOC_BUS_TIMEOUT0_AHB_CLK 232 | ||
250 | #define GCC_SNOC_BUS_TIMEOUT2_AHB_CLK 233 | ||
251 | #define GCC_SPDM_BIMC_CY_CLK 234 | ||
252 | #define GCC_SPDM_CFG_AHB_CLK 235 | ||
253 | #define GCC_SPDM_DEBUG_CY_CLK 236 | ||
254 | #define GCC_SPDM_FF_CLK 237 | ||
255 | #define GCC_SPDM_MSTR_AHB_CLK 238 | ||
256 | #define GCC_SPDM_PNOC_CY_CLK 239 | ||
257 | #define GCC_SPDM_RPM_CY_CLK 240 | ||
258 | #define GCC_SPDM_SNOC_CY_CLK 241 | ||
259 | #define GCC_SPMI_AHB_CLK 242 | ||
260 | #define GCC_SPMI_CNOC_AHB_CLK 243 | ||
261 | #define GCC_SPMI_SER_CLK 244 | ||
262 | #define GCC_SNOC_CNOC_AHB_CLK 245 | ||
263 | #define GCC_SNOC_PNOC_AHB_CLK 246 | ||
264 | #define GCC_SYS_NOC_AT_CLK 247 | ||
265 | #define GCC_SYS_NOC_AXI_CLK 248 | ||
266 | #define GCC_SYS_NOC_KPSS_AHB_CLK 249 | ||
267 | #define GCC_SYS_NOC_QDSS_STM_AXI_CLK 250 | ||
268 | #define GCC_SYS_NOC_USB3_AXI_CLK 251 | ||
269 | #define GCC_TCSR_AHB_CLK 252 | ||
270 | #define GCC_TLMM_AHB_CLK 253 | ||
271 | #define GCC_TLMM_CLK 254 | ||
272 | #define GCC_TSIF_AHB_CLK 255 | ||
273 | #define GCC_TSIF_INACTIVITY_TIMERS_CLK 256 | ||
274 | #define GCC_TSIF_REF_CLK 257 | ||
275 | #define GCC_USB2A_PHY_SLEEP_CLK 258 | ||
276 | #define GCC_USB2B_PHY_SLEEP_CLK 259 | ||
277 | #define GCC_USB30_MASTER_CLK 260 | ||
278 | #define GCC_USB30_MOCK_UTMI_CLK 261 | ||
279 | #define GCC_USB30_SLEEP_CLK 262 | ||
280 | #define GCC_USB_HS_AHB_CLK 263 | ||
281 | #define GCC_USB_HS_INACTIVITY_TIMERS_CLK 264 | ||
282 | #define GCC_USB_HS_SYSTEM_CLK 265 | ||
283 | #define GCC_USB_HSIC_AHB_CLK 266 | ||
284 | #define GCC_USB_HSIC_CLK 267 | ||
285 | #define GCC_USB_HSIC_IO_CAL_CLK 268 | ||
286 | #define GCC_USB_HSIC_IO_CAL_SLEEP_CLK 269 | ||
287 | #define GCC_USB_HSIC_SYSTEM_CLK 270 | ||
288 | #define GCC_WCSS_GPLL1_CLK_SRC 271 | ||
289 | #define GCC_MMSS_GPLL0_CLK_SRC 272 | ||
290 | #define GCC_LPASS_GPLL0_CLK_SRC 273 | ||
291 | #define GCC_WCSS_GPLL1_CLK_SRC_SLEEP_ENA 274 | ||
292 | #define GCC_MMSS_GPLL0_CLK_SRC_SLEEP_ENA 275 | ||
293 | #define GCC_LPASS_GPLL0_CLK_SRC_SLEEP_ENA 276 | ||
294 | #define GCC_IMEM_AXI_CLK_SLEEP_ENA 277 | ||
295 | #define GCC_SYS_NOC_KPSS_AHB_CLK_SLEEP_ENA 278 | ||
296 | #define GCC_BIMC_KPSS_AXI_CLK_SLEEP_ENA 279 | ||
297 | #define GCC_KPSS_AHB_CLK_SLEEP_ENA 280 | ||
298 | #define GCC_KPSS_AXI_CLK_SLEEP_ENA 281 | ||
299 | #define GCC_MPM_AHB_CLK_SLEEP_ENA 282 | ||
300 | #define GCC_OCMEM_SYS_NOC_AXI_CLK_SLEEP_ENA 283 | ||
301 | #define GCC_BLSP1_AHB_CLK_SLEEP_ENA 284 | ||
302 | #define GCC_BLSP1_SLEEP_CLK_SLEEP_ENA 285 | ||
303 | #define GCC_BLSP2_AHB_CLK_SLEEP_ENA 286 | ||
304 | #define GCC_BLSP2_SLEEP_CLK_SLEEP_ENA 287 | ||
305 | #define GCC_PRNG_AHB_CLK_SLEEP_ENA 288 | ||
306 | #define GCC_BAM_DMA_AHB_CLK_SLEEP_ENA 289 | ||
307 | #define GCC_BAM_DMA_INACTIVITY_TIMERS_CLK_SLEEP_ENA 290 | ||
308 | #define GCC_BOOT_ROM_AHB_CLK_SLEEP_ENA 291 | ||
309 | #define GCC_MSG_RAM_AHB_CLK_SLEEP_ENA 292 | ||
310 | #define GCC_TLMM_AHB_CLK_SLEEP_ENA 293 | ||
311 | #define GCC_TLMM_CLK_SLEEP_ENA 294 | ||
312 | #define GCC_SPMI_CNOC_AHB_CLK_SLEEP_ENA 295 | ||
313 | #define GCC_CE1_CLK_SLEEP_ENA 296 | ||
314 | #define GCC_CE1_AXI_CLK_SLEEP_ENA 297 | ||
315 | #define GCC_CE1_AHB_CLK_SLEEP_ENA 298 | ||
316 | #define GCC_CE2_CLK_SLEEP_ENA 299 | ||
317 | #define GCC_CE2_AXI_CLK_SLEEP_ENA 300 | ||
318 | #define GCC_CE2_AHB_CLK_SLEEP_ENA 301 | ||
319 | |||
320 | #endif | ||
diff --git a/include/dt-bindings/clock/qcom,mmcc-msm8960.h b/include/dt-bindings/clock/qcom,mmcc-msm8960.h new file mode 100644 index 000000000000..5868ef14a777 --- /dev/null +++ b/include/dt-bindings/clock/qcom,mmcc-msm8960.h | |||
@@ -0,0 +1,137 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2013, The Linux Foundation. All rights reserved. | ||
3 | * | ||
4 | * This software is licensed under the terms of the GNU General Public | ||
5 | * License version 2, as published by the Free Software Foundation, and | ||
6 | * may be copied, distributed, and modified under those terms. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | */ | ||
13 | |||
14 | #ifndef _DT_BINDINGS_CLK_MSM_MMCC_8960_H | ||
15 | #define _DT_BINDINGS_CLK_MSM_MMCC_8960_H | ||
16 | |||
17 | #define MMSS_AHB_SRC 0 | ||
18 | #define FAB_AHB_CLK 1 | ||
19 | #define APU_AHB_CLK 2 | ||
20 | #define TV_ENC_AHB_CLK 3 | ||
21 | #define AMP_AHB_CLK 4 | ||
22 | #define DSI2_S_AHB_CLK 5 | ||
23 | #define JPEGD_AHB_CLK 6 | ||
24 | #define GFX2D0_AHB_CLK 7 | ||
25 | #define DSI_S_AHB_CLK 8 | ||
26 | #define DSI2_M_AHB_CLK 9 | ||
27 | #define VPE_AHB_CLK 10 | ||
28 | #define SMMU_AHB_CLK 11 | ||
29 | #define HDMI_M_AHB_CLK 12 | ||
30 | #define VFE_AHB_CLK 13 | ||
31 | #define ROT_AHB_CLK 14 | ||
32 | #define VCODEC_AHB_CLK 15 | ||
33 | #define MDP_AHB_CLK 16 | ||
34 | #define DSI_M_AHB_CLK 17 | ||
35 | #define CSI_AHB_CLK 18 | ||
36 | #define MMSS_IMEM_AHB_CLK 19 | ||
37 | #define IJPEG_AHB_CLK 20 | ||
38 | #define HDMI_S_AHB_CLK 21 | ||
39 | #define GFX3D_AHB_CLK 22 | ||
40 | #define GFX2D1_AHB_CLK 23 | ||
41 | #define MMSS_FPB_CLK 24 | ||
42 | #define MMSS_AXI_SRC 25 | ||
43 | #define MMSS_FAB_CORE 26 | ||
44 | #define FAB_MSP_AXI_CLK 27 | ||
45 | #define JPEGD_AXI_CLK 28 | ||
46 | #define GMEM_AXI_CLK 29 | ||
47 | #define MDP_AXI_CLK 30 | ||
48 | #define MMSS_IMEM_AXI_CLK 31 | ||
49 | #define IJPEG_AXI_CLK 32 | ||
50 | #define GFX3D_AXI_CLK 33 | ||
51 | #define VCODEC_AXI_CLK 34 | ||
52 | #define VFE_AXI_CLK 35 | ||
53 | #define VPE_AXI_CLK 36 | ||
54 | #define ROT_AXI_CLK 37 | ||
55 | #define VCODEC_AXI_A_CLK 38 | ||
56 | #define VCODEC_AXI_B_CLK 39 | ||
57 | #define MM_AXI_S3_FCLK 40 | ||
58 | #define MM_AXI_S2_FCLK 41 | ||
59 | #define MM_AXI_S1_FCLK 42 | ||
60 | #define MM_AXI_S0_FCLK 43 | ||
61 | #define MM_AXI_S2_CLK 44 | ||
62 | #define MM_AXI_S1_CLK 45 | ||
63 | #define MM_AXI_S0_CLK 46 | ||
64 | #define CSI0_SRC 47 | ||
65 | #define CSI0_CLK 48 | ||
66 | #define CSI0_PHY_CLK 49 | ||
67 | #define CSI1_SRC 50 | ||
68 | #define CSI1_CLK 51 | ||
69 | #define CSI1_PHY_CLK 52 | ||
70 | #define CSI2_SRC 53 | ||
71 | #define CSI2_CLK 54 | ||
72 | #define CSI2_PHY_CLK 55 | ||
73 | #define DSI_SRC 56 | ||
74 | #define DSI_CLK 57 | ||
75 | #define CSI_PIX_CLK 58 | ||
76 | #define CSI_RDI_CLK 59 | ||
77 | #define MDP_VSYNC_CLK 60 | ||
78 | #define HDMI_DIV_CLK 61 | ||
79 | #define HDMI_APP_CLK 62 | ||
80 | #define CSI_PIX1_CLK 63 | ||
81 | #define CSI_RDI2_CLK 64 | ||
82 | #define CSI_RDI1_CLK 65 | ||
83 | #define GFX2D0_SRC 66 | ||
84 | #define GFX2D0_CLK 67 | ||
85 | #define GFX2D1_SRC 68 | ||
86 | #define GFX2D1_CLK 69 | ||
87 | #define GFX3D_SRC 70 | ||
88 | #define GFX3D_CLK 71 | ||
89 | #define IJPEG_SRC 72 | ||
90 | #define IJPEG_CLK 73 | ||
91 | #define JPEGD_SRC 74 | ||
92 | #define JPEGD_CLK 75 | ||
93 | #define MDP_SRC 76 | ||
94 | #define MDP_CLK 77 | ||
95 | #define MDP_LUT_CLK 78 | ||
96 | #define DSI2_PIXEL_SRC 79 | ||
97 | #define DSI2_PIXEL_CLK 80 | ||
98 | #define DSI2_SRC 81 | ||
99 | #define DSI2_CLK 82 | ||
100 | #define DSI1_BYTE_SRC 83 | ||
101 | #define DSI1_BYTE_CLK 84 | ||
102 | #define DSI2_BYTE_SRC 85 | ||
103 | #define DSI2_BYTE_CLK 86 | ||
104 | #define DSI1_ESC_SRC 87 | ||
105 | #define DSI1_ESC_CLK 88 | ||
106 | #define DSI2_ESC_SRC 89 | ||
107 | #define DSI2_ESC_CLK 90 | ||
108 | #define ROT_SRC 91 | ||
109 | #define ROT_CLK 92 | ||
110 | #define TV_ENC_CLK 93 | ||
111 | #define TV_DAC_CLK 94 | ||
112 | #define HDMI_TV_CLK 95 | ||
113 | #define MDP_TV_CLK 96 | ||
114 | #define TV_SRC 97 | ||
115 | #define VCODEC_SRC 98 | ||
116 | #define VCODEC_CLK 99 | ||
117 | #define VFE_SRC 100 | ||
118 | #define VFE_CLK 101 | ||
119 | #define VFE_CSI_CLK 102 | ||
120 | #define VPE_SRC 103 | ||
121 | #define VPE_CLK 104 | ||
122 | #define DSI_PIXEL_SRC 105 | ||
123 | #define DSI_PIXEL_CLK 106 | ||
124 | #define CAMCLK0_SRC 107 | ||
125 | #define CAMCLK0_CLK 108 | ||
126 | #define CAMCLK1_SRC 109 | ||
127 | #define CAMCLK1_CLK 110 | ||
128 | #define CAMCLK2_SRC 111 | ||
129 | #define CAMCLK2_CLK 112 | ||
130 | #define CSIPHYTIMER_SRC 113 | ||
131 | #define CSIPHY2_TIMER_CLK 114 | ||
132 | #define CSIPHY1_TIMER_CLK 115 | ||
133 | #define CSIPHY0_TIMER_CLK 116 | ||
134 | #define PLL1 117 | ||
135 | #define PLL2 118 | ||
136 | |||
137 | #endif | ||
diff --git a/include/dt-bindings/clock/qcom,mmcc-msm8974.h b/include/dt-bindings/clock/qcom,mmcc-msm8974.h new file mode 100644 index 000000000000..04d318d1187a --- /dev/null +++ b/include/dt-bindings/clock/qcom,mmcc-msm8974.h | |||
@@ -0,0 +1,161 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2013, The Linux Foundation. All rights reserved. | ||
3 | * | ||
4 | * This software is licensed under the terms of the GNU General Public | ||
5 | * License version 2, as published by the Free Software Foundation, and | ||
6 | * may be copied, distributed, and modified under those terms. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | */ | ||
13 | |||
14 | #ifndef _DT_BINDINGS_CLK_MSM_MMCC_8974_H | ||
15 | #define _DT_BINDINGS_CLK_MSM_MMCC_8974_H | ||
16 | |||
17 | #define MMSS_AHB_CLK_SRC 0 | ||
18 | #define MMSS_AXI_CLK_SRC 1 | ||
19 | #define MMPLL0 2 | ||
20 | #define MMPLL0_VOTE 3 | ||
21 | #define MMPLL1 4 | ||
22 | #define MMPLL1_VOTE 5 | ||
23 | #define MMPLL2 6 | ||
24 | #define MMPLL3 7 | ||
25 | #define CSI0_CLK_SRC 8 | ||
26 | #define CSI1_CLK_SRC 9 | ||
27 | #define CSI2_CLK_SRC 10 | ||
28 | #define CSI3_CLK_SRC 11 | ||
29 | #define VFE0_CLK_SRC 12 | ||
30 | #define VFE1_CLK_SRC 13 | ||
31 | #define MDP_CLK_SRC 14 | ||
32 | #define GFX3D_CLK_SRC 15 | ||
33 | #define JPEG0_CLK_SRC 16 | ||
34 | #define JPEG1_CLK_SRC 17 | ||
35 | #define JPEG2_CLK_SRC 18 | ||
36 | #define PCLK0_CLK_SRC 19 | ||
37 | #define PCLK1_CLK_SRC 20 | ||
38 | #define VCODEC0_CLK_SRC 21 | ||
39 | #define CCI_CLK_SRC 22 | ||
40 | #define CAMSS_GP0_CLK_SRC 23 | ||
41 | #define CAMSS_GP1_CLK_SRC 24 | ||
42 | #define MCLK0_CLK_SRC 25 | ||
43 | #define MCLK1_CLK_SRC 26 | ||
44 | #define MCLK2_CLK_SRC 27 | ||
45 | #define MCLK3_CLK_SRC 28 | ||
46 | #define CSI0PHYTIMER_CLK_SRC 29 | ||
47 | #define CSI1PHYTIMER_CLK_SRC 30 | ||
48 | #define CSI2PHYTIMER_CLK_SRC 31 | ||
49 | #define CPP_CLK_SRC 32 | ||
50 | #define BYTE0_CLK_SRC 33 | ||
51 | #define BYTE1_CLK_SRC 34 | ||
52 | #define EDPAUX_CLK_SRC 35 | ||
53 | #define EDPLINK_CLK_SRC 36 | ||
54 | #define EDPPIXEL_CLK_SRC 37 | ||
55 | #define ESC0_CLK_SRC 38 | ||
56 | #define ESC1_CLK_SRC 39 | ||
57 | #define EXTPCLK_CLK_SRC 40 | ||
58 | #define HDMI_CLK_SRC 41 | ||
59 | #define VSYNC_CLK_SRC 42 | ||
60 | #define RBCPR_CLK_SRC 43 | ||
61 | #define CAMSS_CCI_CCI_AHB_CLK 44 | ||
62 | #define CAMSS_CCI_CCI_CLK 45 | ||
63 | #define CAMSS_CSI0_AHB_CLK 46 | ||
64 | #define CAMSS_CSI0_CLK 47 | ||
65 | #define CAMSS_CSI0PHY_CLK 48 | ||
66 | #define CAMSS_CSI0PIX_CLK 49 | ||
67 | #define CAMSS_CSI0RDI_CLK 50 | ||
68 | #define CAMSS_CSI1_AHB_CLK 51 | ||
69 | #define CAMSS_CSI1_CLK 52 | ||
70 | #define CAMSS_CSI1PHY_CLK 53 | ||
71 | #define CAMSS_CSI1PIX_CLK 54 | ||
72 | #define CAMSS_CSI1RDI_CLK 55 | ||
73 | #define CAMSS_CSI2_AHB_CLK 56 | ||
74 | #define CAMSS_CSI2_CLK 57 | ||
75 | #define CAMSS_CSI2PHY_CLK 58 | ||
76 | #define CAMSS_CSI2PIX_CLK 59 | ||
77 | #define CAMSS_CSI2RDI_CLK 60 | ||
78 | #define CAMSS_CSI3_AHB_CLK 61 | ||
79 | #define CAMSS_CSI3_CLK 62 | ||
80 | #define CAMSS_CSI3PHY_CLK 63 | ||
81 | #define CAMSS_CSI3PIX_CLK 64 | ||
82 | #define CAMSS_CSI3RDI_CLK 65 | ||
83 | #define CAMSS_CSI_VFE0_CLK 66 | ||
84 | #define CAMSS_CSI_VFE1_CLK 67 | ||
85 | #define CAMSS_GP0_CLK 68 | ||
86 | #define CAMSS_GP1_CLK 69 | ||
87 | #define CAMSS_ISPIF_AHB_CLK 70 | ||
88 | #define CAMSS_JPEG_JPEG0_CLK 71 | ||
89 | #define CAMSS_JPEG_JPEG1_CLK 72 | ||
90 | #define CAMSS_JPEG_JPEG2_CLK 73 | ||
91 | #define CAMSS_JPEG_JPEG_AHB_CLK 74 | ||
92 | #define CAMSS_JPEG_JPEG_AXI_CLK 75 | ||
93 | #define CAMSS_JPEG_JPEG_OCMEMNOC_CLK 76 | ||
94 | #define CAMSS_MCLK0_CLK 77 | ||
95 | #define CAMSS_MCLK1_CLK 78 | ||
96 | #define CAMSS_MCLK2_CLK 79 | ||
97 | #define CAMSS_MCLK3_CLK 80 | ||
98 | #define CAMSS_MICRO_AHB_CLK 81 | ||
99 | #define CAMSS_PHY0_CSI0PHYTIMER_CLK 82 | ||
100 | #define CAMSS_PHY1_CSI1PHYTIMER_CLK 83 | ||
101 | #define CAMSS_PHY2_CSI2PHYTIMER_CLK 84 | ||
102 | #define CAMSS_TOP_AHB_CLK 85 | ||
103 | #define CAMSS_VFE_CPP_AHB_CLK 86 | ||
104 | #define CAMSS_VFE_CPP_CLK 87 | ||
105 | #define CAMSS_VFE_VFE0_CLK 88 | ||
106 | #define CAMSS_VFE_VFE1_CLK 89 | ||
107 | #define CAMSS_VFE_VFE_AHB_CLK 90 | ||
108 | #define CAMSS_VFE_VFE_AXI_CLK 91 | ||
109 | #define CAMSS_VFE_VFE_OCMEMNOC_CLK 92 | ||
110 | #define MDSS_AHB_CLK 93 | ||
111 | #define MDSS_AXI_CLK 94 | ||
112 | #define MDSS_BYTE0_CLK 95 | ||
113 | #define MDSS_BYTE1_CLK 96 | ||
114 | #define MDSS_EDPAUX_CLK 97 | ||
115 | #define MDSS_EDPLINK_CLK 98 | ||
116 | #define MDSS_EDPPIXEL_CLK 99 | ||
117 | #define MDSS_ESC0_CLK 100 | ||
118 | #define MDSS_ESC1_CLK 101 | ||
119 | #define MDSS_EXTPCLK_CLK 102 | ||
120 | #define MDSS_HDMI_AHB_CLK 103 | ||
121 | #define MDSS_HDMI_CLK 104 | ||
122 | #define MDSS_MDP_CLK 105 | ||
123 | #define MDSS_MDP_LUT_CLK 106 | ||
124 | #define MDSS_PCLK0_CLK 107 | ||
125 | #define MDSS_PCLK1_CLK 108 | ||
126 | #define MDSS_VSYNC_CLK 109 | ||
127 | #define MMSS_MISC_AHB_CLK 110 | ||
128 | #define MMSS_MMSSNOC_AHB_CLK 111 | ||
129 | #define MMSS_MMSSNOC_BTO_AHB_CLK 112 | ||
130 | #define MMSS_MMSSNOC_AXI_CLK 113 | ||
131 | #define MMSS_S0_AXI_CLK 114 | ||
132 | #define OCMEMCX_AHB_CLK 115 | ||
133 | #define OCMEMCX_OCMEMNOC_CLK 116 | ||
134 | #define OXILI_OCMEMGX_CLK 117 | ||
135 | #define OCMEMNOC_CLK 118 | ||
136 | #define OXILI_GFX3D_CLK 119 | ||
137 | #define OXILICX_AHB_CLK 120 | ||
138 | #define OXILICX_AXI_CLK 121 | ||
139 | #define VENUS0_AHB_CLK 122 | ||
140 | #define VENUS0_AXI_CLK 123 | ||
141 | #define VENUS0_OCMEMNOC_CLK 124 | ||
142 | #define VENUS0_VCODEC0_CLK 125 | ||
143 | #define OCMEMNOC_CLK_SRC 126 | ||
144 | #define SPDM_JPEG0 127 | ||
145 | #define SPDM_JPEG1 128 | ||
146 | #define SPDM_MDP 129 | ||
147 | #define SPDM_AXI 130 | ||
148 | #define SPDM_VCODEC0 131 | ||
149 | #define SPDM_VFE0 132 | ||
150 | #define SPDM_VFE1 133 | ||
151 | #define SPDM_JPEG2 134 | ||
152 | #define SPDM_PCLK1 135 | ||
153 | #define SPDM_GFX3D 136 | ||
154 | #define SPDM_AHB 137 | ||
155 | #define SPDM_PCLK0 138 | ||
156 | #define SPDM_OCMEMNOC 139 | ||
157 | #define SPDM_CSI0 140 | ||
158 | #define SPDM_RM_AXI 141 | ||
159 | #define SPDM_RM_OCMEMNOC 142 | ||
160 | |||
161 | #endif | ||
diff --git a/include/dt-bindings/reset/qcom,gcc-msm8660.h b/include/dt-bindings/reset/qcom,gcc-msm8660.h new file mode 100644 index 000000000000..a83282fe5465 --- /dev/null +++ b/include/dt-bindings/reset/qcom,gcc-msm8660.h | |||
@@ -0,0 +1,134 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2013, The Linux Foundation. All rights reserved. | ||
3 | * | ||
4 | * This software is licensed under the terms of the GNU General Public | ||
5 | * License version 2, as published by the Free Software Foundation, and | ||
6 | * may be copied, distributed, and modified under those terms. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | */ | ||
13 | |||
14 | #ifndef _DT_BINDINGS_RESET_MSM_GCC_8660_H | ||
15 | #define _DT_BINDINGS_RESET_MSM_GCC_8660_H | ||
16 | |||
17 | #define AFAB_CORE_RESET 0 | ||
18 | #define SCSS_SYS_RESET 1 | ||
19 | #define SCSS_SYS_POR_RESET 2 | ||
20 | #define AFAB_SMPSS_S_RESET 3 | ||
21 | #define AFAB_SMPSS_M1_RESET 4 | ||
22 | #define AFAB_SMPSS_M0_RESET 5 | ||
23 | #define AFAB_EBI1_S_RESET 6 | ||
24 | #define SFAB_CORE_RESET 7 | ||
25 | #define SFAB_ADM0_M0_RESET 8 | ||
26 | #define SFAB_ADM0_M1_RESET 9 | ||
27 | #define SFAB_ADM0_M2_RESET 10 | ||
28 | #define ADM0_C2_RESET 11 | ||
29 | #define ADM0_C1_RESET 12 | ||
30 | #define ADM0_C0_RESET 13 | ||
31 | #define ADM0_PBUS_RESET 14 | ||
32 | #define ADM0_RESET 15 | ||
33 | #define SFAB_ADM1_M0_RESET 16 | ||
34 | #define SFAB_ADM1_M1_RESET 17 | ||
35 | #define SFAB_ADM1_M2_RESET 18 | ||
36 | #define MMFAB_ADM1_M3_RESET 19 | ||
37 | #define ADM1_C3_RESET 20 | ||
38 | #define ADM1_C2_RESET 21 | ||
39 | #define ADM1_C1_RESET 22 | ||
40 | #define ADM1_C0_RESET 23 | ||
41 | #define ADM1_PBUS_RESET 24 | ||
42 | #define ADM1_RESET 25 | ||
43 | #define IMEM0_RESET 26 | ||
44 | #define SFAB_LPASS_Q6_RESET 27 | ||
45 | #define SFAB_AFAB_M_RESET 28 | ||
46 | #define AFAB_SFAB_M0_RESET 29 | ||
47 | #define AFAB_SFAB_M1_RESET 30 | ||
48 | #define DFAB_CORE_RESET 31 | ||
49 | #define SFAB_DFAB_M_RESET 32 | ||
50 | #define DFAB_SFAB_M_RESET 33 | ||
51 | #define DFAB_SWAY0_RESET 34 | ||
52 | #define DFAB_SWAY1_RESET 35 | ||
53 | #define DFAB_ARB0_RESET 36 | ||
54 | #define DFAB_ARB1_RESET 37 | ||
55 | #define PPSS_PROC_RESET 38 | ||
56 | #define PPSS_RESET 39 | ||
57 | #define PMEM_RESET 40 | ||
58 | #define DMA_BAM_RESET 41 | ||
59 | #define SIC_RESET 42 | ||
60 | #define SPS_TIC_RESET 43 | ||
61 | #define CFBP0_RESET 44 | ||
62 | #define CFBP1_RESET 45 | ||
63 | #define CFBP2_RESET 46 | ||
64 | #define EBI2_RESET 47 | ||
65 | #define SFAB_CFPB_M_RESET 48 | ||
66 | #define CFPB_MASTER_RESET 49 | ||
67 | #define SFAB_CFPB_S_RESET 50 | ||
68 | #define CFPB_SPLITTER_RESET 51 | ||
69 | #define TSIF_RESET 52 | ||
70 | #define CE1_RESET 53 | ||
71 | #define CE2_RESET 54 | ||
72 | #define SFAB_SFPB_M_RESET 55 | ||
73 | #define SFAB_SFPB_S_RESET 56 | ||
74 | #define RPM_PROC_RESET 57 | ||
75 | #define RPM_BUS_RESET 58 | ||
76 | #define RPM_MSG_RAM_RESET 59 | ||
77 | #define PMIC_ARB0_RESET 60 | ||
78 | #define PMIC_ARB1_RESET 61 | ||
79 | #define PMIC_SSBI2_RESET 62 | ||
80 | #define SDC1_RESET 63 | ||
81 | #define SDC2_RESET 64 | ||
82 | #define SDC3_RESET 65 | ||
83 | #define SDC4_RESET 66 | ||
84 | #define SDC5_RESET 67 | ||
85 | #define USB_HS1_RESET 68 | ||
86 | #define USB_HS2_XCVR_RESET 69 | ||
87 | #define USB_HS2_RESET 70 | ||
88 | #define USB_FS1_XCVR_RESET 71 | ||
89 | #define USB_FS1_RESET 72 | ||
90 | #define USB_FS2_XCVR_RESET 73 | ||
91 | #define USB_FS2_RESET 74 | ||
92 | #define GSBI1_RESET 75 | ||
93 | #define GSBI2_RESET 76 | ||
94 | #define GSBI3_RESET 77 | ||
95 | #define GSBI4_RESET 78 | ||
96 | #define GSBI5_RESET 79 | ||
97 | #define GSBI6_RESET 80 | ||
98 | #define GSBI7_RESET 81 | ||
99 | #define GSBI8_RESET 82 | ||
100 | #define GSBI9_RESET 83 | ||
101 | #define GSBI10_RESET 84 | ||
102 | #define GSBI11_RESET 85 | ||
103 | #define GSBI12_RESET 86 | ||
104 | #define SPDM_RESET 87 | ||
105 | #define SEC_CTRL_RESET 88 | ||
106 | #define TLMM_H_RESET 89 | ||
107 | #define TLMM_RESET 90 | ||
108 | #define MARRM_PWRON_RESET 91 | ||
109 | #define MARM_RESET 92 | ||
110 | #define MAHB1_RESET 93 | ||
111 | #define SFAB_MSS_S_RESET 94 | ||
112 | #define MAHB2_RESET 95 | ||
113 | #define MODEM_SW_AHB_RESET 96 | ||
114 | #define MODEM_RESET 97 | ||
115 | #define SFAB_MSS_MDM1_RESET 98 | ||
116 | #define SFAB_MSS_MDM0_RESET 99 | ||
117 | #define MSS_SLP_RESET 100 | ||
118 | #define MSS_MARM_SAW_RESET 101 | ||
119 | #define MSS_WDOG_RESET 102 | ||
120 | #define TSSC_RESET 103 | ||
121 | #define PDM_RESET 104 | ||
122 | #define SCSS_CORE0_RESET 105 | ||
123 | #define SCSS_CORE0_POR_RESET 106 | ||
124 | #define SCSS_CORE1_RESET 107 | ||
125 | #define SCSS_CORE1_POR_RESET 108 | ||
126 | #define MPM_RESET 109 | ||
127 | #define EBI1_1X_DIV_RESET 110 | ||
128 | #define EBI1_RESET 111 | ||
129 | #define SFAB_SMPSS_S_RESET 112 | ||
130 | #define USB_PHY0_RESET 113 | ||
131 | #define USB_PHY1_RESET 114 | ||
132 | #define PRNG_RESET 115 | ||
133 | |||
134 | #endif | ||
diff --git a/include/dt-bindings/reset/qcom,gcc-msm8960.h b/include/dt-bindings/reset/qcom,gcc-msm8960.h new file mode 100644 index 000000000000..a840e680323c --- /dev/null +++ b/include/dt-bindings/reset/qcom,gcc-msm8960.h | |||
@@ -0,0 +1,118 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2013, The Linux Foundation. All rights reserved. | ||
3 | * | ||
4 | * This software is licensed under the terms of the GNU General Public | ||
5 | * License version 2, as published by the Free Software Foundation, and | ||
6 | * may be copied, distributed, and modified under those terms. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | */ | ||
13 | |||
14 | #ifndef _DT_BINDINGS_RESET_MSM_GCC_8960_H | ||
15 | #define _DT_BINDINGS_RESET_MSM_GCC_8960_H | ||
16 | |||
17 | #define SFAB_MSS_Q6_SW_RESET 0 | ||
18 | #define SFAB_MSS_Q6_FW_RESET 1 | ||
19 | #define QDSS_STM_RESET 2 | ||
20 | #define AFAB_SMPSS_S_RESET 3 | ||
21 | #define AFAB_SMPSS_M1_RESET 4 | ||
22 | #define AFAB_SMPSS_M0_RESET 5 | ||
23 | #define AFAB_EBI1_CH0_RESET 6 | ||
24 | #define AFAB_EBI1_CH1_RESET 7 | ||
25 | #define SFAB_ADM0_M0_RESET 8 | ||
26 | #define SFAB_ADM0_M1_RESET 9 | ||
27 | #define SFAB_ADM0_M2_RESET 10 | ||
28 | #define ADM0_C2_RESET 11 | ||
29 | #define ADM0_C1_RESET 12 | ||
30 | #define ADM0_C0_RESET 13 | ||
31 | #define ADM0_PBUS_RESET 14 | ||
32 | #define ADM0_RESET 15 | ||
33 | #define QDSS_CLKS_SW_RESET 16 | ||
34 | #define QDSS_POR_RESET 17 | ||
35 | #define QDSS_TSCTR_RESET 18 | ||
36 | #define QDSS_HRESET_RESET 19 | ||
37 | #define QDSS_AXI_RESET 20 | ||
38 | #define QDSS_DBG_RESET 21 | ||
39 | #define PCIE_A_RESET 22 | ||
40 | #define PCIE_AUX_RESET 23 | ||
41 | #define PCIE_H_RESET 24 | ||
42 | #define SFAB_PCIE_M_RESET 25 | ||
43 | #define SFAB_PCIE_S_RESET 26 | ||
44 | #define SFAB_MSS_M_RESET 27 | ||
45 | #define SFAB_USB3_M_RESET 28 | ||
46 | #define SFAB_RIVA_M_RESET 29 | ||
47 | #define SFAB_LPASS_RESET 30 | ||
48 | #define SFAB_AFAB_M_RESET 31 | ||
49 | #define AFAB_SFAB_M0_RESET 32 | ||
50 | #define AFAB_SFAB_M1_RESET 33 | ||
51 | #define SFAB_SATA_S_RESET 34 | ||
52 | #define SFAB_DFAB_M_RESET 35 | ||
53 | #define DFAB_SFAB_M_RESET 36 | ||
54 | #define DFAB_SWAY0_RESET 37 | ||
55 | #define DFAB_SWAY1_RESET 38 | ||
56 | #define DFAB_ARB0_RESET 39 | ||
57 | #define DFAB_ARB1_RESET 40 | ||
58 | #define PPSS_PROC_RESET 41 | ||
59 | #define PPSS_RESET 42 | ||
60 | #define DMA_BAM_RESET 43 | ||
61 | #define SIC_TIC_RESET 44 | ||
62 | #define SLIMBUS_H_RESET 45 | ||
63 | #define SFAB_CFPB_M_RESET 46 | ||
64 | #define SFAB_CFPB_S_RESET 47 | ||
65 | #define TSIF_H_RESET 48 | ||
66 | #define CE1_H_RESET 49 | ||
67 | #define CE1_CORE_RESET 50 | ||
68 | #define CE1_SLEEP_RESET 51 | ||
69 | #define CE2_H_RESET 52 | ||
70 | #define CE2_CORE_RESET 53 | ||
71 | #define SFAB_SFPB_M_RESET 54 | ||
72 | #define SFAB_SFPB_S_RESET 55 | ||
73 | #define RPM_PROC_RESET 56 | ||
74 | #define PMIC_SSBI2_RESET 57 | ||
75 | #define SDC1_RESET 58 | ||
76 | #define SDC2_RESET 59 | ||
77 | #define SDC3_RESET 60 | ||
78 | #define SDC4_RESET 61 | ||
79 | #define SDC5_RESET 62 | ||
80 | #define DFAB_A2_RESET 63 | ||
81 | #define USB_HS1_RESET 64 | ||
82 | #define USB_HSIC_RESET 65 | ||
83 | #define USB_FS1_XCVR_RESET 66 | ||
84 | #define USB_FS1_RESET 67 | ||
85 | #define USB_FS2_XCVR_RESET 68 | ||
86 | #define USB_FS2_RESET 69 | ||
87 | #define GSBI1_RESET 70 | ||
88 | #define GSBI2_RESET 71 | ||
89 | #define GSBI3_RESET 72 | ||
90 | #define GSBI4_RESET 73 | ||
91 | #define GSBI5_RESET 74 | ||
92 | #define GSBI6_RESET 75 | ||
93 | #define GSBI7_RESET 76 | ||
94 | #define GSBI8_RESET 77 | ||
95 | #define GSBI9_RESET 78 | ||
96 | #define GSBI10_RESET 79 | ||
97 | #define GSBI11_RESET 80 | ||
98 | #define GSBI12_RESET 81 | ||
99 | #define SPDM_RESET 82 | ||
100 | #define TLMM_H_RESET 83 | ||
101 | #define SFAB_MSS_S_RESET 84 | ||
102 | #define MSS_SLP_RESET 85 | ||
103 | #define MSS_Q6SW_JTAG_RESET 86 | ||
104 | #define MSS_Q6FW_JTAG_RESET 87 | ||
105 | #define MSS_RESET 88 | ||
106 | #define SATA_H_RESET 89 | ||
107 | #define SATA_RXOOB_RESE 90 | ||
108 | #define SATA_PMALIVE_RESET 91 | ||
109 | #define SATA_SFAB_M_RESET 92 | ||
110 | #define TSSC_RESET 93 | ||
111 | #define PDM_RESET 94 | ||
112 | #define MPM_H_RESET 95 | ||
113 | #define MPM_RESET 96 | ||
114 | #define SFAB_SMPSS_S_RESET 97 | ||
115 | #define PRNG_RESET 98 | ||
116 | #define RIVA_RESET 99 | ||
117 | |||
118 | #endif | ||
diff --git a/include/dt-bindings/reset/qcom,gcc-msm8974.h b/include/dt-bindings/reset/qcom,gcc-msm8974.h new file mode 100644 index 000000000000..9bdf54322938 --- /dev/null +++ b/include/dt-bindings/reset/qcom,gcc-msm8974.h | |||
@@ -0,0 +1,96 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2013, The Linux Foundation. All rights reserved. | ||
3 | * | ||
4 | * This software is licensed under the terms of the GNU General Public | ||
5 | * License version 2, as published by the Free Software Foundation, and | ||
6 | * may be copied, distributed, and modified under those terms. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | */ | ||
13 | |||
14 | #ifndef _DT_BINDINGS_RESET_MSM_GCC_8974_H | ||
15 | #define _DT_BINDINGS_RESET_MSM_GCC_8974_H | ||
16 | |||
17 | #define GCC_SYSTEM_NOC_BCR 0 | ||
18 | #define GCC_CONFIG_NOC_BCR 1 | ||
19 | #define GCC_PERIPH_NOC_BCR 2 | ||
20 | #define GCC_IMEM_BCR 3 | ||
21 | #define GCC_MMSS_BCR 4 | ||
22 | #define GCC_QDSS_BCR 5 | ||
23 | #define GCC_USB_30_BCR 6 | ||
24 | #define GCC_USB3_PHY_BCR 7 | ||
25 | #define GCC_USB_HS_HSIC_BCR 8 | ||
26 | #define GCC_USB_HS_BCR 9 | ||
27 | #define GCC_USB2A_PHY_BCR 10 | ||
28 | #define GCC_USB2B_PHY_BCR 11 | ||
29 | #define GCC_SDCC1_BCR 12 | ||
30 | #define GCC_SDCC2_BCR 13 | ||
31 | #define GCC_SDCC3_BCR 14 | ||
32 | #define GCC_SDCC4_BCR 15 | ||
33 | #define GCC_BLSP1_BCR 16 | ||
34 | #define GCC_BLSP1_QUP1_BCR 17 | ||
35 | #define GCC_BLSP1_UART1_BCR 18 | ||
36 | #define GCC_BLSP1_QUP2_BCR 19 | ||
37 | #define GCC_BLSP1_UART2_BCR 20 | ||
38 | #define GCC_BLSP1_QUP3_BCR 21 | ||
39 | #define GCC_BLSP1_UART3_BCR 22 | ||
40 | #define GCC_BLSP1_QUP4_BCR 23 | ||
41 | #define GCC_BLSP1_UART4_BCR 24 | ||
42 | #define GCC_BLSP1_QUP5_BCR 25 | ||
43 | #define GCC_BLSP1_UART5_BCR 26 | ||
44 | #define GCC_BLSP1_QUP6_BCR 27 | ||
45 | #define GCC_BLSP1_UART6_BCR 28 | ||
46 | #define GCC_BLSP2_BCR 29 | ||
47 | #define GCC_BLSP2_QUP1_BCR 30 | ||
48 | #define GCC_BLSP2_UART1_BCR 31 | ||
49 | #define GCC_BLSP2_QUP2_BCR 32 | ||
50 | #define GCC_BLSP2_UART2_BCR 33 | ||
51 | #define GCC_BLSP2_QUP3_BCR 34 | ||
52 | #define GCC_BLSP2_UART3_BCR 35 | ||
53 | #define GCC_BLSP2_QUP4_BCR 36 | ||
54 | #define GCC_BLSP2_UART4_BCR 37 | ||
55 | #define GCC_BLSP2_QUP5_BCR 38 | ||
56 | #define GCC_BLSP2_UART5_BCR 39 | ||
57 | #define GCC_BLSP2_QUP6_BCR 40 | ||
58 | #define GCC_BLSP2_UART6_BCR 41 | ||
59 | #define GCC_PDM_BCR 42 | ||
60 | #define GCC_BAM_DMA_BCR 43 | ||
61 | #define GCC_TSIF_BCR 44 | ||
62 | #define GCC_TCSR_BCR 45 | ||
63 | #define GCC_BOOT_ROM_BCR 46 | ||
64 | #define GCC_MSG_RAM_BCR 47 | ||
65 | #define GCC_TLMM_BCR 48 | ||
66 | #define GCC_MPM_BCR 49 | ||
67 | #define GCC_SEC_CTRL_BCR 50 | ||
68 | #define GCC_SPMI_BCR 51 | ||
69 | #define GCC_SPDM_BCR 52 | ||
70 | #define GCC_CE1_BCR 53 | ||
71 | #define GCC_CE2_BCR 54 | ||
72 | #define GCC_BIMC_BCR 55 | ||
73 | #define GCC_MPM_NON_AHB_RESET 56 | ||
74 | #define GCC_MPM_AHB_RESET 57 | ||
75 | #define GCC_SNOC_BUS_TIMEOUT0_BCR 58 | ||
76 | #define GCC_SNOC_BUS_TIMEOUT2_BCR 59 | ||
77 | #define GCC_PNOC_BUS_TIMEOUT0_BCR 60 | ||
78 | #define GCC_PNOC_BUS_TIMEOUT1_BCR 61 | ||
79 | #define GCC_PNOC_BUS_TIMEOUT2_BCR 62 | ||
80 | #define GCC_PNOC_BUS_TIMEOUT3_BCR 63 | ||
81 | #define GCC_PNOC_BUS_TIMEOUT4_BCR 64 | ||
82 | #define GCC_CNOC_BUS_TIMEOUT0_BCR 65 | ||
83 | #define GCC_CNOC_BUS_TIMEOUT1_BCR 66 | ||
84 | #define GCC_CNOC_BUS_TIMEOUT2_BCR 67 | ||
85 | #define GCC_CNOC_BUS_TIMEOUT3_BCR 68 | ||
86 | #define GCC_CNOC_BUS_TIMEOUT4_BCR 69 | ||
87 | #define GCC_CNOC_BUS_TIMEOUT5_BCR 70 | ||
88 | #define GCC_CNOC_BUS_TIMEOUT6_BCR 71 | ||
89 | #define GCC_DEHR_BCR 72 | ||
90 | #define GCC_RBCPR_BCR 73 | ||
91 | #define GCC_MSS_RESTART 74 | ||
92 | #define GCC_LPASS_RESTART 75 | ||
93 | #define GCC_WCSS_RESTART 76 | ||
94 | #define GCC_VENUS_RESTART 77 | ||
95 | |||
96 | #endif | ||
diff --git a/include/dt-bindings/reset/qcom,mmcc-msm8960.h b/include/dt-bindings/reset/qcom,mmcc-msm8960.h new file mode 100644 index 000000000000..ba36ec680118 --- /dev/null +++ b/include/dt-bindings/reset/qcom,mmcc-msm8960.h | |||
@@ -0,0 +1,93 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2013, The Linux Foundation. All rights reserved. | ||
3 | * | ||
4 | * This software is licensed under the terms of the GNU General Public | ||
5 | * License version 2, as published by the Free Software Foundation, and | ||
6 | * may be copied, distributed, and modified under those terms. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | */ | ||
13 | |||
14 | #ifndef _DT_BINDINGS_RESET_MSM_MMCC_8960_H | ||
15 | #define _DT_BINDINGS_RESET_MSM_MMCC_8960_H | ||
16 | |||
17 | #define VPE_AXI_RESET 0 | ||
18 | #define IJPEG_AXI_RESET 1 | ||
19 | #define MPD_AXI_RESET 2 | ||
20 | #define VFE_AXI_RESET 3 | ||
21 | #define SP_AXI_RESET 4 | ||
22 | #define VCODEC_AXI_RESET 5 | ||
23 | #define ROT_AXI_RESET 6 | ||
24 | #define VCODEC_AXI_A_RESET 7 | ||
25 | #define VCODEC_AXI_B_RESET 8 | ||
26 | #define FAB_S3_AXI_RESET 9 | ||
27 | #define FAB_S2_AXI_RESET 10 | ||
28 | #define FAB_S1_AXI_RESET 11 | ||
29 | #define FAB_S0_AXI_RESET 12 | ||
30 | #define SMMU_GFX3D_ABH_RESET 13 | ||
31 | #define SMMU_VPE_AHB_RESET 14 | ||
32 | #define SMMU_VFE_AHB_RESET 15 | ||
33 | #define SMMU_ROT_AHB_RESET 16 | ||
34 | #define SMMU_VCODEC_B_AHB_RESET 17 | ||
35 | #define SMMU_VCODEC_A_AHB_RESET 18 | ||
36 | #define SMMU_MDP1_AHB_RESET 19 | ||
37 | #define SMMU_MDP0_AHB_RESET 20 | ||
38 | #define SMMU_JPEGD_AHB_RESET 21 | ||
39 | #define SMMU_IJPEG_AHB_RESET 22 | ||
40 | #define SMMU_GFX2D0_AHB_RESET 23 | ||
41 | #define SMMU_GFX2D1_AHB_RESET 24 | ||
42 | #define APU_AHB_RESET 25 | ||
43 | #define CSI_AHB_RESET 26 | ||
44 | #define TV_ENC_AHB_RESET 27 | ||
45 | #define VPE_AHB_RESET 28 | ||
46 | #define FABRIC_AHB_RESET 29 | ||
47 | #define GFX2D0_AHB_RESET 30 | ||
48 | #define GFX2D1_AHB_RESET 31 | ||
49 | #define GFX3D_AHB_RESET 32 | ||
50 | #define HDMI_AHB_RESET 33 | ||
51 | #define MSSS_IMEM_AHB_RESET 34 | ||
52 | #define IJPEG_AHB_RESET 35 | ||
53 | #define DSI_M_AHB_RESET 36 | ||
54 | #define DSI_S_AHB_RESET 37 | ||
55 | #define JPEGD_AHB_RESET 38 | ||
56 | #define MDP_AHB_RESET 39 | ||
57 | #define ROT_AHB_RESET 40 | ||
58 | #define VCODEC_AHB_RESET 41 | ||
59 | #define VFE_AHB_RESET 42 | ||
60 | #define DSI2_M_AHB_RESET 43 | ||
61 | #define DSI2_S_AHB_RESET 44 | ||
62 | #define CSIPHY2_RESET 45 | ||
63 | #define CSI_PIX1_RESET 46 | ||
64 | #define CSIPHY0_RESET 47 | ||
65 | #define CSIPHY1_RESET 48 | ||
66 | #define DSI2_RESET 49 | ||
67 | #define VFE_CSI_RESET 50 | ||
68 | #define MDP_RESET 51 | ||
69 | #define AMP_RESET 52 | ||
70 | #define JPEGD_RESET 53 | ||
71 | #define CSI1_RESET 54 | ||
72 | #define VPE_RESET 55 | ||
73 | #define MMSS_FABRIC_RESET 56 | ||
74 | #define VFE_RESET 57 | ||
75 | #define GFX2D0_RESET 58 | ||
76 | #define GFX2D1_RESET 59 | ||
77 | #define GFX3D_RESET 60 | ||
78 | #define HDMI_RESET 61 | ||
79 | #define MMSS_IMEM_RESET 62 | ||
80 | #define IJPEG_RESET 63 | ||
81 | #define CSI0_RESET 64 | ||
82 | #define DSI_RESET 65 | ||
83 | #define VCODEC_RESET 66 | ||
84 | #define MDP_TV_RESET 67 | ||
85 | #define MDP_VSYNC_RESET 68 | ||
86 | #define ROT_RESET 69 | ||
87 | #define TV_HDMI_RESET 70 | ||
88 | #define TV_ENC_RESET 71 | ||
89 | #define CSI2_RESET 72 | ||
90 | #define CSI_RDI1_RESET 73 | ||
91 | #define CSI_RDI2_RESET 74 | ||
92 | |||
93 | #endif | ||
diff --git a/include/dt-bindings/reset/qcom,mmcc-msm8974.h b/include/dt-bindings/reset/qcom,mmcc-msm8974.h new file mode 100644 index 000000000000..da3ec37f1b1e --- /dev/null +++ b/include/dt-bindings/reset/qcom,mmcc-msm8974.h | |||
@@ -0,0 +1,62 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2013, The Linux Foundation. All rights reserved. | ||
3 | * | ||
4 | * This software is licensed under the terms of the GNU General Public | ||
5 | * License version 2, as published by the Free Software Foundation, and | ||
6 | * may be copied, distributed, and modified under those terms. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | */ | ||
13 | |||
14 | #ifndef _DT_BINDINGS_RESET_MSM_MMCC_8974_H | ||
15 | #define _DT_BINDINGS_RESET_MSM_MMCC_8974_H | ||
16 | |||
17 | #define SPDM_RESET 0 | ||
18 | #define SPDM_RM_RESET 1 | ||
19 | #define VENUS0_RESET 2 | ||
20 | #define MDSS_RESET 3 | ||
21 | #define CAMSS_PHY0_RESET 4 | ||
22 | #define CAMSS_PHY1_RESET 5 | ||
23 | #define CAMSS_PHY2_RESET 6 | ||
24 | #define CAMSS_CSI0_RESET 7 | ||
25 | #define CAMSS_CSI0PHY_RESET 8 | ||
26 | #define CAMSS_CSI0RDI_RESET 9 | ||
27 | #define CAMSS_CSI0PIX_RESET 10 | ||
28 | #define CAMSS_CSI1_RESET 11 | ||
29 | #define CAMSS_CSI1PHY_RESET 12 | ||
30 | #define CAMSS_CSI1RDI_RESET 13 | ||
31 | #define CAMSS_CSI1PIX_RESET 14 | ||
32 | #define CAMSS_CSI2_RESET 15 | ||
33 | #define CAMSS_CSI2PHY_RESET 16 | ||
34 | #define CAMSS_CSI2RDI_RESET 17 | ||
35 | #define CAMSS_CSI2PIX_RESET 18 | ||
36 | #define CAMSS_CSI3_RESET 19 | ||
37 | #define CAMSS_CSI3PHY_RESET 20 | ||
38 | #define CAMSS_CSI3RDI_RESET 21 | ||
39 | #define CAMSS_CSI3PIX_RESET 22 | ||
40 | #define CAMSS_ISPIF_RESET 23 | ||
41 | #define CAMSS_CCI_RESET 24 | ||
42 | #define CAMSS_MCLK0_RESET 25 | ||
43 | #define CAMSS_MCLK1_RESET 26 | ||
44 | #define CAMSS_MCLK2_RESET 27 | ||
45 | #define CAMSS_MCLK3_RESET 28 | ||
46 | #define CAMSS_GP0_RESET 29 | ||
47 | #define CAMSS_GP1_RESET 30 | ||
48 | #define CAMSS_TOP_RESET 31 | ||
49 | #define CAMSS_MICRO_RESET 32 | ||
50 | #define CAMSS_JPEG_RESET 33 | ||
51 | #define CAMSS_VFE_RESET 34 | ||
52 | #define CAMSS_CSI_VFE0_RESET 35 | ||
53 | #define CAMSS_CSI_VFE1_RESET 36 | ||
54 | #define OXILI_RESET 37 | ||
55 | #define OXILICX_RESET 38 | ||
56 | #define OCMEMCX_RESET 39 | ||
57 | #define MMSS_RBCRP_RESET 40 | ||
58 | #define MMSSNOCAHB_RESET 41 | ||
59 | #define MMSSNOCAXI_RESET 42 | ||
60 | #define OCMEMNOC_RESET 43 | ||
61 | |||
62 | #endif | ||
diff --git a/include/linux/clk-private.h b/include/linux/clk-private.h index 8138c94409f3..efbf70b9fd84 100644 --- a/include/linux/clk-private.h +++ b/include/linux/clk-private.h | |||
@@ -12,6 +12,7 @@ | |||
12 | #define __LINUX_CLK_PRIVATE_H | 12 | #define __LINUX_CLK_PRIVATE_H |
13 | 13 | ||
14 | #include <linux/clk-provider.h> | 14 | #include <linux/clk-provider.h> |
15 | #include <linux/kref.h> | ||
15 | #include <linux/list.h> | 16 | #include <linux/list.h> |
16 | 17 | ||
17 | /* | 18 | /* |
@@ -25,10 +26,13 @@ | |||
25 | 26 | ||
26 | #ifdef CONFIG_COMMON_CLK | 27 | #ifdef CONFIG_COMMON_CLK |
27 | 28 | ||
29 | struct module; | ||
30 | |||
28 | struct clk { | 31 | struct clk { |
29 | const char *name; | 32 | const char *name; |
30 | const struct clk_ops *ops; | 33 | const struct clk_ops *ops; |
31 | struct clk_hw *hw; | 34 | struct clk_hw *hw; |
35 | struct module *owner; | ||
32 | struct clk *parent; | 36 | struct clk *parent; |
33 | const char **parent_names; | 37 | const char **parent_names; |
34 | struct clk **parents; | 38 | struct clk **parents; |
@@ -41,12 +45,14 @@ struct clk { | |||
41 | unsigned long flags; | 45 | unsigned long flags; |
42 | unsigned int enable_count; | 46 | unsigned int enable_count; |
43 | unsigned int prepare_count; | 47 | unsigned int prepare_count; |
48 | unsigned long accuracy; | ||
44 | struct hlist_head children; | 49 | struct hlist_head children; |
45 | struct hlist_node child_node; | 50 | struct hlist_node child_node; |
46 | unsigned int notifier_count; | 51 | unsigned int notifier_count; |
47 | #ifdef CONFIG_COMMON_CLK_DEBUG | 52 | #ifdef CONFIG_DEBUG_FS |
48 | struct dentry *dentry; | 53 | struct dentry *dentry; |
49 | #endif | 54 | #endif |
55 | struct kref ref; | ||
50 | }; | 56 | }; |
51 | 57 | ||
52 | /* | 58 | /* |
diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h index 7e59253b8603..999b28ba38f7 100644 --- a/include/linux/clk-provider.h +++ b/include/linux/clk-provider.h | |||
@@ -29,6 +29,7 @@ | |||
29 | #define CLK_IS_BASIC BIT(5) /* Basic clk, can't do a to_clk_foo() */ | 29 | #define CLK_IS_BASIC BIT(5) /* Basic clk, can't do a to_clk_foo() */ |
30 | #define CLK_GET_RATE_NOCACHE BIT(6) /* do not use the cached clk rate */ | 30 | #define CLK_GET_RATE_NOCACHE BIT(6) /* do not use the cached clk rate */ |
31 | #define CLK_SET_RATE_NO_REPARENT BIT(7) /* don't re-parent on rate change */ | 31 | #define CLK_SET_RATE_NO_REPARENT BIT(7) /* don't re-parent on rate change */ |
32 | #define CLK_GET_ACCURACY_NOCACHE BIT(8) /* do not use the cached clk accuracy */ | ||
32 | 33 | ||
33 | struct clk_hw; | 34 | struct clk_hw; |
34 | 35 | ||
@@ -108,6 +109,25 @@ struct clk_hw; | |||
108 | * which is likely helpful for most .set_rate implementation. | 109 | * which is likely helpful for most .set_rate implementation. |
109 | * Returns 0 on success, -EERROR otherwise. | 110 | * Returns 0 on success, -EERROR otherwise. |
110 | * | 111 | * |
112 | * @recalc_accuracy: Recalculate the accuracy of this clock. The clock accuracy | ||
113 | * is expressed in ppb (parts per billion). The parent accuracy is | ||
114 | * an input parameter. | ||
115 | * Returns the calculated accuracy. Optional - if this op is not | ||
116 | * set then clock accuracy will be initialized to parent accuracy | ||
117 | * or 0 (perfect clock) if clock has no parent. | ||
118 | * | ||
119 | * @set_rate_and_parent: Change the rate and the parent of this clock. The | ||
120 | * requested rate is specified by the second argument, which | ||
121 | * should typically be the return of .round_rate call. The | ||
122 | * third argument gives the parent rate which is likely helpful | ||
123 | * for most .set_rate_and_parent implementation. The fourth | ||
124 | * argument gives the parent index. This callback is optional (and | ||
125 | * unnecessary) for clocks with 0 or 1 parents as well as | ||
126 | * for clocks that can tolerate switching the rate and the parent | ||
127 | * separately via calls to .set_parent and .set_rate. | ||
128 | * Returns 0 on success, -EERROR otherwise. | ||
129 | * | ||
130 | * | ||
111 | * The clk_enable/clk_disable and clk_prepare/clk_unprepare pairs allow | 131 | * The clk_enable/clk_disable and clk_prepare/clk_unprepare pairs allow |
112 | * implementations to split any work between atomic (enable) and sleepable | 132 | * implementations to split any work between atomic (enable) and sleepable |
113 | * (prepare) contexts. If enabling a clock requires code that might sleep, | 133 | * (prepare) contexts. If enabling a clock requires code that might sleep, |
@@ -139,6 +159,11 @@ struct clk_ops { | |||
139 | u8 (*get_parent)(struct clk_hw *hw); | 159 | u8 (*get_parent)(struct clk_hw *hw); |
140 | int (*set_rate)(struct clk_hw *hw, unsigned long, | 160 | int (*set_rate)(struct clk_hw *hw, unsigned long, |
141 | unsigned long); | 161 | unsigned long); |
162 | int (*set_rate_and_parent)(struct clk_hw *hw, | ||
163 | unsigned long rate, | ||
164 | unsigned long parent_rate, u8 index); | ||
165 | unsigned long (*recalc_accuracy)(struct clk_hw *hw, | ||
166 | unsigned long parent_accuracy); | ||
142 | void (*init)(struct clk_hw *hw); | 167 | void (*init)(struct clk_hw *hw); |
143 | }; | 168 | }; |
144 | 169 | ||
@@ -194,6 +219,7 @@ struct clk_hw { | |||
194 | struct clk_fixed_rate { | 219 | struct clk_fixed_rate { |
195 | struct clk_hw hw; | 220 | struct clk_hw hw; |
196 | unsigned long fixed_rate; | 221 | unsigned long fixed_rate; |
222 | unsigned long fixed_accuracy; | ||
197 | u8 flags; | 223 | u8 flags; |
198 | }; | 224 | }; |
199 | 225 | ||
@@ -201,6 +227,9 @@ extern const struct clk_ops clk_fixed_rate_ops; | |||
201 | struct clk *clk_register_fixed_rate(struct device *dev, const char *name, | 227 | struct clk *clk_register_fixed_rate(struct device *dev, const char *name, |
202 | const char *parent_name, unsigned long flags, | 228 | const char *parent_name, unsigned long flags, |
203 | unsigned long fixed_rate); | 229 | unsigned long fixed_rate); |
230 | struct clk *clk_register_fixed_rate_with_accuracy(struct device *dev, | ||
231 | const char *name, const char *parent_name, unsigned long flags, | ||
232 | unsigned long fixed_rate, unsigned long fixed_accuracy); | ||
204 | 233 | ||
205 | void of_fixed_clk_setup(struct device_node *np); | 234 | void of_fixed_clk_setup(struct device_node *np); |
206 | 235 | ||
@@ -433,6 +462,7 @@ struct clk *clk_get_parent_by_index(struct clk *clk, u8 index); | |||
433 | unsigned int __clk_get_enable_count(struct clk *clk); | 462 | unsigned int __clk_get_enable_count(struct clk *clk); |
434 | unsigned int __clk_get_prepare_count(struct clk *clk); | 463 | unsigned int __clk_get_prepare_count(struct clk *clk); |
435 | unsigned long __clk_get_rate(struct clk *clk); | 464 | unsigned long __clk_get_rate(struct clk *clk); |
465 | unsigned long __clk_get_accuracy(struct clk *clk); | ||
436 | unsigned long __clk_get_flags(struct clk *clk); | 466 | unsigned long __clk_get_flags(struct clk *clk); |
437 | bool __clk_is_prepared(struct clk *clk); | 467 | bool __clk_is_prepared(struct clk *clk); |
438 | bool __clk_is_enabled(struct clk *clk); | 468 | bool __clk_is_enabled(struct clk *clk); |
diff --git a/include/linux/clk.h b/include/linux/clk.h index 9a6d04524b1a..0dd91148165e 100644 --- a/include/linux/clk.h +++ b/include/linux/clk.h | |||
@@ -82,6 +82,23 @@ int clk_notifier_register(struct clk *clk, struct notifier_block *nb); | |||
82 | 82 | ||
83 | int clk_notifier_unregister(struct clk *clk, struct notifier_block *nb); | 83 | int clk_notifier_unregister(struct clk *clk, struct notifier_block *nb); |
84 | 84 | ||
85 | /** | ||
86 | * clk_get_accuracy - obtain the clock accuracy in ppb (parts per billion) | ||
87 | * for a clock source. | ||
88 | * @clk: clock source | ||
89 | * | ||
90 | * This gets the clock source accuracy expressed in ppb. | ||
91 | * A perfect clock returns 0. | ||
92 | */ | ||
93 | long clk_get_accuracy(struct clk *clk); | ||
94 | |||
95 | #else | ||
96 | |||
97 | static inline long clk_get_accuracy(struct clk *clk) | ||
98 | { | ||
99 | return -ENOTSUPP; | ||
100 | } | ||
101 | |||
85 | #endif | 102 | #endif |
86 | 103 | ||
87 | /** | 104 | /** |
diff --git a/include/linux/clkdev.h b/include/linux/clkdev.h index a6a6f603103b..94bad77eeb4a 100644 --- a/include/linux/clkdev.h +++ b/include/linux/clkdev.h | |||
@@ -43,4 +43,9 @@ int clk_add_alias(const char *, const char *, char *, struct device *); | |||
43 | int clk_register_clkdev(struct clk *, const char *, const char *, ...); | 43 | int clk_register_clkdev(struct clk *, const char *, const char *, ...); |
44 | int clk_register_clkdevs(struct clk *, struct clk_lookup *, size_t); | 44 | int clk_register_clkdevs(struct clk *, struct clk_lookup *, size_t); |
45 | 45 | ||
46 | #ifdef CONFIG_COMMON_CLK | ||
47 | int __clk_get(struct clk *clk); | ||
48 | void __clk_put(struct clk *clk); | ||
49 | #endif | ||
50 | |||
46 | #endif | 51 | #endif |
diff --git a/include/linux/reset-controller.h b/include/linux/reset-controller.h index 2f61311ae3e0..41a4695fde08 100644 --- a/include/linux/reset-controller.h +++ b/include/linux/reset-controller.h | |||
@@ -21,6 +21,7 @@ struct reset_control_ops { | |||
21 | 21 | ||
22 | struct module; | 22 | struct module; |
23 | struct device_node; | 23 | struct device_node; |
24 | struct of_phandle_args; | ||
24 | 25 | ||
25 | /** | 26 | /** |
26 | * struct reset_controller_dev - reset controller entity that might | 27 | * struct reset_controller_dev - reset controller entity that might |