1*83d290c5STom Rini /* SPDX-License-Identifier: GPL-2.0+ */
27b2500baSHeiko Stübner /*
37b2500baSHeiko Stübner  * Copyright (c) 2014 MundoReader S.L.
47b2500baSHeiko Stübner  * Author: Heiko Stuebner <heiko@sntech.de>
57b2500baSHeiko Stübner  */
67b2500baSHeiko Stübner 
77b2500baSHeiko Stübner #ifndef _DT_BINDINGS_CLK_ROCKCHIP_RK3188_COMMON_H
87b2500baSHeiko Stübner #define _DT_BINDINGS_CLK_ROCKCHIP_RK3188_COMMON_H
97b2500baSHeiko Stübner 
107b2500baSHeiko Stübner /* core clocks from */
117b2500baSHeiko Stübner #define PLL_APLL		1
127b2500baSHeiko Stübner #define PLL_DPLL		2
137b2500baSHeiko Stübner #define PLL_CPLL		3
147b2500baSHeiko Stübner #define PLL_GPLL		4
157b2500baSHeiko Stübner #define CORE_PERI		5
167b2500baSHeiko Stübner #define CORE_L2C		6
177b2500baSHeiko Stübner #define ARMCLK			7
187b2500baSHeiko Stübner 
197b2500baSHeiko Stübner /* sclk gates (special clocks) */
207b2500baSHeiko Stübner #define SCLK_UART0		64
217b2500baSHeiko Stübner #define SCLK_UART1		65
227b2500baSHeiko Stübner #define SCLK_UART2		66
237b2500baSHeiko Stübner #define SCLK_UART3		67
247b2500baSHeiko Stübner #define SCLK_MAC		68
257b2500baSHeiko Stübner #define SCLK_SPI0		69
267b2500baSHeiko Stübner #define SCLK_SPI1		70
277b2500baSHeiko Stübner #define SCLK_SARADC		71
287b2500baSHeiko Stübner #define SCLK_SDMMC		72
297b2500baSHeiko Stübner #define SCLK_SDIO		73
307b2500baSHeiko Stübner #define SCLK_EMMC		74
317b2500baSHeiko Stübner #define SCLK_I2S0		75
327b2500baSHeiko Stübner #define SCLK_I2S1		76
337b2500baSHeiko Stübner #define SCLK_I2S2		77
347b2500baSHeiko Stübner #define SCLK_SPDIF		78
357b2500baSHeiko Stübner #define SCLK_CIF0		79
367b2500baSHeiko Stübner #define SCLK_CIF1		80
377b2500baSHeiko Stübner #define SCLK_OTGPHY0		81
387b2500baSHeiko Stübner #define SCLK_OTGPHY1		82
397b2500baSHeiko Stübner #define SCLK_HSADC		83
407b2500baSHeiko Stübner #define SCLK_TIMER0		84
417b2500baSHeiko Stübner #define SCLK_TIMER1		85
427b2500baSHeiko Stübner #define SCLK_TIMER2		86
437b2500baSHeiko Stübner #define SCLK_TIMER3		87
447b2500baSHeiko Stübner #define SCLK_TIMER4		88
457b2500baSHeiko Stübner #define SCLK_TIMER5		89
467b2500baSHeiko Stübner #define SCLK_TIMER6		90
477b2500baSHeiko Stübner #define SCLK_JTAG		91
487b2500baSHeiko Stübner #define SCLK_SMC		92
497b2500baSHeiko Stübner #define SCLK_TSADC		93
507b2500baSHeiko Stübner 
517b2500baSHeiko Stübner #define DCLK_LCDC0		190
527b2500baSHeiko Stübner #define DCLK_LCDC1		191
537b2500baSHeiko Stübner 
547b2500baSHeiko Stübner /* aclk gates */
557b2500baSHeiko Stübner #define ACLK_DMA1		192
567b2500baSHeiko Stübner #define ACLK_DMA2		193
577b2500baSHeiko Stübner #define ACLK_GPS		194
587b2500baSHeiko Stübner #define ACLK_LCDC0		195
597b2500baSHeiko Stübner #define ACLK_LCDC1		196
607b2500baSHeiko Stübner #define ACLK_GPU		197
617b2500baSHeiko Stübner #define ACLK_SMC		198
627b2500baSHeiko Stübner #define ACLK_CIF		199
637b2500baSHeiko Stübner #define ACLK_IPP		200
647b2500baSHeiko Stübner #define ACLK_RGA		201
657b2500baSHeiko Stübner #define ACLK_CIF0		202
667b2500baSHeiko Stübner #define ACLK_CPU		203
677b2500baSHeiko Stübner #define ACLK_PERI		204
687b2500baSHeiko Stübner 
697b2500baSHeiko Stübner /* pclk gates */
707b2500baSHeiko Stübner #define PCLK_GRF		320
717b2500baSHeiko Stübner #define PCLK_PMU		321
727b2500baSHeiko Stübner #define PCLK_TIMER0		322
737b2500baSHeiko Stübner #define PCLK_TIMER1		323
747b2500baSHeiko Stübner #define PCLK_TIMER2		324
757b2500baSHeiko Stübner #define PCLK_TIMER3		325
767b2500baSHeiko Stübner #define PCLK_PWM01		326
777b2500baSHeiko Stübner #define PCLK_PWM23		327
787b2500baSHeiko Stübner #define PCLK_SPI0		328
797b2500baSHeiko Stübner #define PCLK_SPI1		329
807b2500baSHeiko Stübner #define PCLK_SARADC		330
817b2500baSHeiko Stübner #define PCLK_WDT		331
827b2500baSHeiko Stübner #define PCLK_UART0		332
837b2500baSHeiko Stübner #define PCLK_UART1		333
847b2500baSHeiko Stübner #define PCLK_UART2		334
857b2500baSHeiko Stübner #define PCLK_UART3		335
867b2500baSHeiko Stübner #define PCLK_I2C0		336
877b2500baSHeiko Stübner #define PCLK_I2C1		337
887b2500baSHeiko Stübner #define PCLK_I2C2		338
897b2500baSHeiko Stübner #define PCLK_I2C3		339
907b2500baSHeiko Stübner #define PCLK_I2C4		340
917b2500baSHeiko Stübner #define PCLK_GPIO0		341
927b2500baSHeiko Stübner #define PCLK_GPIO1		342
937b2500baSHeiko Stübner #define PCLK_GPIO2		343
947b2500baSHeiko Stübner #define PCLK_GPIO3		344
957b2500baSHeiko Stübner #define PCLK_GPIO4		345
967b2500baSHeiko Stübner #define PCLK_GPIO6		346
977b2500baSHeiko Stübner #define PCLK_EFUSE		347
987b2500baSHeiko Stübner #define PCLK_TZPC		348
997b2500baSHeiko Stübner #define PCLK_TSADC		349
1007b2500baSHeiko Stübner #define PCLK_CPU		350
1017b2500baSHeiko Stübner #define PCLK_PERI		351
1027b2500baSHeiko Stübner #define PCLK_DDRUPCTL		352
1037b2500baSHeiko Stübner #define PCLK_PUBL		353
1047b2500baSHeiko Stübner 
1057b2500baSHeiko Stübner /* hclk gates */
1067b2500baSHeiko Stübner #define HCLK_SDMMC		448
1077b2500baSHeiko Stübner #define HCLK_SDIO		449
1087b2500baSHeiko Stübner #define HCLK_EMMC		450
1097b2500baSHeiko Stübner #define HCLK_OTG0		451
1107b2500baSHeiko Stübner #define HCLK_EMAC		452
1117b2500baSHeiko Stübner #define HCLK_SPDIF		453
1127b2500baSHeiko Stübner #define HCLK_I2S0		454
1137b2500baSHeiko Stübner #define HCLK_I2S1		455
1147b2500baSHeiko Stübner #define HCLK_I2S2		456
1157b2500baSHeiko Stübner #define HCLK_OTG1		457
1167b2500baSHeiko Stübner #define HCLK_HSIC		458
1177b2500baSHeiko Stübner #define HCLK_HSADC		459
1187b2500baSHeiko Stübner #define HCLK_PIDF		460
1197b2500baSHeiko Stübner #define HCLK_LCDC0		461
1207b2500baSHeiko Stübner #define HCLK_LCDC1		462
1217b2500baSHeiko Stübner #define HCLK_ROM		463
1227b2500baSHeiko Stübner #define HCLK_CIF0		464
1237b2500baSHeiko Stübner #define HCLK_IPP		465
1247b2500baSHeiko Stübner #define HCLK_RGA		466
1257b2500baSHeiko Stübner #define HCLK_NANDC0		467
1267b2500baSHeiko Stübner #define HCLK_CPU		468
1277b2500baSHeiko Stübner #define HCLK_PERI		469
1287b2500baSHeiko Stübner 
1297b2500baSHeiko Stübner #define CLK_NR_CLKS		(HCLK_PERI + 1)
1307b2500baSHeiko Stübner 
1317b2500baSHeiko Stübner /* soft-reset indices */
1327b2500baSHeiko Stübner #define SRST_MCORE		2
1337b2500baSHeiko Stübner #define SRST_CORE0		3
1347b2500baSHeiko Stübner #define SRST_CORE1		4
1357b2500baSHeiko Stübner #define SRST_MCORE_DBG		7
1367b2500baSHeiko Stübner #define SRST_CORE0_DBG		8
1377b2500baSHeiko Stübner #define SRST_CORE1_DBG		9
1387b2500baSHeiko Stübner #define SRST_CORE0_WDT		12
1397b2500baSHeiko Stübner #define SRST_CORE1_WDT		13
1407b2500baSHeiko Stübner #define SRST_STRC_SYS		14
1417b2500baSHeiko Stübner #define SRST_L2C		15
1427b2500baSHeiko Stübner 
1437b2500baSHeiko Stübner #define SRST_CPU_AHB		17
1447b2500baSHeiko Stübner #define SRST_AHB2APB		19
1457b2500baSHeiko Stübner #define SRST_DMA1		20
1467b2500baSHeiko Stübner #define SRST_INTMEM		21
1477b2500baSHeiko Stübner #define SRST_ROM		22
1487b2500baSHeiko Stübner #define SRST_SPDIF		26
1497b2500baSHeiko Stübner #define SRST_TIMER0		27
1507b2500baSHeiko Stübner #define SRST_TIMER1		28
1517b2500baSHeiko Stübner #define SRST_EFUSE		30
1527b2500baSHeiko Stübner 
1537b2500baSHeiko Stübner #define SRST_GPIO0		32
1547b2500baSHeiko Stübner #define SRST_GPIO1		33
1557b2500baSHeiko Stübner #define SRST_GPIO2		34
1567b2500baSHeiko Stübner #define SRST_GPIO3		35
1577b2500baSHeiko Stübner 
1587b2500baSHeiko Stübner #define SRST_UART0		39
1597b2500baSHeiko Stübner #define SRST_UART1		40
1607b2500baSHeiko Stübner #define SRST_UART2		41
1617b2500baSHeiko Stübner #define SRST_UART3		42
1627b2500baSHeiko Stübner #define SRST_I2C0		43
1637b2500baSHeiko Stübner #define SRST_I2C1		44
1647b2500baSHeiko Stübner #define SRST_I2C2		45
1657b2500baSHeiko Stübner #define SRST_I2C3		46
1667b2500baSHeiko Stübner #define SRST_I2C4		47
1677b2500baSHeiko Stübner 
1687b2500baSHeiko Stübner #define SRST_PWM0		48
1697b2500baSHeiko Stübner #define SRST_PWM1		49
1707b2500baSHeiko Stübner #define SRST_DAP_PO		50
1717b2500baSHeiko Stübner #define SRST_DAP		51
1727b2500baSHeiko Stübner #define SRST_DAP_SYS		52
1737b2500baSHeiko Stübner #define SRST_TPIU_ATB		53
1747b2500baSHeiko Stübner #define SRST_PMU_APB		54
1757b2500baSHeiko Stübner #define SRST_GRF		55
1767b2500baSHeiko Stübner #define SRST_PMU		56
1777b2500baSHeiko Stübner #define SRST_PERI_AXI		57
1787b2500baSHeiko Stübner #define SRST_PERI_AHB		58
1797b2500baSHeiko Stübner #define SRST_PERI_APB		59
1807b2500baSHeiko Stübner #define SRST_PERI_NIU		60
1817b2500baSHeiko Stübner #define SRST_CPU_PERI		61
1827b2500baSHeiko Stübner #define SRST_EMEM_PERI		62
1837b2500baSHeiko Stübner #define SRST_USB_PERI		63
1847b2500baSHeiko Stübner 
1857b2500baSHeiko Stübner #define SRST_DMA2		64
1867b2500baSHeiko Stübner #define SRST_SMC		65
1877b2500baSHeiko Stübner #define SRST_MAC		66
1887b2500baSHeiko Stübner #define SRST_NANC0		68
1897b2500baSHeiko Stübner #define SRST_USBOTG0		69
1907b2500baSHeiko Stübner #define SRST_USBPHY0		70
1917b2500baSHeiko Stübner #define SRST_OTGC0		71
1927b2500baSHeiko Stübner #define SRST_USBOTG1		72
1937b2500baSHeiko Stübner #define SRST_USBPHY1		73
1947b2500baSHeiko Stübner #define SRST_OTGC1		74
1957b2500baSHeiko Stübner #define SRST_HSADC		76
1967b2500baSHeiko Stübner #define SRST_PIDFILTER		77
1977b2500baSHeiko Stübner #define SRST_DDR_MSCH		79
1987b2500baSHeiko Stübner 
1997b2500baSHeiko Stübner #define SRST_TZPC		80
2007b2500baSHeiko Stübner #define SRST_SDMMC		81
2017b2500baSHeiko Stübner #define SRST_SDIO		82
2027b2500baSHeiko Stübner #define SRST_EMMC		83
2037b2500baSHeiko Stübner #define SRST_SPI0		84
2047b2500baSHeiko Stübner #define SRST_SPI1		85
2057b2500baSHeiko Stübner #define SRST_WDT		86
2067b2500baSHeiko Stübner #define SRST_SARADC		87
2077b2500baSHeiko Stübner #define SRST_DDRPHY		88
2087b2500baSHeiko Stübner #define SRST_DDRPHY_APB		89
2097b2500baSHeiko Stübner #define SRST_DDRCTL		90
2107b2500baSHeiko Stübner #define SRST_DDRCTL_APB		91
2117b2500baSHeiko Stübner #define SRST_DDRPUB		93
2127b2500baSHeiko Stübner 
2137b2500baSHeiko Stübner #define SRST_VIO0_AXI		98
2147b2500baSHeiko Stübner #define SRST_VIO0_AHB		99
2157b2500baSHeiko Stübner #define SRST_LCDC0_AXI		100
2167b2500baSHeiko Stübner #define SRST_LCDC0_AHB		101
2177b2500baSHeiko Stübner #define SRST_LCDC0_DCLK		102
2187b2500baSHeiko Stübner #define SRST_LCDC1_AXI		103
2197b2500baSHeiko Stübner #define SRST_LCDC1_AHB		104
2207b2500baSHeiko Stübner #define SRST_LCDC1_DCLK		105
2217b2500baSHeiko Stübner #define SRST_IPP_AXI		106
2227b2500baSHeiko Stübner #define SRST_IPP_AHB		107
2237b2500baSHeiko Stübner #define SRST_RGA_AXI		108
2247b2500baSHeiko Stübner #define SRST_RGA_AHB		109
2257b2500baSHeiko Stübner #define SRST_CIF0		110
2267b2500baSHeiko Stübner 
2277b2500baSHeiko Stübner #define SRST_VCODEC_AXI		112
2287b2500baSHeiko Stübner #define SRST_VCODEC_AHB		113
2297b2500baSHeiko Stübner #define SRST_VIO1_AXI		114
2307b2500baSHeiko Stübner #define SRST_VCODEC_CPU		115
2317b2500baSHeiko Stübner #define SRST_VCODEC_NIU		116
2327b2500baSHeiko Stübner #define SRST_GPU		120
2337b2500baSHeiko Stübner #define SRST_GPU_NIU		122
2347b2500baSHeiko Stübner #define SRST_TFUN_ATB		125
2357b2500baSHeiko Stübner #define SRST_TFUN_APB		126
2367b2500baSHeiko Stübner #define SRST_CTI4_APB		127
2377b2500baSHeiko Stübner 
2387b2500baSHeiko Stübner #define SRST_TPIU_APB		128
2397b2500baSHeiko Stübner #define SRST_TRACE		129
2407b2500baSHeiko Stübner #define SRST_CORE_DBG		130
2417b2500baSHeiko Stübner #define SRST_DBG_APB		131
2427b2500baSHeiko Stübner #define SRST_CTI0		132
2437b2500baSHeiko Stübner #define SRST_CTI0_APB		133
2447b2500baSHeiko Stübner #define SRST_CTI1		134
2457b2500baSHeiko Stübner #define SRST_CTI1_APB		135
2467b2500baSHeiko Stübner #define SRST_PTM_CORE0		136
2477b2500baSHeiko Stübner #define SRST_PTM_CORE1		137
2487b2500baSHeiko Stübner #define SRST_PTM0		138
2497b2500baSHeiko Stübner #define SRST_PTM0_ATB		139
2507b2500baSHeiko Stübner #define SRST_PTM1		140
2517b2500baSHeiko Stübner #define SRST_PTM1_ATB		141
2527b2500baSHeiko Stübner #define SRST_CTM		142
2537b2500baSHeiko Stübner #define SRST_TS			143
2547b2500baSHeiko Stübner 
2557b2500baSHeiko Stübner #endif
256