1 1.1 jmcneill /* $NetBSD: qcom,gcc-sm6125.h,v 1.1.1.1 2021/11/07 16:50:00 jmcneill Exp $ */ 2 1.1 jmcneill 3 1.1 jmcneill /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ 4 1.1 jmcneill /* 5 1.1 jmcneill * Copyright (c) 2021, Konrad Dybcio <konrad.dybcio (at) somainline.org> 6 1.1 jmcneill */ 7 1.1 jmcneill 8 1.1 jmcneill #ifndef _DT_BINDINGS_CLK_QCOM_GCC_SM6125_H 9 1.1 jmcneill #define _DT_BINDINGS_CLK_QCOM_GCC_SM6125_H 10 1.1 jmcneill 11 1.1 jmcneill #define GPLL0_OUT_AUX2 0 12 1.1 jmcneill #define GPLL0_OUT_MAIN 1 13 1.1 jmcneill #define GPLL6_OUT_MAIN 2 14 1.1 jmcneill #define GPLL7_OUT_MAIN 3 15 1.1 jmcneill #define GPLL8_OUT_MAIN 4 16 1.1 jmcneill #define GPLL9_OUT_MAIN 5 17 1.1 jmcneill #define GPLL0_OUT_EARLY 6 18 1.1 jmcneill #define GPLL3_OUT_EARLY 7 19 1.1 jmcneill #define GPLL4_OUT_MAIN 8 20 1.1 jmcneill #define GPLL5_OUT_MAIN 9 21 1.1 jmcneill #define GPLL6_OUT_EARLY 10 22 1.1 jmcneill #define GPLL7_OUT_EARLY 11 23 1.1 jmcneill #define GPLL8_OUT_EARLY 12 24 1.1 jmcneill #define GPLL9_OUT_EARLY 13 25 1.1 jmcneill #define GCC_AHB2PHY_CSI_CLK 14 26 1.1 jmcneill #define GCC_AHB2PHY_USB_CLK 15 27 1.1 jmcneill #define GCC_APC_VS_CLK 16 28 1.1 jmcneill #define GCC_BOOT_ROM_AHB_CLK 17 29 1.1 jmcneill #define GCC_CAMERA_AHB_CLK 18 30 1.1 jmcneill #define GCC_CAMERA_XO_CLK 19 31 1.1 jmcneill #define GCC_CAMSS_AHB_CLK_SRC 20 32 1.1 jmcneill #define GCC_CAMSS_CCI_AHB_CLK 21 33 1.1 jmcneill #define GCC_CAMSS_CCI_CLK 22 34 1.1 jmcneill #define GCC_CAMSS_CCI_CLK_SRC 23 35 1.1 jmcneill #define GCC_CAMSS_CPHY_CSID0_CLK 24 36 1.1 jmcneill #define GCC_CAMSS_CPHY_CSID1_CLK 25 37 1.1 jmcneill #define GCC_CAMSS_CPHY_CSID2_CLK 26 38 1.1 jmcneill #define GCC_CAMSS_CPHY_CSID3_CLK 27 39 1.1 jmcneill #define GCC_CAMSS_CPP_AHB_CLK 28 40 1.1 jmcneill #define GCC_CAMSS_CPP_AXI_CLK 29 41 1.1 jmcneill #define GCC_CAMSS_CPP_CLK 30 42 1.1 jmcneill #define GCC_CAMSS_CPP_CLK_SRC 31 43 1.1 jmcneill #define GCC_CAMSS_CPP_VBIF_AHB_CLK 32 44 1.1 jmcneill #define GCC_CAMSS_CSI0_AHB_CLK 33 45 1.1 jmcneill #define GCC_CAMSS_CSI0_CLK 34 46 1.1 jmcneill #define GCC_CAMSS_CSI0_CLK_SRC 35 47 1.1 jmcneill #define GCC_CAMSS_CSI0PHYTIMER_CLK 36 48 1.1 jmcneill #define GCC_CAMSS_CSI0PHYTIMER_CLK_SRC 37 49 1.1 jmcneill #define GCC_CAMSS_CSI0PIX_CLK 38 50 1.1 jmcneill #define GCC_CAMSS_CSI0RDI_CLK 39 51 1.1 jmcneill #define GCC_CAMSS_CSI1_AHB_CLK 40 52 1.1 jmcneill #define GCC_CAMSS_CSI1_CLK 41 53 1.1 jmcneill #define GCC_CAMSS_CSI1_CLK_SRC 42 54 1.1 jmcneill #define GCC_CAMSS_CSI1PHYTIMER_CLK 43 55 1.1 jmcneill #define GCC_CAMSS_CSI1PHYTIMER_CLK_SRC 44 56 1.1 jmcneill #define GCC_CAMSS_CSI1PIX_CLK 45 57 1.1 jmcneill #define GCC_CAMSS_CSI1RDI_CLK 46 58 1.1 jmcneill #define GCC_CAMSS_CSI2_AHB_CLK 47 59 1.1 jmcneill #define GCC_CAMSS_CSI2_CLK 48 60 1.1 jmcneill #define GCC_CAMSS_CSI2_CLK_SRC 49 61 1.1 jmcneill #define GCC_CAMSS_CSI2PHYTIMER_CLK 50 62 1.1 jmcneill #define GCC_CAMSS_CSI2PHYTIMER_CLK_SRC 51 63 1.1 jmcneill #define GCC_CAMSS_CSI2PIX_CLK 52 64 1.1 jmcneill #define GCC_CAMSS_CSI2RDI_CLK 53 65 1.1 jmcneill #define GCC_CAMSS_CSI3_AHB_CLK 54 66 1.1 jmcneill #define GCC_CAMSS_CSI3_CLK 55 67 1.1 jmcneill #define GCC_CAMSS_CSI3_CLK_SRC 56 68 1.1 jmcneill #define GCC_CAMSS_CSI3PIX_CLK 57 69 1.1 jmcneill #define GCC_CAMSS_CSI3RDI_CLK 58 70 1.1 jmcneill #define GCC_CAMSS_CSI_VFE0_CLK 59 71 1.1 jmcneill #define GCC_CAMSS_CSI_VFE1_CLK 60 72 1.1 jmcneill #define GCC_CAMSS_CSIPHY0_CLK 61 73 1.1 jmcneill #define GCC_CAMSS_CSIPHY1_CLK 62 74 1.1 jmcneill #define GCC_CAMSS_CSIPHY2_CLK 63 75 1.1 jmcneill #define GCC_CAMSS_CSIPHY_CLK_SRC 64 76 1.1 jmcneill #define GCC_CAMSS_GP0_CLK 65 77 1.1 jmcneill #define GCC_CAMSS_GP0_CLK_SRC 66 78 1.1 jmcneill #define GCC_CAMSS_GP1_CLK 67 79 1.1 jmcneill #define GCC_CAMSS_GP1_CLK_SRC 68 80 1.1 jmcneill #define GCC_CAMSS_ISPIF_AHB_CLK 69 81 1.1 jmcneill #define GCC_CAMSS_JPEG_AHB_CLK 70 82 1.1 jmcneill #define GCC_CAMSS_JPEG_AXI_CLK 71 83 1.1 jmcneill #define GCC_CAMSS_JPEG_CLK 72 84 1.1 jmcneill #define GCC_CAMSS_JPEG_CLK_SRC 73 85 1.1 jmcneill #define GCC_CAMSS_MCLK0_CLK 74 86 1.1 jmcneill #define GCC_CAMSS_MCLK0_CLK_SRC 75 87 1.1 jmcneill #define GCC_CAMSS_MCLK1_CLK 76 88 1.1 jmcneill #define GCC_CAMSS_MCLK1_CLK_SRC 77 89 1.1 jmcneill #define GCC_CAMSS_MCLK2_CLK 78 90 1.1 jmcneill #define GCC_CAMSS_MCLK2_CLK_SRC 79 91 1.1 jmcneill #define GCC_CAMSS_MCLK3_CLK 80 92 1.1 jmcneill #define GCC_CAMSS_MCLK3_CLK_SRC 81 93 1.1 jmcneill #define GCC_CAMSS_MICRO_AHB_CLK 82 94 1.1 jmcneill #define GCC_CAMSS_THROTTLE_NRT_AXI_CLK 83 95 1.1 jmcneill #define GCC_CAMSS_THROTTLE_RT_AXI_CLK 84 96 1.1 jmcneill #define GCC_CAMSS_TOP_AHB_CLK 85 97 1.1 jmcneill #define GCC_CAMSS_VFE0_AHB_CLK 86 98 1.1 jmcneill #define GCC_CAMSS_VFE0_CLK 87 99 1.1 jmcneill #define GCC_CAMSS_VFE0_CLK_SRC 88 100 1.1 jmcneill #define GCC_CAMSS_VFE0_STREAM_CLK 89 101 1.1 jmcneill #define GCC_CAMSS_VFE1_AHB_CLK 90 102 1.1 jmcneill #define GCC_CAMSS_VFE1_CLK 91 103 1.1 jmcneill #define GCC_CAMSS_VFE1_CLK_SRC 92 104 1.1 jmcneill #define GCC_CAMSS_VFE1_STREAM_CLK 93 105 1.1 jmcneill #define GCC_CAMSS_VFE_TSCTR_CLK 94 106 1.1 jmcneill #define GCC_CAMSS_VFE_VBIF_AHB_CLK 95 107 1.1 jmcneill #define GCC_CAMSS_VFE_VBIF_AXI_CLK 96 108 1.1 jmcneill #define GCC_CE1_AHB_CLK 97 109 1.1 jmcneill #define GCC_CE1_AXI_CLK 98 110 1.1 jmcneill #define GCC_CE1_CLK 99 111 1.1 jmcneill #define GCC_CFG_NOC_USB3_PRIM_AXI_CLK 100 112 1.1 jmcneill #define GCC_CPUSS_GNOC_CLK 101 113 1.1 jmcneill #define GCC_DISP_AHB_CLK 102 114 1.1 jmcneill #define GCC_DISP_GPLL0_DIV_CLK_SRC 103 115 1.1 jmcneill #define GCC_DISP_HF_AXI_CLK 104 116 1.1 jmcneill #define GCC_DISP_THROTTLE_CORE_CLK 105 117 1.1 jmcneill #define GCC_DISP_XO_CLK 106 118 1.1 jmcneill #define GCC_GP1_CLK 107 119 1.1 jmcneill #define GCC_GP1_CLK_SRC 108 120 1.1 jmcneill #define GCC_GP2_CLK 109 121 1.1 jmcneill #define GCC_GP2_CLK_SRC 110 122 1.1 jmcneill #define GCC_GP3_CLK 111 123 1.1 jmcneill #define GCC_GP3_CLK_SRC 112 124 1.1 jmcneill #define GCC_GPU_CFG_AHB_CLK 113 125 1.1 jmcneill #define GCC_GPU_GPLL0_CLK_SRC 114 126 1.1 jmcneill #define GCC_GPU_GPLL0_DIV_CLK_SRC 115 127 1.1 jmcneill #define GCC_GPU_MEMNOC_GFX_CLK 116 128 1.1 jmcneill #define GCC_GPU_SNOC_DVM_GFX_CLK 117 129 1.1 jmcneill #define GCC_GPU_THROTTLE_CORE_CLK 118 130 1.1 jmcneill #define GCC_GPU_THROTTLE_XO_CLK 119 131 1.1 jmcneill #define GCC_MSS_VS_CLK 120 132 1.1 jmcneill #define GCC_PDM2_CLK 121 133 1.1 jmcneill #define GCC_PDM2_CLK_SRC 122 134 1.1 jmcneill #define GCC_PDM_AHB_CLK 123 135 1.1 jmcneill #define GCC_PDM_XO4_CLK 124 136 1.1 jmcneill #define GCC_PRNG_AHB_CLK 125 137 1.1 jmcneill #define GCC_QMIP_CAMERA_NRT_AHB_CLK 126 138 1.1 jmcneill #define GCC_QMIP_CAMERA_RT_AHB_CLK 127 139 1.1 jmcneill #define GCC_QMIP_DISP_AHB_CLK 128 140 1.1 jmcneill #define GCC_QMIP_GPU_CFG_AHB_CLK 129 141 1.1 jmcneill #define GCC_QMIP_VIDEO_VCODEC_AHB_CLK 130 142 1.1 jmcneill #define GCC_QUPV3_WRAP0_CORE_2X_CLK 131 143 1.1 jmcneill #define GCC_QUPV3_WRAP0_CORE_CLK 132 144 1.1 jmcneill #define GCC_QUPV3_WRAP0_S0_CLK 133 145 1.1 jmcneill #define GCC_QUPV3_WRAP0_S0_CLK_SRC 134 146 1.1 jmcneill #define GCC_QUPV3_WRAP0_S1_CLK 135 147 1.1 jmcneill #define GCC_QUPV3_WRAP0_S1_CLK_SRC 136 148 1.1 jmcneill #define GCC_QUPV3_WRAP0_S2_CLK 137 149 1.1 jmcneill #define GCC_QUPV3_WRAP0_S2_CLK_SRC 138 150 1.1 jmcneill #define GCC_QUPV3_WRAP0_S3_CLK 139 151 1.1 jmcneill #define GCC_QUPV3_WRAP0_S3_CLK_SRC 140 152 1.1 jmcneill #define GCC_QUPV3_WRAP0_S4_CLK 141 153 1.1 jmcneill #define GCC_QUPV3_WRAP0_S4_CLK_SRC 142 154 1.1 jmcneill #define GCC_QUPV3_WRAP0_S5_CLK 143 155 1.1 jmcneill #define GCC_QUPV3_WRAP0_S5_CLK_SRC 144 156 1.1 jmcneill #define GCC_QUPV3_WRAP1_CORE_2X_CLK 145 157 1.1 jmcneill #define GCC_QUPV3_WRAP1_CORE_CLK 146 158 1.1 jmcneill #define GCC_QUPV3_WRAP1_S0_CLK 147 159 1.1 jmcneill #define GCC_QUPV3_WRAP1_S0_CLK_SRC 148 160 1.1 jmcneill #define GCC_QUPV3_WRAP1_S1_CLK 149 161 1.1 jmcneill #define GCC_QUPV3_WRAP1_S1_CLK_SRC 150 162 1.1 jmcneill #define GCC_QUPV3_WRAP1_S2_CLK 151 163 1.1 jmcneill #define GCC_QUPV3_WRAP1_S2_CLK_SRC 152 164 1.1 jmcneill #define GCC_QUPV3_WRAP1_S3_CLK 153 165 1.1 jmcneill #define GCC_QUPV3_WRAP1_S3_CLK_SRC 154 166 1.1 jmcneill #define GCC_QUPV3_WRAP1_S4_CLK 155 167 1.1 jmcneill #define GCC_QUPV3_WRAP1_S4_CLK_SRC 156 168 1.1 jmcneill #define GCC_QUPV3_WRAP1_S5_CLK 157 169 1.1 jmcneill #define GCC_QUPV3_WRAP1_S5_CLK_SRC 158 170 1.1 jmcneill #define GCC_QUPV3_WRAP_0_M_AHB_CLK 159 171 1.1 jmcneill #define GCC_QUPV3_WRAP_0_S_AHB_CLK 160 172 1.1 jmcneill #define GCC_QUPV3_WRAP_1_M_AHB_CLK 161 173 1.1 jmcneill #define GCC_QUPV3_WRAP_1_S_AHB_CLK 162 174 1.1 jmcneill #define GCC_SDCC1_AHB_CLK 163 175 1.1 jmcneill #define GCC_SDCC1_APPS_CLK 164 176 1.1 jmcneill #define GCC_SDCC1_APPS_CLK_SRC 165 177 1.1 jmcneill #define GCC_SDCC1_ICE_CORE_CLK 166 178 1.1 jmcneill #define GCC_SDCC1_ICE_CORE_CLK_SRC 167 179 1.1 jmcneill #define GCC_SDCC2_AHB_CLK 168 180 1.1 jmcneill #define GCC_SDCC2_APPS_CLK 169 181 1.1 jmcneill #define GCC_SDCC2_APPS_CLK_SRC 170 182 1.1 jmcneill #define GCC_SYS_NOC_CPUSS_AHB_CLK 171 183 1.1 jmcneill #define GCC_SYS_NOC_UFS_PHY_AXI_CLK 172 184 1.1 jmcneill #define GCC_SYS_NOC_USB3_PRIM_AXI_CLK 173 185 1.1 jmcneill #define GCC_UFS_PHY_AHB_CLK 174 186 1.1 jmcneill #define GCC_UFS_PHY_AXI_CLK 175 187 1.1 jmcneill #define GCC_UFS_PHY_AXI_CLK_SRC 176 188 1.1 jmcneill #define GCC_UFS_PHY_ICE_CORE_CLK 177 189 1.1 jmcneill #define GCC_UFS_PHY_ICE_CORE_CLK_SRC 178 190 1.1 jmcneill #define GCC_UFS_PHY_PHY_AUX_CLK 179 191 1.1 jmcneill #define GCC_UFS_PHY_PHY_AUX_CLK_SRC 180 192 1.1 jmcneill #define GCC_UFS_PHY_RX_SYMBOL_0_CLK 181 193 1.1 jmcneill #define GCC_UFS_PHY_TX_SYMBOL_0_CLK 182 194 1.1 jmcneill #define GCC_UFS_PHY_UNIPRO_CORE_CLK 183 195 1.1 jmcneill #define GCC_UFS_PHY_UNIPRO_CORE_CLK_SRC 184 196 1.1 jmcneill #define GCC_USB30_PRIM_MASTER_CLK 185 197 1.1 jmcneill #define GCC_USB30_PRIM_MASTER_CLK_SRC 186 198 1.1 jmcneill #define GCC_USB30_PRIM_MOCK_UTMI_CLK 187 199 1.1 jmcneill #define GCC_USB30_PRIM_MOCK_UTMI_CLK_SRC 188 200 1.1 jmcneill #define GCC_USB30_PRIM_SLEEP_CLK 189 201 1.1 jmcneill #define GCC_USB3_PRIM_PHY_AUX_CLK_SRC 190 202 1.1 jmcneill #define GCC_USB3_PRIM_PHY_COM_AUX_CLK 191 203 1.1 jmcneill #define GCC_USB3_PRIM_PHY_PIPE_CLK 192 204 1.1 jmcneill #define GCC_VDDA_VS_CLK 193 205 1.1 jmcneill #define GCC_VDDCX_VS_CLK 194 206 1.1 jmcneill #define GCC_VDDMX_VS_CLK 195 207 1.1 jmcneill #define GCC_VIDEO_AHB_CLK 196 208 1.1 jmcneill #define GCC_VIDEO_AXI0_CLK 197 209 1.1 jmcneill #define GCC_VIDEO_THROTTLE_CORE_CLK 198 210 1.1 jmcneill #define GCC_VIDEO_XO_CLK 199 211 1.1 jmcneill #define GCC_VS_CTRL_AHB_CLK 200 212 1.1 jmcneill #define GCC_VS_CTRL_CLK 201 213 1.1 jmcneill #define GCC_VS_CTRL_CLK_SRC 202 214 1.1 jmcneill #define GCC_VSENSOR_CLK_SRC 203 215 1.1 jmcneill #define GCC_WCSS_VS_CLK 204 216 1.1 jmcneill #define GCC_USB3_PRIM_CLKREF_CLK 205 217 1.1 jmcneill #define GCC_SYS_NOC_COMPUTE_SF_AXI_CLK 206 218 1.1 jmcneill #define GCC_BIMC_GPU_AXI_CLK 207 219 1.1 jmcneill #define GCC_UFS_MEM_CLKREF_CLK 208 220 1.1 jmcneill 221 1.1 jmcneill /* GDSCs */ 222 1.1 jmcneill #define USB30_PRIM_GDSC 0 223 1.1 jmcneill #define UFS_PHY_GDSC 1 224 1.1 jmcneill #define CAMSS_VFE0_GDSC 2 225 1.1 jmcneill #define CAMSS_VFE1_GDSC 3 226 1.1 jmcneill #define CAMSS_TOP_GDSC 4 227 1.1 jmcneill #define CAM_CPP_GDSC 5 228 1.1 jmcneill #define HLOS1_VOTE_TURING_MMU_TBU1_GDSC 6 229 1.1 jmcneill #define HLOS1_VOTE_MM_SNOC_MMU_TBU_RT_GDSC 7 230 1.1 jmcneill #define HLOS1_VOTE_MM_SNOC_MMU_TBU_NRT_GDSC 8 231 1.1 jmcneill #define HLOS1_VOTE_TURING_MMU_TBU0_GDSC 9 232 1.1 jmcneill 233 1.1 jmcneill #define GCC_QUSB2PHY_PRIM_BCR 0 234 1.1 jmcneill #define GCC_QUSB2PHY_SEC_BCR 1 235 1.1 jmcneill #define GCC_UFS_PHY_BCR 2 236 1.1 jmcneill #define GCC_USB30_PRIM_BCR 3 237 1.1 jmcneill #define GCC_USB_PHY_CFG_AHB2PHY_BCR 4 238 1.1 jmcneill #define GCC_USB3_PHY_PRIM_SP0_BCR 5 239 1.1 jmcneill #define GCC_USB3PHY_PHY_PRIM_SP0_BCR 6 240 1.1 jmcneill #define GCC_CAMSS_MICRO_BCR 7 241 1.1 jmcneill 242 1.1 jmcneill #endif 243