162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause */ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * Copyright (c) 2021-2023, Qualcomm Innovation Center, Inc. All rights reserved. 462306a36Sopenharmony_ci */ 562306a36Sopenharmony_ci 662306a36Sopenharmony_ci#ifndef _DT_BINDINGS_CLK_QCOM_GCC_QDU1000_H 762306a36Sopenharmony_ci#define _DT_BINDINGS_CLK_QCOM_GCC_QDU1000_H 862306a36Sopenharmony_ci 962306a36Sopenharmony_ci/* GCC clocks */ 1062306a36Sopenharmony_ci#define GCC_GPLL0 0 1162306a36Sopenharmony_ci#define GCC_GPLL0_OUT_EVEN 1 1262306a36Sopenharmony_ci#define GCC_GPLL1 2 1362306a36Sopenharmony_ci#define GCC_GPLL2 3 1462306a36Sopenharmony_ci#define GCC_GPLL2_OUT_EVEN 4 1562306a36Sopenharmony_ci#define GCC_GPLL3 5 1662306a36Sopenharmony_ci#define GCC_GPLL4 6 1762306a36Sopenharmony_ci#define GCC_GPLL5 7 1862306a36Sopenharmony_ci#define GCC_GPLL5_OUT_EVEN 8 1962306a36Sopenharmony_ci#define GCC_GPLL6 9 2062306a36Sopenharmony_ci#define GCC_GPLL7 10 2162306a36Sopenharmony_ci#define GCC_GPLL8 11 2262306a36Sopenharmony_ci#define GCC_AGGRE_NOC_ECPRI_DMA_CLK 12 2362306a36Sopenharmony_ci#define GCC_AGGRE_NOC_ECPRI_DMA_CLK_SRC 13 2462306a36Sopenharmony_ci#define GCC_AGGRE_NOC_ECPRI_GSI_CLK_SRC 14 2562306a36Sopenharmony_ci#define GCC_BOOT_ROM_AHB_CLK 15 2662306a36Sopenharmony_ci#define GCC_CFG_NOC_ECPRI_CC_AHB_CLK 16 2762306a36Sopenharmony_ci#define GCC_CFG_NOC_USB3_PRIM_AXI_CLK 17 2862306a36Sopenharmony_ci#define GCC_DDRSS_ECPRI_DMA_CLK 18 2962306a36Sopenharmony_ci#define GCC_ECPRI_AHB_CLK 19 3062306a36Sopenharmony_ci#define GCC_ECPRI_CC_GPLL0_CLK_SRC 20 3162306a36Sopenharmony_ci#define GCC_ECPRI_CC_GPLL1_EVEN_CLK_SRC 21 3262306a36Sopenharmony_ci#define GCC_ECPRI_CC_GPLL2_EVEN_CLK_SRC 22 3362306a36Sopenharmony_ci#define GCC_ECPRI_CC_GPLL3_CLK_SRC 23 3462306a36Sopenharmony_ci#define GCC_ECPRI_CC_GPLL4_CLK_SRC 24 3562306a36Sopenharmony_ci#define GCC_ECPRI_CC_GPLL5_EVEN_CLK_SRC 25 3662306a36Sopenharmony_ci#define GCC_ECPRI_XO_CLK 26 3762306a36Sopenharmony_ci#define GCC_ETH_DBG_SNOC_AXI_CLK 27 3862306a36Sopenharmony_ci#define GCC_GEMNOC_PCIE_QX_CLK 28 3962306a36Sopenharmony_ci#define GCC_GP1_CLK 29 4062306a36Sopenharmony_ci#define GCC_GP1_CLK_SRC 30 4162306a36Sopenharmony_ci#define GCC_GP2_CLK 31 4262306a36Sopenharmony_ci#define GCC_GP2_CLK_SRC 32 4362306a36Sopenharmony_ci#define GCC_GP3_CLK 33 4462306a36Sopenharmony_ci#define GCC_GP3_CLK_SRC 34 4562306a36Sopenharmony_ci#define GCC_PCIE_0_AUX_CLK 35 4662306a36Sopenharmony_ci#define GCC_PCIE_0_AUX_CLK_SRC 36 4762306a36Sopenharmony_ci#define GCC_PCIE_0_CFG_AHB_CLK 37 4862306a36Sopenharmony_ci#define GCC_PCIE_0_CLKREF_EN 38 4962306a36Sopenharmony_ci#define GCC_PCIE_0_MSTR_AXI_CLK 39 5062306a36Sopenharmony_ci#define GCC_PCIE_0_PHY_AUX_CLK 40 5162306a36Sopenharmony_ci#define GCC_PCIE_0_PHY_RCHNG_CLK 41 5262306a36Sopenharmony_ci#define GCC_PCIE_0_PHY_RCHNG_CLK_SRC 42 5362306a36Sopenharmony_ci#define GCC_PCIE_0_PIPE_CLK 43 5462306a36Sopenharmony_ci#define GCC_PCIE_0_SLV_AXI_CLK 44 5562306a36Sopenharmony_ci#define GCC_PCIE_0_SLV_Q2A_AXI_CLK 45 5662306a36Sopenharmony_ci#define GCC_PDM2_CLK 46 5762306a36Sopenharmony_ci#define GCC_PDM2_CLK_SRC 47 5862306a36Sopenharmony_ci#define GCC_PDM_AHB_CLK 48 5962306a36Sopenharmony_ci#define GCC_PDM_XO4_CLK 49 6062306a36Sopenharmony_ci#define GCC_QMIP_ANOC_PCIE_CLK 50 6162306a36Sopenharmony_ci#define GCC_QMIP_ECPRI_DMA0_CLK 51 6262306a36Sopenharmony_ci#define GCC_QMIP_ECPRI_DMA1_CLK 52 6362306a36Sopenharmony_ci#define GCC_QMIP_ECPRI_GSI_CLK 53 6462306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_CORE_2X_CLK 54 6562306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_CORE_CLK 55 6662306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S0_CLK 56 6762306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S0_CLK_SRC 57 6862306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S1_CLK 58 6962306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S1_CLK_SRC 59 7062306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S2_CLK 60 7162306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S2_CLK_SRC 61 7262306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S3_CLK 62 7362306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S3_CLK_SRC 63 7462306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S4_CLK 64 7562306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S4_CLK_SRC 65 7662306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S5_CLK 66 7762306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S5_CLK_SRC 67 7862306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S6_CLK 68 7962306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S6_CLK_SRC 69 8062306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S7_CLK 70 8162306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S7_CLK_SRC 71 8262306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_CORE_2X_CLK 72 8362306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_CORE_CLK 73 8462306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S0_CLK 74 8562306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S0_CLK_SRC 75 8662306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S1_CLK 76 8762306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S1_CLK_SRC 77 8862306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S2_CLK 78 8962306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S2_CLK_SRC 79 9062306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S3_CLK 80 9162306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S3_CLK_SRC 81 9262306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S4_CLK 82 9362306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S4_CLK_SRC 83 9462306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S5_CLK 84 9562306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S5_CLK_SRC 85 9662306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S6_CLK 86 9762306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S6_CLK_SRC 87 9862306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S7_CLK 88 9962306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S7_CLK_SRC 89 10062306a36Sopenharmony_ci#define GCC_QUPV3_WRAP_0_M_AHB_CLK 90 10162306a36Sopenharmony_ci#define GCC_QUPV3_WRAP_0_S_AHB_CLK 91 10262306a36Sopenharmony_ci#define GCC_QUPV3_WRAP_1_M_AHB_CLK 92 10362306a36Sopenharmony_ci#define GCC_QUPV3_WRAP_1_S_AHB_CLK 93 10462306a36Sopenharmony_ci#define GCC_SDCC5_AHB_CLK 94 10562306a36Sopenharmony_ci#define GCC_SDCC5_APPS_CLK 95 10662306a36Sopenharmony_ci#define GCC_SDCC5_APPS_CLK_SRC 96 10762306a36Sopenharmony_ci#define GCC_SDCC5_ICE_CORE_CLK 97 10862306a36Sopenharmony_ci#define GCC_SDCC5_ICE_CORE_CLK_SRC 98 10962306a36Sopenharmony_ci#define GCC_SNOC_CNOC_GEMNOC_PCIE_QX_CLK 99 11062306a36Sopenharmony_ci#define GCC_SNOC_CNOC_GEMNOC_PCIE_SOUTH_QX_CLK 100 11162306a36Sopenharmony_ci#define GCC_SNOC_CNOC_PCIE_QX_CLK 101 11262306a36Sopenharmony_ci#define GCC_SNOC_PCIE_SF_CENTER_QX_CLK 102 11362306a36Sopenharmony_ci#define GCC_SNOC_PCIE_SF_SOUTH_QX_CLK 103 11462306a36Sopenharmony_ci#define GCC_TSC_CFG_AHB_CLK 104 11562306a36Sopenharmony_ci#define GCC_TSC_CLK_SRC 105 11662306a36Sopenharmony_ci#define GCC_TSC_CNTR_CLK 106 11762306a36Sopenharmony_ci#define GCC_TSC_ETU_CLK 107 11862306a36Sopenharmony_ci#define GCC_USB2_CLKREF_EN 108 11962306a36Sopenharmony_ci#define GCC_USB30_PRIM_MASTER_CLK 109 12062306a36Sopenharmony_ci#define GCC_USB30_PRIM_MASTER_CLK_SRC 110 12162306a36Sopenharmony_ci#define GCC_USB30_PRIM_MOCK_UTMI_CLK 111 12262306a36Sopenharmony_ci#define GCC_USB30_PRIM_MOCK_UTMI_CLK_SRC 112 12362306a36Sopenharmony_ci#define GCC_USB30_PRIM_MOCK_UTMI_POSTDIV_CLK_SRC 113 12462306a36Sopenharmony_ci#define GCC_USB30_PRIM_SLEEP_CLK 114 12562306a36Sopenharmony_ci#define GCC_USB3_PRIM_PHY_AUX_CLK 115 12662306a36Sopenharmony_ci#define GCC_USB3_PRIM_PHY_AUX_CLK_SRC 116 12762306a36Sopenharmony_ci#define GCC_USB3_PRIM_PHY_COM_AUX_CLK 117 12862306a36Sopenharmony_ci#define GCC_USB3_PRIM_PHY_PIPE_CLK 118 12962306a36Sopenharmony_ci#define GCC_SM_BUS_AHB_CLK 119 13062306a36Sopenharmony_ci#define GCC_SM_BUS_XO_CLK 120 13162306a36Sopenharmony_ci#define GCC_SM_BUS_XO_CLK_SRC 121 13262306a36Sopenharmony_ci#define GCC_USB3_PRIM_PHY_PIPE_CLK_SRC 122 13362306a36Sopenharmony_ci#define GCC_ETH_100G_C2C_HM_APB_CLK 123 13462306a36Sopenharmony_ci#define GCC_ETH_100G_FH_HM_APB_0_CLK 124 13562306a36Sopenharmony_ci#define GCC_ETH_100G_FH_HM_APB_1_CLK 125 13662306a36Sopenharmony_ci#define GCC_ETH_100G_FH_HM_APB_2_CLK 126 13762306a36Sopenharmony_ci#define GCC_ETH_DBG_C2C_HM_APB_CLK 127 13862306a36Sopenharmony_ci#define GCC_AGGRE_NOC_ECPRI_GSI_CLK 128 13962306a36Sopenharmony_ci#define GCC_PCIE_0_PIPE_CLK_SRC 129 14062306a36Sopenharmony_ci#define GCC_PCIE_0_PHY_AUX_CLK_SRC 130 14162306a36Sopenharmony_ci#define GCC_GPLL1_OUT_EVEN 131 14262306a36Sopenharmony_ci#define GCC_DDRSS_ECPRI_GSI_CLK 132 14362306a36Sopenharmony_ci 14462306a36Sopenharmony_ci/* GCC resets */ 14562306a36Sopenharmony_ci#define GCC_ECPRI_CC_BCR 0 14662306a36Sopenharmony_ci#define GCC_ECPRI_SS_BCR 1 14762306a36Sopenharmony_ci#define GCC_ETH_WRAPPER_BCR 2 14862306a36Sopenharmony_ci#define GCC_PCIE_0_BCR 3 14962306a36Sopenharmony_ci#define GCC_PCIE_0_LINK_DOWN_BCR 4 15062306a36Sopenharmony_ci#define GCC_PCIE_0_NOCSR_COM_PHY_BCR 5 15162306a36Sopenharmony_ci#define GCC_PCIE_0_PHY_BCR 6 15262306a36Sopenharmony_ci#define GCC_PCIE_0_PHY_NOCSR_COM_PHY_BCR 7 15362306a36Sopenharmony_ci#define GCC_PCIE_PHY_CFG_AHB_BCR 8 15462306a36Sopenharmony_ci#define GCC_PCIE_PHY_COM_BCR 9 15562306a36Sopenharmony_ci#define GCC_PDM_BCR 10 15662306a36Sopenharmony_ci#define GCC_QUPV3_WRAPPER_0_BCR 11 15762306a36Sopenharmony_ci#define GCC_QUPV3_WRAPPER_1_BCR 12 15862306a36Sopenharmony_ci#define GCC_QUSB2PHY_PRIM_BCR 13 15962306a36Sopenharmony_ci#define GCC_QUSB2PHY_SEC_BCR 14 16062306a36Sopenharmony_ci#define GCC_SDCC5_BCR 15 16162306a36Sopenharmony_ci#define GCC_TCSR_PCIE_BCR 16 16262306a36Sopenharmony_ci#define GCC_TSC_BCR 17 16362306a36Sopenharmony_ci#define GCC_USB30_PRIM_BCR 18 16462306a36Sopenharmony_ci#define GCC_USB3_DP_PHY_PRIM_BCR 19 16562306a36Sopenharmony_ci#define GCC_USB3_DP_PHY_SEC_BCR 20 16662306a36Sopenharmony_ci#define GCC_USB3_PHY_PRIM_BCR 21 16762306a36Sopenharmony_ci#define GCC_USB3_PHY_SEC_BCR 22 16862306a36Sopenharmony_ci#define GCC_USB3PHY_PHY_PRIM_BCR 23 16962306a36Sopenharmony_ci#define GCC_USB3PHY_PHY_SEC_BCR 24 17062306a36Sopenharmony_ci#define GCC_USB_PHY_CFG_AHB2PHY_BCR 25 17162306a36Sopenharmony_ci 17262306a36Sopenharmony_ci/* GCC power domains */ 17362306a36Sopenharmony_ci#define PCIE_0_GDSC 0 17462306a36Sopenharmony_ci#define PCIE_0_PHY_GDSC 1 17562306a36Sopenharmony_ci#define USB30_PRIM_GDSC 2 17662306a36Sopenharmony_ci 17762306a36Sopenharmony_ci#endif 178