1*354d7675SEmmanuel Vadot /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ 25def4c47SEmmanuel Vadot /* 35def4c47SEmmanuel Vadot * Copyright (c) 2020-2021, The Linux Foundation. All rights reserved. 45def4c47SEmmanuel Vadot */ 55def4c47SEmmanuel Vadot 65def4c47SEmmanuel Vadot #ifndef _DT_BINDINGS_CLK_QCOM_GCC_SC7280_H 75def4c47SEmmanuel Vadot #define _DT_BINDINGS_CLK_QCOM_GCC_SC7280_H 85def4c47SEmmanuel Vadot 95def4c47SEmmanuel Vadot /* GCC clocks */ 105def4c47SEmmanuel Vadot #define GCC_GPLL0 0 115def4c47SEmmanuel Vadot #define GCC_GPLL0_OUT_EVEN 1 125def4c47SEmmanuel Vadot #define GCC_GPLL0_OUT_ODD 2 135def4c47SEmmanuel Vadot #define GCC_GPLL1 3 145def4c47SEmmanuel Vadot #define GCC_GPLL10 4 155def4c47SEmmanuel Vadot #define GCC_GPLL4 5 165def4c47SEmmanuel Vadot #define GCC_GPLL9 6 175def4c47SEmmanuel Vadot #define GCC_AGGRE_NOC_PCIE_0_AXI_CLK 7 185def4c47SEmmanuel Vadot #define GCC_AGGRE_NOC_PCIE_1_AXI_CLK 8 195def4c47SEmmanuel Vadot #define GCC_AGGRE_UFS_PHY_AXI_CLK 9 205def4c47SEmmanuel Vadot #define GCC_AGGRE_USB3_PRIM_AXI_CLK 10 215def4c47SEmmanuel Vadot #define GCC_CAMERA_AHB_CLK 11 225def4c47SEmmanuel Vadot #define GCC_CAMERA_HF_AXI_CLK 12 235def4c47SEmmanuel Vadot #define GCC_CAMERA_SF_AXI_CLK 13 245def4c47SEmmanuel Vadot #define GCC_CAMERA_XO_CLK 14 255def4c47SEmmanuel Vadot #define GCC_CFG_NOC_USB3_PRIM_AXI_CLK 15 265def4c47SEmmanuel Vadot #define GCC_CFG_NOC_USB3_SEC_AXI_CLK 16 275def4c47SEmmanuel Vadot #define GCC_CPUSS_AHB_CLK 17 285def4c47SEmmanuel Vadot #define GCC_CPUSS_AHB_CLK_SRC 18 295def4c47SEmmanuel Vadot #define GCC_CPUSS_AHB_POSTDIV_CLK_SRC 19 305def4c47SEmmanuel Vadot #define GCC_DDRSS_GPU_AXI_CLK 20 315def4c47SEmmanuel Vadot #define GCC_DDRSS_PCIE_SF_CLK 21 325def4c47SEmmanuel Vadot #define GCC_DISP_AHB_CLK 22 335def4c47SEmmanuel Vadot #define GCC_DISP_GPLL0_CLK_SRC 23 345def4c47SEmmanuel Vadot #define GCC_DISP_HF_AXI_CLK 24 355def4c47SEmmanuel Vadot #define GCC_DISP_SF_AXI_CLK 25 365def4c47SEmmanuel Vadot #define GCC_DISP_XO_CLK 26 375def4c47SEmmanuel Vadot #define GCC_GP1_CLK 27 385def4c47SEmmanuel Vadot #define GCC_GP1_CLK_SRC 28 395def4c47SEmmanuel Vadot #define GCC_GP2_CLK 29 405def4c47SEmmanuel Vadot #define GCC_GP2_CLK_SRC 30 415def4c47SEmmanuel Vadot #define GCC_GP3_CLK 31 425def4c47SEmmanuel Vadot #define GCC_GP3_CLK_SRC 32 435def4c47SEmmanuel Vadot #define GCC_GPU_CFG_AHB_CLK 33 445def4c47SEmmanuel Vadot #define GCC_GPU_GPLL0_CLK_SRC 34 455def4c47SEmmanuel Vadot #define GCC_GPU_GPLL0_DIV_CLK_SRC 35 465def4c47SEmmanuel Vadot #define GCC_GPU_IREF_EN 36 475def4c47SEmmanuel Vadot #define GCC_GPU_MEMNOC_GFX_CLK 37 485def4c47SEmmanuel Vadot #define GCC_GPU_SNOC_DVM_GFX_CLK 38 495def4c47SEmmanuel Vadot #define GCC_PCIE0_PHY_RCHNG_CLK 39 505def4c47SEmmanuel Vadot #define GCC_PCIE1_PHY_RCHNG_CLK 40 515def4c47SEmmanuel Vadot #define GCC_PCIE_0_AUX_CLK 41 525def4c47SEmmanuel Vadot #define GCC_PCIE_0_AUX_CLK_SRC 42 535def4c47SEmmanuel Vadot #define GCC_PCIE_0_CFG_AHB_CLK 43 545def4c47SEmmanuel Vadot #define GCC_PCIE_0_MSTR_AXI_CLK 44 555def4c47SEmmanuel Vadot #define GCC_PCIE_0_PHY_RCHNG_CLK_SRC 45 565def4c47SEmmanuel Vadot #define GCC_PCIE_0_PIPE_CLK 46 575def4c47SEmmanuel Vadot #define GCC_PCIE_0_PIPE_CLK_SRC 47 585def4c47SEmmanuel Vadot #define GCC_PCIE_0_SLV_AXI_CLK 48 595def4c47SEmmanuel Vadot #define GCC_PCIE_0_SLV_Q2A_AXI_CLK 49 605def4c47SEmmanuel Vadot #define GCC_PCIE_1_AUX_CLK 50 615def4c47SEmmanuel Vadot #define GCC_PCIE_1_AUX_CLK_SRC 51 625def4c47SEmmanuel Vadot #define GCC_PCIE_1_CFG_AHB_CLK 52 635def4c47SEmmanuel Vadot #define GCC_PCIE_1_MSTR_AXI_CLK 53 645def4c47SEmmanuel Vadot #define GCC_PCIE_1_PHY_RCHNG_CLK_SRC 54 655def4c47SEmmanuel Vadot #define GCC_PCIE_1_PIPE_CLK 55 665def4c47SEmmanuel Vadot #define GCC_PCIE_1_PIPE_CLK_SRC 56 675def4c47SEmmanuel Vadot #define GCC_PCIE_1_SLV_AXI_CLK 57 685def4c47SEmmanuel Vadot #define GCC_PCIE_1_SLV_Q2A_AXI_CLK 58 695def4c47SEmmanuel Vadot #define GCC_PCIE_THROTTLE_CORE_CLK 59 705def4c47SEmmanuel Vadot #define GCC_PDM2_CLK 60 715def4c47SEmmanuel Vadot #define GCC_PDM2_CLK_SRC 61 725def4c47SEmmanuel Vadot #define GCC_PDM_AHB_CLK 62 735def4c47SEmmanuel Vadot #define GCC_PDM_XO4_CLK 63 745def4c47SEmmanuel Vadot #define GCC_QMIP_CAMERA_NRT_AHB_CLK 64 755def4c47SEmmanuel Vadot #define GCC_QMIP_CAMERA_RT_AHB_CLK 65 765def4c47SEmmanuel Vadot #define GCC_QMIP_DISP_AHB_CLK 66 775def4c47SEmmanuel Vadot #define GCC_QMIP_VIDEO_VCODEC_AHB_CLK 67 785def4c47SEmmanuel Vadot #define GCC_QUPV3_WRAP0_CORE_2X_CLK 68 795def4c47SEmmanuel Vadot #define GCC_QUPV3_WRAP0_CORE_CLK 69 805def4c47SEmmanuel Vadot #define GCC_QUPV3_WRAP0_S0_CLK 70 815def4c47SEmmanuel Vadot #define GCC_QUPV3_WRAP0_S0_CLK_SRC 71 825def4c47SEmmanuel Vadot #define GCC_QUPV3_WRAP0_S1_CLK 72 835def4c47SEmmanuel Vadot #define GCC_QUPV3_WRAP0_S1_CLK_SRC 73 845def4c47SEmmanuel Vadot #define GCC_QUPV3_WRAP0_S2_CLK 74 855def4c47SEmmanuel Vadot #define GCC_QUPV3_WRAP0_S2_CLK_SRC 75 865def4c47SEmmanuel Vadot #define GCC_QUPV3_WRAP0_S3_CLK 76 875def4c47SEmmanuel Vadot #define GCC_QUPV3_WRAP0_S3_CLK_SRC 77 885def4c47SEmmanuel Vadot #define GCC_QUPV3_WRAP0_S4_CLK 78 895def4c47SEmmanuel Vadot #define GCC_QUPV3_WRAP0_S4_CLK_SRC 79 905def4c47SEmmanuel Vadot #define GCC_QUPV3_WRAP0_S5_CLK 80 915def4c47SEmmanuel Vadot #define GCC_QUPV3_WRAP0_S5_CLK_SRC 81 925def4c47SEmmanuel Vadot #define GCC_QUPV3_WRAP0_S6_CLK 82 935def4c47SEmmanuel Vadot #define GCC_QUPV3_WRAP0_S6_CLK_SRC 83 945def4c47SEmmanuel Vadot #define GCC_QUPV3_WRAP0_S7_CLK 84 955def4c47SEmmanuel Vadot #define GCC_QUPV3_WRAP0_S7_CLK_SRC 85 965def4c47SEmmanuel Vadot #define GCC_QUPV3_WRAP1_CORE_2X_CLK 86 975def4c47SEmmanuel Vadot #define GCC_QUPV3_WRAP1_CORE_CLK 87 985def4c47SEmmanuel Vadot #define GCC_QUPV3_WRAP1_S0_CLK 88 995def4c47SEmmanuel Vadot #define GCC_QUPV3_WRAP1_S0_CLK_SRC 89 1005def4c47SEmmanuel Vadot #define GCC_QUPV3_WRAP1_S1_CLK 90 1015def4c47SEmmanuel Vadot #define GCC_QUPV3_WRAP1_S1_CLK_SRC 91 1025def4c47SEmmanuel Vadot #define GCC_QUPV3_WRAP1_S2_CLK 92 1035def4c47SEmmanuel Vadot #define GCC_QUPV3_WRAP1_S2_CLK_SRC 93 1045def4c47SEmmanuel Vadot #define GCC_QUPV3_WRAP1_S3_CLK 94 1055def4c47SEmmanuel Vadot #define GCC_QUPV3_WRAP1_S3_CLK_SRC 95 1065def4c47SEmmanuel Vadot #define GCC_QUPV3_WRAP1_S4_CLK 96 1075def4c47SEmmanuel Vadot #define GCC_QUPV3_WRAP1_S4_CLK_SRC 97 1085def4c47SEmmanuel Vadot #define GCC_QUPV3_WRAP1_S5_CLK 98 1095def4c47SEmmanuel Vadot #define GCC_QUPV3_WRAP1_S5_CLK_SRC 99 1105def4c47SEmmanuel Vadot #define GCC_QUPV3_WRAP1_S6_CLK 100 1115def4c47SEmmanuel Vadot #define GCC_QUPV3_WRAP1_S6_CLK_SRC 101 1125def4c47SEmmanuel Vadot #define GCC_QUPV3_WRAP1_S7_CLK 102 1135def4c47SEmmanuel Vadot #define GCC_QUPV3_WRAP1_S7_CLK_SRC 103 1145def4c47SEmmanuel Vadot #define GCC_QUPV3_WRAP_0_M_AHB_CLK 104 1155def4c47SEmmanuel Vadot #define GCC_QUPV3_WRAP_0_S_AHB_CLK 105 1165def4c47SEmmanuel Vadot #define GCC_QUPV3_WRAP_1_M_AHB_CLK 106 1175def4c47SEmmanuel Vadot #define GCC_QUPV3_WRAP_1_S_AHB_CLK 107 1185def4c47SEmmanuel Vadot #define GCC_SDCC1_AHB_CLK 108 1195def4c47SEmmanuel Vadot #define GCC_SDCC1_APPS_CLK 109 1205def4c47SEmmanuel Vadot #define GCC_SDCC1_APPS_CLK_SRC 110 1215def4c47SEmmanuel Vadot #define GCC_SDCC1_ICE_CORE_CLK 111 1225def4c47SEmmanuel Vadot #define GCC_SDCC1_ICE_CORE_CLK_SRC 112 1235def4c47SEmmanuel Vadot #define GCC_SDCC2_AHB_CLK 113 1245def4c47SEmmanuel Vadot #define GCC_SDCC2_APPS_CLK 114 1255def4c47SEmmanuel Vadot #define GCC_SDCC2_APPS_CLK_SRC 115 1265def4c47SEmmanuel Vadot #define GCC_SDCC4_AHB_CLK 116 1275def4c47SEmmanuel Vadot #define GCC_SDCC4_APPS_CLK 117 1285def4c47SEmmanuel Vadot #define GCC_SDCC4_APPS_CLK_SRC 118 1295def4c47SEmmanuel Vadot #define GCC_SYS_NOC_CPUSS_AHB_CLK 119 1305def4c47SEmmanuel Vadot #define GCC_THROTTLE_PCIE_AHB_CLK 120 1315def4c47SEmmanuel Vadot #define GCC_TITAN_NRT_THROTTLE_CORE_CLK 121 1325def4c47SEmmanuel Vadot #define GCC_TITAN_RT_THROTTLE_CORE_CLK 122 1335def4c47SEmmanuel Vadot #define GCC_UFS_1_CLKREF_EN 123 1345def4c47SEmmanuel Vadot #define GCC_UFS_PHY_AHB_CLK 124 1355def4c47SEmmanuel Vadot #define GCC_UFS_PHY_AXI_CLK 125 1365def4c47SEmmanuel Vadot #define GCC_UFS_PHY_AXI_CLK_SRC 126 1375def4c47SEmmanuel Vadot #define GCC_UFS_PHY_ICE_CORE_CLK 127 1385def4c47SEmmanuel Vadot #define GCC_UFS_PHY_ICE_CORE_CLK_SRC 128 1395def4c47SEmmanuel Vadot #define GCC_UFS_PHY_PHY_AUX_CLK 129 1405def4c47SEmmanuel Vadot #define GCC_UFS_PHY_PHY_AUX_CLK_SRC 130 1415def4c47SEmmanuel Vadot #define GCC_UFS_PHY_RX_SYMBOL_0_CLK 131 1425def4c47SEmmanuel Vadot #define GCC_UFS_PHY_RX_SYMBOL_0_CLK_SRC 132 1435def4c47SEmmanuel Vadot #define GCC_UFS_PHY_RX_SYMBOL_1_CLK 133 1445def4c47SEmmanuel Vadot #define GCC_UFS_PHY_RX_SYMBOL_1_CLK_SRC 134 1455def4c47SEmmanuel Vadot #define GCC_UFS_PHY_TX_SYMBOL_0_CLK 135 1465def4c47SEmmanuel Vadot #define GCC_UFS_PHY_TX_SYMBOL_0_CLK_SRC 136 1475def4c47SEmmanuel Vadot #define GCC_UFS_PHY_UNIPRO_CORE_CLK 137 1485def4c47SEmmanuel Vadot #define GCC_UFS_PHY_UNIPRO_CORE_CLK_SRC 138 1495def4c47SEmmanuel Vadot #define GCC_USB30_PRIM_MASTER_CLK 139 1505def4c47SEmmanuel Vadot #define GCC_USB30_PRIM_MASTER_CLK_SRC 140 1515def4c47SEmmanuel Vadot #define GCC_USB30_PRIM_MOCK_UTMI_CLK 141 1525def4c47SEmmanuel Vadot #define GCC_USB30_PRIM_MOCK_UTMI_CLK_SRC 142 1535def4c47SEmmanuel Vadot #define GCC_USB30_PRIM_MOCK_UTMI_POSTDIV_CLK_SRC 143 1545def4c47SEmmanuel Vadot #define GCC_USB30_PRIM_SLEEP_CLK 144 1555def4c47SEmmanuel Vadot #define GCC_USB30_SEC_MASTER_CLK 145 1565def4c47SEmmanuel Vadot #define GCC_USB30_SEC_MASTER_CLK_SRC 146 1575def4c47SEmmanuel Vadot #define GCC_USB30_SEC_MOCK_UTMI_CLK 147 1585def4c47SEmmanuel Vadot #define GCC_USB30_SEC_MOCK_UTMI_CLK_SRC 148 1595def4c47SEmmanuel Vadot #define GCC_USB30_SEC_MOCK_UTMI_POSTDIV_CLK_SRC 149 1605def4c47SEmmanuel Vadot #define GCC_USB30_SEC_SLEEP_CLK 150 1615def4c47SEmmanuel Vadot #define GCC_USB3_PRIM_PHY_AUX_CLK 151 1625def4c47SEmmanuel Vadot #define GCC_USB3_PRIM_PHY_AUX_CLK_SRC 152 1635def4c47SEmmanuel Vadot #define GCC_USB3_PRIM_PHY_COM_AUX_CLK 153 1645def4c47SEmmanuel Vadot #define GCC_USB3_PRIM_PHY_PIPE_CLK 154 1655def4c47SEmmanuel Vadot #define GCC_USB3_PRIM_PHY_PIPE_CLK_SRC 155 1665def4c47SEmmanuel Vadot #define GCC_USB3_SEC_PHY_AUX_CLK 156 1675def4c47SEmmanuel Vadot #define GCC_USB3_SEC_PHY_AUX_CLK_SRC 157 1685def4c47SEmmanuel Vadot #define GCC_USB3_SEC_PHY_COM_AUX_CLK 158 1695def4c47SEmmanuel Vadot #define GCC_USB3_SEC_PHY_PIPE_CLK 159 1705def4c47SEmmanuel Vadot #define GCC_USB3_SEC_PHY_PIPE_CLK_SRC 160 1715def4c47SEmmanuel Vadot #define GCC_VIDEO_AHB_CLK 161 1725def4c47SEmmanuel Vadot #define GCC_VIDEO_AXI0_CLK 162 1735def4c47SEmmanuel Vadot #define GCC_VIDEO_MVP_THROTTLE_CORE_CLK 163 1745def4c47SEmmanuel Vadot #define GCC_VIDEO_XO_CLK 164 1755def4c47SEmmanuel Vadot #define GCC_GPLL0_MAIN_DIV_CDIV 165 1765def4c47SEmmanuel Vadot #define GCC_QSPI_CNOC_PERIPH_AHB_CLK 166 1775def4c47SEmmanuel Vadot #define GCC_QSPI_CORE_CLK 167 1785def4c47SEmmanuel Vadot #define GCC_QSPI_CORE_CLK_SRC 168 1795def4c47SEmmanuel Vadot #define GCC_CFG_NOC_LPASS_CLK 169 1805def4c47SEmmanuel Vadot #define GCC_MSS_GPLL0_MAIN_DIV_CLK_SRC 170 1815def4c47SEmmanuel Vadot #define GCC_MSS_CFG_AHB_CLK 171 1825def4c47SEmmanuel Vadot #define GCC_MSS_OFFLINE_AXI_CLK 172 1835def4c47SEmmanuel Vadot #define GCC_MSS_SNOC_AXI_CLK 173 1845def4c47SEmmanuel Vadot #define GCC_MSS_Q6_MEMNOC_AXI_CLK 174 1855def4c47SEmmanuel Vadot #define GCC_MSS_Q6SS_BOOT_CLK_SRC 175 1865def4c47SEmmanuel Vadot #define GCC_AGGRE_USB3_SEC_AXI_CLK 176 1875def4c47SEmmanuel Vadot #define GCC_AGGRE_NOC_PCIE_TBU_CLK 177 1885def4c47SEmmanuel Vadot #define GCC_AGGRE_NOC_PCIE_CENTER_SF_AXI_CLK 178 1895def4c47SEmmanuel Vadot #define GCC_PCIE_CLKREF_EN 179 1905def4c47SEmmanuel Vadot #define GCC_WPSS_AHB_CLK 180 1915def4c47SEmmanuel Vadot #define GCC_WPSS_AHB_BDG_MST_CLK 181 1925def4c47SEmmanuel Vadot #define GCC_WPSS_RSCP_CLK 182 1935def4c47SEmmanuel Vadot #define GCC_EDP_CLKREF_EN 183 1945def4c47SEmmanuel Vadot #define GCC_SEC_CTRL_CLK_SRC 184 1955def4c47SEmmanuel Vadot 1965def4c47SEmmanuel Vadot /* GCC power domains */ 1975def4c47SEmmanuel Vadot #define GCC_PCIE_0_GDSC 0 1985def4c47SEmmanuel Vadot #define GCC_PCIE_1_GDSC 1 1995def4c47SEmmanuel Vadot #define GCC_UFS_PHY_GDSC 2 2005def4c47SEmmanuel Vadot #define GCC_USB30_PRIM_GDSC 3 2015def4c47SEmmanuel Vadot #define GCC_USB30_SEC_GDSC 4 2025def4c47SEmmanuel Vadot #define HLOS1_VOTE_MMNOC_MMU_TBU_HF0_GDSC 5 2035def4c47SEmmanuel Vadot #define HLOS1_VOTE_MMNOC_MMU_TBU_HF1_GDSC 6 2045def4c47SEmmanuel Vadot #define HLOS1_VOTE_MMNOC_MMU_TBU_SF0_GDSC 7 2055def4c47SEmmanuel Vadot #define HLOS1_VOTE_TURING_MMU_TBU0_GDSC 8 2065def4c47SEmmanuel Vadot #define HLOS1_VOTE_TURING_MMU_TBU1_GDSC 9 2075def4c47SEmmanuel Vadot 2085def4c47SEmmanuel Vadot /* GCC resets */ 2095def4c47SEmmanuel Vadot #define GCC_PCIE_0_BCR 0 2105def4c47SEmmanuel Vadot #define GCC_PCIE_0_PHY_BCR 1 2115def4c47SEmmanuel Vadot #define GCC_PCIE_1_BCR 2 2125def4c47SEmmanuel Vadot #define GCC_PCIE_1_PHY_BCR 3 2135def4c47SEmmanuel Vadot #define GCC_QUSB2PHY_PRIM_BCR 4 2145def4c47SEmmanuel Vadot #define GCC_QUSB2PHY_SEC_BCR 5 2155def4c47SEmmanuel Vadot #define GCC_SDCC1_BCR 6 2165def4c47SEmmanuel Vadot #define GCC_SDCC2_BCR 7 2175def4c47SEmmanuel Vadot #define GCC_SDCC4_BCR 8 2185def4c47SEmmanuel Vadot #define GCC_UFS_PHY_BCR 9 2195def4c47SEmmanuel Vadot #define GCC_USB30_PRIM_BCR 10 2205def4c47SEmmanuel Vadot #define GCC_USB30_SEC_BCR 11 2215def4c47SEmmanuel Vadot #define GCC_USB3_DP_PHY_PRIM_BCR 12 2225def4c47SEmmanuel Vadot #define GCC_USB3_PHY_PRIM_BCR 13 2235def4c47SEmmanuel Vadot #define GCC_USB3PHY_PHY_PRIM_BCR 14 2245def4c47SEmmanuel Vadot #define GCC_USB_PHY_CFG_AHB2PHY_BCR 15 2255def4c47SEmmanuel Vadot 2265def4c47SEmmanuel Vadot #endif 227