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