1e67e8565SEmmanuel Vadot /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ 2e67e8565SEmmanuel Vadot /* 3e67e8565SEmmanuel Vadot * Copyright (C) 2016, The Linux Foundation. All rights reserved. 4e67e8565SEmmanuel Vadot * Copyright (C) 2016-2021, AngeloGioacchino Del Regno 5e67e8565SEmmanuel Vadot * <angelogioacchino.delregno@somainline.org> 6e67e8565SEmmanuel Vadot */ 7e67e8565SEmmanuel Vadot 8e67e8565SEmmanuel Vadot #ifndef _DT_BINDINGS_CLK_MSM_GCC_8976_H 9e67e8565SEmmanuel Vadot #define _DT_BINDINGS_CLK_MSM_GCC_8976_H 10e67e8565SEmmanuel Vadot 11e67e8565SEmmanuel Vadot #define GPLL0 0 12e67e8565SEmmanuel Vadot #define GPLL2 1 13e67e8565SEmmanuel Vadot #define GPLL3 2 14e67e8565SEmmanuel Vadot #define GPLL4 3 15e67e8565SEmmanuel Vadot #define GPLL6 4 16e67e8565SEmmanuel Vadot #define GPLL0_CLK_SRC 5 17e67e8565SEmmanuel Vadot #define GPLL2_CLK_SRC 6 18e67e8565SEmmanuel Vadot #define GPLL3_CLK_SRC 7 19e67e8565SEmmanuel Vadot #define GPLL4_CLK_SRC 8 20e67e8565SEmmanuel Vadot #define GPLL6_CLK_SRC 9 21e67e8565SEmmanuel Vadot #define GCC_BLSP1_QUP1_SPI_APPS_CLK 10 22e67e8565SEmmanuel Vadot #define GCC_BLSP1_QUP1_I2C_APPS_CLK 11 23e67e8565SEmmanuel Vadot #define GCC_BLSP1_QUP2_I2C_APPS_CLK 12 24e67e8565SEmmanuel Vadot #define GCC_BLSP1_QUP2_SPI_APPS_CLK 13 25e67e8565SEmmanuel Vadot #define GCC_BLSP1_QUP3_I2C_APPS_CLK 14 26e67e8565SEmmanuel Vadot #define GCC_BLSP1_QUP3_SPI_APPS_CLK 15 27e67e8565SEmmanuel Vadot #define GCC_BLSP1_QUP4_I2C_APPS_CLK 16 28e67e8565SEmmanuel Vadot #define GCC_BLSP1_QUP4_SPI_APPS_CLK 17 29e67e8565SEmmanuel Vadot #define GCC_BLSP1_UART1_APPS_CLK 18 30e67e8565SEmmanuel Vadot #define GCC_BLSP1_UART2_APPS_CLK 19 31e67e8565SEmmanuel Vadot #define GCC_BLSP2_QUP1_I2C_APPS_CLK 20 32e67e8565SEmmanuel Vadot #define GCC_BLSP2_QUP1_SPI_APPS_CLK 21 33e67e8565SEmmanuel Vadot #define GCC_BLSP2_QUP2_I2C_APPS_CLK 22 34e67e8565SEmmanuel Vadot #define GCC_BLSP2_QUP2_SPI_APPS_CLK 23 35e67e8565SEmmanuel Vadot #define GCC_BLSP2_QUP3_I2C_APPS_CLK 24 36e67e8565SEmmanuel Vadot #define GCC_BLSP2_QUP3_SPI_APPS_CLK 25 37e67e8565SEmmanuel Vadot #define GCC_BLSP2_QUP4_I2C_APPS_CLK 26 38e67e8565SEmmanuel Vadot #define GCC_BLSP2_QUP4_SPI_APPS_CLK 27 39e67e8565SEmmanuel Vadot #define GCC_BLSP2_UART1_APPS_CLK 28 40e67e8565SEmmanuel Vadot #define GCC_BLSP2_UART2_APPS_CLK 29 41e67e8565SEmmanuel Vadot #define GCC_CAMSS_CCI_AHB_CLK 30 42e67e8565SEmmanuel Vadot #define GCC_CAMSS_CCI_CLK 31 43e67e8565SEmmanuel Vadot #define GCC_CAMSS_CPP_AHB_CLK 32 44e67e8565SEmmanuel Vadot #define GCC_CAMSS_CPP_AXI_CLK 33 45e67e8565SEmmanuel Vadot #define GCC_CAMSS_CPP_CLK 34 46e67e8565SEmmanuel Vadot #define GCC_CAMSS_CSI0_AHB_CLK 35 47e67e8565SEmmanuel Vadot #define GCC_CAMSS_CSI0_CLK 36 48e67e8565SEmmanuel Vadot #define GCC_CAMSS_CSI0PHY_CLK 37 49e67e8565SEmmanuel Vadot #define GCC_CAMSS_CSI0PIX_CLK 38 50e67e8565SEmmanuel Vadot #define GCC_CAMSS_CSI0RDI_CLK 39 51e67e8565SEmmanuel Vadot #define GCC_CAMSS_CSI1_AHB_CLK 40 52e67e8565SEmmanuel Vadot #define GCC_CAMSS_CSI1_CLK 41 53e67e8565SEmmanuel Vadot #define GCC_CAMSS_CSI1PHY_CLK 42 54e67e8565SEmmanuel Vadot #define GCC_CAMSS_CSI1PIX_CLK 43 55e67e8565SEmmanuel Vadot #define GCC_CAMSS_CSI1RDI_CLK 44 56e67e8565SEmmanuel Vadot #define GCC_CAMSS_CSI2_AHB_CLK 45 57e67e8565SEmmanuel Vadot #define GCC_CAMSS_CSI2_CLK 46 58e67e8565SEmmanuel Vadot #define GCC_CAMSS_CSI2PHY_CLK 47 59e67e8565SEmmanuel Vadot #define GCC_CAMSS_CSI2PIX_CLK 48 60e67e8565SEmmanuel Vadot #define GCC_CAMSS_CSI2RDI_CLK 49 61e67e8565SEmmanuel Vadot #define GCC_CAMSS_CSI_VFE0_CLK 50 62e67e8565SEmmanuel Vadot #define GCC_CAMSS_CSI_VFE1_CLK 51 63e67e8565SEmmanuel Vadot #define GCC_CAMSS_GP0_CLK 52 64e67e8565SEmmanuel Vadot #define GCC_CAMSS_GP1_CLK 53 65e67e8565SEmmanuel Vadot #define GCC_CAMSS_ISPIF_AHB_CLK 54 66e67e8565SEmmanuel Vadot #define GCC_CAMSS_JPEG0_CLK 55 67e67e8565SEmmanuel Vadot #define GCC_CAMSS_JPEG_AHB_CLK 56 68e67e8565SEmmanuel Vadot #define GCC_CAMSS_JPEG_AXI_CLK 57 69e67e8565SEmmanuel Vadot #define GCC_CAMSS_MCLK0_CLK 58 70e67e8565SEmmanuel Vadot #define GCC_CAMSS_MCLK1_CLK 59 71e67e8565SEmmanuel Vadot #define GCC_CAMSS_MCLK2_CLK 60 72e67e8565SEmmanuel Vadot #define GCC_CAMSS_MICRO_AHB_CLK 61 73e67e8565SEmmanuel Vadot #define GCC_CAMSS_CSI0PHYTIMER_CLK 62 74e67e8565SEmmanuel Vadot #define GCC_CAMSS_CSI1PHYTIMER_CLK 63 75e67e8565SEmmanuel Vadot #define GCC_CAMSS_AHB_CLK 64 76e67e8565SEmmanuel Vadot #define GCC_CAMSS_TOP_AHB_CLK 65 77e67e8565SEmmanuel Vadot #define GCC_CAMSS_VFE0_CLK 66 78e67e8565SEmmanuel Vadot #define GCC_CAMSS_VFE_AHB_CLK 67 79e67e8565SEmmanuel Vadot #define GCC_CAMSS_VFE_AXI_CLK 68 80e67e8565SEmmanuel Vadot #define GCC_CAMSS_VFE1_AHB_CLK 69 81e67e8565SEmmanuel Vadot #define GCC_CAMSS_VFE1_AXI_CLK 70 82e67e8565SEmmanuel Vadot #define GCC_CAMSS_VFE1_CLK 71 83e67e8565SEmmanuel Vadot #define GCC_DCC_CLK 72 84e67e8565SEmmanuel Vadot #define GCC_GP1_CLK 73 85e67e8565SEmmanuel Vadot #define GCC_GP2_CLK 74 86e67e8565SEmmanuel Vadot #define GCC_GP3_CLK 75 87e67e8565SEmmanuel Vadot #define GCC_MDSS_AHB_CLK 76 88e67e8565SEmmanuel Vadot #define GCC_MDSS_AXI_CLK 77 89e67e8565SEmmanuel Vadot #define GCC_MDSS_ESC0_CLK 78 90e67e8565SEmmanuel Vadot #define GCC_MDSS_ESC1_CLK 79 91e67e8565SEmmanuel Vadot #define GCC_MDSS_MDP_CLK 80 92e67e8565SEmmanuel Vadot #define GCC_MDSS_VSYNC_CLK 81 93e67e8565SEmmanuel Vadot #define GCC_MSS_CFG_AHB_CLK 82 94e67e8565SEmmanuel Vadot #define GCC_MSS_Q6_BIMC_AXI_CLK 83 95e67e8565SEmmanuel Vadot #define GCC_PDM2_CLK 84 96e67e8565SEmmanuel Vadot #define GCC_PRNG_AHB_CLK 85 97e67e8565SEmmanuel Vadot #define GCC_PDM_AHB_CLK 86 98e67e8565SEmmanuel Vadot #define GCC_RBCPR_GFX_AHB_CLK 87 99e67e8565SEmmanuel Vadot #define GCC_RBCPR_GFX_CLK 88 100e67e8565SEmmanuel Vadot #define GCC_SDCC1_AHB_CLK 89 101e67e8565SEmmanuel Vadot #define GCC_SDCC1_APPS_CLK 90 102e67e8565SEmmanuel Vadot #define GCC_SDCC1_ICE_CORE_CLK 91 103e67e8565SEmmanuel Vadot #define GCC_SDCC2_AHB_CLK 92 104e67e8565SEmmanuel Vadot #define GCC_SDCC2_APPS_CLK 93 105e67e8565SEmmanuel Vadot #define GCC_SDCC3_AHB_CLK 94 106e67e8565SEmmanuel Vadot #define GCC_SDCC3_APPS_CLK 95 107e67e8565SEmmanuel Vadot #define GCC_USB2A_PHY_SLEEP_CLK 96 108e67e8565SEmmanuel Vadot #define GCC_USB_HS_PHY_CFG_AHB_CLK 97 109e67e8565SEmmanuel Vadot #define GCC_USB_FS_AHB_CLK 98 110e67e8565SEmmanuel Vadot #define GCC_USB_FS_IC_CLK 99 111e67e8565SEmmanuel Vadot #define GCC_USB_FS_SYSTEM_CLK 100 112e67e8565SEmmanuel Vadot #define GCC_USB_HS_AHB_CLK 101 113e67e8565SEmmanuel Vadot #define GCC_USB_HS_SYSTEM_CLK 102 114e67e8565SEmmanuel Vadot #define GCC_VENUS0_AHB_CLK 103 115e67e8565SEmmanuel Vadot #define GCC_VENUS0_AXI_CLK 104 116e67e8565SEmmanuel Vadot #define GCC_VENUS0_CORE0_VCODEC0_CLK 105 117e67e8565SEmmanuel Vadot #define GCC_VENUS0_CORE1_VCODEC0_CLK 106 118e67e8565SEmmanuel Vadot #define GCC_VENUS0_VCODEC0_CLK 107 119e67e8565SEmmanuel Vadot #define GCC_APSS_AHB_CLK 108 120e67e8565SEmmanuel Vadot #define GCC_APSS_AXI_CLK 109 121e67e8565SEmmanuel Vadot #define GCC_BLSP1_AHB_CLK 110 122e67e8565SEmmanuel Vadot #define GCC_BLSP2_AHB_CLK 111 123e67e8565SEmmanuel Vadot #define GCC_BOOT_ROM_AHB_CLK 112 124e67e8565SEmmanuel Vadot #define GCC_CRYPTO_AHB_CLK 113 125e67e8565SEmmanuel Vadot #define GCC_CRYPTO_AXI_CLK 114 126e67e8565SEmmanuel Vadot #define GCC_CRYPTO_CLK 115 127e67e8565SEmmanuel Vadot #define GCC_CPP_TBU_CLK 116 128e67e8565SEmmanuel Vadot #define GCC_APSS_TCU_CLK 117 129e67e8565SEmmanuel Vadot #define GCC_JPEG_TBU_CLK 118 130e67e8565SEmmanuel Vadot #define GCC_MDP_RT_TBU_CLK 119 131e67e8565SEmmanuel Vadot #define GCC_MDP_TBU_CLK 120 132e67e8565SEmmanuel Vadot #define GCC_SMMU_CFG_CLK 121 133e67e8565SEmmanuel Vadot #define GCC_VENUS_1_TBU_CLK 122 134e67e8565SEmmanuel Vadot #define GCC_VENUS_TBU_CLK 123 135e67e8565SEmmanuel Vadot #define GCC_VFE1_TBU_CLK 124 136e67e8565SEmmanuel Vadot #define GCC_VFE_TBU_CLK 125 137e67e8565SEmmanuel Vadot #define GCC_APS_0_CLK 126 138e67e8565SEmmanuel Vadot #define GCC_APS_1_CLK 127 139e67e8565SEmmanuel Vadot #define APS_0_CLK_SRC 128 140e67e8565SEmmanuel Vadot #define APS_1_CLK_SRC 129 141e67e8565SEmmanuel Vadot #define APSS_AHB_CLK_SRC 130 142e67e8565SEmmanuel Vadot #define BLSP1_QUP1_I2C_APPS_CLK_SRC 131 143e67e8565SEmmanuel Vadot #define BLSP1_QUP1_SPI_APPS_CLK_SRC 132 144e67e8565SEmmanuel Vadot #define BLSP1_QUP2_I2C_APPS_CLK_SRC 133 145e67e8565SEmmanuel Vadot #define BLSP1_QUP2_SPI_APPS_CLK_SRC 134 146e67e8565SEmmanuel Vadot #define BLSP1_QUP3_I2C_APPS_CLK_SRC 135 147e67e8565SEmmanuel Vadot #define BLSP1_QUP3_SPI_APPS_CLK_SRC 136 148e67e8565SEmmanuel Vadot #define BLSP1_QUP4_I2C_APPS_CLK_SRC 137 149e67e8565SEmmanuel Vadot #define BLSP1_QUP4_SPI_APPS_CLK_SRC 138 150e67e8565SEmmanuel Vadot #define BLSP1_UART1_APPS_CLK_SRC 139 151e67e8565SEmmanuel Vadot #define BLSP1_UART2_APPS_CLK_SRC 140 152e67e8565SEmmanuel Vadot #define BLSP2_QUP1_I2C_APPS_CLK_SRC 141 153e67e8565SEmmanuel Vadot #define BLSP2_QUP1_SPI_APPS_CLK_SRC 142 154e67e8565SEmmanuel Vadot #define BLSP2_QUP2_I2C_APPS_CLK_SRC 143 155e67e8565SEmmanuel Vadot #define BLSP2_QUP2_SPI_APPS_CLK_SRC 144 156e67e8565SEmmanuel Vadot #define BLSP2_QUP3_I2C_APPS_CLK_SRC 145 157e67e8565SEmmanuel Vadot #define BLSP2_QUP3_SPI_APPS_CLK_SRC 146 158e67e8565SEmmanuel Vadot #define BLSP2_QUP4_I2C_APPS_CLK_SRC 147 159e67e8565SEmmanuel Vadot #define BLSP2_QUP4_SPI_APPS_CLK_SRC 148 160e67e8565SEmmanuel Vadot #define BLSP2_UART1_APPS_CLK_SRC 149 161e67e8565SEmmanuel Vadot #define BLSP2_UART2_APPS_CLK_SRC 150 162e67e8565SEmmanuel Vadot #define CCI_CLK_SRC 151 163e67e8565SEmmanuel Vadot #define CPP_CLK_SRC 152 164e67e8565SEmmanuel Vadot #define CSI0_CLK_SRC 153 165e67e8565SEmmanuel Vadot #define CSI1_CLK_SRC 154 166e67e8565SEmmanuel Vadot #define CSI2_CLK_SRC 155 167e67e8565SEmmanuel Vadot #define CAMSS_GP0_CLK_SRC 156 168e67e8565SEmmanuel Vadot #define CAMSS_GP1_CLK_SRC 157 169e67e8565SEmmanuel Vadot #define JPEG0_CLK_SRC 158 170e67e8565SEmmanuel Vadot #define MCLK0_CLK_SRC 159 171e67e8565SEmmanuel Vadot #define MCLK1_CLK_SRC 160 172e67e8565SEmmanuel Vadot #define MCLK2_CLK_SRC 161 173e67e8565SEmmanuel Vadot #define CSI0PHYTIMER_CLK_SRC 162 174e67e8565SEmmanuel Vadot #define CSI1PHYTIMER_CLK_SRC 163 175e67e8565SEmmanuel Vadot #define CAMSS_TOP_AHB_CLK_SRC 164 176e67e8565SEmmanuel Vadot #define VFE0_CLK_SRC 165 177e67e8565SEmmanuel Vadot #define VFE1_CLK_SRC 166 178e67e8565SEmmanuel Vadot #define CRYPTO_CLK_SRC 167 179e67e8565SEmmanuel Vadot #define GP1_CLK_SRC 168 180e67e8565SEmmanuel Vadot #define GP2_CLK_SRC 169 181e67e8565SEmmanuel Vadot #define GP3_CLK_SRC 170 182e67e8565SEmmanuel Vadot #define ESC0_CLK_SRC 171 183e67e8565SEmmanuel Vadot #define ESC1_CLK_SRC 172 184e67e8565SEmmanuel Vadot #define MDP_CLK_SRC 173 185e67e8565SEmmanuel Vadot #define VSYNC_CLK_SRC 174 186e67e8565SEmmanuel Vadot #define PDM2_CLK_SRC 175 187e67e8565SEmmanuel Vadot #define RBCPR_GFX_CLK_SRC 176 188e67e8565SEmmanuel Vadot #define SDCC1_APPS_CLK_SRC 177 189e67e8565SEmmanuel Vadot #define SDCC1_ICE_CORE_CLK_SRC 178 190e67e8565SEmmanuel Vadot #define SDCC2_APPS_CLK_SRC 179 191e67e8565SEmmanuel Vadot #define SDCC3_APPS_CLK_SRC 180 192e67e8565SEmmanuel Vadot #define USB_FS_IC_CLK_SRC 181 193e67e8565SEmmanuel Vadot #define USB_FS_SYSTEM_CLK_SRC 182 194e67e8565SEmmanuel Vadot #define USB_HS_SYSTEM_CLK_SRC 183 195e67e8565SEmmanuel Vadot #define VCODEC0_CLK_SRC 184 196e67e8565SEmmanuel Vadot #define GCC_MDSS_BYTE0_CLK_SRC 185 197e67e8565SEmmanuel Vadot #define GCC_MDSS_BYTE1_CLK_SRC 186 198e67e8565SEmmanuel Vadot #define GCC_MDSS_BYTE0_CLK 187 199e67e8565SEmmanuel Vadot #define GCC_MDSS_BYTE1_CLK 188 200e67e8565SEmmanuel Vadot #define GCC_MDSS_PCLK0_CLK_SRC 189 201e67e8565SEmmanuel Vadot #define GCC_MDSS_PCLK1_CLK_SRC 190 202e67e8565SEmmanuel Vadot #define GCC_MDSS_PCLK0_CLK 191 203e67e8565SEmmanuel Vadot #define GCC_MDSS_PCLK1_CLK 192 204e67e8565SEmmanuel Vadot #define GCC_GFX3D_CLK_SRC 193 205e67e8565SEmmanuel Vadot #define GCC_GFX3D_OXILI_CLK 194 206e67e8565SEmmanuel Vadot #define GCC_GFX3D_BIMC_CLK 195 207e67e8565SEmmanuel Vadot #define GCC_GFX3D_OXILI_AHB_CLK 196 208e67e8565SEmmanuel Vadot #define GCC_GFX3D_OXILI_AON_CLK 197 209e67e8565SEmmanuel Vadot #define GCC_GFX3D_OXILI_GMEM_CLK 198 210e67e8565SEmmanuel Vadot #define GCC_GFX3D_OXILI_TIMER_CLK 199 211e67e8565SEmmanuel Vadot #define GCC_GFX3D_TBU0_CLK 200 212e67e8565SEmmanuel Vadot #define GCC_GFX3D_TBU1_CLK 201 213e67e8565SEmmanuel Vadot #define GCC_GFX3D_TCU_CLK 202 214e67e8565SEmmanuel Vadot #define GCC_GFX3D_GTCU_AHB_CLK 203 215e67e8565SEmmanuel Vadot 216e67e8565SEmmanuel Vadot /* GCC block resets */ 217e67e8565SEmmanuel Vadot #define RST_CAMSS_MICRO_BCR 0 218e67e8565SEmmanuel Vadot #define RST_USB_HS_BCR 1 219e67e8565SEmmanuel Vadot #define RST_QUSB2_PHY_BCR 2 220e67e8565SEmmanuel Vadot #define RST_USB2_HS_PHY_ONLY_BCR 3 221e67e8565SEmmanuel Vadot #define RST_USB_HS_PHY_CFG_AHB_BCR 4 222e67e8565SEmmanuel Vadot #define RST_USB_FS_BCR 5 223e67e8565SEmmanuel Vadot #define RST_CAMSS_CSI1PIX_BCR 6 224e67e8565SEmmanuel Vadot #define RST_CAMSS_CSI_VFE1_BCR 7 225e67e8565SEmmanuel Vadot #define RST_CAMSS_VFE1_BCR 8 226e67e8565SEmmanuel Vadot #define RST_CAMSS_CPP_BCR 9 227*d5b0e70fSEmmanuel Vadot #define RST_MSS_BCR 10 228e67e8565SEmmanuel Vadot 229e67e8565SEmmanuel Vadot /* GDSCs */ 230e67e8565SEmmanuel Vadot #define VENUS_GDSC 0 231e67e8565SEmmanuel Vadot #define VENUS_CORE0_GDSC 1 232e67e8565SEmmanuel Vadot #define VENUS_CORE1_GDSC 2 233e67e8565SEmmanuel Vadot #define MDSS_GDSC 3 234e67e8565SEmmanuel Vadot #define JPEG_GDSC 4 235e67e8565SEmmanuel Vadot #define VFE0_GDSC 5 236e67e8565SEmmanuel Vadot #define VFE1_GDSC 6 237e67e8565SEmmanuel Vadot #define CPP_GDSC 7 238e67e8565SEmmanuel Vadot #define OXILI_GX_GDSC 8 239e67e8565SEmmanuel Vadot #define OXILI_CX_GDSC 9 240e67e8565SEmmanuel Vadot 241e67e8565SEmmanuel Vadot #endif /* _DT_BINDINGS_CLK_MSM_GCC_8976_H */ 242