162306a36Sopenharmony_ci/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * Copyright (C) 2022 Kernkonzept GmbH. 462306a36Sopenharmony_ci */ 562306a36Sopenharmony_ci 662306a36Sopenharmony_ci#ifndef _DT_BINDINGS_CLK_QCOM_GCC_8909_H 762306a36Sopenharmony_ci#define _DT_BINDINGS_CLK_QCOM_GCC_8909_H 862306a36Sopenharmony_ci 962306a36Sopenharmony_ci/* PLLs */ 1062306a36Sopenharmony_ci#define GPLL0_EARLY 0 1162306a36Sopenharmony_ci#define GPLL0 1 1262306a36Sopenharmony_ci#define GPLL1 2 1362306a36Sopenharmony_ci#define GPLL1_VOTE 3 1462306a36Sopenharmony_ci#define GPLL2_EARLY 4 1562306a36Sopenharmony_ci#define GPLL2 5 1662306a36Sopenharmony_ci#define BIMC_PLL_EARLY 6 1762306a36Sopenharmony_ci#define BIMC_PLL 7 1862306a36Sopenharmony_ci 1962306a36Sopenharmony_ci/* RCGs */ 2062306a36Sopenharmony_ci#define APSS_AHB_CLK_SRC 8 2162306a36Sopenharmony_ci#define BIMC_DDR_CLK_SRC 9 2262306a36Sopenharmony_ci#define BIMC_GPU_CLK_SRC 10 2362306a36Sopenharmony_ci#define BLSP1_QUP1_I2C_APPS_CLK_SRC 11 2462306a36Sopenharmony_ci#define BLSP1_QUP1_SPI_APPS_CLK_SRC 12 2562306a36Sopenharmony_ci#define BLSP1_QUP2_I2C_APPS_CLK_SRC 13 2662306a36Sopenharmony_ci#define BLSP1_QUP2_SPI_APPS_CLK_SRC 14 2762306a36Sopenharmony_ci#define BLSP1_QUP3_I2C_APPS_CLK_SRC 15 2862306a36Sopenharmony_ci#define BLSP1_QUP3_SPI_APPS_CLK_SRC 16 2962306a36Sopenharmony_ci#define BLSP1_QUP4_I2C_APPS_CLK_SRC 17 3062306a36Sopenharmony_ci#define BLSP1_QUP4_SPI_APPS_CLK_SRC 18 3162306a36Sopenharmony_ci#define BLSP1_QUP5_I2C_APPS_CLK_SRC 19 3262306a36Sopenharmony_ci#define BLSP1_QUP5_SPI_APPS_CLK_SRC 20 3362306a36Sopenharmony_ci#define BLSP1_QUP6_I2C_APPS_CLK_SRC 21 3462306a36Sopenharmony_ci#define BLSP1_QUP6_SPI_APPS_CLK_SRC 22 3562306a36Sopenharmony_ci#define BLSP1_UART1_APPS_CLK_SRC 23 3662306a36Sopenharmony_ci#define BLSP1_UART2_APPS_CLK_SRC 24 3762306a36Sopenharmony_ci#define BYTE0_CLK_SRC 25 3862306a36Sopenharmony_ci#define CAMSS_GP0_CLK_SRC 26 3962306a36Sopenharmony_ci#define CAMSS_GP1_CLK_SRC 27 4062306a36Sopenharmony_ci#define CAMSS_TOP_AHB_CLK_SRC 28 4162306a36Sopenharmony_ci#define CODEC_DIGCODEC_CLK_SRC 29 4262306a36Sopenharmony_ci#define CRYPTO_CLK_SRC 30 4362306a36Sopenharmony_ci#define CSI0_CLK_SRC 31 4462306a36Sopenharmony_ci#define CSI0PHYTIMER_CLK_SRC 32 4562306a36Sopenharmony_ci#define CSI1_CLK_SRC 33 4662306a36Sopenharmony_ci#define ESC0_CLK_SRC 34 4762306a36Sopenharmony_ci#define GFX3D_CLK_SRC 35 4862306a36Sopenharmony_ci#define GP1_CLK_SRC 36 4962306a36Sopenharmony_ci#define GP2_CLK_SRC 37 5062306a36Sopenharmony_ci#define GP3_CLK_SRC 38 5162306a36Sopenharmony_ci#define MCLK0_CLK_SRC 39 5262306a36Sopenharmony_ci#define MCLK1_CLK_SRC 40 5362306a36Sopenharmony_ci#define MDP_CLK_SRC 41 5462306a36Sopenharmony_ci#define PCLK0_CLK_SRC 42 5562306a36Sopenharmony_ci#define PCNOC_BFDCD_CLK_SRC 43 5662306a36Sopenharmony_ci#define PDM2_CLK_SRC 44 5762306a36Sopenharmony_ci#define SDCC1_APPS_CLK_SRC 45 5862306a36Sopenharmony_ci#define SDCC2_APPS_CLK_SRC 46 5962306a36Sopenharmony_ci#define SYSTEM_NOC_BFDCD_CLK_SRC 47 6062306a36Sopenharmony_ci#define ULTAUDIO_AHBFABRIC_CLK_SRC 48 6162306a36Sopenharmony_ci#define ULTAUDIO_LPAIF_AUX_I2S_CLK_SRC 49 6262306a36Sopenharmony_ci#define ULTAUDIO_LPAIF_PRI_I2S_CLK_SRC 50 6362306a36Sopenharmony_ci#define ULTAUDIO_LPAIF_SEC_I2S_CLK_SRC 51 6462306a36Sopenharmony_ci#define ULTAUDIO_XO_CLK_SRC 52 6562306a36Sopenharmony_ci#define USB_HS_SYSTEM_CLK_SRC 53 6662306a36Sopenharmony_ci#define VCODEC0_CLK_SRC 54 6762306a36Sopenharmony_ci#define VFE0_CLK_SRC 55 6862306a36Sopenharmony_ci#define VSYNC_CLK_SRC 56 6962306a36Sopenharmony_ci 7062306a36Sopenharmony_ci/* Voteable Clocks */ 7162306a36Sopenharmony_ci#define GCC_APSS_TCU_CLK 57 7262306a36Sopenharmony_ci#define GCC_BLSP1_AHB_CLK 58 7362306a36Sopenharmony_ci#define GCC_BLSP1_SLEEP_CLK 59 7462306a36Sopenharmony_ci#define GCC_BOOT_ROM_AHB_CLK 60 7562306a36Sopenharmony_ci#define GCC_CRYPTO_CLK 61 7662306a36Sopenharmony_ci#define GCC_CRYPTO_AHB_CLK 62 7762306a36Sopenharmony_ci#define GCC_CRYPTO_AXI_CLK 63 7862306a36Sopenharmony_ci#define GCC_GFX_TBU_CLK 64 7962306a36Sopenharmony_ci#define GCC_GFX_TCU_CLK 65 8062306a36Sopenharmony_ci#define GCC_GTCU_AHB_CLK 66 8162306a36Sopenharmony_ci#define GCC_MDP_TBU_CLK 67 8262306a36Sopenharmony_ci#define GCC_PRNG_AHB_CLK 68 8362306a36Sopenharmony_ci#define GCC_SMMU_CFG_CLK 69 8462306a36Sopenharmony_ci#define GCC_VENUS_TBU_CLK 70 8562306a36Sopenharmony_ci#define GCC_VFE_TBU_CLK 71 8662306a36Sopenharmony_ci 8762306a36Sopenharmony_ci/* Branches */ 8862306a36Sopenharmony_ci#define GCC_BIMC_GFX_CLK 72 8962306a36Sopenharmony_ci#define GCC_BIMC_GPU_CLK 73 9062306a36Sopenharmony_ci#define GCC_BLSP1_QUP1_I2C_APPS_CLK 74 9162306a36Sopenharmony_ci#define GCC_BLSP1_QUP1_SPI_APPS_CLK 75 9262306a36Sopenharmony_ci#define GCC_BLSP1_QUP2_I2C_APPS_CLK 76 9362306a36Sopenharmony_ci#define GCC_BLSP1_QUP2_SPI_APPS_CLK 77 9462306a36Sopenharmony_ci#define GCC_BLSP1_QUP3_I2C_APPS_CLK 78 9562306a36Sopenharmony_ci#define GCC_BLSP1_QUP3_SPI_APPS_CLK 79 9662306a36Sopenharmony_ci#define GCC_BLSP1_QUP4_I2C_APPS_CLK 80 9762306a36Sopenharmony_ci#define GCC_BLSP1_QUP4_SPI_APPS_CLK 81 9862306a36Sopenharmony_ci#define GCC_BLSP1_QUP5_I2C_APPS_CLK 82 9962306a36Sopenharmony_ci#define GCC_BLSP1_QUP5_SPI_APPS_CLK 83 10062306a36Sopenharmony_ci#define GCC_BLSP1_QUP6_I2C_APPS_CLK 84 10162306a36Sopenharmony_ci#define GCC_BLSP1_QUP6_SPI_APPS_CLK 85 10262306a36Sopenharmony_ci#define GCC_BLSP1_UART1_APPS_CLK 86 10362306a36Sopenharmony_ci#define GCC_BLSP1_UART2_APPS_CLK 87 10462306a36Sopenharmony_ci#define GCC_CAMSS_AHB_CLK 88 10562306a36Sopenharmony_ci#define GCC_CAMSS_CSI0_CLK 89 10662306a36Sopenharmony_ci#define GCC_CAMSS_CSI0_AHB_CLK 90 10762306a36Sopenharmony_ci#define GCC_CAMSS_CSI0PHY_CLK 91 10862306a36Sopenharmony_ci#define GCC_CAMSS_CSI0PHYTIMER_CLK 92 10962306a36Sopenharmony_ci#define GCC_CAMSS_CSI0PIX_CLK 93 11062306a36Sopenharmony_ci#define GCC_CAMSS_CSI0RDI_CLK 94 11162306a36Sopenharmony_ci#define GCC_CAMSS_CSI1_CLK 95 11262306a36Sopenharmony_ci#define GCC_CAMSS_CSI1_AHB_CLK 96 11362306a36Sopenharmony_ci#define GCC_CAMSS_CSI1PHY_CLK 97 11462306a36Sopenharmony_ci#define GCC_CAMSS_CSI1PIX_CLK 98 11562306a36Sopenharmony_ci#define GCC_CAMSS_CSI1RDI_CLK 99 11662306a36Sopenharmony_ci#define GCC_CAMSS_CSI_VFE0_CLK 100 11762306a36Sopenharmony_ci#define GCC_CAMSS_GP0_CLK 101 11862306a36Sopenharmony_ci#define GCC_CAMSS_GP1_CLK 102 11962306a36Sopenharmony_ci#define GCC_CAMSS_ISPIF_AHB_CLK 103 12062306a36Sopenharmony_ci#define GCC_CAMSS_MCLK0_CLK 104 12162306a36Sopenharmony_ci#define GCC_CAMSS_MCLK1_CLK 105 12262306a36Sopenharmony_ci#define GCC_CAMSS_TOP_AHB_CLK 106 12362306a36Sopenharmony_ci#define GCC_CAMSS_VFE0_CLK 107 12462306a36Sopenharmony_ci#define GCC_CAMSS_VFE_AHB_CLK 108 12562306a36Sopenharmony_ci#define GCC_CAMSS_VFE_AXI_CLK 109 12662306a36Sopenharmony_ci#define GCC_CODEC_DIGCODEC_CLK 110 12762306a36Sopenharmony_ci#define GCC_GP1_CLK 111 12862306a36Sopenharmony_ci#define GCC_GP2_CLK 112 12962306a36Sopenharmony_ci#define GCC_GP3_CLK 113 13062306a36Sopenharmony_ci#define GCC_MDSS_AHB_CLK 114 13162306a36Sopenharmony_ci#define GCC_MDSS_AXI_CLK 115 13262306a36Sopenharmony_ci#define GCC_MDSS_BYTE0_CLK 116 13362306a36Sopenharmony_ci#define GCC_MDSS_ESC0_CLK 117 13462306a36Sopenharmony_ci#define GCC_MDSS_MDP_CLK 118 13562306a36Sopenharmony_ci#define GCC_MDSS_PCLK0_CLK 119 13662306a36Sopenharmony_ci#define GCC_MDSS_VSYNC_CLK 120 13762306a36Sopenharmony_ci#define GCC_MSS_CFG_AHB_CLK 121 13862306a36Sopenharmony_ci#define GCC_MSS_Q6_BIMC_AXI_CLK 122 13962306a36Sopenharmony_ci#define GCC_OXILI_AHB_CLK 123 14062306a36Sopenharmony_ci#define GCC_OXILI_GFX3D_CLK 124 14162306a36Sopenharmony_ci#define GCC_PDM2_CLK 125 14262306a36Sopenharmony_ci#define GCC_PDM_AHB_CLK 126 14362306a36Sopenharmony_ci#define GCC_SDCC1_AHB_CLK 127 14462306a36Sopenharmony_ci#define GCC_SDCC1_APPS_CLK 128 14562306a36Sopenharmony_ci#define GCC_SDCC2_AHB_CLK 129 14662306a36Sopenharmony_ci#define GCC_SDCC2_APPS_CLK 130 14762306a36Sopenharmony_ci#define GCC_ULTAUDIO_AHBFABRIC_IXFABRIC_CLK 131 14862306a36Sopenharmony_ci#define GCC_ULTAUDIO_AHBFABRIC_IXFABRIC_LPM_CLK 132 14962306a36Sopenharmony_ci#define GCC_ULTAUDIO_AVSYNC_XO_CLK 133 15062306a36Sopenharmony_ci#define GCC_ULTAUDIO_LPAIF_AUX_I2S_CLK 134 15162306a36Sopenharmony_ci#define GCC_ULTAUDIO_LPAIF_PRI_I2S_CLK 135 15262306a36Sopenharmony_ci#define GCC_ULTAUDIO_LPAIF_SEC_I2S_CLK 136 15362306a36Sopenharmony_ci#define GCC_ULTAUDIO_PCNOC_MPORT_CLK 137 15462306a36Sopenharmony_ci#define GCC_ULTAUDIO_PCNOC_SWAY_CLK 138 15562306a36Sopenharmony_ci#define GCC_ULTAUDIO_STC_XO_CLK 139 15662306a36Sopenharmony_ci#define GCC_USB2A_PHY_SLEEP_CLK 140 15762306a36Sopenharmony_ci#define GCC_USB_HS_AHB_CLK 141 15862306a36Sopenharmony_ci#define GCC_USB_HS_PHY_CFG_AHB_CLK 142 15962306a36Sopenharmony_ci#define GCC_USB_HS_SYSTEM_CLK 143 16062306a36Sopenharmony_ci#define GCC_VENUS0_AHB_CLK 144 16162306a36Sopenharmony_ci#define GCC_VENUS0_AXI_CLK 145 16262306a36Sopenharmony_ci#define GCC_VENUS0_CORE0_VCODEC0_CLK 146 16362306a36Sopenharmony_ci#define GCC_VENUS0_VCODEC0_CLK 147 16462306a36Sopenharmony_ci 16562306a36Sopenharmony_ci/* Resets */ 16662306a36Sopenharmony_ci#define GCC_AUDIO_CORE_BCR 0 16762306a36Sopenharmony_ci#define GCC_BLSP1_BCR 1 16862306a36Sopenharmony_ci#define GCC_BLSP1_QUP1_BCR 2 16962306a36Sopenharmony_ci#define GCC_BLSP1_QUP2_BCR 3 17062306a36Sopenharmony_ci#define GCC_BLSP1_QUP3_BCR 4 17162306a36Sopenharmony_ci#define GCC_BLSP1_QUP4_BCR 5 17262306a36Sopenharmony_ci#define GCC_BLSP1_QUP5_BCR 6 17362306a36Sopenharmony_ci#define GCC_BLSP1_QUP6_BCR 7 17462306a36Sopenharmony_ci#define GCC_BLSP1_UART1_BCR 8 17562306a36Sopenharmony_ci#define GCC_BLSP1_UART2_BCR 9 17662306a36Sopenharmony_ci#define GCC_CAMSS_CSI0_BCR 10 17762306a36Sopenharmony_ci#define GCC_CAMSS_CSI0PHY_BCR 11 17862306a36Sopenharmony_ci#define GCC_CAMSS_CSI0PIX_BCR 12 17962306a36Sopenharmony_ci#define GCC_CAMSS_CSI0RDI_BCR 13 18062306a36Sopenharmony_ci#define GCC_CAMSS_CSI1_BCR 14 18162306a36Sopenharmony_ci#define GCC_CAMSS_CSI1PHY_BCR 15 18262306a36Sopenharmony_ci#define GCC_CAMSS_CSI1PIX_BCR 16 18362306a36Sopenharmony_ci#define GCC_CAMSS_CSI1RDI_BCR 17 18462306a36Sopenharmony_ci#define GCC_CAMSS_CSI_VFE0_BCR 18 18562306a36Sopenharmony_ci#define GCC_CAMSS_GP0_BCR 19 18662306a36Sopenharmony_ci#define GCC_CAMSS_GP1_BCR 20 18762306a36Sopenharmony_ci#define GCC_CAMSS_ISPIF_BCR 21 18862306a36Sopenharmony_ci#define GCC_CAMSS_MCLK0_BCR 22 18962306a36Sopenharmony_ci#define GCC_CAMSS_MCLK1_BCR 23 19062306a36Sopenharmony_ci#define GCC_CAMSS_PHY0_BCR 24 19162306a36Sopenharmony_ci#define GCC_CAMSS_TOP_BCR 25 19262306a36Sopenharmony_ci#define GCC_CAMSS_TOP_AHB_BCR 26 19362306a36Sopenharmony_ci#define GCC_CAMSS_VFE_BCR 27 19462306a36Sopenharmony_ci#define GCC_CRYPTO_BCR 28 19562306a36Sopenharmony_ci#define GCC_MDSS_BCR 29 19662306a36Sopenharmony_ci#define GCC_OXILI_BCR 30 19762306a36Sopenharmony_ci#define GCC_PDM_BCR 31 19862306a36Sopenharmony_ci#define GCC_PRNG_BCR 32 19962306a36Sopenharmony_ci#define GCC_QUSB2_PHY_BCR 33 20062306a36Sopenharmony_ci#define GCC_SDCC1_BCR 34 20162306a36Sopenharmony_ci#define GCC_SDCC2_BCR 35 20262306a36Sopenharmony_ci#define GCC_ULT_AUDIO_BCR 36 20362306a36Sopenharmony_ci#define GCC_USB2A_PHY_BCR 37 20462306a36Sopenharmony_ci#define GCC_USB2_HS_PHY_ONLY_BCR 38 20562306a36Sopenharmony_ci#define GCC_USB_HS_BCR 39 20662306a36Sopenharmony_ci#define GCC_VENUS0_BCR 40 20762306a36Sopenharmony_ci 20862306a36Sopenharmony_ci/* Subsystem Restart */ 20962306a36Sopenharmony_ci#define GCC_MSS_RESTART 41 21062306a36Sopenharmony_ci 21162306a36Sopenharmony_ci/* Power Domains */ 21262306a36Sopenharmony_ci#define MDSS_GDSC 0 21362306a36Sopenharmony_ci#define OXILI_GDSC 1 21462306a36Sopenharmony_ci#define VENUS_GDSC 2 21562306a36Sopenharmony_ci#define VENUS_CORE0_GDSC 3 21662306a36Sopenharmony_ci#define VFE_GDSC 4 21762306a36Sopenharmony_ci 21862306a36Sopenharmony_ci#endif 219