xref: /linux/include/dt-bindings/clock/omap5.h (revision 8be98d2f2a0a262f8bf8a0bc1fdf522b3c7aab17)
19c92ab61SThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-only */
2e11f1d68STero Kristo /*
3e11f1d68STero Kristo  * Copyright 2017 Texas Instruments, Inc.
4e11f1d68STero Kristo  */
5e11f1d68STero Kristo #ifndef __DT_BINDINGS_CLK_OMAP5_H
6e11f1d68STero Kristo #define __DT_BINDINGS_CLK_OMAP5_H
7e11f1d68STero Kristo 
8e11f1d68STero Kristo #define OMAP5_CLKCTRL_OFFSET	0x20
9e11f1d68STero Kristo #define OMAP5_CLKCTRL_INDEX(offset)	((offset) - OMAP5_CLKCTRL_OFFSET)
10e11f1d68STero Kristo 
11e11f1d68STero Kristo /* mpu clocks */
12e11f1d68STero Kristo #define OMAP5_MPU_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x20)
13e11f1d68STero Kristo 
14e11f1d68STero Kristo /* dsp clocks */
15e11f1d68STero Kristo #define OMAP5_MMU_DSP_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x20)
16e11f1d68STero Kristo 
17e11f1d68STero Kristo /* abe clocks */
18e11f1d68STero Kristo #define OMAP5_L4_ABE_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x20)
19364975eeSTony Lindgren #define OMAP5_AESS_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x28)
20e11f1d68STero Kristo #define OMAP5_MCPDM_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x30)
21e11f1d68STero Kristo #define OMAP5_DMIC_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x38)
22e11f1d68STero Kristo #define OMAP5_MCBSP1_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x48)
23e11f1d68STero Kristo #define OMAP5_MCBSP2_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x50)
24e11f1d68STero Kristo #define OMAP5_MCBSP3_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x58)
25e11f1d68STero Kristo #define OMAP5_TIMER5_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x68)
26e11f1d68STero Kristo #define OMAP5_TIMER6_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x70)
27e11f1d68STero Kristo #define OMAP5_TIMER7_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x78)
28e11f1d68STero Kristo #define OMAP5_TIMER8_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x80)
29e11f1d68STero Kristo 
30e11f1d68STero Kristo /* l3main1 clocks */
31e11f1d68STero Kristo #define OMAP5_L3_MAIN_1_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x20)
32e11f1d68STero Kristo 
33e11f1d68STero Kristo /* l3main2 clocks */
34e11f1d68STero Kristo #define OMAP5_L3_MAIN_2_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x20)
35*7f7acef8STony Lindgren #define OMAP5_L3_MAIN_2_GPMC_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x28)
36*7f7acef8STony Lindgren #define OMAP5_L3_MAIN_2_OCMC_RAM_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x30)
37e11f1d68STero Kristo 
38e11f1d68STero Kristo /* ipu clocks */
39e11f1d68STero Kristo #define OMAP5_MMU_IPU_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x20)
40e11f1d68STero Kristo 
41e11f1d68STero Kristo /* dma clocks */
42e11f1d68STero Kristo #define OMAP5_DMA_SYSTEM_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x20)
43e11f1d68STero Kristo 
44e11f1d68STero Kristo /* emif clocks */
45e11f1d68STero Kristo #define OMAP5_DMM_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x20)
46e11f1d68STero Kristo #define OMAP5_EMIF1_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x30)
47e11f1d68STero Kristo #define OMAP5_EMIF2_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x38)
48e11f1d68STero Kristo 
49e11f1d68STero Kristo /* l4cfg clocks */
50e11f1d68STero Kristo #define OMAP5_L4_CFG_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x20)
51e11f1d68STero Kristo #define OMAP5_SPINLOCK_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x28)
52e11f1d68STero Kristo #define OMAP5_MAILBOX_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x30)
53e11f1d68STero Kristo 
54e11f1d68STero Kristo /* l3instr clocks */
55e11f1d68STero Kristo #define OMAP5_L3_MAIN_3_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x20)
56e11f1d68STero Kristo #define OMAP5_L3_INSTR_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x28)
57e11f1d68STero Kristo 
58e11f1d68STero Kristo /* l4per clocks */
59e11f1d68STero Kristo #define OMAP5_TIMER10_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x28)
60e11f1d68STero Kristo #define OMAP5_TIMER11_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x30)
61e11f1d68STero Kristo #define OMAP5_TIMER2_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x38)
62e11f1d68STero Kristo #define OMAP5_TIMER3_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x40)
63e11f1d68STero Kristo #define OMAP5_TIMER4_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x48)
64e11f1d68STero Kristo #define OMAP5_TIMER9_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x50)
65e11f1d68STero Kristo #define OMAP5_GPIO2_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x60)
66e11f1d68STero Kristo #define OMAP5_GPIO3_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x68)
67e11f1d68STero Kristo #define OMAP5_GPIO4_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x70)
68e11f1d68STero Kristo #define OMAP5_GPIO5_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x78)
69e11f1d68STero Kristo #define OMAP5_GPIO6_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x80)
70e11f1d68STero Kristo #define OMAP5_I2C1_CLKCTRL	OMAP5_CLKCTRL_INDEX(0xa0)
71e11f1d68STero Kristo #define OMAP5_I2C2_CLKCTRL	OMAP5_CLKCTRL_INDEX(0xa8)
72e11f1d68STero Kristo #define OMAP5_I2C3_CLKCTRL	OMAP5_CLKCTRL_INDEX(0xb0)
73e11f1d68STero Kristo #define OMAP5_I2C4_CLKCTRL	OMAP5_CLKCTRL_INDEX(0xb8)
74e11f1d68STero Kristo #define OMAP5_L4_PER_CLKCTRL	OMAP5_CLKCTRL_INDEX(0xc0)
75e11f1d68STero Kristo #define OMAP5_MCSPI1_CLKCTRL	OMAP5_CLKCTRL_INDEX(0xf0)
76e11f1d68STero Kristo #define OMAP5_MCSPI2_CLKCTRL	OMAP5_CLKCTRL_INDEX(0xf8)
77e11f1d68STero Kristo #define OMAP5_MCSPI3_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x100)
78e11f1d68STero Kristo #define OMAP5_MCSPI4_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x108)
79e11f1d68STero Kristo #define OMAP5_GPIO7_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x110)
80e11f1d68STero Kristo #define OMAP5_GPIO8_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x118)
81e11f1d68STero Kristo #define OMAP5_MMC3_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x120)
82e11f1d68STero Kristo #define OMAP5_MMC4_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x128)
83e11f1d68STero Kristo #define OMAP5_UART1_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x140)
84e11f1d68STero Kristo #define OMAP5_UART2_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x148)
85e11f1d68STero Kristo #define OMAP5_UART3_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x150)
86e11f1d68STero Kristo #define OMAP5_UART4_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x158)
87e11f1d68STero Kristo #define OMAP5_MMC5_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x160)
88e11f1d68STero Kristo #define OMAP5_I2C5_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x168)
89e11f1d68STero Kristo #define OMAP5_UART5_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x170)
90e11f1d68STero Kristo #define OMAP5_UART6_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x178)
91e11f1d68STero Kristo 
92723a567fSTony Lindgren /* l4_secure clocks */
93723a567fSTony Lindgren #define OMAP5_L4_SECURE_CLKCTRL_OFFSET	0x1a0
94723a567fSTony Lindgren #define OMAP5_L4_SECURE_CLKCTRL_INDEX(offset)	((offset) - OMAP5_L4_SECURE_CLKCTRL_OFFSET)
95723a567fSTony Lindgren #define OMAP5_AES1_CLKCTRL	OMAP5_L4_SECURE_CLKCTRL_INDEX(0x1a0)
96723a567fSTony Lindgren #define OMAP5_AES2_CLKCTRL	OMAP5_L4_SECURE_CLKCTRL_INDEX(0x1a8)
97723a567fSTony Lindgren #define OMAP5_DES3DES_CLKCTRL	OMAP5_L4_SECURE_CLKCTRL_INDEX(0x1b0)
98723a567fSTony Lindgren #define OMAP5_FPKA_CLKCTRL	OMAP5_L4_SECURE_CLKCTRL_INDEX(0x1b8)
99723a567fSTony Lindgren #define OMAP5_RNG_CLKCTRL	OMAP5_L4_SECURE_CLKCTRL_INDEX(0x1c0)
100723a567fSTony Lindgren #define OMAP5_SHA2MD5_CLKCTRL	OMAP5_L4_SECURE_CLKCTRL_INDEX(0x1c8)
101723a567fSTony Lindgren #define OMAP5_DMA_CRYPTO_CLKCTRL	OMAP5_L4_SECURE_CLKCTRL_INDEX(0x1d8)
102723a567fSTony Lindgren 
1032d5f60afSTero Kristo /* iva clocks */
1042d5f60afSTero Kristo #define OMAP5_IVA_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x20)
1052d5f60afSTero Kristo #define OMAP5_SL2IF_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x28)
1062d5f60afSTero Kristo 
107e11f1d68STero Kristo /* dss clocks */
108e11f1d68STero Kristo #define OMAP5_DSS_CORE_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x20)
109e11f1d68STero Kristo 
110fd568374STony Lindgren /* gpu clocks */
111fd568374STony Lindgren #define OMAP5_GPU_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x20)
112fd568374STony Lindgren 
113e11f1d68STero Kristo /* l3init clocks */
114e11f1d68STero Kristo #define OMAP5_MMC1_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x28)
115e11f1d68STero Kristo #define OMAP5_MMC2_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x30)
116e11f1d68STero Kristo #define OMAP5_USB_HOST_HS_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x58)
117e11f1d68STero Kristo #define OMAP5_USB_TLL_HS_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x68)
118e11f1d68STero Kristo #define OMAP5_SATA_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x88)
119e11f1d68STero Kristo #define OMAP5_OCP2SCP1_CLKCTRL	OMAP5_CLKCTRL_INDEX(0xe0)
120e11f1d68STero Kristo #define OMAP5_OCP2SCP3_CLKCTRL	OMAP5_CLKCTRL_INDEX(0xe8)
121e11f1d68STero Kristo #define OMAP5_USB_OTG_SS_CLKCTRL	OMAP5_CLKCTRL_INDEX(0xf0)
122e11f1d68STero Kristo 
123e11f1d68STero Kristo /* wkupaon clocks */
124e11f1d68STero Kristo #define OMAP5_L4_WKUP_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x20)
125e11f1d68STero Kristo #define OMAP5_WD_TIMER2_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x30)
126e11f1d68STero Kristo #define OMAP5_GPIO1_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x38)
127e11f1d68STero Kristo #define OMAP5_TIMER1_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x40)
128e11f1d68STero Kristo #define OMAP5_COUNTER_32K_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x50)
129e11f1d68STero Kristo #define OMAP5_KBD_CLKCTRL	OMAP5_CLKCTRL_INDEX(0x78)
130e11f1d68STero Kristo 
131e11f1d68STero Kristo #endif
132