1 1.1 jmcneill /* $NetBSD: qcom,gcc-sm6350.h,v 1.1.1.1 2021/11/07 16:49:59 jmcneill Exp $ */ 2 1.1 jmcneill 3 1.1 jmcneill /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ 4 1.1 jmcneill /* 5 1.1 jmcneill * Copyright (c) 2021, The Linux Foundation. All rights reserved. 6 1.1 jmcneill * Copyright (c) 2021, Konrad Dybcio <konrad.dybcio (at) somainline.org> 7 1.1 jmcneill */ 8 1.1 jmcneill 9 1.1 jmcneill #ifndef _DT_BINDINGS_CLK_QCOM_GCC_SM6350_H 10 1.1 jmcneill #define _DT_BINDINGS_CLK_QCOM_GCC_SM6350_H 11 1.1 jmcneill 12 1.1 jmcneill /* GCC clocks */ 13 1.1 jmcneill #define GPLL0 0 14 1.1 jmcneill #define GPLL0_OUT_EVEN 1 15 1.1 jmcneill #define GPLL0_OUT_ODD 2 16 1.1 jmcneill #define GPLL6 3 17 1.1 jmcneill #define GPLL6_OUT_EVEN 4 18 1.1 jmcneill #define GPLL7 5 19 1.1 jmcneill #define GCC_AGGRE_CNOC_PERIPH_CENTER_AHB_CLK 6 20 1.1 jmcneill #define GCC_AGGRE_NOC_CENTER_AHB_CLK 7 21 1.1 jmcneill #define GCC_AGGRE_NOC_PCIE_SF_AXI_CLK 8 22 1.1 jmcneill #define GCC_AGGRE_NOC_PCIE_TBU_CLK 9 23 1.1 jmcneill #define GCC_AGGRE_NOC_WLAN_AXI_CLK 10 24 1.1 jmcneill #define GCC_AGGRE_UFS_PHY_AXI_CLK 11 25 1.1 jmcneill #define GCC_AGGRE_USB3_PRIM_AXI_CLK 12 26 1.1 jmcneill #define GCC_BOOT_ROM_AHB_CLK 13 27 1.1 jmcneill #define GCC_CAMERA_AHB_CLK 14 28 1.1 jmcneill #define GCC_CAMERA_AXI_CLK 15 29 1.1 jmcneill #define GCC_CAMERA_THROTTLE_NRT_AXI_CLK 16 30 1.1 jmcneill #define GCC_CAMERA_THROTTLE_RT_AXI_CLK 17 31 1.1 jmcneill #define GCC_CAMERA_XO_CLK 18 32 1.1 jmcneill #define GCC_CE1_AHB_CLK 19 33 1.1 jmcneill #define GCC_CE1_AXI_CLK 20 34 1.1 jmcneill #define GCC_CE1_CLK 21 35 1.1 jmcneill #define GCC_CFG_NOC_USB3_PRIM_AXI_CLK 22 36 1.1 jmcneill #define GCC_CPUSS_AHB_CLK 23 37 1.1 jmcneill #define GCC_CPUSS_AHB_CLK_SRC 24 38 1.1 jmcneill #define GCC_CPUSS_AHB_DIV_CLK_SRC 25 39 1.1 jmcneill #define GCC_CPUSS_GNOC_CLK 26 40 1.1 jmcneill #define GCC_CPUSS_RBCPR_CLK 27 41 1.1 jmcneill #define GCC_DDRSS_GPU_AXI_CLK 28 42 1.1 jmcneill #define GCC_DISP_AHB_CLK 29 43 1.1 jmcneill #define GCC_DISP_AXI_CLK 30 44 1.1 jmcneill #define GCC_DISP_CC_SLEEP_CLK 31 45 1.1 jmcneill #define GCC_DISP_CC_XO_CLK 32 46 1.1 jmcneill #define GCC_DISP_GPLL0_CLK 33 47 1.1 jmcneill #define GCC_DISP_THROTTLE_AXI_CLK 34 48 1.1 jmcneill #define GCC_DISP_XO_CLK 35 49 1.1 jmcneill #define GCC_GP1_CLK 36 50 1.1 jmcneill #define GCC_GP1_CLK_SRC 37 51 1.1 jmcneill #define GCC_GP2_CLK 38 52 1.1 jmcneill #define GCC_GP2_CLK_SRC 39 53 1.1 jmcneill #define GCC_GP3_CLK 40 54 1.1 jmcneill #define GCC_GP3_CLK_SRC 41 55 1.1 jmcneill #define GCC_GPU_CFG_AHB_CLK 42 56 1.1 jmcneill #define GCC_GPU_GPLL0_CLK 43 57 1.1 jmcneill #define GCC_GPU_GPLL0_DIV_CLK 44 58 1.1 jmcneill #define GCC_GPU_MEMNOC_GFX_CLK 45 59 1.1 jmcneill #define GCC_GPU_SNOC_DVM_GFX_CLK 46 60 1.1 jmcneill #define GCC_NPU_AXI_CLK 47 61 1.1 jmcneill #define GCC_NPU_BWMON_AXI_CLK 48 62 1.1 jmcneill #define GCC_NPU_BWMON_DMA_CFG_AHB_CLK 49 63 1.1 jmcneill #define GCC_NPU_BWMON_DSP_CFG_AHB_CLK 50 64 1.1 jmcneill #define GCC_NPU_CFG_AHB_CLK 51 65 1.1 jmcneill #define GCC_NPU_DMA_CLK 52 66 1.1 jmcneill #define GCC_NPU_GPLL0_CLK 53 67 1.1 jmcneill #define GCC_NPU_GPLL0_DIV_CLK 54 68 1.1 jmcneill #define GCC_PCIE_0_AUX_CLK 55 69 1.1 jmcneill #define GCC_PCIE_0_AUX_CLK_SRC 56 70 1.1 jmcneill #define GCC_PCIE_0_CFG_AHB_CLK 57 71 1.1 jmcneill #define GCC_PCIE_0_MSTR_AXI_CLK 58 72 1.1 jmcneill #define GCC_PCIE_0_PIPE_CLK 59 73 1.1 jmcneill #define GCC_PCIE_0_SLV_AXI_CLK 60 74 1.1 jmcneill #define GCC_PCIE_0_SLV_Q2A_AXI_CLK 61 75 1.1 jmcneill #define GCC_PCIE_PHY_RCHNG_CLK 62 76 1.1 jmcneill #define GCC_PCIE_PHY_RCHNG_CLK_SRC 63 77 1.1 jmcneill #define GCC_PDM2_CLK 64 78 1.1 jmcneill #define GCC_PDM2_CLK_SRC 65 79 1.1 jmcneill #define GCC_PDM_AHB_CLK 66 80 1.1 jmcneill #define GCC_PDM_XO4_CLK 67 81 1.1 jmcneill #define GCC_PRNG_AHB_CLK 68 82 1.1 jmcneill #define GCC_QUPV3_WRAP0_CORE_2X_CLK 69 83 1.1 jmcneill #define GCC_QUPV3_WRAP0_CORE_CLK 70 84 1.1 jmcneill #define GCC_QUPV3_WRAP0_S0_CLK 71 85 1.1 jmcneill #define GCC_QUPV3_WRAP0_S0_CLK_SRC 72 86 1.1 jmcneill #define GCC_QUPV3_WRAP0_S1_CLK 73 87 1.1 jmcneill #define GCC_QUPV3_WRAP0_S1_CLK_SRC 74 88 1.1 jmcneill #define GCC_QUPV3_WRAP0_S2_CLK 75 89 1.1 jmcneill #define GCC_QUPV3_WRAP0_S2_CLK_SRC 76 90 1.1 jmcneill #define GCC_QUPV3_WRAP0_S3_CLK 77 91 1.1 jmcneill #define GCC_QUPV3_WRAP0_S3_CLK_SRC 78 92 1.1 jmcneill #define GCC_QUPV3_WRAP0_S4_CLK 79 93 1.1 jmcneill #define GCC_QUPV3_WRAP0_S4_CLK_SRC 80 94 1.1 jmcneill #define GCC_QUPV3_WRAP0_S5_CLK 81 95 1.1 jmcneill #define GCC_QUPV3_WRAP0_S5_CLK_SRC 82 96 1.1 jmcneill #define GCC_QUPV3_WRAP1_CORE_2X_CLK 83 97 1.1 jmcneill #define GCC_QUPV3_WRAP1_CORE_CLK 84 98 1.1 jmcneill #define GCC_QUPV3_WRAP1_S0_CLK 85 99 1.1 jmcneill #define GCC_QUPV3_WRAP1_S0_CLK_SRC 86 100 1.1 jmcneill #define GCC_QUPV3_WRAP1_S1_CLK 87 101 1.1 jmcneill #define GCC_QUPV3_WRAP1_S1_CLK_SRC 88 102 1.1 jmcneill #define GCC_QUPV3_WRAP1_S2_CLK 89 103 1.1 jmcneill #define GCC_QUPV3_WRAP1_S2_CLK_SRC 90 104 1.1 jmcneill #define GCC_QUPV3_WRAP1_S3_CLK 91 105 1.1 jmcneill #define GCC_QUPV3_WRAP1_S3_CLK_SRC 92 106 1.1 jmcneill #define GCC_QUPV3_WRAP1_S4_CLK 93 107 1.1 jmcneill #define GCC_QUPV3_WRAP1_S4_CLK_SRC 94 108 1.1 jmcneill #define GCC_QUPV3_WRAP1_S5_CLK 95 109 1.1 jmcneill #define GCC_QUPV3_WRAP1_S5_CLK_SRC 96 110 1.1 jmcneill #define GCC_QUPV3_WRAP_0_M_AHB_CLK 97 111 1.1 jmcneill #define GCC_QUPV3_WRAP_0_S_AHB_CLK 98 112 1.1 jmcneill #define GCC_QUPV3_WRAP_1_M_AHB_CLK 99 113 1.1 jmcneill #define GCC_QUPV3_WRAP_1_S_AHB_CLK 100 114 1.1 jmcneill #define GCC_SDCC1_AHB_CLK 101 115 1.1 jmcneill #define GCC_SDCC1_APPS_CLK 102 116 1.1 jmcneill #define GCC_SDCC1_APPS_CLK_SRC 103 117 1.1 jmcneill #define GCC_SDCC1_ICE_CORE_CLK 104 118 1.1 jmcneill #define GCC_SDCC1_ICE_CORE_CLK_SRC 105 119 1.1 jmcneill #define GCC_SDCC2_AHB_CLK 106 120 1.1 jmcneill #define GCC_SDCC2_APPS_CLK 107 121 1.1 jmcneill #define GCC_SDCC2_APPS_CLK_SRC 108 122 1.1 jmcneill #define GCC_SYS_NOC_CPUSS_AHB_CLK 109 123 1.1 jmcneill #define GCC_UFS_MEM_CLKREF_CLK 110 124 1.1 jmcneill #define GCC_UFS_PHY_AHB_CLK 111 125 1.1 jmcneill #define GCC_UFS_PHY_AXI_CLK 112 126 1.1 jmcneill #define GCC_UFS_PHY_AXI_CLK_SRC 113 127 1.1 jmcneill #define GCC_UFS_PHY_ICE_CORE_CLK 114 128 1.1 jmcneill #define GCC_UFS_PHY_ICE_CORE_CLK_SRC 115 129 1.1 jmcneill #define GCC_UFS_PHY_PHY_AUX_CLK 116 130 1.1 jmcneill #define GCC_UFS_PHY_PHY_AUX_CLK_SRC 117 131 1.1 jmcneill #define GCC_UFS_PHY_RX_SYMBOL_0_CLK 118 132 1.1 jmcneill #define GCC_UFS_PHY_RX_SYMBOL_1_CLK 119 133 1.1 jmcneill #define GCC_UFS_PHY_TX_SYMBOL_0_CLK 120 134 1.1 jmcneill #define GCC_UFS_PHY_UNIPRO_CORE_CLK 121 135 1.1 jmcneill #define GCC_UFS_PHY_UNIPRO_CORE_CLK_SRC 122 136 1.1 jmcneill #define GCC_USB30_PRIM_MASTER_CLK 123 137 1.1 jmcneill #define GCC_USB30_PRIM_MASTER_CLK_SRC 124 138 1.1 jmcneill #define GCC_USB30_PRIM_MOCK_UTMI_CLK 125 139 1.1 jmcneill #define GCC_USB30_PRIM_MOCK_UTMI_CLK_SRC 126 140 1.1 jmcneill #define GCC_USB30_PRIM_MOCK_UTMI_DIV_CLK_SRC 127 141 1.1 jmcneill #define GCC_USB3_PRIM_CLKREF_CLK 128 142 1.1 jmcneill #define GCC_USB30_PRIM_SLEEP_CLK 129 143 1.1 jmcneill #define GCC_USB3_PRIM_PHY_AUX_CLK 130 144 1.1 jmcneill #define GCC_USB3_PRIM_PHY_AUX_CLK_SRC 131 145 1.1 jmcneill #define GCC_USB3_PRIM_PHY_COM_AUX_CLK 132 146 1.1 jmcneill #define GCC_USB3_PRIM_PHY_PIPE_CLK 133 147 1.1 jmcneill #define GCC_VIDEO_AHB_CLK 134 148 1.1 jmcneill #define GCC_VIDEO_AXI_CLK 135 149 1.1 jmcneill #define GCC_VIDEO_THROTTLE_AXI_CLK 136 150 1.1 jmcneill #define GCC_VIDEO_XO_CLK 137 151 1.1 jmcneill #define GCC_UFS_PHY_PHY_AUX_HW_CTL_CLK 138 152 1.1 jmcneill #define GCC_UFS_PHY_AXI_HW_CTL_CLK 139 153 1.1 jmcneill #define GCC_AGGRE_UFS_PHY_AXI_HW_CTL_CLK 140 154 1.1 jmcneill #define GCC_UFS_PHY_UNIPRO_CORE_HW_CTL_CLK 141 155 1.1 jmcneill #define GCC_UFS_PHY_ICE_CORE_HW_CTL_CLK 142 156 1.1 jmcneill #define GCC_RX5_PCIE_CLKREF_CLK 143 157 1.1 jmcneill #define GCC_GPU_GPLL0_MAIN_DIV_CLK_SRC 144 158 1.1 jmcneill #define GCC_NPU_PLL0_MAIN_DIV_CLK_SRC 145 159 1.1 jmcneill 160 1.1 jmcneill /* GCC resets */ 161 1.1 jmcneill #define GCC_QUSB2PHY_PRIM_BCR 0 162 1.1 jmcneill #define GCC_QUSB2PHY_SEC_BCR 1 163 1.1 jmcneill #define GCC_SDCC1_BCR 2 164 1.1 jmcneill #define GCC_SDCC2_BCR 3 165 1.1 jmcneill #define GCC_UFS_PHY_BCR 4 166 1.1 jmcneill #define GCC_USB30_PRIM_BCR 5 167 1.1 jmcneill #define GCC_PCIE_0_BCR 6 168 1.1 jmcneill #define GCC_PCIE_0_PHY_BCR 7 169 1.1 jmcneill #define GCC_QUPV3_WRAPPER_0_BCR 8 170 1.1 jmcneill #define GCC_QUPV3_WRAPPER_1_BCR 9 171 1.1 jmcneill #define GCC_USB3_PHY_PRIM_BCR 10 172 1.1 jmcneill #define GCC_USB3_DP_PHY_PRIM_BCR 11 173 1.1 jmcneill 174 1.1 jmcneill /* GCC GDSCs */ 175 1.1 jmcneill #define USB30_PRIM_GDSC 0 176 1.1 jmcneill #define UFS_PHY_GDSC 1 177 1.1 jmcneill #define HLOS1_VOTE_MMNOC_MMU_TBU_HF0_GDSC 2 178 1.1 jmcneill #define HLOS1_VOTE_MMNOC_MMU_TBU_HF1_GDSC 3 179 1.1 jmcneill 180 1.1 jmcneill #endif 181