162306a36Sopenharmony_ci/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * Copyright (c) 2019-2021, The Linux Foundation. All rights reserved. 462306a36Sopenharmony_ci */ 562306a36Sopenharmony_ci 662306a36Sopenharmony_ci#ifndef _DT_BINDINGS_CLK_QCOM_GCC_SM6115_H 762306a36Sopenharmony_ci#define _DT_BINDINGS_CLK_QCOM_GCC_SM6115_H 862306a36Sopenharmony_ci 962306a36Sopenharmony_ci/* GCC clocks */ 1062306a36Sopenharmony_ci#define GPLL0 0 1162306a36Sopenharmony_ci#define GPLL0_OUT_AUX2 1 1262306a36Sopenharmony_ci#define GPLL0_OUT_MAIN 2 1362306a36Sopenharmony_ci#define GPLL10 3 1462306a36Sopenharmony_ci#define GPLL10_OUT_MAIN 4 1562306a36Sopenharmony_ci#define GPLL11 5 1662306a36Sopenharmony_ci#define GPLL11_OUT_MAIN 6 1762306a36Sopenharmony_ci#define GPLL3 7 1862306a36Sopenharmony_ci#define GPLL4 8 1962306a36Sopenharmony_ci#define GPLL4_OUT_MAIN 9 2062306a36Sopenharmony_ci#define GPLL6 10 2162306a36Sopenharmony_ci#define GPLL6_OUT_MAIN 11 2262306a36Sopenharmony_ci#define GPLL7 12 2362306a36Sopenharmony_ci#define GPLL7_OUT_MAIN 13 2462306a36Sopenharmony_ci#define GPLL8 14 2562306a36Sopenharmony_ci#define GPLL8_OUT_MAIN 15 2662306a36Sopenharmony_ci#define GPLL9 16 2762306a36Sopenharmony_ci#define GPLL9_OUT_MAIN 17 2862306a36Sopenharmony_ci#define GCC_CAMSS_CSI0PHYTIMER_CLK 18 2962306a36Sopenharmony_ci#define GCC_CAMSS_CSI0PHYTIMER_CLK_SRC 19 3062306a36Sopenharmony_ci#define GCC_CAMSS_CSI1PHYTIMER_CLK 20 3162306a36Sopenharmony_ci#define GCC_CAMSS_CSI1PHYTIMER_CLK_SRC 21 3262306a36Sopenharmony_ci#define GCC_CAMSS_CSI2PHYTIMER_CLK 22 3362306a36Sopenharmony_ci#define GCC_CAMSS_CSI2PHYTIMER_CLK_SRC 23 3462306a36Sopenharmony_ci#define GCC_CAMSS_MCLK0_CLK 24 3562306a36Sopenharmony_ci#define GCC_CAMSS_MCLK0_CLK_SRC 25 3662306a36Sopenharmony_ci#define GCC_CAMSS_MCLK1_CLK 26 3762306a36Sopenharmony_ci#define GCC_CAMSS_MCLK1_CLK_SRC 27 3862306a36Sopenharmony_ci#define GCC_CAMSS_MCLK2_CLK 28 3962306a36Sopenharmony_ci#define GCC_CAMSS_MCLK2_CLK_SRC 29 4062306a36Sopenharmony_ci#define GCC_CAMSS_MCLK3_CLK 30 4162306a36Sopenharmony_ci#define GCC_CAMSS_MCLK3_CLK_SRC 31 4262306a36Sopenharmony_ci#define GCC_CAMSS_NRT_AXI_CLK 32 4362306a36Sopenharmony_ci#define GCC_CAMSS_OPE_AHB_CLK 33 4462306a36Sopenharmony_ci#define GCC_CAMSS_OPE_AHB_CLK_SRC 34 4562306a36Sopenharmony_ci#define GCC_CAMSS_OPE_CLK 35 4662306a36Sopenharmony_ci#define GCC_CAMSS_OPE_CLK_SRC 36 4762306a36Sopenharmony_ci#define GCC_CAMSS_RT_AXI_CLK 37 4862306a36Sopenharmony_ci#define GCC_CAMSS_TFE_0_CLK 38 4962306a36Sopenharmony_ci#define GCC_CAMSS_TFE_0_CLK_SRC 39 5062306a36Sopenharmony_ci#define GCC_CAMSS_TFE_0_CPHY_RX_CLK 40 5162306a36Sopenharmony_ci#define GCC_CAMSS_TFE_0_CSID_CLK 41 5262306a36Sopenharmony_ci#define GCC_CAMSS_TFE_0_CSID_CLK_SRC 42 5362306a36Sopenharmony_ci#define GCC_CAMSS_TFE_1_CLK 43 5462306a36Sopenharmony_ci#define GCC_CAMSS_TFE_1_CLK_SRC 44 5562306a36Sopenharmony_ci#define GCC_CAMSS_TFE_1_CPHY_RX_CLK 45 5662306a36Sopenharmony_ci#define GCC_CAMSS_TFE_1_CSID_CLK 46 5762306a36Sopenharmony_ci#define GCC_CAMSS_TFE_1_CSID_CLK_SRC 47 5862306a36Sopenharmony_ci#define GCC_CAMSS_TFE_2_CLK 48 5962306a36Sopenharmony_ci#define GCC_CAMSS_TFE_2_CLK_SRC 49 6062306a36Sopenharmony_ci#define GCC_CAMSS_TFE_2_CPHY_RX_CLK 50 6162306a36Sopenharmony_ci#define GCC_CAMSS_TFE_2_CSID_CLK 51 6262306a36Sopenharmony_ci#define GCC_CAMSS_TFE_2_CSID_CLK_SRC 52 6362306a36Sopenharmony_ci#define GCC_CAMSS_TFE_CPHY_RX_CLK_SRC 53 6462306a36Sopenharmony_ci#define GCC_CAMSS_TOP_AHB_CLK 54 6562306a36Sopenharmony_ci#define GCC_CAMSS_TOP_AHB_CLK_SRC 55 6662306a36Sopenharmony_ci#define GCC_CFG_NOC_USB3_PRIM_AXI_CLK 56 6762306a36Sopenharmony_ci#define GCC_CPUSS_AHB_CLK 57 6862306a36Sopenharmony_ci#define GCC_CPUSS_GNOC_CLK 60 6962306a36Sopenharmony_ci#define GCC_DISP_AHB_CLK 61 7062306a36Sopenharmony_ci#define GCC_DISP_GPLL0_DIV_CLK_SRC 62 7162306a36Sopenharmony_ci#define GCC_DISP_HF_AXI_CLK 63 7262306a36Sopenharmony_ci#define GCC_DISP_THROTTLE_CORE_CLK 64 7362306a36Sopenharmony_ci#define GCC_DISP_XO_CLK 65 7462306a36Sopenharmony_ci#define GCC_GP1_CLK 66 7562306a36Sopenharmony_ci#define GCC_GP1_CLK_SRC 67 7662306a36Sopenharmony_ci#define GCC_GP2_CLK 68 7762306a36Sopenharmony_ci#define GCC_GP2_CLK_SRC 69 7862306a36Sopenharmony_ci#define GCC_GP3_CLK 70 7962306a36Sopenharmony_ci#define GCC_GP3_CLK_SRC 71 8062306a36Sopenharmony_ci#define GCC_GPU_CFG_AHB_CLK 72 8162306a36Sopenharmony_ci#define GCC_GPU_GPLL0_CLK_SRC 73 8262306a36Sopenharmony_ci#define GCC_GPU_GPLL0_DIV_CLK_SRC 74 8362306a36Sopenharmony_ci#define GCC_GPU_IREF_CLK 75 8462306a36Sopenharmony_ci#define GCC_GPU_MEMNOC_GFX_CLK 76 8562306a36Sopenharmony_ci#define GCC_GPU_SNOC_DVM_GFX_CLK 77 8662306a36Sopenharmony_ci#define GCC_GPU_THROTTLE_CORE_CLK 78 8762306a36Sopenharmony_ci#define GCC_GPU_THROTTLE_XO_CLK 79 8862306a36Sopenharmony_ci#define GCC_PDM2_CLK 80 8962306a36Sopenharmony_ci#define GCC_PDM2_CLK_SRC 81 9062306a36Sopenharmony_ci#define GCC_PDM_AHB_CLK 82 9162306a36Sopenharmony_ci#define GCC_PDM_XO4_CLK 83 9262306a36Sopenharmony_ci#define GCC_PRNG_AHB_CLK 84 9362306a36Sopenharmony_ci#define GCC_QMIP_CAMERA_NRT_AHB_CLK 85 9462306a36Sopenharmony_ci#define GCC_QMIP_CAMERA_RT_AHB_CLK 86 9562306a36Sopenharmony_ci#define GCC_QMIP_DISP_AHB_CLK 87 9662306a36Sopenharmony_ci#define GCC_QMIP_GPU_CFG_AHB_CLK 88 9762306a36Sopenharmony_ci#define GCC_QMIP_VIDEO_VCODEC_AHB_CLK 89 9862306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_CORE_2X_CLK 90 9962306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_CORE_CLK 91 10062306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S0_CLK 92 10162306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S0_CLK_SRC 93 10262306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S1_CLK 94 10362306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S1_CLK_SRC 95 10462306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S2_CLK 96 10562306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S2_CLK_SRC 97 10662306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S3_CLK 98 10762306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S3_CLK_SRC 99 10862306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S4_CLK 100 10962306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S4_CLK_SRC 101 11062306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S5_CLK 102 11162306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S5_CLK_SRC 103 11262306a36Sopenharmony_ci#define GCC_QUPV3_WRAP_0_M_AHB_CLK 104 11362306a36Sopenharmony_ci#define GCC_QUPV3_WRAP_0_S_AHB_CLK 105 11462306a36Sopenharmony_ci#define GCC_SDCC1_AHB_CLK 106 11562306a36Sopenharmony_ci#define GCC_SDCC1_APPS_CLK 107 11662306a36Sopenharmony_ci#define GCC_SDCC1_APPS_CLK_SRC 108 11762306a36Sopenharmony_ci#define GCC_SDCC1_ICE_CORE_CLK 109 11862306a36Sopenharmony_ci#define GCC_SDCC1_ICE_CORE_CLK_SRC 110 11962306a36Sopenharmony_ci#define GCC_SDCC2_AHB_CLK 111 12062306a36Sopenharmony_ci#define GCC_SDCC2_APPS_CLK 112 12162306a36Sopenharmony_ci#define GCC_SDCC2_APPS_CLK_SRC 113 12262306a36Sopenharmony_ci#define GCC_SYS_NOC_CPUSS_AHB_CLK 114 12362306a36Sopenharmony_ci#define GCC_SYS_NOC_UFS_PHY_AXI_CLK 115 12462306a36Sopenharmony_ci#define GCC_SYS_NOC_USB3_PRIM_AXI_CLK 116 12562306a36Sopenharmony_ci#define GCC_UFS_PHY_AHB_CLK 117 12662306a36Sopenharmony_ci#define GCC_UFS_PHY_AXI_CLK 118 12762306a36Sopenharmony_ci#define GCC_UFS_PHY_AXI_CLK_SRC 119 12862306a36Sopenharmony_ci#define GCC_UFS_PHY_ICE_CORE_CLK 120 12962306a36Sopenharmony_ci#define GCC_UFS_PHY_ICE_CORE_CLK_SRC 121 13062306a36Sopenharmony_ci#define GCC_UFS_PHY_PHY_AUX_CLK 122 13162306a36Sopenharmony_ci#define GCC_UFS_PHY_PHY_AUX_CLK_SRC 123 13262306a36Sopenharmony_ci#define GCC_UFS_PHY_RX_SYMBOL_0_CLK 124 13362306a36Sopenharmony_ci#define GCC_UFS_PHY_TX_SYMBOL_0_CLK 125 13462306a36Sopenharmony_ci#define GCC_UFS_PHY_UNIPRO_CORE_CLK 126 13562306a36Sopenharmony_ci#define GCC_UFS_PHY_UNIPRO_CORE_CLK_SRC 127 13662306a36Sopenharmony_ci#define GCC_USB30_PRIM_MASTER_CLK 128 13762306a36Sopenharmony_ci#define GCC_USB30_PRIM_MASTER_CLK_SRC 129 13862306a36Sopenharmony_ci#define GCC_USB30_PRIM_MOCK_UTMI_CLK 130 13962306a36Sopenharmony_ci#define GCC_USB30_PRIM_MOCK_UTMI_CLK_SRC 131 14062306a36Sopenharmony_ci#define GCC_USB30_PRIM_MOCK_UTMI_POSTDIV_CLK_SRC 132 14162306a36Sopenharmony_ci#define GCC_USB30_PRIM_SLEEP_CLK 133 14262306a36Sopenharmony_ci#define GCC_USB3_PRIM_CLKREF_CLK 134 14362306a36Sopenharmony_ci#define GCC_USB3_PRIM_PHY_AUX_CLK_SRC 135 14462306a36Sopenharmony_ci#define GCC_USB3_PRIM_PHY_COM_AUX_CLK 136 14562306a36Sopenharmony_ci#define GCC_USB3_PRIM_PHY_PIPE_CLK 137 14662306a36Sopenharmony_ci#define GCC_VCODEC0_AXI_CLK 138 14762306a36Sopenharmony_ci#define GCC_VENUS_AHB_CLK 139 14862306a36Sopenharmony_ci#define GCC_VENUS_CTL_AXI_CLK 140 14962306a36Sopenharmony_ci#define GCC_VIDEO_AHB_CLK 141 15062306a36Sopenharmony_ci#define GCC_VIDEO_AXI0_CLK 142 15162306a36Sopenharmony_ci#define GCC_VIDEO_THROTTLE_CORE_CLK 143 15262306a36Sopenharmony_ci#define GCC_VIDEO_VCODEC0_SYS_CLK 144 15362306a36Sopenharmony_ci#define GCC_VIDEO_VENUS_CLK_SRC 145 15462306a36Sopenharmony_ci#define GCC_VIDEO_VENUS_CTL_CLK 146 15562306a36Sopenharmony_ci#define GCC_VIDEO_XO_CLK 147 15662306a36Sopenharmony_ci#define GCC_AHB2PHY_CSI_CLK 148 15762306a36Sopenharmony_ci#define GCC_AHB2PHY_USB_CLK 149 15862306a36Sopenharmony_ci#define GCC_BIMC_GPU_AXI_CLK 150 15962306a36Sopenharmony_ci#define GCC_BOOT_ROM_AHB_CLK 151 16062306a36Sopenharmony_ci#define GCC_CAM_THROTTLE_NRT_CLK 152 16162306a36Sopenharmony_ci#define GCC_CAM_THROTTLE_RT_CLK 153 16262306a36Sopenharmony_ci#define GCC_CAMERA_AHB_CLK 154 16362306a36Sopenharmony_ci#define GCC_CAMERA_XO_CLK 155 16462306a36Sopenharmony_ci#define GCC_CAMSS_AXI_CLK 156 16562306a36Sopenharmony_ci#define GCC_CAMSS_AXI_CLK_SRC 157 16662306a36Sopenharmony_ci#define GCC_CAMSS_CAMNOC_ATB_CLK 158 16762306a36Sopenharmony_ci#define GCC_CAMSS_CAMNOC_NTS_XO_CLK 159 16862306a36Sopenharmony_ci#define GCC_CAMSS_CCI_0_CLK 160 16962306a36Sopenharmony_ci#define GCC_CAMSS_CCI_CLK_SRC 161 17062306a36Sopenharmony_ci#define GCC_CAMSS_CPHY_0_CLK 162 17162306a36Sopenharmony_ci#define GCC_CAMSS_CPHY_1_CLK 163 17262306a36Sopenharmony_ci#define GCC_CAMSS_CPHY_2_CLK 164 17362306a36Sopenharmony_ci#define GCC_UFS_CLKREF_CLK 165 17462306a36Sopenharmony_ci#define GCC_DISP_GPLL0_CLK_SRC 166 17562306a36Sopenharmony_ci 17662306a36Sopenharmony_ci/* GCC resets */ 17762306a36Sopenharmony_ci#define GCC_QUSB2PHY_PRIM_BCR 0 17862306a36Sopenharmony_ci#define GCC_QUSB2PHY_SEC_BCR 1 17962306a36Sopenharmony_ci#define GCC_SDCC1_BCR 2 18062306a36Sopenharmony_ci#define GCC_UFS_PHY_BCR 3 18162306a36Sopenharmony_ci#define GCC_USB30_PRIM_BCR 4 18262306a36Sopenharmony_ci#define GCC_USB_PHY_CFG_AHB2PHY_BCR 5 18362306a36Sopenharmony_ci#define GCC_VCODEC0_BCR 6 18462306a36Sopenharmony_ci#define GCC_VENUS_BCR 7 18562306a36Sopenharmony_ci#define GCC_VIDEO_INTERFACE_BCR 8 18662306a36Sopenharmony_ci#define GCC_USB3PHY_PHY_PRIM_SP0_BCR 9 18762306a36Sopenharmony_ci#define GCC_USB3_PHY_PRIM_SP0_BCR 10 18862306a36Sopenharmony_ci#define GCC_SDCC2_BCR 11 18962306a36Sopenharmony_ci 19062306a36Sopenharmony_ci/* Indexes for GDSCs */ 19162306a36Sopenharmony_ci#define GCC_CAMSS_TOP_GDSC 0 19262306a36Sopenharmony_ci#define GCC_UFS_PHY_GDSC 1 19362306a36Sopenharmony_ci#define GCC_USB30_PRIM_GDSC 2 19462306a36Sopenharmony_ci#define GCC_VCODEC0_GDSC 3 19562306a36Sopenharmony_ci#define GCC_VENUS_GDSC 4 19662306a36Sopenharmony_ci#define HLOS1_VOTE_TURING_MMU_TBU1_GDSC 5 19762306a36Sopenharmony_ci#define HLOS1_VOTE_TURING_MMU_TBU0_GDSC 6 19862306a36Sopenharmony_ci#define HLOS1_VOTE_MM_SNOC_MMU_TBU_RT_GDSC 7 19962306a36Sopenharmony_ci#define HLOS1_VOTE_MM_SNOC_MMU_TBU_NRT_GDSC 8 20062306a36Sopenharmony_ci 20162306a36Sopenharmony_ci#endif 202