xref: /freebsd/sys/contrib/device-tree/include/dt-bindings/clock/qcom,qdu1000-gcc.h (revision aa1a8ff2d6dbc51ef058f46f3db5a8bb77967145)
1cb7aa33aSEmmanuel Vadot /* SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause */
2cb7aa33aSEmmanuel Vadot /*
3*aa1a8ff2SEmmanuel Vadot  * Copyright (c) 2021-2023, Qualcomm Innovation Center, Inc. All rights reserved.
4cb7aa33aSEmmanuel Vadot  */
5cb7aa33aSEmmanuel Vadot 
6cb7aa33aSEmmanuel Vadot #ifndef _DT_BINDINGS_CLK_QCOM_GCC_QDU1000_H
7cb7aa33aSEmmanuel Vadot #define _DT_BINDINGS_CLK_QCOM_GCC_QDU1000_H
8cb7aa33aSEmmanuel Vadot 
9cb7aa33aSEmmanuel Vadot /* GCC clocks */
10cb7aa33aSEmmanuel Vadot #define GCC_GPLL0					0
11cb7aa33aSEmmanuel Vadot #define GCC_GPLL0_OUT_EVEN				1
12cb7aa33aSEmmanuel Vadot #define GCC_GPLL1					2
13cb7aa33aSEmmanuel Vadot #define GCC_GPLL2					3
14cb7aa33aSEmmanuel Vadot #define GCC_GPLL2_OUT_EVEN				4
15cb7aa33aSEmmanuel Vadot #define GCC_GPLL3					5
16cb7aa33aSEmmanuel Vadot #define GCC_GPLL4					6
17cb7aa33aSEmmanuel Vadot #define GCC_GPLL5					7
18cb7aa33aSEmmanuel Vadot #define GCC_GPLL5_OUT_EVEN				8
19cb7aa33aSEmmanuel Vadot #define GCC_GPLL6					9
20cb7aa33aSEmmanuel Vadot #define GCC_GPLL7					10
21cb7aa33aSEmmanuel Vadot #define GCC_GPLL8					11
22cb7aa33aSEmmanuel Vadot #define GCC_AGGRE_NOC_ECPRI_DMA_CLK			12
23cb7aa33aSEmmanuel Vadot #define GCC_AGGRE_NOC_ECPRI_DMA_CLK_SRC			13
24cb7aa33aSEmmanuel Vadot #define GCC_AGGRE_NOC_ECPRI_GSI_CLK_SRC			14
25cb7aa33aSEmmanuel Vadot #define GCC_BOOT_ROM_AHB_CLK				15
26cb7aa33aSEmmanuel Vadot #define GCC_CFG_NOC_ECPRI_CC_AHB_CLK			16
27cb7aa33aSEmmanuel Vadot #define GCC_CFG_NOC_USB3_PRIM_AXI_CLK			17
28cb7aa33aSEmmanuel Vadot #define GCC_DDRSS_ECPRI_DMA_CLK				18
29cb7aa33aSEmmanuel Vadot #define GCC_ECPRI_AHB_CLK				19
30cb7aa33aSEmmanuel Vadot #define GCC_ECPRI_CC_GPLL0_CLK_SRC			20
31cb7aa33aSEmmanuel Vadot #define GCC_ECPRI_CC_GPLL1_EVEN_CLK_SRC			21
32cb7aa33aSEmmanuel Vadot #define GCC_ECPRI_CC_GPLL2_EVEN_CLK_SRC			22
33cb7aa33aSEmmanuel Vadot #define GCC_ECPRI_CC_GPLL3_CLK_SRC			23
34cb7aa33aSEmmanuel Vadot #define GCC_ECPRI_CC_GPLL4_CLK_SRC			24
35cb7aa33aSEmmanuel Vadot #define GCC_ECPRI_CC_GPLL5_EVEN_CLK_SRC			25
36cb7aa33aSEmmanuel Vadot #define GCC_ECPRI_XO_CLK				26
37cb7aa33aSEmmanuel Vadot #define GCC_ETH_DBG_SNOC_AXI_CLK			27
38cb7aa33aSEmmanuel Vadot #define GCC_GEMNOC_PCIE_QX_CLK				28
39cb7aa33aSEmmanuel Vadot #define GCC_GP1_CLK					29
40cb7aa33aSEmmanuel Vadot #define GCC_GP1_CLK_SRC					30
41cb7aa33aSEmmanuel Vadot #define GCC_GP2_CLK					31
42cb7aa33aSEmmanuel Vadot #define GCC_GP2_CLK_SRC					32
43cb7aa33aSEmmanuel Vadot #define GCC_GP3_CLK					33
44cb7aa33aSEmmanuel Vadot #define GCC_GP3_CLK_SRC					34
45cb7aa33aSEmmanuel Vadot #define GCC_PCIE_0_AUX_CLK				35
46cb7aa33aSEmmanuel Vadot #define GCC_PCIE_0_AUX_CLK_SRC				36
47cb7aa33aSEmmanuel Vadot #define GCC_PCIE_0_CFG_AHB_CLK				37
48cb7aa33aSEmmanuel Vadot #define GCC_PCIE_0_CLKREF_EN				38
49cb7aa33aSEmmanuel Vadot #define GCC_PCIE_0_MSTR_AXI_CLK				39
50cb7aa33aSEmmanuel Vadot #define GCC_PCIE_0_PHY_AUX_CLK				40
51cb7aa33aSEmmanuel Vadot #define GCC_PCIE_0_PHY_RCHNG_CLK			41
52cb7aa33aSEmmanuel Vadot #define GCC_PCIE_0_PHY_RCHNG_CLK_SRC			42
53cb7aa33aSEmmanuel Vadot #define GCC_PCIE_0_PIPE_CLK				43
54cb7aa33aSEmmanuel Vadot #define GCC_PCIE_0_SLV_AXI_CLK				44
55cb7aa33aSEmmanuel Vadot #define GCC_PCIE_0_SLV_Q2A_AXI_CLK			45
56cb7aa33aSEmmanuel Vadot #define GCC_PDM2_CLK					46
57cb7aa33aSEmmanuel Vadot #define GCC_PDM2_CLK_SRC				47
58cb7aa33aSEmmanuel Vadot #define GCC_PDM_AHB_CLK					48
59cb7aa33aSEmmanuel Vadot #define GCC_PDM_XO4_CLK					49
60cb7aa33aSEmmanuel Vadot #define GCC_QMIP_ANOC_PCIE_CLK				50
61cb7aa33aSEmmanuel Vadot #define GCC_QMIP_ECPRI_DMA0_CLK				51
62cb7aa33aSEmmanuel Vadot #define GCC_QMIP_ECPRI_DMA1_CLK				52
63cb7aa33aSEmmanuel Vadot #define GCC_QMIP_ECPRI_GSI_CLK				53
64cb7aa33aSEmmanuel Vadot #define GCC_QUPV3_WRAP0_CORE_2X_CLK			54
65cb7aa33aSEmmanuel Vadot #define GCC_QUPV3_WRAP0_CORE_CLK			55
66cb7aa33aSEmmanuel Vadot #define GCC_QUPV3_WRAP0_S0_CLK				56
67cb7aa33aSEmmanuel Vadot #define GCC_QUPV3_WRAP0_S0_CLK_SRC			57
68cb7aa33aSEmmanuel Vadot #define GCC_QUPV3_WRAP0_S1_CLK				58
69cb7aa33aSEmmanuel Vadot #define GCC_QUPV3_WRAP0_S1_CLK_SRC			59
70cb7aa33aSEmmanuel Vadot #define GCC_QUPV3_WRAP0_S2_CLK				60
71cb7aa33aSEmmanuel Vadot #define GCC_QUPV3_WRAP0_S2_CLK_SRC			61
72cb7aa33aSEmmanuel Vadot #define GCC_QUPV3_WRAP0_S3_CLK				62
73cb7aa33aSEmmanuel Vadot #define GCC_QUPV3_WRAP0_S3_CLK_SRC			63
74cb7aa33aSEmmanuel Vadot #define GCC_QUPV3_WRAP0_S4_CLK				64
75cb7aa33aSEmmanuel Vadot #define GCC_QUPV3_WRAP0_S4_CLK_SRC			65
76cb7aa33aSEmmanuel Vadot #define GCC_QUPV3_WRAP0_S5_CLK				66
77cb7aa33aSEmmanuel Vadot #define GCC_QUPV3_WRAP0_S5_CLK_SRC			67
78cb7aa33aSEmmanuel Vadot #define GCC_QUPV3_WRAP0_S6_CLK				68
79cb7aa33aSEmmanuel Vadot #define GCC_QUPV3_WRAP0_S6_CLK_SRC			69
80cb7aa33aSEmmanuel Vadot #define GCC_QUPV3_WRAP0_S7_CLK				70
81cb7aa33aSEmmanuel Vadot #define GCC_QUPV3_WRAP0_S7_CLK_SRC			71
82cb7aa33aSEmmanuel Vadot #define GCC_QUPV3_WRAP1_CORE_2X_CLK			72
83cb7aa33aSEmmanuel Vadot #define GCC_QUPV3_WRAP1_CORE_CLK			73
84cb7aa33aSEmmanuel Vadot #define GCC_QUPV3_WRAP1_S0_CLK				74
85cb7aa33aSEmmanuel Vadot #define GCC_QUPV3_WRAP1_S0_CLK_SRC			75
86cb7aa33aSEmmanuel Vadot #define GCC_QUPV3_WRAP1_S1_CLK				76
87cb7aa33aSEmmanuel Vadot #define GCC_QUPV3_WRAP1_S1_CLK_SRC			77
88cb7aa33aSEmmanuel Vadot #define GCC_QUPV3_WRAP1_S2_CLK				78
89cb7aa33aSEmmanuel Vadot #define GCC_QUPV3_WRAP1_S2_CLK_SRC			79
90cb7aa33aSEmmanuel Vadot #define GCC_QUPV3_WRAP1_S3_CLK				80
91cb7aa33aSEmmanuel Vadot #define GCC_QUPV3_WRAP1_S3_CLK_SRC			81
92cb7aa33aSEmmanuel Vadot #define GCC_QUPV3_WRAP1_S4_CLK				82
93cb7aa33aSEmmanuel Vadot #define GCC_QUPV3_WRAP1_S4_CLK_SRC			83
94cb7aa33aSEmmanuel Vadot #define GCC_QUPV3_WRAP1_S5_CLK				84
95cb7aa33aSEmmanuel Vadot #define GCC_QUPV3_WRAP1_S5_CLK_SRC			85
96cb7aa33aSEmmanuel Vadot #define GCC_QUPV3_WRAP1_S6_CLK				86
97cb7aa33aSEmmanuel Vadot #define GCC_QUPV3_WRAP1_S6_CLK_SRC			87
98cb7aa33aSEmmanuel Vadot #define GCC_QUPV3_WRAP1_S7_CLK				88
99cb7aa33aSEmmanuel Vadot #define GCC_QUPV3_WRAP1_S7_CLK_SRC			89
100cb7aa33aSEmmanuel Vadot #define GCC_QUPV3_WRAP_0_M_AHB_CLK			90
101cb7aa33aSEmmanuel Vadot #define GCC_QUPV3_WRAP_0_S_AHB_CLK			91
102cb7aa33aSEmmanuel Vadot #define GCC_QUPV3_WRAP_1_M_AHB_CLK			92
103cb7aa33aSEmmanuel Vadot #define GCC_QUPV3_WRAP_1_S_AHB_CLK			93
104cb7aa33aSEmmanuel Vadot #define GCC_SDCC5_AHB_CLK				94
105cb7aa33aSEmmanuel Vadot #define GCC_SDCC5_APPS_CLK				95
106cb7aa33aSEmmanuel Vadot #define GCC_SDCC5_APPS_CLK_SRC				96
107cb7aa33aSEmmanuel Vadot #define GCC_SDCC5_ICE_CORE_CLK				97
108cb7aa33aSEmmanuel Vadot #define GCC_SDCC5_ICE_CORE_CLK_SRC			98
109cb7aa33aSEmmanuel Vadot #define GCC_SNOC_CNOC_GEMNOC_PCIE_QX_CLK		99
110cb7aa33aSEmmanuel Vadot #define GCC_SNOC_CNOC_GEMNOC_PCIE_SOUTH_QX_CLK		100
111cb7aa33aSEmmanuel Vadot #define GCC_SNOC_CNOC_PCIE_QX_CLK			101
112cb7aa33aSEmmanuel Vadot #define GCC_SNOC_PCIE_SF_CENTER_QX_CLK			102
113cb7aa33aSEmmanuel Vadot #define GCC_SNOC_PCIE_SF_SOUTH_QX_CLK			103
114cb7aa33aSEmmanuel Vadot #define GCC_TSC_CFG_AHB_CLK				104
115cb7aa33aSEmmanuel Vadot #define GCC_TSC_CLK_SRC					105
116cb7aa33aSEmmanuel Vadot #define GCC_TSC_CNTR_CLK				106
117cb7aa33aSEmmanuel Vadot #define GCC_TSC_ETU_CLK					107
118cb7aa33aSEmmanuel Vadot #define GCC_USB2_CLKREF_EN				108
119cb7aa33aSEmmanuel Vadot #define GCC_USB30_PRIM_MASTER_CLK			109
120cb7aa33aSEmmanuel Vadot #define GCC_USB30_PRIM_MASTER_CLK_SRC			110
121cb7aa33aSEmmanuel Vadot #define GCC_USB30_PRIM_MOCK_UTMI_CLK			111
122cb7aa33aSEmmanuel Vadot #define GCC_USB30_PRIM_MOCK_UTMI_CLK_SRC		112
123cb7aa33aSEmmanuel Vadot #define GCC_USB30_PRIM_MOCK_UTMI_POSTDIV_CLK_SRC	113
124cb7aa33aSEmmanuel Vadot #define GCC_USB30_PRIM_SLEEP_CLK			114
125cb7aa33aSEmmanuel Vadot #define GCC_USB3_PRIM_PHY_AUX_CLK			115
126cb7aa33aSEmmanuel Vadot #define GCC_USB3_PRIM_PHY_AUX_CLK_SRC			116
127cb7aa33aSEmmanuel Vadot #define GCC_USB3_PRIM_PHY_COM_AUX_CLK			117
128cb7aa33aSEmmanuel Vadot #define GCC_USB3_PRIM_PHY_PIPE_CLK			118
129cb7aa33aSEmmanuel Vadot #define GCC_SM_BUS_AHB_CLK				119
130cb7aa33aSEmmanuel Vadot #define GCC_SM_BUS_XO_CLK				120
131cb7aa33aSEmmanuel Vadot #define GCC_SM_BUS_XO_CLK_SRC				121
132cb7aa33aSEmmanuel Vadot #define GCC_USB3_PRIM_PHY_PIPE_CLK_SRC			122
133cb7aa33aSEmmanuel Vadot #define GCC_ETH_100G_C2C_HM_APB_CLK			123
134cb7aa33aSEmmanuel Vadot #define GCC_ETH_100G_FH_HM_APB_0_CLK			124
135cb7aa33aSEmmanuel Vadot #define GCC_ETH_100G_FH_HM_APB_1_CLK			125
136cb7aa33aSEmmanuel Vadot #define GCC_ETH_100G_FH_HM_APB_2_CLK			126
137cb7aa33aSEmmanuel Vadot #define GCC_ETH_DBG_C2C_HM_APB_CLK			127
138cb7aa33aSEmmanuel Vadot #define GCC_AGGRE_NOC_ECPRI_GSI_CLK			128
139cb7aa33aSEmmanuel Vadot #define GCC_PCIE_0_PIPE_CLK_SRC				129
140cb7aa33aSEmmanuel Vadot #define GCC_PCIE_0_PHY_AUX_CLK_SRC			130
141*aa1a8ff2SEmmanuel Vadot #define GCC_GPLL1_OUT_EVEN				131
142*aa1a8ff2SEmmanuel Vadot #define GCC_DDRSS_ECPRI_GSI_CLK				132
143cb7aa33aSEmmanuel Vadot 
144cb7aa33aSEmmanuel Vadot /* GCC resets */
145cb7aa33aSEmmanuel Vadot #define GCC_ECPRI_CC_BCR				0
146cb7aa33aSEmmanuel Vadot #define GCC_ECPRI_SS_BCR				1
147cb7aa33aSEmmanuel Vadot #define GCC_ETH_WRAPPER_BCR				2
148cb7aa33aSEmmanuel Vadot #define GCC_PCIE_0_BCR					3
149cb7aa33aSEmmanuel Vadot #define GCC_PCIE_0_LINK_DOWN_BCR			4
150cb7aa33aSEmmanuel Vadot #define GCC_PCIE_0_NOCSR_COM_PHY_BCR			5
151cb7aa33aSEmmanuel Vadot #define GCC_PCIE_0_PHY_BCR				6
152cb7aa33aSEmmanuel Vadot #define GCC_PCIE_0_PHY_NOCSR_COM_PHY_BCR		7
153cb7aa33aSEmmanuel Vadot #define GCC_PCIE_PHY_CFG_AHB_BCR			8
154cb7aa33aSEmmanuel Vadot #define GCC_PCIE_PHY_COM_BCR				9
155cb7aa33aSEmmanuel Vadot #define GCC_PDM_BCR					10
156cb7aa33aSEmmanuel Vadot #define GCC_QUPV3_WRAPPER_0_BCR				11
157cb7aa33aSEmmanuel Vadot #define GCC_QUPV3_WRAPPER_1_BCR				12
158cb7aa33aSEmmanuel Vadot #define GCC_QUSB2PHY_PRIM_BCR				13
159cb7aa33aSEmmanuel Vadot #define GCC_QUSB2PHY_SEC_BCR				14
160cb7aa33aSEmmanuel Vadot #define GCC_SDCC5_BCR					15
161cb7aa33aSEmmanuel Vadot #define GCC_TCSR_PCIE_BCR				16
162cb7aa33aSEmmanuel Vadot #define GCC_TSC_BCR					17
163cb7aa33aSEmmanuel Vadot #define GCC_USB30_PRIM_BCR				18
164cb7aa33aSEmmanuel Vadot #define GCC_USB3_DP_PHY_PRIM_BCR			19
165cb7aa33aSEmmanuel Vadot #define GCC_USB3_DP_PHY_SEC_BCR				20
166cb7aa33aSEmmanuel Vadot #define GCC_USB3_PHY_PRIM_BCR				21
167cb7aa33aSEmmanuel Vadot #define GCC_USB3_PHY_SEC_BCR				22
168cb7aa33aSEmmanuel Vadot #define GCC_USB3PHY_PHY_PRIM_BCR			23
169cb7aa33aSEmmanuel Vadot #define GCC_USB3PHY_PHY_SEC_BCR				24
170cb7aa33aSEmmanuel Vadot #define GCC_USB_PHY_CFG_AHB2PHY_BCR			25
171cb7aa33aSEmmanuel Vadot 
172cb7aa33aSEmmanuel Vadot /* GCC power domains */
173cb7aa33aSEmmanuel Vadot #define PCIE_0_GDSC					0
174cb7aa33aSEmmanuel Vadot #define PCIE_0_PHY_GDSC					1
175cb7aa33aSEmmanuel Vadot #define USB30_PRIM_GDSC					2
176cb7aa33aSEmmanuel Vadot 
177cb7aa33aSEmmanuel Vadot #endif
178