162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * Copyright 2020 Linaro Limited 462306a36Sopenharmony_ci */ 562306a36Sopenharmony_ci 662306a36Sopenharmony_ci#ifndef _DT_BINDINGS_CLK_MSM_GCC_8939_H 762306a36Sopenharmony_ci#define _DT_BINDINGS_CLK_MSM_GCC_8939_H 862306a36Sopenharmony_ci 962306a36Sopenharmony_ci#define GPLL0 0 1062306a36Sopenharmony_ci#define GPLL0_VOTE 1 1162306a36Sopenharmony_ci#define BIMC_PLL 2 1262306a36Sopenharmony_ci#define BIMC_PLL_VOTE 3 1362306a36Sopenharmony_ci#define GPLL1 4 1462306a36Sopenharmony_ci#define GPLL1_VOTE 5 1562306a36Sopenharmony_ci#define GPLL2 6 1662306a36Sopenharmony_ci#define GPLL2_VOTE 7 1762306a36Sopenharmony_ci#define PCNOC_BFDCD_CLK_SRC 8 1862306a36Sopenharmony_ci#define SYSTEM_NOC_BFDCD_CLK_SRC 9 1962306a36Sopenharmony_ci#define CAMSS_AHB_CLK_SRC 10 2062306a36Sopenharmony_ci#define APSS_AHB_CLK_SRC 11 2162306a36Sopenharmony_ci#define CSI0_CLK_SRC 12 2262306a36Sopenharmony_ci#define CSI1_CLK_SRC 13 2362306a36Sopenharmony_ci#define GFX3D_CLK_SRC 14 2462306a36Sopenharmony_ci#define VFE0_CLK_SRC 15 2562306a36Sopenharmony_ci#define BLSP1_QUP1_I2C_APPS_CLK_SRC 16 2662306a36Sopenharmony_ci#define BLSP1_QUP1_SPI_APPS_CLK_SRC 17 2762306a36Sopenharmony_ci#define BLSP1_QUP2_I2C_APPS_CLK_SRC 18 2862306a36Sopenharmony_ci#define BLSP1_QUP2_SPI_APPS_CLK_SRC 19 2962306a36Sopenharmony_ci#define BLSP1_QUP3_I2C_APPS_CLK_SRC 20 3062306a36Sopenharmony_ci#define BLSP1_QUP3_SPI_APPS_CLK_SRC 21 3162306a36Sopenharmony_ci#define BLSP1_QUP4_I2C_APPS_CLK_SRC 22 3262306a36Sopenharmony_ci#define BLSP1_QUP4_SPI_APPS_CLK_SRC 23 3362306a36Sopenharmony_ci#define BLSP1_QUP5_I2C_APPS_CLK_SRC 24 3462306a36Sopenharmony_ci#define BLSP1_QUP5_SPI_APPS_CLK_SRC 25 3562306a36Sopenharmony_ci#define BLSP1_QUP6_I2C_APPS_CLK_SRC 26 3662306a36Sopenharmony_ci#define BLSP1_QUP6_SPI_APPS_CLK_SRC 27 3762306a36Sopenharmony_ci#define BLSP1_UART1_APPS_CLK_SRC 28 3862306a36Sopenharmony_ci#define BLSP1_UART2_APPS_CLK_SRC 29 3962306a36Sopenharmony_ci#define CCI_CLK_SRC 30 4062306a36Sopenharmony_ci#define CAMSS_GP0_CLK_SRC 31 4162306a36Sopenharmony_ci#define CAMSS_GP1_CLK_SRC 32 4262306a36Sopenharmony_ci#define JPEG0_CLK_SRC 33 4362306a36Sopenharmony_ci#define MCLK0_CLK_SRC 34 4462306a36Sopenharmony_ci#define MCLK1_CLK_SRC 35 4562306a36Sopenharmony_ci#define CSI0PHYTIMER_CLK_SRC 36 4662306a36Sopenharmony_ci#define CSI1PHYTIMER_CLK_SRC 37 4762306a36Sopenharmony_ci#define CPP_CLK_SRC 38 4862306a36Sopenharmony_ci#define CRYPTO_CLK_SRC 39 4962306a36Sopenharmony_ci#define GP1_CLK_SRC 40 5062306a36Sopenharmony_ci#define GP2_CLK_SRC 41 5162306a36Sopenharmony_ci#define GP3_CLK_SRC 42 5262306a36Sopenharmony_ci#define BYTE0_CLK_SRC 43 5362306a36Sopenharmony_ci#define ESC0_CLK_SRC 44 5462306a36Sopenharmony_ci#define MDP_CLK_SRC 45 5562306a36Sopenharmony_ci#define PCLK0_CLK_SRC 46 5662306a36Sopenharmony_ci#define VSYNC_CLK_SRC 47 5762306a36Sopenharmony_ci#define PDM2_CLK_SRC 48 5862306a36Sopenharmony_ci#define SDCC1_APPS_CLK_SRC 49 5962306a36Sopenharmony_ci#define SDCC2_APPS_CLK_SRC 50 6062306a36Sopenharmony_ci#define APSS_TCU_CLK_SRC 51 6162306a36Sopenharmony_ci#define USB_HS_SYSTEM_CLK_SRC 52 6262306a36Sopenharmony_ci#define VCODEC0_CLK_SRC 53 6362306a36Sopenharmony_ci#define GCC_BLSP1_AHB_CLK 54 6462306a36Sopenharmony_ci#define GCC_BLSP1_SLEEP_CLK 55 6562306a36Sopenharmony_ci#define GCC_BLSP1_QUP1_I2C_APPS_CLK 56 6662306a36Sopenharmony_ci#define GCC_BLSP1_QUP1_SPI_APPS_CLK 57 6762306a36Sopenharmony_ci#define GCC_BLSP1_QUP2_I2C_APPS_CLK 58 6862306a36Sopenharmony_ci#define GCC_BLSP1_QUP2_SPI_APPS_CLK 59 6962306a36Sopenharmony_ci#define GCC_BLSP1_QUP3_I2C_APPS_CLK 60 7062306a36Sopenharmony_ci#define GCC_BLSP1_QUP3_SPI_APPS_CLK 61 7162306a36Sopenharmony_ci#define GCC_BLSP1_QUP4_I2C_APPS_CLK 62 7262306a36Sopenharmony_ci#define GCC_BLSP1_QUP4_SPI_APPS_CLK 63 7362306a36Sopenharmony_ci#define GCC_BLSP1_QUP5_I2C_APPS_CLK 64 7462306a36Sopenharmony_ci#define GCC_BLSP1_QUP5_SPI_APPS_CLK 65 7562306a36Sopenharmony_ci#define GCC_BLSP1_QUP6_I2C_APPS_CLK 66 7662306a36Sopenharmony_ci#define GCC_BLSP1_QUP6_SPI_APPS_CLK 67 7762306a36Sopenharmony_ci#define GCC_BLSP1_UART1_APPS_CLK 68 7862306a36Sopenharmony_ci#define GCC_BLSP1_UART2_APPS_CLK 69 7962306a36Sopenharmony_ci#define GCC_BOOT_ROM_AHB_CLK 70 8062306a36Sopenharmony_ci#define GCC_CAMSS_CCI_AHB_CLK 71 8162306a36Sopenharmony_ci#define GCC_CAMSS_CCI_CLK 72 8262306a36Sopenharmony_ci#define GCC_CAMSS_CSI0_AHB_CLK 73 8362306a36Sopenharmony_ci#define GCC_CAMSS_CSI0_CLK 74 8462306a36Sopenharmony_ci#define GCC_CAMSS_CSI0PHY_CLK 75 8562306a36Sopenharmony_ci#define GCC_CAMSS_CSI0PIX_CLK 76 8662306a36Sopenharmony_ci#define GCC_CAMSS_CSI0RDI_CLK 77 8762306a36Sopenharmony_ci#define GCC_CAMSS_CSI1_AHB_CLK 78 8862306a36Sopenharmony_ci#define GCC_CAMSS_CSI1_CLK 79 8962306a36Sopenharmony_ci#define GCC_CAMSS_CSI1PHY_CLK 80 9062306a36Sopenharmony_ci#define GCC_CAMSS_CSI1PIX_CLK 81 9162306a36Sopenharmony_ci#define GCC_CAMSS_CSI1RDI_CLK 82 9262306a36Sopenharmony_ci#define GCC_CAMSS_CSI_VFE0_CLK 83 9362306a36Sopenharmony_ci#define GCC_CAMSS_GP0_CLK 84 9462306a36Sopenharmony_ci#define GCC_CAMSS_GP1_CLK 85 9562306a36Sopenharmony_ci#define GCC_CAMSS_ISPIF_AHB_CLK 86 9662306a36Sopenharmony_ci#define GCC_CAMSS_JPEG0_CLK 87 9762306a36Sopenharmony_ci#define GCC_CAMSS_JPEG_AHB_CLK 88 9862306a36Sopenharmony_ci#define GCC_CAMSS_JPEG_AXI_CLK 89 9962306a36Sopenharmony_ci#define GCC_CAMSS_MCLK0_CLK 90 10062306a36Sopenharmony_ci#define GCC_CAMSS_MCLK1_CLK 91 10162306a36Sopenharmony_ci#define GCC_CAMSS_MICRO_AHB_CLK 92 10262306a36Sopenharmony_ci#define GCC_CAMSS_CSI0PHYTIMER_CLK 93 10362306a36Sopenharmony_ci#define GCC_CAMSS_CSI1PHYTIMER_CLK 94 10462306a36Sopenharmony_ci#define GCC_CAMSS_AHB_CLK 95 10562306a36Sopenharmony_ci#define GCC_CAMSS_TOP_AHB_CLK 96 10662306a36Sopenharmony_ci#define GCC_CAMSS_CPP_AHB_CLK 97 10762306a36Sopenharmony_ci#define GCC_CAMSS_CPP_CLK 98 10862306a36Sopenharmony_ci#define GCC_CAMSS_VFE0_CLK 99 10962306a36Sopenharmony_ci#define GCC_CAMSS_VFE_AHB_CLK 100 11062306a36Sopenharmony_ci#define GCC_CAMSS_VFE_AXI_CLK 101 11162306a36Sopenharmony_ci#define GCC_CRYPTO_AHB_CLK 102 11262306a36Sopenharmony_ci#define GCC_CRYPTO_AXI_CLK 103 11362306a36Sopenharmony_ci#define GCC_CRYPTO_CLK 104 11462306a36Sopenharmony_ci#define GCC_OXILI_GMEM_CLK 105 11562306a36Sopenharmony_ci#define GCC_GP1_CLK 106 11662306a36Sopenharmony_ci#define GCC_GP2_CLK 107 11762306a36Sopenharmony_ci#define GCC_GP3_CLK 108 11862306a36Sopenharmony_ci#define GCC_MDSS_AHB_CLK 109 11962306a36Sopenharmony_ci#define GCC_MDSS_AXI_CLK 110 12062306a36Sopenharmony_ci#define GCC_MDSS_BYTE0_CLK 111 12162306a36Sopenharmony_ci#define GCC_MDSS_ESC0_CLK 112 12262306a36Sopenharmony_ci#define GCC_MDSS_MDP_CLK 113 12362306a36Sopenharmony_ci#define GCC_MDSS_PCLK0_CLK 114 12462306a36Sopenharmony_ci#define GCC_MDSS_VSYNC_CLK 115 12562306a36Sopenharmony_ci#define GCC_MSS_CFG_AHB_CLK 116 12662306a36Sopenharmony_ci#define GCC_OXILI_AHB_CLK 117 12762306a36Sopenharmony_ci#define GCC_OXILI_GFX3D_CLK 118 12862306a36Sopenharmony_ci#define GCC_PDM2_CLK 119 12962306a36Sopenharmony_ci#define GCC_PDM_AHB_CLK 120 13062306a36Sopenharmony_ci#define GCC_PRNG_AHB_CLK 121 13162306a36Sopenharmony_ci#define GCC_SDCC1_AHB_CLK 122 13262306a36Sopenharmony_ci#define GCC_SDCC1_APPS_CLK 123 13362306a36Sopenharmony_ci#define GCC_SDCC2_AHB_CLK 124 13462306a36Sopenharmony_ci#define GCC_SDCC2_APPS_CLK 125 13562306a36Sopenharmony_ci#define GCC_GTCU_AHB_CLK 126 13662306a36Sopenharmony_ci#define GCC_JPEG_TBU_CLK 127 13762306a36Sopenharmony_ci#define GCC_MDP_TBU_CLK 128 13862306a36Sopenharmony_ci#define GCC_SMMU_CFG_CLK 129 13962306a36Sopenharmony_ci#define GCC_VENUS_TBU_CLK 130 14062306a36Sopenharmony_ci#define GCC_VFE_TBU_CLK 131 14162306a36Sopenharmony_ci#define GCC_USB2A_PHY_SLEEP_CLK 132 14262306a36Sopenharmony_ci#define GCC_USB_HS_AHB_CLK 133 14362306a36Sopenharmony_ci#define GCC_USB_HS_SYSTEM_CLK 134 14462306a36Sopenharmony_ci#define GCC_VENUS0_AHB_CLK 135 14562306a36Sopenharmony_ci#define GCC_VENUS0_AXI_CLK 136 14662306a36Sopenharmony_ci#define GCC_VENUS0_VCODEC0_CLK 137 14762306a36Sopenharmony_ci#define BIMC_DDR_CLK_SRC 138 14862306a36Sopenharmony_ci#define GCC_APSS_TCU_CLK 139 14962306a36Sopenharmony_ci#define GCC_GFX_TCU_CLK 140 15062306a36Sopenharmony_ci#define BIMC_GPU_CLK_SRC 141 15162306a36Sopenharmony_ci#define GCC_BIMC_GFX_CLK 142 15262306a36Sopenharmony_ci#define GCC_BIMC_GPU_CLK 143 15362306a36Sopenharmony_ci#define ULTAUDIO_LPAIF_PRI_I2S_CLK_SRC 144 15462306a36Sopenharmony_ci#define ULTAUDIO_LPAIF_SEC_I2S_CLK_SRC 145 15562306a36Sopenharmony_ci#define ULTAUDIO_LPAIF_AUX_I2S_CLK_SRC 146 15662306a36Sopenharmony_ci#define ULTAUDIO_XO_CLK_SRC 147 15762306a36Sopenharmony_ci#define ULTAUDIO_AHBFABRIC_CLK_SRC 148 15862306a36Sopenharmony_ci#define CODEC_DIGCODEC_CLK_SRC 149 15962306a36Sopenharmony_ci#define GCC_ULTAUDIO_PCNOC_MPORT_CLK 150 16062306a36Sopenharmony_ci#define GCC_ULTAUDIO_PCNOC_SWAY_CLK 151 16162306a36Sopenharmony_ci#define GCC_ULTAUDIO_AVSYNC_XO_CLK 152 16262306a36Sopenharmony_ci#define GCC_ULTAUDIO_STC_XO_CLK 153 16362306a36Sopenharmony_ci#define GCC_ULTAUDIO_AHBFABRIC_IXFABRIC_CLK 154 16462306a36Sopenharmony_ci#define GCC_ULTAUDIO_AHBFABRIC_IXFABRIC_LPM_CLK 155 16562306a36Sopenharmony_ci#define GCC_ULTAUDIO_LPAIF_PRI_I2S_CLK 156 16662306a36Sopenharmony_ci#define GCC_ULTAUDIO_LPAIF_SEC_I2S_CLK 157 16762306a36Sopenharmony_ci#define GCC_ULTAUDIO_LPAIF_AUX_I2S_CLK 158 16862306a36Sopenharmony_ci#define GCC_CODEC_DIGCODEC_CLK 159 16962306a36Sopenharmony_ci#define GCC_MSS_Q6_BIMC_AXI_CLK 160 17062306a36Sopenharmony_ci#define GPLL3 161 17162306a36Sopenharmony_ci#define GPLL3_VOTE 162 17262306a36Sopenharmony_ci#define GPLL4 163 17362306a36Sopenharmony_ci#define GPLL4_VOTE 164 17462306a36Sopenharmony_ci#define GPLL5 165 17562306a36Sopenharmony_ci#define GPLL5_VOTE 166 17662306a36Sopenharmony_ci#define GPLL6 167 17762306a36Sopenharmony_ci#define GPLL6_VOTE 168 17862306a36Sopenharmony_ci#define BYTE1_CLK_SRC 169 17962306a36Sopenharmony_ci#define GCC_MDSS_BYTE1_CLK 170 18062306a36Sopenharmony_ci#define ESC1_CLK_SRC 171 18162306a36Sopenharmony_ci#define GCC_MDSS_ESC1_CLK 172 18262306a36Sopenharmony_ci#define PCLK1_CLK_SRC 173 18362306a36Sopenharmony_ci#define GCC_MDSS_PCLK1_CLK 174 18462306a36Sopenharmony_ci#define GCC_GFX_TBU_CLK 175 18562306a36Sopenharmony_ci#define GCC_CPP_TBU_CLK 176 18662306a36Sopenharmony_ci#define GCC_MDP_RT_TBU_CLK 177 18762306a36Sopenharmony_ci#define USB_FS_SYSTEM_CLK_SRC 178 18862306a36Sopenharmony_ci#define USB_FS_IC_CLK_SRC 179 18962306a36Sopenharmony_ci#define GCC_USB_FS_AHB_CLK 180 19062306a36Sopenharmony_ci#define GCC_USB_FS_IC_CLK 181 19162306a36Sopenharmony_ci#define GCC_USB_FS_SYSTEM_CLK 182 19262306a36Sopenharmony_ci#define GCC_VENUS0_CORE0_VCODEC0_CLK 183 19362306a36Sopenharmony_ci#define GCC_VENUS0_CORE1_VCODEC0_CLK 184 19462306a36Sopenharmony_ci#define GCC_OXILI_TIMER_CLK 185 19562306a36Sopenharmony_ci#define SYSTEM_MM_NOC_BFDCD_CLK_SRC 186 19662306a36Sopenharmony_ci 19762306a36Sopenharmony_ci/* Indexes for GDSCs */ 19862306a36Sopenharmony_ci#define BIMC_GDSC 0 19962306a36Sopenharmony_ci#define VENUS_GDSC 1 20062306a36Sopenharmony_ci#define MDSS_GDSC 2 20162306a36Sopenharmony_ci#define JPEG_GDSC 3 20262306a36Sopenharmony_ci#define VFE_GDSC 4 20362306a36Sopenharmony_ci#define OXILI_GDSC 5 20462306a36Sopenharmony_ci#define VENUS_CORE0_GDSC 6 20562306a36Sopenharmony_ci#define VENUS_CORE1_GDSC 7 20662306a36Sopenharmony_ci 20762306a36Sopenharmony_ci#endif 208