linux/include/dt-bindings/clock/qcom,gcc-sm8350.h

/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
/*
 * Copyright (c) 2019-2020, The Linux Foundation. All rights reserved.
 * Copyright (c) 2020-2021, Linaro Limited
 */

#ifndef _DT_BINDINGS_CLK_QCOM_GCC_SM8350_H
#define _DT_BINDINGS_CLK_QCOM_GCC_SM8350_H

/* GCC HW clocks */
#define PCIE_0_PIPE_CLK
#define PCIE_1_PIPE_CLK
#define UFS_CARD_RX_SYMBOL_0_CLK
#define UFS_CARD_RX_SYMBOL_1_CLK
#define UFS_CARD_TX_SYMBOL_0_CLK
#define UFS_PHY_RX_SYMBOL_0_CLK
#define UFS_PHY_RX_SYMBOL_1_CLK
#define UFS_PHY_TX_SYMBOL_0_CLK
#define USB3_PHY_WRAPPER_GCC_USB30_PIPE_CLK
#define USB3_UNI_PHY_SEC_GCC_USB30_PIPE_CLK

/* GCC clocks */
#define GCC_AGGRE_NOC_PCIE_0_AXI_CLK
#define GCC_AGGRE_NOC_PCIE_1_AXI_CLK
#define GCC_AGGRE_NOC_PCIE_TBU_CLK
#define GCC_AGGRE_UFS_CARD_AXI_CLK
#define GCC_AGGRE_UFS_CARD_AXI_HW_CTL_CLK
#define GCC_AGGRE_UFS_PHY_AXI_CLK
#define GCC_AGGRE_UFS_PHY_AXI_HW_CTL_CLK
#define GCC_AGGRE_USB3_PRIM_AXI_CLK
#define GCC_AGGRE_USB3_SEC_AXI_CLK
#define GCC_BOOT_ROM_AHB_CLK
#define GCC_CAMERA_HF_AXI_CLK
#define GCC_CAMERA_SF_AXI_CLK
#define GCC_CFG_NOC_USB3_PRIM_AXI_CLK
#define GCC_CFG_NOC_USB3_SEC_AXI_CLK
#define GCC_DDRSS_GPU_AXI_CLK
#define GCC_DDRSS_PCIE_SF_TBU_CLK
#define GCC_DISP_HF_AXI_CLK
#define GCC_DISP_SF_AXI_CLK
#define GCC_GP1_CLK
#define GCC_GP1_CLK_SRC
#define GCC_GP2_CLK
#define GCC_GP2_CLK_SRC
#define GCC_GP3_CLK
#define GCC_GP3_CLK_SRC
#define GCC_GPLL0
#define GCC_GPLL0_OUT_EVEN
#define GCC_GPLL4
#define GCC_GPLL9
#define GCC_GPU_GPLL0_CLK_SRC
#define GCC_GPU_GPLL0_DIV_CLK_SRC
#define GCC_GPU_IREF_EN
#define GCC_GPU_MEMNOC_GFX_CLK
#define GCC_GPU_SNOC_DVM_GFX_CLK
#define GCC_PCIE0_PHY_RCHNG_CLK
#define GCC_PCIE1_PHY_RCHNG_CLK
#define GCC_PCIE_0_AUX_CLK
#define GCC_PCIE_0_AUX_CLK_SRC
#define GCC_PCIE_0_CFG_AHB_CLK
#define GCC_PCIE_0_CLKREF_EN
#define GCC_PCIE_0_MSTR_AXI_CLK
#define GCC_PCIE_0_PHY_RCHNG_CLK_SRC
#define GCC_PCIE_0_PIPE_CLK
#define GCC_PCIE_0_PIPE_CLK_SRC
#define GCC_PCIE_0_SLV_AXI_CLK
#define GCC_PCIE_0_SLV_Q2A_AXI_CLK
#define GCC_PCIE_1_AUX_CLK
#define GCC_PCIE_1_AUX_CLK_SRC
#define GCC_PCIE_1_CFG_AHB_CLK
#define GCC_PCIE_1_CLKREF_EN
#define GCC_PCIE_1_MSTR_AXI_CLK
#define GCC_PCIE_1_PHY_RCHNG_CLK_SRC
#define GCC_PCIE_1_PIPE_CLK
#define GCC_PCIE_1_PIPE_CLK_SRC
#define GCC_PCIE_1_SLV_AXI_CLK
#define GCC_PCIE_1_SLV_Q2A_AXI_CLK
#define GCC_PDM2_CLK
#define GCC_PDM2_CLK_SRC
#define GCC_PDM_AHB_CLK
#define GCC_PDM_XO4_CLK
#define GCC_QMIP_CAMERA_NRT_AHB_CLK
#define GCC_QMIP_CAMERA_RT_AHB_CLK
#define GCC_QMIP_DISP_AHB_CLK
#define GCC_QMIP_VIDEO_CVP_AHB_CLK
#define GCC_QMIP_VIDEO_VCODEC_AHB_CLK
#define GCC_QUPV3_WRAP0_CORE_2X_CLK
#define GCC_QUPV3_WRAP0_CORE_CLK
#define GCC_QUPV3_WRAP0_S0_CLK
#define GCC_QUPV3_WRAP0_S0_CLK_SRC
#define GCC_QUPV3_WRAP0_S1_CLK
#define GCC_QUPV3_WRAP0_S1_CLK_SRC
#define GCC_QUPV3_WRAP0_S2_CLK
#define GCC_QUPV3_WRAP0_S2_CLK_SRC
#define GCC_QUPV3_WRAP0_S3_CLK
#define GCC_QUPV3_WRAP0_S3_CLK_SRC
#define GCC_QUPV3_WRAP0_S4_CLK
#define GCC_QUPV3_WRAP0_S4_CLK_SRC
#define GCC_QUPV3_WRAP0_S5_CLK
#define GCC_QUPV3_WRAP0_S5_CLK_SRC
#define GCC_QUPV3_WRAP0_S6_CLK
#define GCC_QUPV3_WRAP0_S6_CLK_SRC
#define GCC_QUPV3_WRAP0_S7_CLK
#define GCC_QUPV3_WRAP0_S7_CLK_SRC
#define GCC_QUPV3_WRAP1_CORE_2X_CLK
#define GCC_QUPV3_WRAP1_CORE_CLK
#define GCC_QUPV3_WRAP1_S0_CLK
#define GCC_QUPV3_WRAP1_S0_CLK_SRC
#define GCC_QUPV3_WRAP1_S1_CLK
#define GCC_QUPV3_WRAP1_S1_CLK_SRC
#define GCC_QUPV3_WRAP1_S2_CLK
#define GCC_QUPV3_WRAP1_S2_CLK_SRC
#define GCC_QUPV3_WRAP1_S3_CLK
#define GCC_QUPV3_WRAP1_S3_CLK_SRC
#define GCC_QUPV3_WRAP1_S4_CLK
#define GCC_QUPV3_WRAP1_S4_CLK_SRC
#define GCC_QUPV3_WRAP1_S5_CLK
#define GCC_QUPV3_WRAP1_S5_CLK_SRC
#define GCC_QUPV3_WRAP2_CORE_2X_CLK
#define GCC_QUPV3_WRAP2_CORE_CLK
#define GCC_QUPV3_WRAP2_S0_CLK
#define GCC_QUPV3_WRAP2_S0_CLK_SRC
#define GCC_QUPV3_WRAP2_S1_CLK
#define GCC_QUPV3_WRAP2_S1_CLK_SRC
#define GCC_QUPV3_WRAP2_S2_CLK
#define GCC_QUPV3_WRAP2_S2_CLK_SRC
#define GCC_QUPV3_WRAP2_S3_CLK
#define GCC_QUPV3_WRAP2_S3_CLK_SRC
#define GCC_QUPV3_WRAP2_S4_CLK
#define GCC_QUPV3_WRAP2_S4_CLK_SRC
#define GCC_QUPV3_WRAP2_S5_CLK
#define GCC_QUPV3_WRAP2_S5_CLK_SRC
#define GCC_QUPV3_WRAP_0_M_AHB_CLK
#define GCC_QUPV3_WRAP_0_S_AHB_CLK
#define GCC_QUPV3_WRAP_1_M_AHB_CLK
#define GCC_QUPV3_WRAP_1_S_AHB_CLK
#define GCC_QUPV3_WRAP_2_M_AHB_CLK
#define GCC_QUPV3_WRAP_2_S_AHB_CLK
#define GCC_SDCC2_AHB_CLK
#define GCC_SDCC2_APPS_CLK
#define GCC_SDCC2_APPS_CLK_SRC
#define GCC_SDCC4_AHB_CLK
#define GCC_SDCC4_APPS_CLK
#define GCC_SDCC4_APPS_CLK_SRC
#define GCC_THROTTLE_PCIE_AHB_CLK
#define GCC_UFS_1_CLKREF_EN
#define GCC_UFS_CARD_AHB_CLK
#define GCC_UFS_CARD_AXI_CLK
#define GCC_UFS_CARD_AXI_CLK_SRC
#define GCC_UFS_CARD_AXI_HW_CTL_CLK
#define GCC_UFS_CARD_ICE_CORE_CLK
#define GCC_UFS_CARD_ICE_CORE_CLK_SRC
#define GCC_UFS_CARD_ICE_CORE_HW_CTL_CLK
#define GCC_UFS_CARD_PHY_AUX_CLK
#define GCC_UFS_CARD_PHY_AUX_CLK_SRC
#define GCC_UFS_CARD_PHY_AUX_HW_CTL_CLK
#define GCC_UFS_CARD_RX_SYMBOL_0_CLK
#define GCC_UFS_CARD_RX_SYMBOL_0_CLK_SRC
#define GCC_UFS_CARD_RX_SYMBOL_1_CLK
#define GCC_UFS_CARD_RX_SYMBOL_1_CLK_SRC
#define GCC_UFS_CARD_TX_SYMBOL_0_CLK
#define GCC_UFS_CARD_TX_SYMBOL_0_CLK_SRC
#define GCC_UFS_CARD_UNIPRO_CORE_CLK
#define GCC_UFS_CARD_UNIPRO_CORE_CLK_SRC
#define GCC_UFS_CARD_UNIPRO_CORE_HW_CTL_CLK
#define GCC_UFS_PHY_AHB_CLK
#define GCC_UFS_PHY_AXI_CLK
#define GCC_UFS_PHY_AXI_CLK_SRC
#define GCC_UFS_PHY_AXI_HW_CTL_CLK
#define GCC_UFS_PHY_ICE_CORE_CLK
#define GCC_UFS_PHY_ICE_CORE_CLK_SRC
#define GCC_UFS_PHY_ICE_CORE_HW_CTL_CLK
#define GCC_UFS_PHY_PHY_AUX_CLK
#define GCC_UFS_PHY_PHY_AUX_CLK_SRC
#define GCC_UFS_PHY_PHY_AUX_HW_CTL_CLK
#define GCC_UFS_PHY_RX_SYMBOL_0_CLK
#define GCC_UFS_PHY_RX_SYMBOL_0_CLK_SRC
#define GCC_UFS_PHY_RX_SYMBOL_1_CLK
#define GCC_UFS_PHY_RX_SYMBOL_1_CLK_SRC
#define GCC_UFS_PHY_TX_SYMBOL_0_CLK
#define GCC_UFS_PHY_TX_SYMBOL_0_CLK_SRC
#define GCC_UFS_PHY_UNIPRO_CORE_CLK
#define GCC_UFS_PHY_UNIPRO_CORE_CLK_SRC
#define GCC_UFS_PHY_UNIPRO_CORE_HW_CTL_CLK
#define GCC_USB30_PRIM_MASTER_CLK
#define GCC_USB30_PRIM_MASTER_CLK__FORCE_MEM_CORE_ON
#define GCC_USB30_PRIM_MASTER_CLK_SRC
#define GCC_USB30_PRIM_MOCK_UTMI_CLK
#define GCC_USB30_PRIM_MOCK_UTMI_CLK_SRC
#define GCC_USB30_PRIM_MOCK_UTMI_POSTDIV_CLK_SRC
#define GCC_USB30_PRIM_SLEEP_CLK
#define GCC_USB30_SEC_MASTER_CLK
#define GCC_USB30_SEC_MASTER_CLK__FORCE_MEM_CORE_ON
#define GCC_USB30_SEC_MASTER_CLK_SRC
#define GCC_USB30_SEC_MOCK_UTMI_CLK
#define GCC_USB30_SEC_MOCK_UTMI_CLK_SRC
#define GCC_USB30_SEC_MOCK_UTMI_POSTDIV_CLK_SRC
#define GCC_USB30_SEC_SLEEP_CLK
#define GCC_USB3_PRIM_PHY_AUX_CLK
#define GCC_USB3_PRIM_PHY_AUX_CLK_SRC
#define GCC_USB3_PRIM_PHY_COM_AUX_CLK
#define GCC_USB3_PRIM_PHY_PIPE_CLK
#define GCC_USB3_PRIM_PHY_PIPE_CLK_SRC
#define GCC_USB3_SEC_CLKREF_EN
#define GCC_USB3_SEC_PHY_AUX_CLK
#define GCC_USB3_SEC_PHY_AUX_CLK_SRC
#define GCC_USB3_SEC_PHY_COM_AUX_CLK
#define GCC_USB3_SEC_PHY_PIPE_CLK
#define GCC_USB3_SEC_PHY_PIPE_CLK_SRC
#define GCC_VIDEO_AXI0_CLK
#define GCC_VIDEO_AXI1_CLK

/* GCC resets */
#define GCC_CAMERA_BCR
#define GCC_DISPLAY_BCR
#define GCC_GPU_BCR
#define GCC_MMSS_BCR
#define GCC_PCIE_0_BCR
#define GCC_PCIE_0_LINK_DOWN_BCR
#define GCC_PCIE_0_NOCSR_COM_PHY_BCR
#define GCC_PCIE_0_PHY_BCR
#define GCC_PCIE_0_PHY_NOCSR_COM_PHY_BCR
#define GCC_PCIE_1_BCR
#define GCC_PCIE_1_LINK_DOWN_BCR
#define GCC_PCIE_1_NOCSR_COM_PHY_BCR
#define GCC_PCIE_1_PHY_BCR
#define GCC_PCIE_1_PHY_NOCSR_COM_PHY_BCR
#define GCC_PCIE_PHY_CFG_AHB_BCR
#define GCC_PCIE_PHY_COM_BCR
#define GCC_PDM_BCR
#define GCC_QUPV3_WRAPPER_0_BCR
#define GCC_QUPV3_WRAPPER_1_BCR
#define GCC_QUPV3_WRAPPER_2_BCR
#define GCC_QUSB2PHY_PRIM_BCR
#define GCC_QUSB2PHY_SEC_BCR
#define GCC_SDCC2_BCR
#define GCC_SDCC4_BCR
#define GCC_UFS_CARD_BCR
#define GCC_UFS_PHY_BCR
#define GCC_USB30_PRIM_BCR
#define GCC_USB30_SEC_BCR
#define GCC_USB3_DP_PHY_PRIM_BCR
#define GCC_USB3_DP_PHY_SEC_BCR
#define GCC_USB3_PHY_PRIM_BCR
#define GCC_USB3_PHY_SEC_BCR
#define GCC_USB3PHY_PHY_PRIM_BCR
#define GCC_USB3PHY_PHY_SEC_BCR
#define GCC_USB_PHY_CFG_AHB2PHY_BCR
#define GCC_VIDEO_AXI0_CLK_ARES
#define GCC_VIDEO_AXI1_CLK_ARES
#define GCC_VIDEO_BCR

/* GCC power domains */
#define PCIE_0_GDSC
#define PCIE_1_GDSC
#define UFS_CARD_GDSC
#define UFS_PHY_GDSC
#define USB30_PRIM_GDSC
#define USB30_SEC_GDSC
#define HLOS1_VOTE_MMNOC_MMU_TBU_HF0_GDSC
#define HLOS1_VOTE_MMNOC_MMU_TBU_HF1_GDSC
#define HLOS1_VOTE_MMNOC_MMU_TBU_SF0_GDSC
#define HLOS1_VOTE_MMNOC_MMU_TBU_SF1_GDSC

#endif