xref: /freebsd/sys/contrib/device-tree/include/dt-bindings/clock/qcom,gcc-sdx55.h (revision 5def4c47d4bd90b209b9b4a4ba9faec15846d8fd)
1*5def4c47SEmmanuel Vadot /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
2*5def4c47SEmmanuel Vadot /*
3*5def4c47SEmmanuel Vadot  * Copyright (c) 2018, The Linux Foundation. All rights reserved.
4*5def4c47SEmmanuel Vadot  * Copyright (c) 2020, Linaro Ltd.
5*5def4c47SEmmanuel Vadot  */
6*5def4c47SEmmanuel Vadot 
7*5def4c47SEmmanuel Vadot #ifndef _DT_BINDINGS_CLK_QCOM_GCC_SDX55_H
8*5def4c47SEmmanuel Vadot #define _DT_BINDINGS_CLK_QCOM_GCC_SDX55_H
9*5def4c47SEmmanuel Vadot 
10*5def4c47SEmmanuel Vadot #define GPLL0							3
11*5def4c47SEmmanuel Vadot #define GPLL0_OUT_EVEN						4
12*5def4c47SEmmanuel Vadot #define GPLL4							5
13*5def4c47SEmmanuel Vadot #define GPLL4_OUT_EVEN						6
14*5def4c47SEmmanuel Vadot #define GPLL5							7
15*5def4c47SEmmanuel Vadot #define GCC_AHB_PCIE_LINK_CLK					8
16*5def4c47SEmmanuel Vadot #define GCC_BLSP1_AHB_CLK					9
17*5def4c47SEmmanuel Vadot #define GCC_BLSP1_QUP1_I2C_APPS_CLK				10
18*5def4c47SEmmanuel Vadot #define GCC_BLSP1_QUP1_I2C_APPS_CLK_SRC				11
19*5def4c47SEmmanuel Vadot #define GCC_BLSP1_QUP1_SPI_APPS_CLK				12
20*5def4c47SEmmanuel Vadot #define GCC_BLSP1_QUP1_SPI_APPS_CLK_SRC				13
21*5def4c47SEmmanuel Vadot #define GCC_BLSP1_QUP2_I2C_APPS_CLK				14
22*5def4c47SEmmanuel Vadot #define GCC_BLSP1_QUP2_I2C_APPS_CLK_SRC				15
23*5def4c47SEmmanuel Vadot #define GCC_BLSP1_QUP2_SPI_APPS_CLK				16
24*5def4c47SEmmanuel Vadot #define GCC_BLSP1_QUP2_SPI_APPS_CLK_SRC				17
25*5def4c47SEmmanuel Vadot #define GCC_BLSP1_QUP3_I2C_APPS_CLK				18
26*5def4c47SEmmanuel Vadot #define GCC_BLSP1_QUP3_I2C_APPS_CLK_SRC				19
27*5def4c47SEmmanuel Vadot #define GCC_BLSP1_QUP3_SPI_APPS_CLK				20
28*5def4c47SEmmanuel Vadot #define GCC_BLSP1_QUP3_SPI_APPS_CLK_SRC				21
29*5def4c47SEmmanuel Vadot #define GCC_BLSP1_QUP4_I2C_APPS_CLK				22
30*5def4c47SEmmanuel Vadot #define GCC_BLSP1_QUP4_I2C_APPS_CLK_SRC				23
31*5def4c47SEmmanuel Vadot #define GCC_BLSP1_QUP4_SPI_APPS_CLK				24
32*5def4c47SEmmanuel Vadot #define GCC_BLSP1_QUP4_SPI_APPS_CLK_SRC				25
33*5def4c47SEmmanuel Vadot #define GCC_BLSP1_UART1_APPS_CLK				26
34*5def4c47SEmmanuel Vadot #define GCC_BLSP1_UART1_APPS_CLK_SRC				27
35*5def4c47SEmmanuel Vadot #define GCC_BLSP1_UART2_APPS_CLK				28
36*5def4c47SEmmanuel Vadot #define GCC_BLSP1_UART2_APPS_CLK_SRC				29
37*5def4c47SEmmanuel Vadot #define GCC_BLSP1_UART3_APPS_CLK				30
38*5def4c47SEmmanuel Vadot #define GCC_BLSP1_UART3_APPS_CLK_SRC				31
39*5def4c47SEmmanuel Vadot #define GCC_BLSP1_UART4_APPS_CLK				32
40*5def4c47SEmmanuel Vadot #define GCC_BLSP1_UART4_APPS_CLK_SRC				33
41*5def4c47SEmmanuel Vadot #define GCC_BOOT_ROM_AHB_CLK					34
42*5def4c47SEmmanuel Vadot #define GCC_CE1_AHB_CLK						35
43*5def4c47SEmmanuel Vadot #define GCC_CE1_AXI_CLK						36
44*5def4c47SEmmanuel Vadot #define GCC_CE1_CLK						37
45*5def4c47SEmmanuel Vadot #define GCC_CPUSS_AHB_CLK					38
46*5def4c47SEmmanuel Vadot #define GCC_CPUSS_AHB_CLK_SRC					39
47*5def4c47SEmmanuel Vadot #define GCC_CPUSS_GNOC_CLK					40
48*5def4c47SEmmanuel Vadot #define GCC_CPUSS_RBCPR_CLK					41
49*5def4c47SEmmanuel Vadot #define GCC_CPUSS_RBCPR_CLK_SRC					42
50*5def4c47SEmmanuel Vadot #define GCC_EMAC_CLK_SRC					43
51*5def4c47SEmmanuel Vadot #define GCC_EMAC_PTP_CLK_SRC					44
52*5def4c47SEmmanuel Vadot #define GCC_ETH_AXI_CLK						45
53*5def4c47SEmmanuel Vadot #define GCC_ETH_PTP_CLK						46
54*5def4c47SEmmanuel Vadot #define GCC_ETH_RGMII_CLK					47
55*5def4c47SEmmanuel Vadot #define GCC_ETH_SLAVE_AHB_CLK					48
56*5def4c47SEmmanuel Vadot #define GCC_GP1_CLK						49
57*5def4c47SEmmanuel Vadot #define GCC_GP1_CLK_SRC						50
58*5def4c47SEmmanuel Vadot #define GCC_GP2_CLK						51
59*5def4c47SEmmanuel Vadot #define GCC_GP2_CLK_SRC						52
60*5def4c47SEmmanuel Vadot #define GCC_GP3_CLK						53
61*5def4c47SEmmanuel Vadot #define GCC_GP3_CLK_SRC						54
62*5def4c47SEmmanuel Vadot #define GCC_PCIE_0_CLKREF_CLK					55
63*5def4c47SEmmanuel Vadot #define GCC_PCIE_AUX_CLK					56
64*5def4c47SEmmanuel Vadot #define GCC_PCIE_AUX_PHY_CLK_SRC				57
65*5def4c47SEmmanuel Vadot #define GCC_PCIE_CFG_AHB_CLK					58
66*5def4c47SEmmanuel Vadot #define GCC_PCIE_MSTR_AXI_CLK					59
67*5def4c47SEmmanuel Vadot #define GCC_PCIE_PIPE_CLK					60
68*5def4c47SEmmanuel Vadot #define GCC_PCIE_RCHNG_PHY_CLK					61
69*5def4c47SEmmanuel Vadot #define GCC_PCIE_RCHNG_PHY_CLK_SRC				62
70*5def4c47SEmmanuel Vadot #define GCC_PCIE_SLEEP_CLK					63
71*5def4c47SEmmanuel Vadot #define GCC_PCIE_SLV_AXI_CLK					64
72*5def4c47SEmmanuel Vadot #define GCC_PCIE_SLV_Q2A_AXI_CLK				65
73*5def4c47SEmmanuel Vadot #define GCC_PDM2_CLK						66
74*5def4c47SEmmanuel Vadot #define GCC_PDM2_CLK_SRC					67
75*5def4c47SEmmanuel Vadot #define GCC_PDM_AHB_CLK						68
76*5def4c47SEmmanuel Vadot #define GCC_PDM_XO4_CLK						69
77*5def4c47SEmmanuel Vadot #define GCC_SDCC1_AHB_CLK					70
78*5def4c47SEmmanuel Vadot #define GCC_SDCC1_APPS_CLK					71
79*5def4c47SEmmanuel Vadot #define GCC_SDCC1_APPS_CLK_SRC					72
80*5def4c47SEmmanuel Vadot #define GCC_SYS_NOC_CPUSS_AHB_CLK				73
81*5def4c47SEmmanuel Vadot #define GCC_USB30_MASTER_CLK					74
82*5def4c47SEmmanuel Vadot #define GCC_USB30_MASTER_CLK_SRC				75
83*5def4c47SEmmanuel Vadot #define GCC_USB30_MOCK_UTMI_CLK					76
84*5def4c47SEmmanuel Vadot #define GCC_USB30_MOCK_UTMI_CLK_SRC				77
85*5def4c47SEmmanuel Vadot #define GCC_USB30_MSTR_AXI_CLK					78
86*5def4c47SEmmanuel Vadot #define GCC_USB30_SLEEP_CLK					79
87*5def4c47SEmmanuel Vadot #define GCC_USB30_SLV_AHB_CLK					80
88*5def4c47SEmmanuel Vadot #define GCC_USB3_PHY_AUX_CLK					81
89*5def4c47SEmmanuel Vadot #define GCC_USB3_PHY_AUX_CLK_SRC				82
90*5def4c47SEmmanuel Vadot #define GCC_USB3_PHY_PIPE_CLK					83
91*5def4c47SEmmanuel Vadot #define GCC_USB3_PRIM_CLKREF_CLK				84
92*5def4c47SEmmanuel Vadot #define GCC_USB_PHY_CFG_AHB2PHY_CLK				85
93*5def4c47SEmmanuel Vadot #define GCC_XO_DIV4_CLK						86
94*5def4c47SEmmanuel Vadot #define GCC_XO_PCIE_LINK_CLK					87
95*5def4c47SEmmanuel Vadot 
96*5def4c47SEmmanuel Vadot #define GCC_EMAC_BCR						0
97*5def4c47SEmmanuel Vadot #define GCC_PCIE_BCR						1
98*5def4c47SEmmanuel Vadot #define GCC_PCIE_LINK_DOWN_BCR					2
99*5def4c47SEmmanuel Vadot #define GCC_PCIE_NOCSR_COM_PHY_BCR				3
100*5def4c47SEmmanuel Vadot #define GCC_PCIE_PHY_BCR					4
101*5def4c47SEmmanuel Vadot #define GCC_PCIE_PHY_CFG_AHB_BCR				5
102*5def4c47SEmmanuel Vadot #define GCC_PCIE_PHY_COM_BCR					6
103*5def4c47SEmmanuel Vadot #define GCC_PCIE_PHY_NOCSR_COM_PHY_BCR				7
104*5def4c47SEmmanuel Vadot #define GCC_PDM_BCR						8
105*5def4c47SEmmanuel Vadot #define GCC_QUSB2PHY_BCR					9
106*5def4c47SEmmanuel Vadot #define GCC_TCSR_PCIE_BCR					10
107*5def4c47SEmmanuel Vadot #define GCC_USB30_BCR						11
108*5def4c47SEmmanuel Vadot #define GCC_USB3_PHY_BCR					12
109*5def4c47SEmmanuel Vadot #define GCC_USB3PHY_PHY_BCR					13
110*5def4c47SEmmanuel Vadot #define GCC_USB_PHY_CFG_AHB2PHY_BCR				14
111*5def4c47SEmmanuel Vadot 
112*5def4c47SEmmanuel Vadot /* GCC power domains */
113*5def4c47SEmmanuel Vadot #define USB30_GDSC						0
114*5def4c47SEmmanuel Vadot #define PCIE_GDSC						1
115*5def4c47SEmmanuel Vadot #define EMAC_GDSC						2
116*5def4c47SEmmanuel Vadot 
117*5def4c47SEmmanuel Vadot #endif
118