19ee38b21SAmit Nischal /* SPDX-License-Identifier: GPL-2.0 */
29ee38b21SAmit Nischal /*
39ee38b21SAmit Nischal  * Copyright (c) 2018, The Linux Foundation. All rights reserved.
49ee38b21SAmit Nischal  */
59ee38b21SAmit Nischal 
69ee38b21SAmit Nischal #ifndef _DT_BINDINGS_CLK_SDM_GCC_SDM845_H
79ee38b21SAmit Nischal #define _DT_BINDINGS_CLK_SDM_GCC_SDM845_H
89ee38b21SAmit Nischal 
99ee38b21SAmit Nischal /* GCC clock registers */
109ee38b21SAmit Nischal #define GCC_AGGRE_NOC_PCIE_TBU_CLK				0
119ee38b21SAmit Nischal #define GCC_AGGRE_UFS_CARD_AXI_CLK				1
129ee38b21SAmit Nischal #define GCC_AGGRE_UFS_PHY_AXI_CLK				2
139ee38b21SAmit Nischal #define GCC_AGGRE_USB3_PRIM_AXI_CLK				3
149ee38b21SAmit Nischal #define GCC_AGGRE_USB3_SEC_AXI_CLK				4
159ee38b21SAmit Nischal #define GCC_BOOT_ROM_AHB_CLK					5
169ee38b21SAmit Nischal #define GCC_CAMERA_AHB_CLK					6
179ee38b21SAmit Nischal #define GCC_CAMERA_AXI_CLK					7
189ee38b21SAmit Nischal #define GCC_CAMERA_XO_CLK					8
199ee38b21SAmit Nischal #define GCC_CE1_AHB_CLK						9
209ee38b21SAmit Nischal #define GCC_CE1_AXI_CLK						10
219ee38b21SAmit Nischal #define GCC_CE1_CLK						11
229ee38b21SAmit Nischal #define GCC_CFG_NOC_USB3_PRIM_AXI_CLK				12
239ee38b21SAmit Nischal #define GCC_CFG_NOC_USB3_SEC_AXI_CLK				13
249ee38b21SAmit Nischal #define GCC_CPUSS_AHB_CLK					14
259ee38b21SAmit Nischal #define GCC_CPUSS_AHB_CLK_SRC					15
269ee38b21SAmit Nischal #define GCC_CPUSS_RBCPR_CLK					16
279ee38b21SAmit Nischal #define GCC_CPUSS_RBCPR_CLK_SRC					17
289ee38b21SAmit Nischal #define GCC_DDRSS_GPU_AXI_CLK					18
299ee38b21SAmit Nischal #define GCC_DISP_AHB_CLK					19
309ee38b21SAmit Nischal #define GCC_DISP_AXI_CLK					20
319ee38b21SAmit Nischal #define GCC_DISP_GPLL0_CLK_SRC					21
329ee38b21SAmit Nischal #define GCC_DISP_GPLL0_DIV_CLK_SRC				22
339ee38b21SAmit Nischal #define GCC_DISP_XO_CLK						23
349ee38b21SAmit Nischal #define GCC_GP1_CLK						24
359ee38b21SAmit Nischal #define GCC_GP1_CLK_SRC						25
369ee38b21SAmit Nischal #define GCC_GP2_CLK						26
379ee38b21SAmit Nischal #define GCC_GP2_CLK_SRC						27
389ee38b21SAmit Nischal #define GCC_GP3_CLK						28
399ee38b21SAmit Nischal #define GCC_GP3_CLK_SRC						29
409ee38b21SAmit Nischal #define GCC_GPU_CFG_AHB_CLK					30
419ee38b21SAmit Nischal #define GCC_GPU_GPLL0_CLK_SRC					31
429ee38b21SAmit Nischal #define GCC_GPU_GPLL0_DIV_CLK_SRC				32
439ee38b21SAmit Nischal #define GCC_GPU_MEMNOC_GFX_CLK					33
449ee38b21SAmit Nischal #define GCC_GPU_SNOC_DVM_GFX_CLK				34
459ee38b21SAmit Nischal #define GCC_MSS_AXIS2_CLK					35
469ee38b21SAmit Nischal #define GCC_MSS_CFG_AHB_CLK					36
479ee38b21SAmit Nischal #define GCC_MSS_GPLL0_DIV_CLK_SRC				37
489ee38b21SAmit Nischal #define GCC_MSS_MFAB_AXIS_CLK					38
499ee38b21SAmit Nischal #define GCC_MSS_Q6_MEMNOC_AXI_CLK				39
509ee38b21SAmit Nischal #define GCC_MSS_SNOC_AXI_CLK					40
519ee38b21SAmit Nischal #define GCC_PCIE_0_AUX_CLK					41
529ee38b21SAmit Nischal #define GCC_PCIE_0_AUX_CLK_SRC					42
539ee38b21SAmit Nischal #define GCC_PCIE_0_CFG_AHB_CLK					43
549ee38b21SAmit Nischal #define GCC_PCIE_0_CLKREF_CLK					44
559ee38b21SAmit Nischal #define GCC_PCIE_0_MSTR_AXI_CLK					45
569ee38b21SAmit Nischal #define GCC_PCIE_0_PIPE_CLK					46
579ee38b21SAmit Nischal #define GCC_PCIE_0_SLV_AXI_CLK					47
589ee38b21SAmit Nischal #define GCC_PCIE_0_SLV_Q2A_AXI_CLK				48
599ee38b21SAmit Nischal #define GCC_PCIE_1_AUX_CLK					49
609ee38b21SAmit Nischal #define GCC_PCIE_1_AUX_CLK_SRC					50
619ee38b21SAmit Nischal #define GCC_PCIE_1_CFG_AHB_CLK					51
629ee38b21SAmit Nischal #define GCC_PCIE_1_CLKREF_CLK					52
639ee38b21SAmit Nischal #define GCC_PCIE_1_MSTR_AXI_CLK					53
649ee38b21SAmit Nischal #define GCC_PCIE_1_PIPE_CLK					54
659ee38b21SAmit Nischal #define GCC_PCIE_1_SLV_AXI_CLK					55
669ee38b21SAmit Nischal #define GCC_PCIE_1_SLV_Q2A_AXI_CLK				56
679ee38b21SAmit Nischal #define GCC_PCIE_PHY_AUX_CLK					57
689ee38b21SAmit Nischal #define GCC_PCIE_PHY_REFGEN_CLK					58
699ee38b21SAmit Nischal #define GCC_PCIE_PHY_REFGEN_CLK_SRC				59
709ee38b21SAmit Nischal #define GCC_PDM2_CLK						60
719ee38b21SAmit Nischal #define GCC_PDM2_CLK_SRC					61
729ee38b21SAmit Nischal #define GCC_PDM_AHB_CLK						62
739ee38b21SAmit Nischal #define GCC_PDM_XO4_CLK						63
749ee38b21SAmit Nischal #define GCC_PRNG_AHB_CLK					64
759ee38b21SAmit Nischal #define GCC_QMIP_CAMERA_AHB_CLK					65
769ee38b21SAmit Nischal #define GCC_QMIP_DISP_AHB_CLK					66
779ee38b21SAmit Nischal #define GCC_QMIP_VIDEO_AHB_CLK					67
789ee38b21SAmit Nischal #define GCC_QUPV3_WRAP0_S0_CLK					68
799ee38b21SAmit Nischal #define GCC_QUPV3_WRAP0_S0_CLK_SRC				69
809ee38b21SAmit Nischal #define GCC_QUPV3_WRAP0_S1_CLK					70
819ee38b21SAmit Nischal #define GCC_QUPV3_WRAP0_S1_CLK_SRC				71
829ee38b21SAmit Nischal #define GCC_QUPV3_WRAP0_S2_CLK					72
839ee38b21SAmit Nischal #define GCC_QUPV3_WRAP0_S2_CLK_SRC				73
849ee38b21SAmit Nischal #define GCC_QUPV3_WRAP0_S3_CLK					74
859ee38b21SAmit Nischal #define GCC_QUPV3_WRAP0_S3_CLK_SRC				75
869ee38b21SAmit Nischal #define GCC_QUPV3_WRAP0_S4_CLK					76
879ee38b21SAmit Nischal #define GCC_QUPV3_WRAP0_S4_CLK_SRC				77
889ee38b21SAmit Nischal #define GCC_QUPV3_WRAP0_S5_CLK					78
899ee38b21SAmit Nischal #define GCC_QUPV3_WRAP0_S5_CLK_SRC				79
909ee38b21SAmit Nischal #define GCC_QUPV3_WRAP0_S6_CLK					80
919ee38b21SAmit Nischal #define GCC_QUPV3_WRAP0_S6_CLK_SRC				81
929ee38b21SAmit Nischal #define GCC_QUPV3_WRAP0_S7_CLK					82
939ee38b21SAmit Nischal #define GCC_QUPV3_WRAP0_S7_CLK_SRC				83
949ee38b21SAmit Nischal #define GCC_QUPV3_WRAP1_S0_CLK					84
959ee38b21SAmit Nischal #define GCC_QUPV3_WRAP1_S0_CLK_SRC				85
969ee38b21SAmit Nischal #define GCC_QUPV3_WRAP1_S1_CLK					86
979ee38b21SAmit Nischal #define GCC_QUPV3_WRAP1_S1_CLK_SRC				87
989ee38b21SAmit Nischal #define GCC_QUPV3_WRAP1_S2_CLK					88
999ee38b21SAmit Nischal #define GCC_QUPV3_WRAP1_S2_CLK_SRC				89
1009ee38b21SAmit Nischal #define GCC_QUPV3_WRAP1_S3_CLK					90
1019ee38b21SAmit Nischal #define GCC_QUPV3_WRAP1_S3_CLK_SRC				91
1029ee38b21SAmit Nischal #define GCC_QUPV3_WRAP1_S4_CLK					92
1039ee38b21SAmit Nischal #define GCC_QUPV3_WRAP1_S4_CLK_SRC				93
1049ee38b21SAmit Nischal #define GCC_QUPV3_WRAP1_S5_CLK					94
1059ee38b21SAmit Nischal #define GCC_QUPV3_WRAP1_S5_CLK_SRC				95
1069ee38b21SAmit Nischal #define GCC_QUPV3_WRAP1_S6_CLK					96
1079ee38b21SAmit Nischal #define GCC_QUPV3_WRAP1_S6_CLK_SRC				97
1089ee38b21SAmit Nischal #define GCC_QUPV3_WRAP1_S7_CLK					98
1099ee38b21SAmit Nischal #define GCC_QUPV3_WRAP1_S7_CLK_SRC				99
1109ee38b21SAmit Nischal #define GCC_QUPV3_WRAP_0_M_AHB_CLK				100
1119ee38b21SAmit Nischal #define GCC_QUPV3_WRAP_0_S_AHB_CLK				101
1129ee38b21SAmit Nischal #define GCC_QUPV3_WRAP_1_M_AHB_CLK				102
1139ee38b21SAmit Nischal #define GCC_QUPV3_WRAP_1_S_AHB_CLK				103
1149ee38b21SAmit Nischal #define GCC_SDCC2_AHB_CLK					104
1159ee38b21SAmit Nischal #define GCC_SDCC2_APPS_CLK					105
1169ee38b21SAmit Nischal #define GCC_SDCC2_APPS_CLK_SRC					106
1179ee38b21SAmit Nischal #define GCC_SDCC4_AHB_CLK					107
1189ee38b21SAmit Nischal #define GCC_SDCC4_APPS_CLK					108
1199ee38b21SAmit Nischal #define GCC_SDCC4_APPS_CLK_SRC					109
1209ee38b21SAmit Nischal #define GCC_SYS_NOC_CPUSS_AHB_CLK				110
1219ee38b21SAmit Nischal #define GCC_TSIF_AHB_CLK					111
1229ee38b21SAmit Nischal #define GCC_TSIF_INACTIVITY_TIMERS_CLK				112
1239ee38b21SAmit Nischal #define GCC_TSIF_REF_CLK					113
1249ee38b21SAmit Nischal #define GCC_TSIF_REF_CLK_SRC					114
1259ee38b21SAmit Nischal #define GCC_UFS_CARD_AHB_CLK					115
1269ee38b21SAmit Nischal #define GCC_UFS_CARD_AXI_CLK					116
1279ee38b21SAmit Nischal #define GCC_UFS_CARD_AXI_CLK_SRC				117
1289ee38b21SAmit Nischal #define GCC_UFS_CARD_CLKREF_CLK					118
1299ee38b21SAmit Nischal #define GCC_UFS_CARD_ICE_CORE_CLK				119
1309ee38b21SAmit Nischal #define GCC_UFS_CARD_ICE_CORE_CLK_SRC				120
1319ee38b21SAmit Nischal #define GCC_UFS_CARD_PHY_AUX_CLK				121
1329ee38b21SAmit Nischal #define GCC_UFS_CARD_PHY_AUX_CLK_SRC				122
1339ee38b21SAmit Nischal #define GCC_UFS_CARD_RX_SYMBOL_0_CLK				123
1349ee38b21SAmit Nischal #define GCC_UFS_CARD_RX_SYMBOL_1_CLK				124
1359ee38b21SAmit Nischal #define GCC_UFS_CARD_TX_SYMBOL_0_CLK				125
1369ee38b21SAmit Nischal #define GCC_UFS_CARD_UNIPRO_CORE_CLK				126
1379ee38b21SAmit Nischal #define GCC_UFS_CARD_UNIPRO_CORE_CLK_SRC			127
1389ee38b21SAmit Nischal #define GCC_UFS_MEM_CLKREF_CLK					128
1399ee38b21SAmit Nischal #define GCC_UFS_PHY_AHB_CLK					129
1409ee38b21SAmit Nischal #define GCC_UFS_PHY_AXI_CLK					130
1419ee38b21SAmit Nischal #define GCC_UFS_PHY_AXI_CLK_SRC					131
1429ee38b21SAmit Nischal #define GCC_UFS_PHY_ICE_CORE_CLK				132
1439ee38b21SAmit Nischal #define GCC_UFS_PHY_ICE_CORE_CLK_SRC				133
1449ee38b21SAmit Nischal #define GCC_UFS_PHY_PHY_AUX_CLK					134
1459ee38b21SAmit Nischal #define GCC_UFS_PHY_PHY_AUX_CLK_SRC				135
1469ee38b21SAmit Nischal #define GCC_UFS_PHY_RX_SYMBOL_0_CLK				136
1479ee38b21SAmit Nischal #define GCC_UFS_PHY_RX_SYMBOL_1_CLK				137
1489ee38b21SAmit Nischal #define GCC_UFS_PHY_TX_SYMBOL_0_CLK				138
1499ee38b21SAmit Nischal #define GCC_UFS_PHY_UNIPRO_CORE_CLK				139
1509ee38b21SAmit Nischal #define GCC_UFS_PHY_UNIPRO_CORE_CLK_SRC				140
1519ee38b21SAmit Nischal #define GCC_USB30_PRIM_MASTER_CLK				141
1529ee38b21SAmit Nischal #define GCC_USB30_PRIM_MASTER_CLK_SRC				142
1539ee38b21SAmit Nischal #define GCC_USB30_PRIM_MOCK_UTMI_CLK				143
1549ee38b21SAmit Nischal #define GCC_USB30_PRIM_MOCK_UTMI_CLK_SRC			144
1559ee38b21SAmit Nischal #define GCC_USB30_PRIM_SLEEP_CLK				145
1569ee38b21SAmit Nischal #define GCC_USB30_SEC_MASTER_CLK				146
1579ee38b21SAmit Nischal #define GCC_USB30_SEC_MASTER_CLK_SRC				147
1589ee38b21SAmit Nischal #define GCC_USB30_SEC_MOCK_UTMI_CLK				148
1599ee38b21SAmit Nischal #define GCC_USB30_SEC_MOCK_UTMI_CLK_SRC				149
1609ee38b21SAmit Nischal #define GCC_USB30_SEC_SLEEP_CLK					150
1619ee38b21SAmit Nischal #define GCC_USB3_PRIM_CLKREF_CLK				151
1629ee38b21SAmit Nischal #define GCC_USB3_PRIM_PHY_AUX_CLK				152
1639ee38b21SAmit Nischal #define GCC_USB3_PRIM_PHY_AUX_CLK_SRC				153
1649ee38b21SAmit Nischal #define GCC_USB3_PRIM_PHY_COM_AUX_CLK				154
1659ee38b21SAmit Nischal #define GCC_USB3_PRIM_PHY_PIPE_CLK				155
1669ee38b21SAmit Nischal #define GCC_USB3_SEC_CLKREF_CLK					156
1679ee38b21SAmit Nischal #define GCC_USB3_SEC_PHY_AUX_CLK				157
1689ee38b21SAmit Nischal #define GCC_USB3_SEC_PHY_AUX_CLK_SRC				158
1699ee38b21SAmit Nischal #define GCC_USB3_SEC_PHY_PIPE_CLK				159
1709ee38b21SAmit Nischal #define GCC_USB3_SEC_PHY_COM_AUX_CLK				160
1719ee38b21SAmit Nischal #define GCC_USB_PHY_CFG_AHB2PHY_CLK				161
1729ee38b21SAmit Nischal #define GCC_VIDEO_AHB_CLK					162
1739ee38b21SAmit Nischal #define GCC_VIDEO_AXI_CLK					163
1749ee38b21SAmit Nischal #define GCC_VIDEO_XO_CLK					164
1759ee38b21SAmit Nischal #define GPLL0							165
1769ee38b21SAmit Nischal #define GPLL0_OUT_EVEN						166
1779ee38b21SAmit Nischal #define GPLL0_OUT_MAIN						167
1789ee38b21SAmit Nischal #define GCC_GPU_IREF_CLK					168
1799ee38b21SAmit Nischal #define GCC_SDCC1_AHB_CLK					169
1809ee38b21SAmit Nischal #define GCC_SDCC1_APPS_CLK					170
1819ee38b21SAmit Nischal #define GCC_SDCC1_ICE_CORE_CLK					171
1829ee38b21SAmit Nischal #define GCC_SDCC1_APPS_CLK_SRC					172
1839ee38b21SAmit Nischal #define GCC_SDCC1_ICE_CORE_CLK_SRC				173
1849ee38b21SAmit Nischal #define GCC_APC_VS_CLK						174
1859ee38b21SAmit Nischal #define GCC_GPU_VS_CLK						175
1869ee38b21SAmit Nischal #define GCC_MSS_VS_CLK						176
1879ee38b21SAmit Nischal #define GCC_VDDA_VS_CLK						177
1889ee38b21SAmit Nischal #define GCC_VDDCX_VS_CLK					178
1899ee38b21SAmit Nischal #define GCC_VDDMX_VS_CLK					179
1909ee38b21SAmit Nischal #define GCC_VS_CTRL_AHB_CLK					180
1919ee38b21SAmit Nischal #define GCC_VS_CTRL_CLK						181
1929ee38b21SAmit Nischal #define GCC_VS_CTRL_CLK_SRC					182
1939ee38b21SAmit Nischal #define GCC_VSENSOR_CLK_SRC					183
1949ee38b21SAmit Nischal #define GPLL4							184
195cfb8282eSAmit Nischal #define GCC_CPUSS_DVM_BUS_CLK					185
196cfb8282eSAmit Nischal #define GCC_CPUSS_GNOC_CLK					186
19748735597SDouglas Anderson #define GCC_QSPI_CORE_CLK_SRC					187
19848735597SDouglas Anderson #define GCC_QSPI_CORE_CLK					188
19948735597SDouglas Anderson #define GCC_QSPI_CNOC_PERIPH_AHB_CLK				189
2008ff1a156STaniya Das #define GCC_LPASS_Q6_AXI_CLK					190
2018ff1a156STaniya Das #define GCC_LPASS_SWAY_CLK					191
202*657e9326SRichard Acayan #define GPLL6							192
2039ee38b21SAmit Nischal 
2049ee38b21SAmit Nischal /* GCC Resets */
2059ee38b21SAmit Nischal #define GCC_MMSS_BCR						0
2069ee38b21SAmit Nischal #define GCC_PCIE_0_BCR						1
2079ee38b21SAmit Nischal #define GCC_PCIE_1_BCR						2
2089ee38b21SAmit Nischal #define GCC_PCIE_PHY_BCR					3
2099ee38b21SAmit Nischal #define GCC_PDM_BCR						4
2109ee38b21SAmit Nischal #define GCC_PRNG_BCR						5
2119ee38b21SAmit Nischal #define GCC_QUPV3_WRAPPER_0_BCR					6
2129ee38b21SAmit Nischal #define GCC_QUPV3_WRAPPER_1_BCR					7
2139ee38b21SAmit Nischal #define GCC_QUSB2PHY_PRIM_BCR					8
2149ee38b21SAmit Nischal #define GCC_QUSB2PHY_SEC_BCR					9
2159ee38b21SAmit Nischal #define GCC_SDCC2_BCR						10
2169ee38b21SAmit Nischal #define GCC_SDCC4_BCR						11
2179ee38b21SAmit Nischal #define GCC_TSIF_BCR						12
2189ee38b21SAmit Nischal #define GCC_UFS_CARD_BCR					13
2199ee38b21SAmit Nischal #define GCC_UFS_PHY_BCR						14
2209ee38b21SAmit Nischal #define GCC_USB30_PRIM_BCR					15
2219ee38b21SAmit Nischal #define GCC_USB30_SEC_BCR					16
2229ee38b21SAmit Nischal #define GCC_USB3_PHY_PRIM_BCR					17
2239ee38b21SAmit Nischal #define GCC_USB3PHY_PHY_PRIM_BCR				18
2249ee38b21SAmit Nischal #define GCC_USB3_DP_PHY_PRIM_BCR				19
2259ee38b21SAmit Nischal #define GCC_USB3_PHY_SEC_BCR					20
2269ee38b21SAmit Nischal #define GCC_USB3PHY_PHY_SEC_BCR					21
2279ee38b21SAmit Nischal #define GCC_USB3_DP_PHY_SEC_BCR					22
2289ee38b21SAmit Nischal #define GCC_USB_PHY_CFG_AHB2PHY_BCR				23
2299ee38b21SAmit Nischal #define GCC_PCIE_0_PHY_BCR					24
2309ee38b21SAmit Nischal #define GCC_PCIE_1_PHY_BCR					25
2319ee38b21SAmit Nischal 
2329ee38b21SAmit Nischal /* GCC GDSCRs */
2339ee38b21SAmit Nischal #define PCIE_0_GDSC						0
2349ee38b21SAmit Nischal #define PCIE_1_GDSC						1
2359ee38b21SAmit Nischal #define UFS_CARD_GDSC						2
2369ee38b21SAmit Nischal #define UFS_PHY_GDSC						3
2379ee38b21SAmit Nischal #define USB30_PRIM_GDSC						4
2389ee38b21SAmit Nischal #define USB30_SEC_GDSC						5
2399ee38b21SAmit Nischal #define HLOS1_VOTE_AGGRE_NOC_MMU_AUDIO_TBU_GDSC			6
2409ee38b21SAmit Nischal #define HLOS1_VOTE_AGGRE_NOC_MMU_PCIE_TBU_GDSC			7
2419ee38b21SAmit Nischal #define HLOS1_VOTE_AGGRE_NOC_MMU_TBU1_GDSC			8
2429ee38b21SAmit Nischal #define HLOS1_VOTE_AGGRE_NOC_MMU_TBU2_GDSC			9
2439ee38b21SAmit Nischal #define HLOS1_VOTE_MMNOC_MMU_TBU_HF0_GDSC			10
2449ee38b21SAmit Nischal #define HLOS1_VOTE_MMNOC_MMU_TBU_HF1_GDSC			11
2459ee38b21SAmit Nischal #define HLOS1_VOTE_MMNOC_MMU_TBU_SF_GDSC			12
2469ee38b21SAmit Nischal 
2479ee38b21SAmit Nischal #endif
248