162306a36Sopenharmony_ci/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * Copyright (c) 2021, Konrad Dybcio <konrad.dybcio@somainline.org> 462306a36Sopenharmony_ci */ 562306a36Sopenharmony_ci 662306a36Sopenharmony_ci#ifndef _DT_BINDINGS_CLK_QCOM_GCC_SM6125_H 762306a36Sopenharmony_ci#define _DT_BINDINGS_CLK_QCOM_GCC_SM6125_H 862306a36Sopenharmony_ci 962306a36Sopenharmony_ci#define GPLL0_OUT_AUX2 0 1062306a36Sopenharmony_ci#define GPLL0_OUT_MAIN 1 1162306a36Sopenharmony_ci#define GPLL6_OUT_MAIN 2 1262306a36Sopenharmony_ci#define GPLL7_OUT_MAIN 3 1362306a36Sopenharmony_ci#define GPLL8_OUT_MAIN 4 1462306a36Sopenharmony_ci#define GPLL9_OUT_MAIN 5 1562306a36Sopenharmony_ci#define GPLL0_OUT_EARLY 6 1662306a36Sopenharmony_ci#define GPLL3_OUT_EARLY 7 1762306a36Sopenharmony_ci#define GPLL4_OUT_MAIN 8 1862306a36Sopenharmony_ci#define GPLL5_OUT_MAIN 9 1962306a36Sopenharmony_ci#define GPLL6_OUT_EARLY 10 2062306a36Sopenharmony_ci#define GPLL7_OUT_EARLY 11 2162306a36Sopenharmony_ci#define GPLL8_OUT_EARLY 12 2262306a36Sopenharmony_ci#define GPLL9_OUT_EARLY 13 2362306a36Sopenharmony_ci#define GCC_AHB2PHY_CSI_CLK 14 2462306a36Sopenharmony_ci#define GCC_AHB2PHY_USB_CLK 15 2562306a36Sopenharmony_ci#define GCC_APC_VS_CLK 16 2662306a36Sopenharmony_ci#define GCC_BOOT_ROM_AHB_CLK 17 2762306a36Sopenharmony_ci#define GCC_CAMERA_AHB_CLK 18 2862306a36Sopenharmony_ci#define GCC_CAMERA_XO_CLK 19 2962306a36Sopenharmony_ci#define GCC_CAMSS_AHB_CLK_SRC 20 3062306a36Sopenharmony_ci#define GCC_CAMSS_CCI_AHB_CLK 21 3162306a36Sopenharmony_ci#define GCC_CAMSS_CCI_CLK 22 3262306a36Sopenharmony_ci#define GCC_CAMSS_CCI_CLK_SRC 23 3362306a36Sopenharmony_ci#define GCC_CAMSS_CPHY_CSID0_CLK 24 3462306a36Sopenharmony_ci#define GCC_CAMSS_CPHY_CSID1_CLK 25 3562306a36Sopenharmony_ci#define GCC_CAMSS_CPHY_CSID2_CLK 26 3662306a36Sopenharmony_ci#define GCC_CAMSS_CPHY_CSID3_CLK 27 3762306a36Sopenharmony_ci#define GCC_CAMSS_CPP_AHB_CLK 28 3862306a36Sopenharmony_ci#define GCC_CAMSS_CPP_AXI_CLK 29 3962306a36Sopenharmony_ci#define GCC_CAMSS_CPP_CLK 30 4062306a36Sopenharmony_ci#define GCC_CAMSS_CPP_CLK_SRC 31 4162306a36Sopenharmony_ci#define GCC_CAMSS_CPP_VBIF_AHB_CLK 32 4262306a36Sopenharmony_ci#define GCC_CAMSS_CSI0_AHB_CLK 33 4362306a36Sopenharmony_ci#define GCC_CAMSS_CSI0_CLK 34 4462306a36Sopenharmony_ci#define GCC_CAMSS_CSI0_CLK_SRC 35 4562306a36Sopenharmony_ci#define GCC_CAMSS_CSI0PHYTIMER_CLK 36 4662306a36Sopenharmony_ci#define GCC_CAMSS_CSI0PHYTIMER_CLK_SRC 37 4762306a36Sopenharmony_ci#define GCC_CAMSS_CSI0PIX_CLK 38 4862306a36Sopenharmony_ci#define GCC_CAMSS_CSI0RDI_CLK 39 4962306a36Sopenharmony_ci#define GCC_CAMSS_CSI1_AHB_CLK 40 5062306a36Sopenharmony_ci#define GCC_CAMSS_CSI1_CLK 41 5162306a36Sopenharmony_ci#define GCC_CAMSS_CSI1_CLK_SRC 42 5262306a36Sopenharmony_ci#define GCC_CAMSS_CSI1PHYTIMER_CLK 43 5362306a36Sopenharmony_ci#define GCC_CAMSS_CSI1PHYTIMER_CLK_SRC 44 5462306a36Sopenharmony_ci#define GCC_CAMSS_CSI1PIX_CLK 45 5562306a36Sopenharmony_ci#define GCC_CAMSS_CSI1RDI_CLK 46 5662306a36Sopenharmony_ci#define GCC_CAMSS_CSI2_AHB_CLK 47 5762306a36Sopenharmony_ci#define GCC_CAMSS_CSI2_CLK 48 5862306a36Sopenharmony_ci#define GCC_CAMSS_CSI2_CLK_SRC 49 5962306a36Sopenharmony_ci#define GCC_CAMSS_CSI2PHYTIMER_CLK 50 6062306a36Sopenharmony_ci#define GCC_CAMSS_CSI2PHYTIMER_CLK_SRC 51 6162306a36Sopenharmony_ci#define GCC_CAMSS_CSI2PIX_CLK 52 6262306a36Sopenharmony_ci#define GCC_CAMSS_CSI2RDI_CLK 53 6362306a36Sopenharmony_ci#define GCC_CAMSS_CSI3_AHB_CLK 54 6462306a36Sopenharmony_ci#define GCC_CAMSS_CSI3_CLK 55 6562306a36Sopenharmony_ci#define GCC_CAMSS_CSI3_CLK_SRC 56 6662306a36Sopenharmony_ci#define GCC_CAMSS_CSI3PIX_CLK 57 6762306a36Sopenharmony_ci#define GCC_CAMSS_CSI3RDI_CLK 58 6862306a36Sopenharmony_ci#define GCC_CAMSS_CSI_VFE0_CLK 59 6962306a36Sopenharmony_ci#define GCC_CAMSS_CSI_VFE1_CLK 60 7062306a36Sopenharmony_ci#define GCC_CAMSS_CSIPHY0_CLK 61 7162306a36Sopenharmony_ci#define GCC_CAMSS_CSIPHY1_CLK 62 7262306a36Sopenharmony_ci#define GCC_CAMSS_CSIPHY2_CLK 63 7362306a36Sopenharmony_ci#define GCC_CAMSS_CSIPHY_CLK_SRC 64 7462306a36Sopenharmony_ci#define GCC_CAMSS_GP0_CLK 65 7562306a36Sopenharmony_ci#define GCC_CAMSS_GP0_CLK_SRC 66 7662306a36Sopenharmony_ci#define GCC_CAMSS_GP1_CLK 67 7762306a36Sopenharmony_ci#define GCC_CAMSS_GP1_CLK_SRC 68 7862306a36Sopenharmony_ci#define GCC_CAMSS_ISPIF_AHB_CLK 69 7962306a36Sopenharmony_ci#define GCC_CAMSS_JPEG_AHB_CLK 70 8062306a36Sopenharmony_ci#define GCC_CAMSS_JPEG_AXI_CLK 71 8162306a36Sopenharmony_ci#define GCC_CAMSS_JPEG_CLK 72 8262306a36Sopenharmony_ci#define GCC_CAMSS_JPEG_CLK_SRC 73 8362306a36Sopenharmony_ci#define GCC_CAMSS_MCLK0_CLK 74 8462306a36Sopenharmony_ci#define GCC_CAMSS_MCLK0_CLK_SRC 75 8562306a36Sopenharmony_ci#define GCC_CAMSS_MCLK1_CLK 76 8662306a36Sopenharmony_ci#define GCC_CAMSS_MCLK1_CLK_SRC 77 8762306a36Sopenharmony_ci#define GCC_CAMSS_MCLK2_CLK 78 8862306a36Sopenharmony_ci#define GCC_CAMSS_MCLK2_CLK_SRC 79 8962306a36Sopenharmony_ci#define GCC_CAMSS_MCLK3_CLK 80 9062306a36Sopenharmony_ci#define GCC_CAMSS_MCLK3_CLK_SRC 81 9162306a36Sopenharmony_ci#define GCC_CAMSS_MICRO_AHB_CLK 82 9262306a36Sopenharmony_ci#define GCC_CAMSS_THROTTLE_NRT_AXI_CLK 83 9362306a36Sopenharmony_ci#define GCC_CAMSS_THROTTLE_RT_AXI_CLK 84 9462306a36Sopenharmony_ci#define GCC_CAMSS_TOP_AHB_CLK 85 9562306a36Sopenharmony_ci#define GCC_CAMSS_VFE0_AHB_CLK 86 9662306a36Sopenharmony_ci#define GCC_CAMSS_VFE0_CLK 87 9762306a36Sopenharmony_ci#define GCC_CAMSS_VFE0_CLK_SRC 88 9862306a36Sopenharmony_ci#define GCC_CAMSS_VFE0_STREAM_CLK 89 9962306a36Sopenharmony_ci#define GCC_CAMSS_VFE1_AHB_CLK 90 10062306a36Sopenharmony_ci#define GCC_CAMSS_VFE1_CLK 91 10162306a36Sopenharmony_ci#define GCC_CAMSS_VFE1_CLK_SRC 92 10262306a36Sopenharmony_ci#define GCC_CAMSS_VFE1_STREAM_CLK 93 10362306a36Sopenharmony_ci#define GCC_CAMSS_VFE_TSCTR_CLK 94 10462306a36Sopenharmony_ci#define GCC_CAMSS_VFE_VBIF_AHB_CLK 95 10562306a36Sopenharmony_ci#define GCC_CAMSS_VFE_VBIF_AXI_CLK 96 10662306a36Sopenharmony_ci#define GCC_CE1_AHB_CLK 97 10762306a36Sopenharmony_ci#define GCC_CE1_AXI_CLK 98 10862306a36Sopenharmony_ci#define GCC_CE1_CLK 99 10962306a36Sopenharmony_ci#define GCC_CFG_NOC_USB3_PRIM_AXI_CLK 100 11062306a36Sopenharmony_ci#define GCC_CPUSS_GNOC_CLK 101 11162306a36Sopenharmony_ci#define GCC_DISP_AHB_CLK 102 11262306a36Sopenharmony_ci#define GCC_DISP_GPLL0_DIV_CLK_SRC 103 11362306a36Sopenharmony_ci#define GCC_DISP_HF_AXI_CLK 104 11462306a36Sopenharmony_ci#define GCC_DISP_THROTTLE_CORE_CLK 105 11562306a36Sopenharmony_ci#define GCC_DISP_XO_CLK 106 11662306a36Sopenharmony_ci#define GCC_GP1_CLK 107 11762306a36Sopenharmony_ci#define GCC_GP1_CLK_SRC 108 11862306a36Sopenharmony_ci#define GCC_GP2_CLK 109 11962306a36Sopenharmony_ci#define GCC_GP2_CLK_SRC 110 12062306a36Sopenharmony_ci#define GCC_GP3_CLK 111 12162306a36Sopenharmony_ci#define GCC_GP3_CLK_SRC 112 12262306a36Sopenharmony_ci#define GCC_GPU_CFG_AHB_CLK 113 12362306a36Sopenharmony_ci#define GCC_GPU_GPLL0_CLK_SRC 114 12462306a36Sopenharmony_ci#define GCC_GPU_GPLL0_DIV_CLK_SRC 115 12562306a36Sopenharmony_ci#define GCC_GPU_MEMNOC_GFX_CLK 116 12662306a36Sopenharmony_ci#define GCC_GPU_SNOC_DVM_GFX_CLK 117 12762306a36Sopenharmony_ci#define GCC_GPU_THROTTLE_CORE_CLK 118 12862306a36Sopenharmony_ci#define GCC_GPU_THROTTLE_XO_CLK 119 12962306a36Sopenharmony_ci#define GCC_MSS_VS_CLK 120 13062306a36Sopenharmony_ci#define GCC_PDM2_CLK 121 13162306a36Sopenharmony_ci#define GCC_PDM2_CLK_SRC 122 13262306a36Sopenharmony_ci#define GCC_PDM_AHB_CLK 123 13362306a36Sopenharmony_ci#define GCC_PDM_XO4_CLK 124 13462306a36Sopenharmony_ci#define GCC_PRNG_AHB_CLK 125 13562306a36Sopenharmony_ci#define GCC_QMIP_CAMERA_NRT_AHB_CLK 126 13662306a36Sopenharmony_ci#define GCC_QMIP_CAMERA_RT_AHB_CLK 127 13762306a36Sopenharmony_ci#define GCC_QMIP_DISP_AHB_CLK 128 13862306a36Sopenharmony_ci#define GCC_QMIP_GPU_CFG_AHB_CLK 129 13962306a36Sopenharmony_ci#define GCC_QMIP_VIDEO_VCODEC_AHB_CLK 130 14062306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_CORE_2X_CLK 131 14162306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_CORE_CLK 132 14262306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S0_CLK 133 14362306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S0_CLK_SRC 134 14462306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S1_CLK 135 14562306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S1_CLK_SRC 136 14662306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S2_CLK 137 14762306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S2_CLK_SRC 138 14862306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S3_CLK 139 14962306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S3_CLK_SRC 140 15062306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S4_CLK 141 15162306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S4_CLK_SRC 142 15262306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S5_CLK 143 15362306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S5_CLK_SRC 144 15462306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_CORE_2X_CLK 145 15562306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_CORE_CLK 146 15662306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S0_CLK 147 15762306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S0_CLK_SRC 148 15862306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S1_CLK 149 15962306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S1_CLK_SRC 150 16062306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S2_CLK 151 16162306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S2_CLK_SRC 152 16262306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S3_CLK 153 16362306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S3_CLK_SRC 154 16462306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S4_CLK 155 16562306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S4_CLK_SRC 156 16662306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S5_CLK 157 16762306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S5_CLK_SRC 158 16862306a36Sopenharmony_ci#define GCC_QUPV3_WRAP_0_M_AHB_CLK 159 16962306a36Sopenharmony_ci#define GCC_QUPV3_WRAP_0_S_AHB_CLK 160 17062306a36Sopenharmony_ci#define GCC_QUPV3_WRAP_1_M_AHB_CLK 161 17162306a36Sopenharmony_ci#define GCC_QUPV3_WRAP_1_S_AHB_CLK 162 17262306a36Sopenharmony_ci#define GCC_SDCC1_AHB_CLK 163 17362306a36Sopenharmony_ci#define GCC_SDCC1_APPS_CLK 164 17462306a36Sopenharmony_ci#define GCC_SDCC1_APPS_CLK_SRC 165 17562306a36Sopenharmony_ci#define GCC_SDCC1_ICE_CORE_CLK 166 17662306a36Sopenharmony_ci#define GCC_SDCC1_ICE_CORE_CLK_SRC 167 17762306a36Sopenharmony_ci#define GCC_SDCC2_AHB_CLK 168 17862306a36Sopenharmony_ci#define GCC_SDCC2_APPS_CLK 169 17962306a36Sopenharmony_ci#define GCC_SDCC2_APPS_CLK_SRC 170 18062306a36Sopenharmony_ci#define GCC_SYS_NOC_CPUSS_AHB_CLK 171 18162306a36Sopenharmony_ci#define GCC_SYS_NOC_UFS_PHY_AXI_CLK 172 18262306a36Sopenharmony_ci#define GCC_SYS_NOC_USB3_PRIM_AXI_CLK 173 18362306a36Sopenharmony_ci#define GCC_UFS_PHY_AHB_CLK 174 18462306a36Sopenharmony_ci#define GCC_UFS_PHY_AXI_CLK 175 18562306a36Sopenharmony_ci#define GCC_UFS_PHY_AXI_CLK_SRC 176 18662306a36Sopenharmony_ci#define GCC_UFS_PHY_ICE_CORE_CLK 177 18762306a36Sopenharmony_ci#define GCC_UFS_PHY_ICE_CORE_CLK_SRC 178 18862306a36Sopenharmony_ci#define GCC_UFS_PHY_PHY_AUX_CLK 179 18962306a36Sopenharmony_ci#define GCC_UFS_PHY_PHY_AUX_CLK_SRC 180 19062306a36Sopenharmony_ci#define GCC_UFS_PHY_RX_SYMBOL_0_CLK 181 19162306a36Sopenharmony_ci#define GCC_UFS_PHY_TX_SYMBOL_0_CLK 182 19262306a36Sopenharmony_ci#define GCC_UFS_PHY_UNIPRO_CORE_CLK 183 19362306a36Sopenharmony_ci#define GCC_UFS_PHY_UNIPRO_CORE_CLK_SRC 184 19462306a36Sopenharmony_ci#define GCC_USB30_PRIM_MASTER_CLK 185 19562306a36Sopenharmony_ci#define GCC_USB30_PRIM_MASTER_CLK_SRC 186 19662306a36Sopenharmony_ci#define GCC_USB30_PRIM_MOCK_UTMI_CLK 187 19762306a36Sopenharmony_ci#define GCC_USB30_PRIM_MOCK_UTMI_CLK_SRC 188 19862306a36Sopenharmony_ci#define GCC_USB30_PRIM_SLEEP_CLK 189 19962306a36Sopenharmony_ci#define GCC_USB3_PRIM_PHY_AUX_CLK_SRC 190 20062306a36Sopenharmony_ci#define GCC_USB3_PRIM_PHY_COM_AUX_CLK 191 20162306a36Sopenharmony_ci#define GCC_USB3_PRIM_PHY_PIPE_CLK 192 20262306a36Sopenharmony_ci#define GCC_VDDA_VS_CLK 193 20362306a36Sopenharmony_ci#define GCC_VDDCX_VS_CLK 194 20462306a36Sopenharmony_ci#define GCC_VDDMX_VS_CLK 195 20562306a36Sopenharmony_ci#define GCC_VIDEO_AHB_CLK 196 20662306a36Sopenharmony_ci#define GCC_VIDEO_AXI0_CLK 197 20762306a36Sopenharmony_ci#define GCC_VIDEO_THROTTLE_CORE_CLK 198 20862306a36Sopenharmony_ci#define GCC_VIDEO_XO_CLK 199 20962306a36Sopenharmony_ci#define GCC_VS_CTRL_AHB_CLK 200 21062306a36Sopenharmony_ci#define GCC_VS_CTRL_CLK 201 21162306a36Sopenharmony_ci#define GCC_VS_CTRL_CLK_SRC 202 21262306a36Sopenharmony_ci#define GCC_VSENSOR_CLK_SRC 203 21362306a36Sopenharmony_ci#define GCC_WCSS_VS_CLK 204 21462306a36Sopenharmony_ci#define GCC_USB3_PRIM_CLKREF_CLK 205 21562306a36Sopenharmony_ci#define GCC_SYS_NOC_COMPUTE_SF_AXI_CLK 206 21662306a36Sopenharmony_ci#define GCC_BIMC_GPU_AXI_CLK 207 21762306a36Sopenharmony_ci#define GCC_UFS_MEM_CLKREF_CLK 208 21862306a36Sopenharmony_ci 21962306a36Sopenharmony_ci/* GDSCs */ 22062306a36Sopenharmony_ci#define USB30_PRIM_GDSC 0 22162306a36Sopenharmony_ci#define UFS_PHY_GDSC 1 22262306a36Sopenharmony_ci#define CAMSS_VFE0_GDSC 2 22362306a36Sopenharmony_ci#define CAMSS_VFE1_GDSC 3 22462306a36Sopenharmony_ci#define CAMSS_TOP_GDSC 4 22562306a36Sopenharmony_ci#define CAM_CPP_GDSC 5 22662306a36Sopenharmony_ci#define HLOS1_VOTE_TURING_MMU_TBU1_GDSC 6 22762306a36Sopenharmony_ci#define HLOS1_VOTE_MM_SNOC_MMU_TBU_RT_GDSC 7 22862306a36Sopenharmony_ci#define HLOS1_VOTE_MM_SNOC_MMU_TBU_NRT_GDSC 8 22962306a36Sopenharmony_ci#define HLOS1_VOTE_TURING_MMU_TBU0_GDSC 9 23062306a36Sopenharmony_ci 23162306a36Sopenharmony_ci#define GCC_QUSB2PHY_PRIM_BCR 0 23262306a36Sopenharmony_ci#define GCC_QUSB2PHY_SEC_BCR 1 23362306a36Sopenharmony_ci#define GCC_UFS_PHY_BCR 2 23462306a36Sopenharmony_ci#define GCC_USB30_PRIM_BCR 3 23562306a36Sopenharmony_ci#define GCC_USB_PHY_CFG_AHB2PHY_BCR 4 23662306a36Sopenharmony_ci#define GCC_USB3_PHY_PRIM_SP0_BCR 5 23762306a36Sopenharmony_ci#define GCC_USB3PHY_PHY_PRIM_SP0_BCR 6 23862306a36Sopenharmony_ci#define GCC_CAMSS_MICRO_BCR 7 23962306a36Sopenharmony_ci 24062306a36Sopenharmony_ci#endif 241