xref: /freebsd/sys/contrib/device-tree/include/dt-bindings/clock/qcom,gcc-sdx65.h (revision e67e85659c0de33e617e5fbf1028c6e8b49eee53)
1*e67e8565SEmmanuel Vadot /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
2*e67e8565SEmmanuel Vadot /*
3*e67e8565SEmmanuel Vadot  * Copyright (c) 2021, Qualcomm Innovation Center, Inc. All rights reserved.
4*e67e8565SEmmanuel Vadot  */
5*e67e8565SEmmanuel Vadot 
6*e67e8565SEmmanuel Vadot #ifndef _DT_BINDINGS_CLK_QCOM_GCC_SDX65_H
7*e67e8565SEmmanuel Vadot #define _DT_BINDINGS_CLK_QCOM_GCC_SDX65_H
8*e67e8565SEmmanuel Vadot 
9*e67e8565SEmmanuel Vadot /* GCC clocks */
10*e67e8565SEmmanuel Vadot #define GPLL0							0
11*e67e8565SEmmanuel Vadot #define GPLL0_OUT_EVEN						1
12*e67e8565SEmmanuel Vadot #define GCC_AHB_PCIE_LINK_CLK					2
13*e67e8565SEmmanuel Vadot #define GCC_BLSP1_AHB_CLK					3
14*e67e8565SEmmanuel Vadot #define GCC_BLSP1_QUP1_I2C_APPS_CLK				4
15*e67e8565SEmmanuel Vadot #define GCC_BLSP1_QUP1_I2C_APPS_CLK_SRC				5
16*e67e8565SEmmanuel Vadot #define GCC_BLSP1_QUP1_SPI_APPS_CLK				6
17*e67e8565SEmmanuel Vadot #define GCC_BLSP1_QUP1_SPI_APPS_CLK_SRC				7
18*e67e8565SEmmanuel Vadot #define GCC_BLSP1_QUP2_I2C_APPS_CLK				8
19*e67e8565SEmmanuel Vadot #define GCC_BLSP1_QUP2_I2C_APPS_CLK_SRC				9
20*e67e8565SEmmanuel Vadot #define GCC_BLSP1_QUP2_SPI_APPS_CLK				10
21*e67e8565SEmmanuel Vadot #define GCC_BLSP1_QUP2_SPI_APPS_CLK_SRC				11
22*e67e8565SEmmanuel Vadot #define GCC_BLSP1_QUP3_I2C_APPS_CLK				12
23*e67e8565SEmmanuel Vadot #define GCC_BLSP1_QUP3_I2C_APPS_CLK_SRC				13
24*e67e8565SEmmanuel Vadot #define GCC_BLSP1_QUP3_SPI_APPS_CLK				14
25*e67e8565SEmmanuel Vadot #define GCC_BLSP1_QUP3_SPI_APPS_CLK_SRC				15
26*e67e8565SEmmanuel Vadot #define GCC_BLSP1_QUP4_I2C_APPS_CLK				16
27*e67e8565SEmmanuel Vadot #define GCC_BLSP1_QUP4_I2C_APPS_CLK_SRC				17
28*e67e8565SEmmanuel Vadot #define GCC_BLSP1_QUP4_SPI_APPS_CLK				18
29*e67e8565SEmmanuel Vadot #define GCC_BLSP1_QUP4_SPI_APPS_CLK_SRC				19
30*e67e8565SEmmanuel Vadot #define GCC_BLSP1_SLEEP_CLK					20
31*e67e8565SEmmanuel Vadot #define GCC_BLSP1_UART1_APPS_CLK				21
32*e67e8565SEmmanuel Vadot #define GCC_BLSP1_UART1_APPS_CLK_SRC				22
33*e67e8565SEmmanuel Vadot #define GCC_BLSP1_UART2_APPS_CLK				23
34*e67e8565SEmmanuel Vadot #define GCC_BLSP1_UART2_APPS_CLK_SRC				24
35*e67e8565SEmmanuel Vadot #define GCC_BLSP1_UART3_APPS_CLK				25
36*e67e8565SEmmanuel Vadot #define GCC_BLSP1_UART3_APPS_CLK_SRC				26
37*e67e8565SEmmanuel Vadot #define GCC_BLSP1_UART4_APPS_CLK				27
38*e67e8565SEmmanuel Vadot #define GCC_BLSP1_UART4_APPS_CLK_SRC				28
39*e67e8565SEmmanuel Vadot #define GCC_BOOT_ROM_AHB_CLK					29
40*e67e8565SEmmanuel Vadot #define GCC_CPUSS_AHB_CLK					30
41*e67e8565SEmmanuel Vadot #define GCC_CPUSS_AHB_CLK_SRC					31
42*e67e8565SEmmanuel Vadot #define GCC_CPUSS_AHB_POSTDIV_CLK_SRC				32
43*e67e8565SEmmanuel Vadot #define GCC_CPUSS_GNOC_CLK					33
44*e67e8565SEmmanuel Vadot #define GCC_GP1_CLK						34
45*e67e8565SEmmanuel Vadot #define GCC_GP1_CLK_SRC						35
46*e67e8565SEmmanuel Vadot #define GCC_GP2_CLK						36
47*e67e8565SEmmanuel Vadot #define GCC_GP2_CLK_SRC						37
48*e67e8565SEmmanuel Vadot #define GCC_GP3_CLK						38
49*e67e8565SEmmanuel Vadot #define GCC_GP3_CLK_SRC						39
50*e67e8565SEmmanuel Vadot #define GCC_PCIE_0_CLKREF_EN					40
51*e67e8565SEmmanuel Vadot #define GCC_PCIE_AUX_CLK					41
52*e67e8565SEmmanuel Vadot #define GCC_PCIE_AUX_CLK_SRC					42
53*e67e8565SEmmanuel Vadot #define GCC_PCIE_AUX_PHY_CLK_SRC				43
54*e67e8565SEmmanuel Vadot #define GCC_PCIE_CFG_AHB_CLK					44
55*e67e8565SEmmanuel Vadot #define GCC_PCIE_MSTR_AXI_CLK					45
56*e67e8565SEmmanuel Vadot #define GCC_PCIE_PIPE_CLK					46
57*e67e8565SEmmanuel Vadot #define GCC_PCIE_PIPE_CLK_SRC					47
58*e67e8565SEmmanuel Vadot #define GCC_PCIE_RCHNG_PHY_CLK					48
59*e67e8565SEmmanuel Vadot #define GCC_PCIE_RCHNG_PHY_CLK_SRC				49
60*e67e8565SEmmanuel Vadot #define GCC_PCIE_SLEEP_CLK					50
61*e67e8565SEmmanuel Vadot #define GCC_PCIE_SLV_AXI_CLK					51
62*e67e8565SEmmanuel Vadot #define GCC_PCIE_SLV_Q2A_AXI_CLK				52
63*e67e8565SEmmanuel Vadot #define GCC_PDM2_CLK						53
64*e67e8565SEmmanuel Vadot #define GCC_PDM2_CLK_SRC					54
65*e67e8565SEmmanuel Vadot #define GCC_PDM_AHB_CLK						55
66*e67e8565SEmmanuel Vadot #define GCC_PDM_XO4_CLK						56
67*e67e8565SEmmanuel Vadot #define GCC_RX1_USB2_CLKREF_EN					57
68*e67e8565SEmmanuel Vadot #define GCC_SDCC1_AHB_CLK					58
69*e67e8565SEmmanuel Vadot #define GCC_SDCC1_APPS_CLK					59
70*e67e8565SEmmanuel Vadot #define GCC_SDCC1_APPS_CLK_SRC					60
71*e67e8565SEmmanuel Vadot #define GCC_SPMI_FETCHER_AHB_CLK				61
72*e67e8565SEmmanuel Vadot #define GCC_SPMI_FETCHER_CLK					62
73*e67e8565SEmmanuel Vadot #define GCC_SPMI_FETCHER_CLK_SRC				63
74*e67e8565SEmmanuel Vadot #define GCC_SYS_NOC_CPUSS_AHB_CLK				64
75*e67e8565SEmmanuel Vadot #define GCC_USB30_MASTER_CLK					65
76*e67e8565SEmmanuel Vadot #define GCC_USB30_MASTER_CLK_SRC				66
77*e67e8565SEmmanuel Vadot #define GCC_USB30_MOCK_UTMI_CLK					67
78*e67e8565SEmmanuel Vadot #define GCC_USB30_MOCK_UTMI_CLK_SRC				68
79*e67e8565SEmmanuel Vadot #define GCC_USB30_MOCK_UTMI_POSTDIV_CLK_SRC			69
80*e67e8565SEmmanuel Vadot #define GCC_USB30_MSTR_AXI_CLK					70
81*e67e8565SEmmanuel Vadot #define GCC_USB30_SLEEP_CLK					71
82*e67e8565SEmmanuel Vadot #define GCC_USB30_SLV_AHB_CLK					72
83*e67e8565SEmmanuel Vadot #define GCC_USB3_PHY_AUX_CLK					73
84*e67e8565SEmmanuel Vadot #define GCC_USB3_PHY_AUX_CLK_SRC				74
85*e67e8565SEmmanuel Vadot #define GCC_USB3_PHY_PIPE_CLK					75
86*e67e8565SEmmanuel Vadot #define GCC_USB3_PHY_PIPE_CLK_SRC				76
87*e67e8565SEmmanuel Vadot #define GCC_USB3_PRIM_CLKREF_EN					77
88*e67e8565SEmmanuel Vadot #define GCC_USB_PHY_CFG_AHB2PHY_CLK				78
89*e67e8565SEmmanuel Vadot #define GCC_XO_DIV4_CLK						79
90*e67e8565SEmmanuel Vadot #define GCC_XO_PCIE_LINK_CLK					80
91*e67e8565SEmmanuel Vadot 
92*e67e8565SEmmanuel Vadot /* GCC resets */
93*e67e8565SEmmanuel Vadot #define GCC_BLSP1_QUP1_BCR					0
94*e67e8565SEmmanuel Vadot #define GCC_BLSP1_QUP2_BCR					1
95*e67e8565SEmmanuel Vadot #define GCC_BLSP1_QUP3_BCR					2
96*e67e8565SEmmanuel Vadot #define GCC_BLSP1_QUP4_BCR					3
97*e67e8565SEmmanuel Vadot #define GCC_BLSP1_UART1_BCR					4
98*e67e8565SEmmanuel Vadot #define GCC_BLSP1_UART2_BCR					5
99*e67e8565SEmmanuel Vadot #define GCC_BLSP1_UART3_BCR					6
100*e67e8565SEmmanuel Vadot #define GCC_BLSP1_UART4_BCR					7
101*e67e8565SEmmanuel Vadot #define GCC_PCIE_BCR						8
102*e67e8565SEmmanuel Vadot #define GCC_PCIE_LINK_DOWN_BCR					9
103*e67e8565SEmmanuel Vadot #define GCC_PCIE_NOCSR_COM_PHY_BCR				10
104*e67e8565SEmmanuel Vadot #define GCC_PCIE_PHY_BCR					11
105*e67e8565SEmmanuel Vadot #define GCC_PCIE_PHY_CFG_AHB_BCR				12
106*e67e8565SEmmanuel Vadot #define GCC_PCIE_PHY_COM_BCR					13
107*e67e8565SEmmanuel Vadot #define GCC_PCIE_PHY_NOCSR_COM_PHY_BCR				14
108*e67e8565SEmmanuel Vadot #define GCC_PDM_BCR						15
109*e67e8565SEmmanuel Vadot #define GCC_QUSB2PHY_BCR					16
110*e67e8565SEmmanuel Vadot #define GCC_SDCC1_BCR						17
111*e67e8565SEmmanuel Vadot #define GCC_SPMI_FETCHER_BCR					18
112*e67e8565SEmmanuel Vadot #define GCC_TCSR_PCIE_BCR					19
113*e67e8565SEmmanuel Vadot #define GCC_USB30_BCR						20
114*e67e8565SEmmanuel Vadot #define GCC_USB3_PHY_BCR					21
115*e67e8565SEmmanuel Vadot #define GCC_USB3PHY_PHY_BCR					22
116*e67e8565SEmmanuel Vadot #define GCC_USB_PHY_CFG_AHB2PHY_BCR				23
117*e67e8565SEmmanuel Vadot 
118*e67e8565SEmmanuel Vadot /* GCC power domains */
119*e67e8565SEmmanuel Vadot #define USB30_GDSC                                              0
120*e67e8565SEmmanuel Vadot #define PCIE_GDSC                                               1
121*e67e8565SEmmanuel Vadot 
122*e67e8565SEmmanuel Vadot #endif
123