1*7ef62cebSEmmanuel Vadot /* SPDX-License-Identifier: GPL-2.0-only */ 2*7ef62cebSEmmanuel Vadot /* 3*7ef62cebSEmmanuel Vadot * Copyright (c) 2021, The Linux Foundation. All rights reserved. 4*7ef62cebSEmmanuel Vadot * Copyright (c) 2022, Konrad Dybcio <konrad.dybcio@somainline.org> 5*7ef62cebSEmmanuel Vadot */ 6*7ef62cebSEmmanuel Vadot 7*7ef62cebSEmmanuel Vadot #ifndef _DT_BINDINGS_CLK_QCOM_GCC_SM6375_H 8*7ef62cebSEmmanuel Vadot #define _DT_BINDINGS_CLK_QCOM_GCC_SM6375_H 9*7ef62cebSEmmanuel Vadot 10*7ef62cebSEmmanuel Vadot /* Clocks */ 11*7ef62cebSEmmanuel Vadot #define GPLL0 0 12*7ef62cebSEmmanuel Vadot #define GPLL0_OUT_EVEN 1 13*7ef62cebSEmmanuel Vadot #define GPLL0_OUT_ODD 2 14*7ef62cebSEmmanuel Vadot #define GPLL1 3 15*7ef62cebSEmmanuel Vadot #define GPLL10 4 16*7ef62cebSEmmanuel Vadot #define GPLL11 5 17*7ef62cebSEmmanuel Vadot #define GPLL3 6 18*7ef62cebSEmmanuel Vadot #define GPLL3_OUT_EVEN 7 19*7ef62cebSEmmanuel Vadot #define GPLL4 8 20*7ef62cebSEmmanuel Vadot #define GPLL5 9 21*7ef62cebSEmmanuel Vadot #define GPLL6 10 22*7ef62cebSEmmanuel Vadot #define GPLL6_OUT_EVEN 11 23*7ef62cebSEmmanuel Vadot #define GPLL7 12 24*7ef62cebSEmmanuel Vadot #define GPLL8 13 25*7ef62cebSEmmanuel Vadot #define GPLL8_OUT_EVEN 14 26*7ef62cebSEmmanuel Vadot #define GPLL9 15 27*7ef62cebSEmmanuel Vadot #define GPLL9_OUT_MAIN 16 28*7ef62cebSEmmanuel Vadot #define GCC_AHB2PHY_CSI_CLK 17 29*7ef62cebSEmmanuel Vadot #define GCC_AHB2PHY_USB_CLK 18 30*7ef62cebSEmmanuel Vadot #define GCC_BIMC_GPU_AXI_CLK 19 31*7ef62cebSEmmanuel Vadot #define GCC_BOOT_ROM_AHB_CLK 20 32*7ef62cebSEmmanuel Vadot #define GCC_CAM_THROTTLE_NRT_CLK 21 33*7ef62cebSEmmanuel Vadot #define GCC_CAM_THROTTLE_RT_CLK 22 34*7ef62cebSEmmanuel Vadot #define GCC_CAMERA_AHB_CLK 23 35*7ef62cebSEmmanuel Vadot #define GCC_CAMERA_XO_CLK 24 36*7ef62cebSEmmanuel Vadot #define GCC_CAMSS_AXI_CLK 25 37*7ef62cebSEmmanuel Vadot #define GCC_CAMSS_AXI_CLK_SRC 26 38*7ef62cebSEmmanuel Vadot #define GCC_CAMSS_CAMNOC_ATB_CLK 27 39*7ef62cebSEmmanuel Vadot #define GCC_CAMSS_CAMNOC_NTS_XO_CLK 28 40*7ef62cebSEmmanuel Vadot #define GCC_CAMSS_CCI_0_CLK 29 41*7ef62cebSEmmanuel Vadot #define GCC_CAMSS_CCI_0_CLK_SRC 30 42*7ef62cebSEmmanuel Vadot #define GCC_CAMSS_CCI_1_CLK 31 43*7ef62cebSEmmanuel Vadot #define GCC_CAMSS_CCI_1_CLK_SRC 32 44*7ef62cebSEmmanuel Vadot #define GCC_CAMSS_CPHY_0_CLK 33 45*7ef62cebSEmmanuel Vadot #define GCC_CAMSS_CPHY_1_CLK 34 46*7ef62cebSEmmanuel Vadot #define GCC_CAMSS_CPHY_2_CLK 35 47*7ef62cebSEmmanuel Vadot #define GCC_CAMSS_CPHY_3_CLK 36 48*7ef62cebSEmmanuel Vadot #define GCC_CAMSS_CSI0PHYTIMER_CLK 37 49*7ef62cebSEmmanuel Vadot #define GCC_CAMSS_CSI0PHYTIMER_CLK_SRC 38 50*7ef62cebSEmmanuel Vadot #define GCC_CAMSS_CSI1PHYTIMER_CLK 39 51*7ef62cebSEmmanuel Vadot #define GCC_CAMSS_CSI1PHYTIMER_CLK_SRC 40 52*7ef62cebSEmmanuel Vadot #define GCC_CAMSS_CSI2PHYTIMER_CLK 41 53*7ef62cebSEmmanuel Vadot #define GCC_CAMSS_CSI2PHYTIMER_CLK_SRC 42 54*7ef62cebSEmmanuel Vadot #define GCC_CAMSS_CSI3PHYTIMER_CLK 43 55*7ef62cebSEmmanuel Vadot #define GCC_CAMSS_CSI3PHYTIMER_CLK_SRC 44 56*7ef62cebSEmmanuel Vadot #define GCC_CAMSS_MCLK0_CLK 45 57*7ef62cebSEmmanuel Vadot #define GCC_CAMSS_MCLK0_CLK_SRC 46 58*7ef62cebSEmmanuel Vadot #define GCC_CAMSS_MCLK1_CLK 47 59*7ef62cebSEmmanuel Vadot #define GCC_CAMSS_MCLK1_CLK_SRC 48 60*7ef62cebSEmmanuel Vadot #define GCC_CAMSS_MCLK2_CLK 49 61*7ef62cebSEmmanuel Vadot #define GCC_CAMSS_MCLK2_CLK_SRC 50 62*7ef62cebSEmmanuel Vadot #define GCC_CAMSS_MCLK3_CLK 51 63*7ef62cebSEmmanuel Vadot #define GCC_CAMSS_MCLK3_CLK_SRC 52 64*7ef62cebSEmmanuel Vadot #define GCC_CAMSS_MCLK4_CLK 53 65*7ef62cebSEmmanuel Vadot #define GCC_CAMSS_MCLK4_CLK_SRC 54 66*7ef62cebSEmmanuel Vadot #define GCC_CAMSS_NRT_AXI_CLK 55 67*7ef62cebSEmmanuel Vadot #define GCC_CAMSS_OPE_AHB_CLK 56 68*7ef62cebSEmmanuel Vadot #define GCC_CAMSS_OPE_AHB_CLK_SRC 57 69*7ef62cebSEmmanuel Vadot #define GCC_CAMSS_OPE_CLK 58 70*7ef62cebSEmmanuel Vadot #define GCC_CAMSS_OPE_CLK_SRC 59 71*7ef62cebSEmmanuel Vadot #define GCC_CAMSS_RT_AXI_CLK 60 72*7ef62cebSEmmanuel Vadot #define GCC_CAMSS_TFE_0_CLK 61 73*7ef62cebSEmmanuel Vadot #define GCC_CAMSS_TFE_0_CLK_SRC 62 74*7ef62cebSEmmanuel Vadot #define GCC_CAMSS_TFE_0_CPHY_RX_CLK 63 75*7ef62cebSEmmanuel Vadot #define GCC_CAMSS_TFE_0_CSID_CLK 64 76*7ef62cebSEmmanuel Vadot #define GCC_CAMSS_TFE_0_CSID_CLK_SRC 65 77*7ef62cebSEmmanuel Vadot #define GCC_CAMSS_TFE_1_CLK 66 78*7ef62cebSEmmanuel Vadot #define GCC_CAMSS_TFE_1_CLK_SRC 67 79*7ef62cebSEmmanuel Vadot #define GCC_CAMSS_TFE_1_CPHY_RX_CLK 68 80*7ef62cebSEmmanuel Vadot #define GCC_CAMSS_TFE_1_CSID_CLK 69 81*7ef62cebSEmmanuel Vadot #define GCC_CAMSS_TFE_1_CSID_CLK_SRC 70 82*7ef62cebSEmmanuel Vadot #define GCC_CAMSS_TFE_2_CLK 71 83*7ef62cebSEmmanuel Vadot #define GCC_CAMSS_TFE_2_CLK_SRC 72 84*7ef62cebSEmmanuel Vadot #define GCC_CAMSS_TFE_2_CPHY_RX_CLK 73 85*7ef62cebSEmmanuel Vadot #define GCC_CAMSS_TFE_2_CSID_CLK 74 86*7ef62cebSEmmanuel Vadot #define GCC_CAMSS_TFE_2_CSID_CLK_SRC 75 87*7ef62cebSEmmanuel Vadot #define GCC_CAMSS_TFE_CPHY_RX_CLK_SRC 76 88*7ef62cebSEmmanuel Vadot #define GCC_CAMSS_TOP_AHB_CLK 77 89*7ef62cebSEmmanuel Vadot #define GCC_CAMSS_TOP_AHB_CLK_SRC 78 90*7ef62cebSEmmanuel Vadot #define GCC_CFG_NOC_USB3_PRIM_AXI_CLK 79 91*7ef62cebSEmmanuel Vadot #define GCC_CPUSS_AHB_CLK_SRC 80 92*7ef62cebSEmmanuel Vadot #define GCC_CPUSS_AHB_POSTDIV_CLK_SRC 81 93*7ef62cebSEmmanuel Vadot #define GCC_CPUSS_GNOC_CLK 82 94*7ef62cebSEmmanuel Vadot #define GCC_DISP_AHB_CLK 83 95*7ef62cebSEmmanuel Vadot #define GCC_DISP_GPLL0_CLK_SRC 84 96*7ef62cebSEmmanuel Vadot #define GCC_DISP_GPLL0_DIV_CLK_SRC 85 97*7ef62cebSEmmanuel Vadot #define GCC_DISP_HF_AXI_CLK 86 98*7ef62cebSEmmanuel Vadot #define GCC_DISP_SLEEP_CLK 87 99*7ef62cebSEmmanuel Vadot #define GCC_DISP_THROTTLE_CORE_CLK 88 100*7ef62cebSEmmanuel Vadot #define GCC_DISP_XO_CLK 89 101*7ef62cebSEmmanuel Vadot #define GCC_GP1_CLK 90 102*7ef62cebSEmmanuel Vadot #define GCC_GP1_CLK_SRC 91 103*7ef62cebSEmmanuel Vadot #define GCC_GP2_CLK 92 104*7ef62cebSEmmanuel Vadot #define GCC_GP2_CLK_SRC 93 105*7ef62cebSEmmanuel Vadot #define GCC_GP3_CLK 94 106*7ef62cebSEmmanuel Vadot #define GCC_GP3_CLK_SRC 95 107*7ef62cebSEmmanuel Vadot #define GCC_GPU_CFG_AHB_CLK 96 108*7ef62cebSEmmanuel Vadot #define GCC_GPU_GPLL0_CLK_SRC 97 109*7ef62cebSEmmanuel Vadot #define GCC_GPU_GPLL0_DIV_CLK_SRC 98 110*7ef62cebSEmmanuel Vadot #define GCC_GPU_MEMNOC_GFX_CLK 99 111*7ef62cebSEmmanuel Vadot #define GCC_GPU_SNOC_DVM_GFX_CLK 100 112*7ef62cebSEmmanuel Vadot #define GCC_GPU_THROTTLE_CORE_CLK 101 113*7ef62cebSEmmanuel Vadot #define GCC_PDM2_CLK 102 114*7ef62cebSEmmanuel Vadot #define GCC_PDM2_CLK_SRC 103 115*7ef62cebSEmmanuel Vadot #define GCC_PDM_AHB_CLK 104 116*7ef62cebSEmmanuel Vadot #define GCC_PDM_XO4_CLK 105 117*7ef62cebSEmmanuel Vadot #define GCC_PRNG_AHB_CLK 106 118*7ef62cebSEmmanuel Vadot #define GCC_QMIP_CAMERA_NRT_AHB_CLK 107 119*7ef62cebSEmmanuel Vadot #define GCC_QMIP_CAMERA_RT_AHB_CLK 108 120*7ef62cebSEmmanuel Vadot #define GCC_QMIP_DISP_AHB_CLK 109 121*7ef62cebSEmmanuel Vadot #define GCC_QMIP_GPU_CFG_AHB_CLK 110 122*7ef62cebSEmmanuel Vadot #define GCC_QMIP_VIDEO_VCODEC_AHB_CLK 111 123*7ef62cebSEmmanuel Vadot #define GCC_QUPV3_WRAP0_CORE_2X_CLK 112 124*7ef62cebSEmmanuel Vadot #define GCC_QUPV3_WRAP0_CORE_CLK 113 125*7ef62cebSEmmanuel Vadot #define GCC_QUPV3_WRAP0_S0_CLK 114 126*7ef62cebSEmmanuel Vadot #define GCC_QUPV3_WRAP0_S0_CLK_SRC 115 127*7ef62cebSEmmanuel Vadot #define GCC_QUPV3_WRAP0_S1_CLK 116 128*7ef62cebSEmmanuel Vadot #define GCC_QUPV3_WRAP0_S1_CLK_SRC 117 129*7ef62cebSEmmanuel Vadot #define GCC_QUPV3_WRAP0_S2_CLK 118 130*7ef62cebSEmmanuel Vadot #define GCC_QUPV3_WRAP0_S2_CLK_SRC 119 131*7ef62cebSEmmanuel Vadot #define GCC_QUPV3_WRAP0_S3_CLK 120 132*7ef62cebSEmmanuel Vadot #define GCC_QUPV3_WRAP0_S3_CLK_SRC 121 133*7ef62cebSEmmanuel Vadot #define GCC_QUPV3_WRAP0_S4_CLK 122 134*7ef62cebSEmmanuel Vadot #define GCC_QUPV3_WRAP0_S4_CLK_SRC 123 135*7ef62cebSEmmanuel Vadot #define GCC_QUPV3_WRAP0_S5_CLK 124 136*7ef62cebSEmmanuel Vadot #define GCC_QUPV3_WRAP0_S5_CLK_SRC 125 137*7ef62cebSEmmanuel Vadot #define GCC_QUPV3_WRAP1_CORE_2X_CLK 126 138*7ef62cebSEmmanuel Vadot #define GCC_QUPV3_WRAP1_CORE_CLK 127 139*7ef62cebSEmmanuel Vadot #define GCC_QUPV3_WRAP1_S0_CLK 128 140*7ef62cebSEmmanuel Vadot #define GCC_QUPV3_WRAP1_S0_CLK_SRC 129 141*7ef62cebSEmmanuel Vadot #define GCC_QUPV3_WRAP1_S1_CLK 130 142*7ef62cebSEmmanuel Vadot #define GCC_QUPV3_WRAP1_S1_CLK_SRC 131 143*7ef62cebSEmmanuel Vadot #define GCC_QUPV3_WRAP1_S2_CLK 132 144*7ef62cebSEmmanuel Vadot #define GCC_QUPV3_WRAP1_S2_CLK_SRC 133 145*7ef62cebSEmmanuel Vadot #define GCC_QUPV3_WRAP1_S3_CLK 134 146*7ef62cebSEmmanuel Vadot #define GCC_QUPV3_WRAP1_S3_CLK_SRC 135 147*7ef62cebSEmmanuel Vadot #define GCC_QUPV3_WRAP1_S4_CLK 136 148*7ef62cebSEmmanuel Vadot #define GCC_QUPV3_WRAP1_S4_CLK_SRC 137 149*7ef62cebSEmmanuel Vadot #define GCC_QUPV3_WRAP1_S5_CLK 138 150*7ef62cebSEmmanuel Vadot #define GCC_QUPV3_WRAP1_S5_CLK_SRC 139 151*7ef62cebSEmmanuel Vadot #define GCC_QUPV3_WRAP_0_M_AHB_CLK 140 152*7ef62cebSEmmanuel Vadot #define GCC_QUPV3_WRAP_0_S_AHB_CLK 141 153*7ef62cebSEmmanuel Vadot #define GCC_QUPV3_WRAP_1_M_AHB_CLK 142 154*7ef62cebSEmmanuel Vadot #define GCC_QUPV3_WRAP_1_S_AHB_CLK 143 155*7ef62cebSEmmanuel Vadot #define GCC_RX5_PCIE_CLKREF_EN_CLK 144 156*7ef62cebSEmmanuel Vadot #define GCC_SDCC1_AHB_CLK 145 157*7ef62cebSEmmanuel Vadot #define GCC_SDCC1_APPS_CLK 146 158*7ef62cebSEmmanuel Vadot #define GCC_SDCC1_APPS_CLK_SRC 147 159*7ef62cebSEmmanuel Vadot #define GCC_SDCC1_ICE_CORE_CLK 148 160*7ef62cebSEmmanuel Vadot #define GCC_SDCC1_ICE_CORE_CLK_SRC 149 161*7ef62cebSEmmanuel Vadot #define GCC_SDCC2_AHB_CLK 150 162*7ef62cebSEmmanuel Vadot #define GCC_SDCC2_APPS_CLK 151 163*7ef62cebSEmmanuel Vadot #define GCC_SDCC2_APPS_CLK_SRC 152 164*7ef62cebSEmmanuel Vadot #define GCC_SYS_NOC_CPUSS_AHB_CLK 153 165*7ef62cebSEmmanuel Vadot #define GCC_SYS_NOC_UFS_PHY_AXI_CLK 154 166*7ef62cebSEmmanuel Vadot #define GCC_SYS_NOC_USB3_PRIM_AXI_CLK 155 167*7ef62cebSEmmanuel Vadot #define GCC_UFS_MEM_CLKREF_CLK 156 168*7ef62cebSEmmanuel Vadot #define GCC_UFS_PHY_AHB_CLK 157 169*7ef62cebSEmmanuel Vadot #define GCC_UFS_PHY_AXI_CLK 158 170*7ef62cebSEmmanuel Vadot #define GCC_UFS_PHY_AXI_CLK_SRC 159 171*7ef62cebSEmmanuel Vadot #define GCC_UFS_PHY_ICE_CORE_CLK 160 172*7ef62cebSEmmanuel Vadot #define GCC_UFS_PHY_ICE_CORE_CLK_SRC 161 173*7ef62cebSEmmanuel Vadot #define GCC_UFS_PHY_PHY_AUX_CLK 162 174*7ef62cebSEmmanuel Vadot #define GCC_UFS_PHY_PHY_AUX_CLK_SRC 163 175*7ef62cebSEmmanuel Vadot #define GCC_UFS_PHY_RX_SYMBOL_0_CLK 164 176*7ef62cebSEmmanuel Vadot #define GCC_UFS_PHY_TX_SYMBOL_0_CLK 165 177*7ef62cebSEmmanuel Vadot #define GCC_UFS_PHY_UNIPRO_CORE_CLK 166 178*7ef62cebSEmmanuel Vadot #define GCC_UFS_PHY_UNIPRO_CORE_CLK_SRC 167 179*7ef62cebSEmmanuel Vadot #define GCC_USB30_PRIM_MASTER_CLK 168 180*7ef62cebSEmmanuel Vadot #define GCC_USB30_PRIM_MASTER_CLK_SRC 169 181*7ef62cebSEmmanuel Vadot #define GCC_USB30_PRIM_MOCK_UTMI_CLK 170 182*7ef62cebSEmmanuel Vadot #define GCC_USB30_PRIM_MOCK_UTMI_CLK_SRC 171 183*7ef62cebSEmmanuel Vadot #define GCC_USB30_PRIM_MOCK_UTMI_POSTDIV_CLK_SRC 172 184*7ef62cebSEmmanuel Vadot #define GCC_USB30_PRIM_SLEEP_CLK 173 185*7ef62cebSEmmanuel Vadot #define GCC_USB3_PRIM_CLKREF_CLK 174 186*7ef62cebSEmmanuel Vadot #define GCC_USB3_PRIM_PHY_AUX_CLK_SRC 175 187*7ef62cebSEmmanuel Vadot #define GCC_USB3_PRIM_PHY_COM_AUX_CLK 176 188*7ef62cebSEmmanuel Vadot #define GCC_USB3_PRIM_PHY_PIPE_CLK 177 189*7ef62cebSEmmanuel Vadot #define GCC_VCODEC0_AXI_CLK 178 190*7ef62cebSEmmanuel Vadot #define GCC_VENUS_AHB_CLK 179 191*7ef62cebSEmmanuel Vadot #define GCC_VENUS_CTL_AXI_CLK 180 192*7ef62cebSEmmanuel Vadot #define GCC_VIDEO_AHB_CLK 181 193*7ef62cebSEmmanuel Vadot #define GCC_VIDEO_AXI0_CLK 182 194*7ef62cebSEmmanuel Vadot #define GCC_VIDEO_THROTTLE_CORE_CLK 183 195*7ef62cebSEmmanuel Vadot #define GCC_VIDEO_VCODEC0_SYS_CLK 184 196*7ef62cebSEmmanuel Vadot #define GCC_VIDEO_VENUS_CLK_SRC 185 197*7ef62cebSEmmanuel Vadot #define GCC_VIDEO_VENUS_CTL_CLK 186 198*7ef62cebSEmmanuel Vadot #define GCC_VIDEO_XO_CLK 187 199*7ef62cebSEmmanuel Vadot 200*7ef62cebSEmmanuel Vadot /* Resets */ 201*7ef62cebSEmmanuel Vadot #define GCC_CAMSS_OPE_BCR 0 202*7ef62cebSEmmanuel Vadot #define GCC_CAMSS_TFE_BCR 1 203*7ef62cebSEmmanuel Vadot #define GCC_CAMSS_TOP_BCR 2 204*7ef62cebSEmmanuel Vadot #define GCC_GPU_BCR 3 205*7ef62cebSEmmanuel Vadot #define GCC_MMSS_BCR 4 206*7ef62cebSEmmanuel Vadot #define GCC_PDM_BCR 5 207*7ef62cebSEmmanuel Vadot #define GCC_PRNG_BCR 6 208*7ef62cebSEmmanuel Vadot #define GCC_QUPV3_WRAPPER_0_BCR 7 209*7ef62cebSEmmanuel Vadot #define GCC_QUPV3_WRAPPER_1_BCR 8 210*7ef62cebSEmmanuel Vadot #define GCC_QUSB2PHY_PRIM_BCR 9 211*7ef62cebSEmmanuel Vadot #define GCC_QUSB2PHY_SEC_BCR 10 212*7ef62cebSEmmanuel Vadot #define GCC_SDCC1_BCR 11 213*7ef62cebSEmmanuel Vadot #define GCC_SDCC2_BCR 12 214*7ef62cebSEmmanuel Vadot #define GCC_UFS_PHY_BCR 13 215*7ef62cebSEmmanuel Vadot #define GCC_USB30_PRIM_BCR 14 216*7ef62cebSEmmanuel Vadot #define GCC_USB_PHY_CFG_AHB2PHY_BCR 15 217*7ef62cebSEmmanuel Vadot #define GCC_VCODEC0_BCR 16 218*7ef62cebSEmmanuel Vadot #define GCC_VENUS_BCR 17 219*7ef62cebSEmmanuel Vadot #define GCC_VIDEO_INTERFACE_BCR 18 220*7ef62cebSEmmanuel Vadot #define GCC_USB3_DP_PHY_PRIM_BCR 19 221*7ef62cebSEmmanuel Vadot #define GCC_USB3_PHY_PRIM_SP0_BCR 20 222*7ef62cebSEmmanuel Vadot 223*7ef62cebSEmmanuel Vadot /* GDSCs */ 224*7ef62cebSEmmanuel Vadot #define USB30_PRIM_GDSC 0 225*7ef62cebSEmmanuel Vadot #define UFS_PHY_GDSC 1 226*7ef62cebSEmmanuel Vadot #define CAMSS_TOP_GDSC 2 227*7ef62cebSEmmanuel Vadot #define VENUS_GDSC 3 228*7ef62cebSEmmanuel Vadot #define VCODEC0_GDSC 4 229*7ef62cebSEmmanuel Vadot #define HLOS1_VOTE_MM_SNOC_MMU_TBU_NRT_GDSC 5 230*7ef62cebSEmmanuel Vadot #define HLOS1_VOTE_MM_SNOC_MMU_TBU_RT_GDSC 6 231*7ef62cebSEmmanuel Vadot #define HLOS1_VOTE_TURING_MMU_TBU0_GDSC 7 232*7ef62cebSEmmanuel Vadot #define HLOS1_VOTE_TURING_MMU_TBU1_GDSC 8 233*7ef62cebSEmmanuel Vadot 234*7ef62cebSEmmanuel Vadot #endif 235