xref: /freebsd/sys/contrib/device-tree/include/dt-bindings/clock/qcom,sdx75-gcc.h (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
2*f126890aSEmmanuel Vadot /*
3*f126890aSEmmanuel Vadot  * Copyright (c) 2022-2023, Qualcomm Innovation Center, Inc. All rights reserved.
4*f126890aSEmmanuel Vadot  */
5*f126890aSEmmanuel Vadot 
6*f126890aSEmmanuel Vadot #ifndef _DT_BINDINGS_CLK_QCOM_GCC_SDX75_H
7*f126890aSEmmanuel Vadot #define _DT_BINDINGS_CLK_QCOM_GCC_SDX75_H
8*f126890aSEmmanuel Vadot 
9*f126890aSEmmanuel Vadot /* GCC clocks */
10*f126890aSEmmanuel Vadot #define GPLL0							0
11*f126890aSEmmanuel Vadot #define GPLL0_OUT_EVEN						1
12*f126890aSEmmanuel Vadot #define GPLL4							2
13*f126890aSEmmanuel Vadot #define GPLL5							3
14*f126890aSEmmanuel Vadot #define GPLL6							4
15*f126890aSEmmanuel Vadot #define GPLL8							5
16*f126890aSEmmanuel Vadot #define GCC_AHB_PCIE_LINK_CLK					6
17*f126890aSEmmanuel Vadot #define GCC_BOOT_ROM_AHB_CLK					7
18*f126890aSEmmanuel Vadot #define GCC_EEE_EMAC0_CLK					8
19*f126890aSEmmanuel Vadot #define GCC_EEE_EMAC0_CLK_SRC					9
20*f126890aSEmmanuel Vadot #define GCC_EEE_EMAC1_CLK					10
21*f126890aSEmmanuel Vadot #define GCC_EEE_EMAC1_CLK_SRC					11
22*f126890aSEmmanuel Vadot #define GCC_EMAC0_AXI_CLK					12
23*f126890aSEmmanuel Vadot #define GCC_EMAC0_CC_SGMIIPHY_RX_CLK				13
24*f126890aSEmmanuel Vadot #define GCC_EMAC0_CC_SGMIIPHY_RX_CLK_SRC			14
25*f126890aSEmmanuel Vadot #define GCC_EMAC0_CC_SGMIIPHY_TX_CLK				15
26*f126890aSEmmanuel Vadot #define GCC_EMAC0_CC_SGMIIPHY_TX_CLK_SRC			16
27*f126890aSEmmanuel Vadot #define GCC_EMAC0_PHY_AUX_CLK					17
28*f126890aSEmmanuel Vadot #define GCC_EMAC0_PHY_AUX_CLK_SRC				18
29*f126890aSEmmanuel Vadot #define GCC_EMAC0_PTP_CLK					19
30*f126890aSEmmanuel Vadot #define GCC_EMAC0_PTP_CLK_SRC					20
31*f126890aSEmmanuel Vadot #define GCC_EMAC0_RGMII_CLK					21
32*f126890aSEmmanuel Vadot #define GCC_EMAC0_RGMII_CLK_SRC					22
33*f126890aSEmmanuel Vadot #define GCC_EMAC0_RPCS_RX_CLK					23
34*f126890aSEmmanuel Vadot #define GCC_EMAC0_RPCS_TX_CLK					24
35*f126890aSEmmanuel Vadot #define GCC_EMAC0_SGMIIPHY_MAC_RCLK_SRC				25
36*f126890aSEmmanuel Vadot #define GCC_EMAC0_SGMIIPHY_MAC_TCLK_SRC				26
37*f126890aSEmmanuel Vadot #define GCC_EMAC0_SLV_AHB_CLK					27
38*f126890aSEmmanuel Vadot #define GCC_EMAC0_XGXS_RX_CLK					28
39*f126890aSEmmanuel Vadot #define GCC_EMAC0_XGXS_TX_CLK					29
40*f126890aSEmmanuel Vadot #define GCC_EMAC1_AXI_CLK					30
41*f126890aSEmmanuel Vadot #define GCC_EMAC1_CC_SGMIIPHY_RX_CLK				31
42*f126890aSEmmanuel Vadot #define GCC_EMAC1_CC_SGMIIPHY_RX_CLK_SRC			32
43*f126890aSEmmanuel Vadot #define GCC_EMAC1_CC_SGMIIPHY_TX_CLK				33
44*f126890aSEmmanuel Vadot #define GCC_EMAC1_CC_SGMIIPHY_TX_CLK_SRC			34
45*f126890aSEmmanuel Vadot #define GCC_EMAC1_PHY_AUX_CLK					35
46*f126890aSEmmanuel Vadot #define GCC_EMAC1_PHY_AUX_CLK_SRC				36
47*f126890aSEmmanuel Vadot #define GCC_EMAC1_PTP_CLK					37
48*f126890aSEmmanuel Vadot #define GCC_EMAC1_PTP_CLK_SRC					38
49*f126890aSEmmanuel Vadot #define GCC_EMAC1_RGMII_CLK					39
50*f126890aSEmmanuel Vadot #define GCC_EMAC1_RGMII_CLK_SRC					40
51*f126890aSEmmanuel Vadot #define GCC_EMAC1_RPCS_RX_CLK					41
52*f126890aSEmmanuel Vadot #define GCC_EMAC1_RPCS_TX_CLK					42
53*f126890aSEmmanuel Vadot #define GCC_EMAC1_SGMIIPHY_MAC_RCLK_SRC				43
54*f126890aSEmmanuel Vadot #define GCC_EMAC1_SGMIIPHY_MAC_TCLK_SRC				44
55*f126890aSEmmanuel Vadot #define GCC_EMAC1_SLV_AHB_CLK					45
56*f126890aSEmmanuel Vadot #define GCC_EMAC1_XGXS_RX_CLK					46
57*f126890aSEmmanuel Vadot #define GCC_EMAC1_XGXS_TX_CLK					47
58*f126890aSEmmanuel Vadot #define GCC_EMAC_0_CLKREF_EN					48
59*f126890aSEmmanuel Vadot #define GCC_EMAC_1_CLKREF_EN					49
60*f126890aSEmmanuel Vadot #define GCC_GP1_CLK						50
61*f126890aSEmmanuel Vadot #define GCC_GP1_CLK_SRC						51
62*f126890aSEmmanuel Vadot #define GCC_GP2_CLK						52
63*f126890aSEmmanuel Vadot #define GCC_GP2_CLK_SRC						53
64*f126890aSEmmanuel Vadot #define GCC_GP3_CLK						54
65*f126890aSEmmanuel Vadot #define GCC_GP3_CLK_SRC						55
66*f126890aSEmmanuel Vadot #define GCC_PCIE_0_CLKREF_EN					56
67*f126890aSEmmanuel Vadot #define GCC_PCIE_1_AUX_CLK					57
68*f126890aSEmmanuel Vadot #define GCC_PCIE_1_AUX_PHY_CLK_SRC				58
69*f126890aSEmmanuel Vadot #define GCC_PCIE_1_CFG_AHB_CLK					59
70*f126890aSEmmanuel Vadot #define GCC_PCIE_1_CLKREF_EN					60
71*f126890aSEmmanuel Vadot #define GCC_PCIE_1_MSTR_AXI_CLK					61
72*f126890aSEmmanuel Vadot #define GCC_PCIE_1_PHY_RCHNG_CLK				62
73*f126890aSEmmanuel Vadot #define GCC_PCIE_1_PHY_RCHNG_CLK_SRC				63
74*f126890aSEmmanuel Vadot #define GCC_PCIE_1_PIPE_CLK					64
75*f126890aSEmmanuel Vadot #define GCC_PCIE_1_PIPE_CLK_SRC					65
76*f126890aSEmmanuel Vadot #define GCC_PCIE_1_PIPE_DIV2_CLK				66
77*f126890aSEmmanuel Vadot #define GCC_PCIE_1_PIPE_DIV2_CLK_SRC				67
78*f126890aSEmmanuel Vadot #define GCC_PCIE_1_SLV_AXI_CLK					68
79*f126890aSEmmanuel Vadot #define GCC_PCIE_1_SLV_Q2A_AXI_CLK				69
80*f126890aSEmmanuel Vadot #define GCC_PCIE_2_AUX_CLK					70
81*f126890aSEmmanuel Vadot #define GCC_PCIE_2_AUX_PHY_CLK_SRC				71
82*f126890aSEmmanuel Vadot #define GCC_PCIE_2_CFG_AHB_CLK					72
83*f126890aSEmmanuel Vadot #define GCC_PCIE_2_CLKREF_EN					73
84*f126890aSEmmanuel Vadot #define GCC_PCIE_2_MSTR_AXI_CLK					74
85*f126890aSEmmanuel Vadot #define GCC_PCIE_2_PHY_RCHNG_CLK				75
86*f126890aSEmmanuel Vadot #define GCC_PCIE_2_PHY_RCHNG_CLK_SRC				76
87*f126890aSEmmanuel Vadot #define GCC_PCIE_2_PIPE_CLK					77
88*f126890aSEmmanuel Vadot #define GCC_PCIE_2_PIPE_CLK_SRC					78
89*f126890aSEmmanuel Vadot #define GCC_PCIE_2_PIPE_DIV2_CLK				79
90*f126890aSEmmanuel Vadot #define GCC_PCIE_2_PIPE_DIV2_CLK_SRC				80
91*f126890aSEmmanuel Vadot #define GCC_PCIE_2_SLV_AXI_CLK					81
92*f126890aSEmmanuel Vadot #define GCC_PCIE_2_SLV_Q2A_AXI_CLK				82
93*f126890aSEmmanuel Vadot #define GCC_PCIE_AUX_CLK					83
94*f126890aSEmmanuel Vadot #define GCC_PCIE_AUX_CLK_SRC					84
95*f126890aSEmmanuel Vadot #define GCC_PCIE_AUX_PHY_CLK_SRC				85
96*f126890aSEmmanuel Vadot #define GCC_PCIE_CFG_AHB_CLK					86
97*f126890aSEmmanuel Vadot #define GCC_PCIE_MSTR_AXI_CLK					87
98*f126890aSEmmanuel Vadot #define GCC_PCIE_PIPE_CLK					88
99*f126890aSEmmanuel Vadot #define GCC_PCIE_PIPE_CLK_SRC					89
100*f126890aSEmmanuel Vadot #define GCC_PCIE_RCHNG_PHY_CLK					90
101*f126890aSEmmanuel Vadot #define GCC_PCIE_RCHNG_PHY_CLK_SRC				91
102*f126890aSEmmanuel Vadot #define GCC_PCIE_SLEEP_CLK					92
103*f126890aSEmmanuel Vadot #define GCC_PCIE_SLV_AXI_CLK					93
104*f126890aSEmmanuel Vadot #define GCC_PCIE_SLV_Q2A_AXI_CLK				94
105*f126890aSEmmanuel Vadot #define GCC_PDM2_CLK						95
106*f126890aSEmmanuel Vadot #define GCC_PDM2_CLK_SRC					96
107*f126890aSEmmanuel Vadot #define GCC_PDM_AHB_CLK						97
108*f126890aSEmmanuel Vadot #define GCC_PDM_XO4_CLK						98
109*f126890aSEmmanuel Vadot #define GCC_QUPV3_WRAP0_CORE_2X_CLK				99
110*f126890aSEmmanuel Vadot #define GCC_QUPV3_WRAP0_CORE_CLK				100
111*f126890aSEmmanuel Vadot #define GCC_QUPV3_WRAP0_S0_CLK					101
112*f126890aSEmmanuel Vadot #define GCC_QUPV3_WRAP0_S0_CLK_SRC				102
113*f126890aSEmmanuel Vadot #define GCC_QUPV3_WRAP0_S1_CLK					103
114*f126890aSEmmanuel Vadot #define GCC_QUPV3_WRAP0_S1_CLK_SRC				104
115*f126890aSEmmanuel Vadot #define GCC_QUPV3_WRAP0_S2_CLK					105
116*f126890aSEmmanuel Vadot #define GCC_QUPV3_WRAP0_S2_CLK_SRC				106
117*f126890aSEmmanuel Vadot #define GCC_QUPV3_WRAP0_S3_CLK					107
118*f126890aSEmmanuel Vadot #define GCC_QUPV3_WRAP0_S3_CLK_SRC				108
119*f126890aSEmmanuel Vadot #define GCC_QUPV3_WRAP0_S4_CLK					109
120*f126890aSEmmanuel Vadot #define GCC_QUPV3_WRAP0_S4_CLK_SRC				110
121*f126890aSEmmanuel Vadot #define GCC_QUPV3_WRAP0_S5_CLK					111
122*f126890aSEmmanuel Vadot #define GCC_QUPV3_WRAP0_S5_CLK_SRC				112
123*f126890aSEmmanuel Vadot #define GCC_QUPV3_WRAP0_S6_CLK					113
124*f126890aSEmmanuel Vadot #define GCC_QUPV3_WRAP0_S6_CLK_SRC				114
125*f126890aSEmmanuel Vadot #define GCC_QUPV3_WRAP0_S7_CLK					115
126*f126890aSEmmanuel Vadot #define GCC_QUPV3_WRAP0_S7_CLK_SRC				116
127*f126890aSEmmanuel Vadot #define GCC_QUPV3_WRAP0_S8_CLK					117
128*f126890aSEmmanuel Vadot #define GCC_QUPV3_WRAP0_S8_CLK_SRC				118
129*f126890aSEmmanuel Vadot #define GCC_QUPV3_WRAP_0_M_AHB_CLK				119
130*f126890aSEmmanuel Vadot #define GCC_QUPV3_WRAP_0_S_AHB_CLK				120
131*f126890aSEmmanuel Vadot #define GCC_SDCC1_AHB_CLK					121
132*f126890aSEmmanuel Vadot #define GCC_SDCC1_APPS_CLK					122
133*f126890aSEmmanuel Vadot #define GCC_SDCC1_APPS_CLK_SRC					123
134*f126890aSEmmanuel Vadot #define GCC_SDCC2_AHB_CLK					124
135*f126890aSEmmanuel Vadot #define GCC_SDCC2_APPS_CLK					125
136*f126890aSEmmanuel Vadot #define GCC_SDCC2_APPS_CLK_SRC					126
137*f126890aSEmmanuel Vadot #define GCC_USB2_CLKREF_EN					127
138*f126890aSEmmanuel Vadot #define GCC_USB30_MASTER_CLK					128
139*f126890aSEmmanuel Vadot #define GCC_USB30_MASTER_CLK_SRC				129
140*f126890aSEmmanuel Vadot #define GCC_USB30_MOCK_UTMI_CLK					130
141*f126890aSEmmanuel Vadot #define GCC_USB30_MOCK_UTMI_CLK_SRC				131
142*f126890aSEmmanuel Vadot #define GCC_USB30_MOCK_UTMI_POSTDIV_CLK_SRC			132
143*f126890aSEmmanuel Vadot #define GCC_USB30_MSTR_AXI_CLK					133
144*f126890aSEmmanuel Vadot #define GCC_USB30_SLEEP_CLK					134
145*f126890aSEmmanuel Vadot #define GCC_USB30_SLV_AHB_CLK					135
146*f126890aSEmmanuel Vadot #define GCC_USB3_PHY_AUX_CLK					136
147*f126890aSEmmanuel Vadot #define GCC_USB3_PHY_AUX_CLK_SRC				137
148*f126890aSEmmanuel Vadot #define GCC_USB3_PHY_PIPE_CLK					138
149*f126890aSEmmanuel Vadot #define GCC_USB3_PHY_PIPE_CLK_SRC				139
150*f126890aSEmmanuel Vadot #define GCC_USB3_PRIM_CLKREF_EN					140
151*f126890aSEmmanuel Vadot #define GCC_USB_PHY_CFG_AHB2PHY_CLK				141
152*f126890aSEmmanuel Vadot #define GCC_XO_PCIE_LINK_CLK					142
153*f126890aSEmmanuel Vadot 
154*f126890aSEmmanuel Vadot /* GCC power domains */
155*f126890aSEmmanuel Vadot #define GCC_EMAC0_GDSC						0
156*f126890aSEmmanuel Vadot #define GCC_EMAC1_GDSC						1
157*f126890aSEmmanuel Vadot #define GCC_PCIE_1_GDSC						2
158*f126890aSEmmanuel Vadot #define GCC_PCIE_1_PHY_GDSC					3
159*f126890aSEmmanuel Vadot #define GCC_PCIE_2_GDSC						4
160*f126890aSEmmanuel Vadot #define GCC_PCIE_2_PHY_GDSC					5
161*f126890aSEmmanuel Vadot #define GCC_PCIE_GDSC						6
162*f126890aSEmmanuel Vadot #define GCC_PCIE_PHY_GDSC					7
163*f126890aSEmmanuel Vadot #define GCC_USB30_GDSC						8
164*f126890aSEmmanuel Vadot #define GCC_USB3_PHY_GDSC					9
165*f126890aSEmmanuel Vadot 
166*f126890aSEmmanuel Vadot /* GCC resets */
167*f126890aSEmmanuel Vadot #define GCC_EMAC0_BCR						0
168*f126890aSEmmanuel Vadot #define GCC_EMAC1_BCR						1
169*f126890aSEmmanuel Vadot #define GCC_EMMC_BCR						2
170*f126890aSEmmanuel Vadot #define GCC_PCIE_1_BCR						3
171*f126890aSEmmanuel Vadot #define GCC_PCIE_1_LINK_DOWN_BCR				4
172*f126890aSEmmanuel Vadot #define GCC_PCIE_1_NOCSR_COM_PHY_BCR				5
173*f126890aSEmmanuel Vadot #define GCC_PCIE_1_PHY_BCR					6
174*f126890aSEmmanuel Vadot #define GCC_PCIE_2_BCR						7
175*f126890aSEmmanuel Vadot #define GCC_PCIE_2_LINK_DOWN_BCR				8
176*f126890aSEmmanuel Vadot #define GCC_PCIE_2_NOCSR_COM_PHY_BCR				9
177*f126890aSEmmanuel Vadot #define GCC_PCIE_2_PHY_BCR					10
178*f126890aSEmmanuel Vadot #define GCC_PCIE_BCR						11
179*f126890aSEmmanuel Vadot #define GCC_PCIE_LINK_DOWN_BCR					12
180*f126890aSEmmanuel Vadot #define GCC_PCIE_NOCSR_COM_PHY_BCR				13
181*f126890aSEmmanuel Vadot #define GCC_PCIE_PHY_BCR					14
182*f126890aSEmmanuel Vadot #define GCC_PCIE_PHY_CFG_AHB_BCR				15
183*f126890aSEmmanuel Vadot #define GCC_PCIE_PHY_COM_BCR					16
184*f126890aSEmmanuel Vadot #define GCC_PCIE_PHY_NOCSR_COM_PHY_BCR				17
185*f126890aSEmmanuel Vadot #define GCC_QUSB2PHY_BCR					18
186*f126890aSEmmanuel Vadot #define GCC_TCSR_PCIE_BCR					19
187*f126890aSEmmanuel Vadot #define GCC_USB30_BCR						20
188*f126890aSEmmanuel Vadot #define GCC_USB3_PHY_BCR					21
189*f126890aSEmmanuel Vadot #define GCC_USB3PHY_PHY_BCR					22
190*f126890aSEmmanuel Vadot #define GCC_USB_PHY_CFG_AHB2PHY_BCR				23
191*f126890aSEmmanuel Vadot #define GCC_EMAC0_RGMII_CLK_ARES				24
192*f126890aSEmmanuel Vadot 
193*f126890aSEmmanuel Vadot #endif
194