18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Copyright (c) 2019-2020, The Linux Foundation. All rights reserved. 48c2ecf20Sopenharmony_ci */ 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ci#ifndef _DT_BINDINGS_CLK_QCOM_GCC_SC7180_H 78c2ecf20Sopenharmony_ci#define _DT_BINDINGS_CLK_QCOM_GCC_SC7180_H 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci/* GCC clocks */ 108c2ecf20Sopenharmony_ci#define GCC_GPLL0_MAIN_DIV_CDIV 0 118c2ecf20Sopenharmony_ci#define GPLL0 1 128c2ecf20Sopenharmony_ci#define GPLL0_OUT_EVEN 2 138c2ecf20Sopenharmony_ci#define GPLL1 3 148c2ecf20Sopenharmony_ci#define GPLL4 4 158c2ecf20Sopenharmony_ci#define GPLL6 5 168c2ecf20Sopenharmony_ci#define GPLL7 6 178c2ecf20Sopenharmony_ci#define GCC_AGGRE_UFS_PHY_AXI_CLK 7 188c2ecf20Sopenharmony_ci#define GCC_AGGRE_USB3_PRIM_AXI_CLK 8 198c2ecf20Sopenharmony_ci#define GCC_BOOT_ROM_AHB_CLK 9 208c2ecf20Sopenharmony_ci#define GCC_CAMERA_AHB_CLK 10 218c2ecf20Sopenharmony_ci#define GCC_CAMERA_HF_AXI_CLK 11 228c2ecf20Sopenharmony_ci#define GCC_CAMERA_THROTTLE_HF_AXI_CLK 12 238c2ecf20Sopenharmony_ci#define GCC_CAMERA_XO_CLK 13 248c2ecf20Sopenharmony_ci#define GCC_CE1_AHB_CLK 14 258c2ecf20Sopenharmony_ci#define GCC_CE1_AXI_CLK 15 268c2ecf20Sopenharmony_ci#define GCC_CE1_CLK 16 278c2ecf20Sopenharmony_ci#define GCC_CFG_NOC_USB3_PRIM_AXI_CLK 17 288c2ecf20Sopenharmony_ci#define GCC_CPUSS_AHB_CLK 18 298c2ecf20Sopenharmony_ci#define GCC_CPUSS_AHB_CLK_SRC 19 308c2ecf20Sopenharmony_ci#define GCC_CPUSS_GNOC_CLK 20 318c2ecf20Sopenharmony_ci#define GCC_CPUSS_RBCPR_CLK 21 328c2ecf20Sopenharmony_ci#define GCC_DDRSS_GPU_AXI_CLK 22 338c2ecf20Sopenharmony_ci#define GCC_DISP_AHB_CLK 23 348c2ecf20Sopenharmony_ci#define GCC_DISP_GPLL0_CLK_SRC 24 358c2ecf20Sopenharmony_ci#define GCC_DISP_GPLL0_DIV_CLK_SRC 25 368c2ecf20Sopenharmony_ci#define GCC_DISP_HF_AXI_CLK 26 378c2ecf20Sopenharmony_ci#define GCC_DISP_THROTTLE_HF_AXI_CLK 27 388c2ecf20Sopenharmony_ci#define GCC_DISP_XO_CLK 28 398c2ecf20Sopenharmony_ci#define GCC_GP1_CLK 29 408c2ecf20Sopenharmony_ci#define GCC_GP1_CLK_SRC 30 418c2ecf20Sopenharmony_ci#define GCC_GP2_CLK 31 428c2ecf20Sopenharmony_ci#define GCC_GP2_CLK_SRC 32 438c2ecf20Sopenharmony_ci#define GCC_GP3_CLK 33 448c2ecf20Sopenharmony_ci#define GCC_GP3_CLK_SRC 34 458c2ecf20Sopenharmony_ci#define GCC_GPU_CFG_AHB_CLK 35 468c2ecf20Sopenharmony_ci#define GCC_GPU_GPLL0_CLK_SRC 36 478c2ecf20Sopenharmony_ci#define GCC_GPU_GPLL0_DIV_CLK_SRC 37 488c2ecf20Sopenharmony_ci#define GCC_GPU_MEMNOC_GFX_CLK 38 498c2ecf20Sopenharmony_ci#define GCC_GPU_SNOC_DVM_GFX_CLK 39 508c2ecf20Sopenharmony_ci#define GCC_NPU_AXI_CLK 40 518c2ecf20Sopenharmony_ci#define GCC_NPU_BWMON_AXI_CLK 41 528c2ecf20Sopenharmony_ci#define GCC_NPU_BWMON_DMA_CFG_AHB_CLK 42 538c2ecf20Sopenharmony_ci#define GCC_NPU_BWMON_DSP_CFG_AHB_CLK 43 548c2ecf20Sopenharmony_ci#define GCC_NPU_CFG_AHB_CLK 44 558c2ecf20Sopenharmony_ci#define GCC_NPU_DMA_CLK 45 568c2ecf20Sopenharmony_ci#define GCC_NPU_GPLL0_CLK_SRC 46 578c2ecf20Sopenharmony_ci#define GCC_NPU_GPLL0_DIV_CLK_SRC 47 588c2ecf20Sopenharmony_ci#define GCC_PDM2_CLK 48 598c2ecf20Sopenharmony_ci#define GCC_PDM2_CLK_SRC 49 608c2ecf20Sopenharmony_ci#define GCC_PDM_AHB_CLK 50 618c2ecf20Sopenharmony_ci#define GCC_PDM_XO4_CLK 51 628c2ecf20Sopenharmony_ci#define GCC_PRNG_AHB_CLK 52 638c2ecf20Sopenharmony_ci#define GCC_QSPI_CNOC_PERIPH_AHB_CLK 53 648c2ecf20Sopenharmony_ci#define GCC_QSPI_CORE_CLK 54 658c2ecf20Sopenharmony_ci#define GCC_QSPI_CORE_CLK_SRC 55 668c2ecf20Sopenharmony_ci#define GCC_QUPV3_WRAP0_CORE_2X_CLK 56 678c2ecf20Sopenharmony_ci#define GCC_QUPV3_WRAP0_CORE_CLK 57 688c2ecf20Sopenharmony_ci#define GCC_QUPV3_WRAP0_S0_CLK 58 698c2ecf20Sopenharmony_ci#define GCC_QUPV3_WRAP0_S0_CLK_SRC 59 708c2ecf20Sopenharmony_ci#define GCC_QUPV3_WRAP0_S1_CLK 60 718c2ecf20Sopenharmony_ci#define GCC_QUPV3_WRAP0_S1_CLK_SRC 61 728c2ecf20Sopenharmony_ci#define GCC_QUPV3_WRAP0_S2_CLK 62 738c2ecf20Sopenharmony_ci#define GCC_QUPV3_WRAP0_S2_CLK_SRC 63 748c2ecf20Sopenharmony_ci#define GCC_QUPV3_WRAP0_S3_CLK 64 758c2ecf20Sopenharmony_ci#define GCC_QUPV3_WRAP0_S3_CLK_SRC 65 768c2ecf20Sopenharmony_ci#define GCC_QUPV3_WRAP0_S4_CLK 66 778c2ecf20Sopenharmony_ci#define GCC_QUPV3_WRAP0_S4_CLK_SRC 67 788c2ecf20Sopenharmony_ci#define GCC_QUPV3_WRAP0_S5_CLK 68 798c2ecf20Sopenharmony_ci#define GCC_QUPV3_WRAP0_S5_CLK_SRC 69 808c2ecf20Sopenharmony_ci#define GCC_QUPV3_WRAP1_CORE_2X_CLK 70 818c2ecf20Sopenharmony_ci#define GCC_QUPV3_WRAP1_CORE_CLK 71 828c2ecf20Sopenharmony_ci#define GCC_QUPV3_WRAP1_S0_CLK 72 838c2ecf20Sopenharmony_ci#define GCC_QUPV3_WRAP1_S0_CLK_SRC 73 848c2ecf20Sopenharmony_ci#define GCC_QUPV3_WRAP1_S1_CLK 74 858c2ecf20Sopenharmony_ci#define GCC_QUPV3_WRAP1_S1_CLK_SRC 75 868c2ecf20Sopenharmony_ci#define GCC_QUPV3_WRAP1_S2_CLK 76 878c2ecf20Sopenharmony_ci#define GCC_QUPV3_WRAP1_S2_CLK_SRC 77 888c2ecf20Sopenharmony_ci#define GCC_QUPV3_WRAP1_S3_CLK 78 898c2ecf20Sopenharmony_ci#define GCC_QUPV3_WRAP1_S3_CLK_SRC 79 908c2ecf20Sopenharmony_ci#define GCC_QUPV3_WRAP1_S4_CLK 80 918c2ecf20Sopenharmony_ci#define GCC_QUPV3_WRAP1_S4_CLK_SRC 81 928c2ecf20Sopenharmony_ci#define GCC_QUPV3_WRAP1_S5_CLK 82 938c2ecf20Sopenharmony_ci#define GCC_QUPV3_WRAP1_S5_CLK_SRC 83 948c2ecf20Sopenharmony_ci#define GCC_QUPV3_WRAP_0_M_AHB_CLK 84 958c2ecf20Sopenharmony_ci#define GCC_QUPV3_WRAP_0_S_AHB_CLK 85 968c2ecf20Sopenharmony_ci#define GCC_QUPV3_WRAP_1_M_AHB_CLK 86 978c2ecf20Sopenharmony_ci#define GCC_QUPV3_WRAP_1_S_AHB_CLK 87 988c2ecf20Sopenharmony_ci#define GCC_SDCC1_AHB_CLK 88 998c2ecf20Sopenharmony_ci#define GCC_SDCC1_APPS_CLK 89 1008c2ecf20Sopenharmony_ci#define GCC_SDCC1_APPS_CLK_SRC 90 1018c2ecf20Sopenharmony_ci#define GCC_SDCC1_ICE_CORE_CLK 91 1028c2ecf20Sopenharmony_ci#define GCC_SDCC1_ICE_CORE_CLK_SRC 92 1038c2ecf20Sopenharmony_ci#define GCC_SDCC2_AHB_CLK 93 1048c2ecf20Sopenharmony_ci#define GCC_SDCC2_APPS_CLK 94 1058c2ecf20Sopenharmony_ci#define GCC_SDCC2_APPS_CLK_SRC 95 1068c2ecf20Sopenharmony_ci#define GCC_SYS_NOC_CPUSS_AHB_CLK 96 1078c2ecf20Sopenharmony_ci#define GCC_UFS_MEM_CLKREF_CLK 97 1088c2ecf20Sopenharmony_ci#define GCC_UFS_PHY_AHB_CLK 98 1098c2ecf20Sopenharmony_ci#define GCC_UFS_PHY_AXI_CLK 99 1108c2ecf20Sopenharmony_ci#define GCC_UFS_PHY_AXI_CLK_SRC 100 1118c2ecf20Sopenharmony_ci#define GCC_UFS_PHY_ICE_CORE_CLK 101 1128c2ecf20Sopenharmony_ci#define GCC_UFS_PHY_ICE_CORE_CLK_SRC 102 1138c2ecf20Sopenharmony_ci#define GCC_UFS_PHY_PHY_AUX_CLK 103 1148c2ecf20Sopenharmony_ci#define GCC_UFS_PHY_PHY_AUX_CLK_SRC 104 1158c2ecf20Sopenharmony_ci#define GCC_UFS_PHY_RX_SYMBOL_0_CLK 105 1168c2ecf20Sopenharmony_ci#define GCC_UFS_PHY_TX_SYMBOL_0_CLK 106 1178c2ecf20Sopenharmony_ci#define GCC_UFS_PHY_UNIPRO_CORE_CLK 107 1188c2ecf20Sopenharmony_ci#define GCC_UFS_PHY_UNIPRO_CORE_CLK_SRC 108 1198c2ecf20Sopenharmony_ci#define GCC_USB30_PRIM_MASTER_CLK 109 1208c2ecf20Sopenharmony_ci#define GCC_USB30_PRIM_MASTER_CLK_SRC 110 1218c2ecf20Sopenharmony_ci#define GCC_USB30_PRIM_MOCK_UTMI_CLK 111 1228c2ecf20Sopenharmony_ci#define GCC_USB30_PRIM_MOCK_UTMI_CLK_SRC 112 1238c2ecf20Sopenharmony_ci#define GCC_USB30_PRIM_SLEEP_CLK 113 1248c2ecf20Sopenharmony_ci#define GCC_USB3_PRIM_CLKREF_CLK 114 1258c2ecf20Sopenharmony_ci#define GCC_USB3_PRIM_PHY_AUX_CLK 115 1268c2ecf20Sopenharmony_ci#define GCC_USB3_PRIM_PHY_AUX_CLK_SRC 116 1278c2ecf20Sopenharmony_ci#define GCC_USB3_PRIM_PHY_COM_AUX_CLK 117 1288c2ecf20Sopenharmony_ci#define GCC_USB3_PRIM_PHY_PIPE_CLK 118 1298c2ecf20Sopenharmony_ci#define GCC_USB_PHY_CFG_AHB2PHY_CLK 119 1308c2ecf20Sopenharmony_ci#define GCC_VIDEO_AHB_CLK 120 1318c2ecf20Sopenharmony_ci#define GCC_VIDEO_AXI_CLK 121 1328c2ecf20Sopenharmony_ci#define GCC_VIDEO_GPLL0_DIV_CLK_SRC 122 1338c2ecf20Sopenharmony_ci#define GCC_VIDEO_THROTTLE_AXI_CLK 123 1348c2ecf20Sopenharmony_ci#define GCC_VIDEO_XO_CLK 124 1358c2ecf20Sopenharmony_ci#define GCC_MSS_CFG_AHB_CLK 125 1368c2ecf20Sopenharmony_ci#define GCC_MSS_MFAB_AXIS_CLK 126 1378c2ecf20Sopenharmony_ci#define GCC_MSS_NAV_AXI_CLK 127 1388c2ecf20Sopenharmony_ci#define GCC_MSS_Q6_MEMNOC_AXI_CLK 128 1398c2ecf20Sopenharmony_ci#define GCC_MSS_SNOC_AXI_CLK 129 1408c2ecf20Sopenharmony_ci#define GCC_SEC_CTRL_CLK_SRC 130 1418c2ecf20Sopenharmony_ci#define GCC_LPASS_CFG_NOC_SWAY_CLK 131 1428c2ecf20Sopenharmony_ci 1438c2ecf20Sopenharmony_ci/* GCC resets */ 1448c2ecf20Sopenharmony_ci#define GCC_QUSB2PHY_PRIM_BCR 0 1458c2ecf20Sopenharmony_ci#define GCC_QUSB2PHY_SEC_BCR 1 1468c2ecf20Sopenharmony_ci#define GCC_UFS_PHY_BCR 2 1478c2ecf20Sopenharmony_ci#define GCC_USB30_PRIM_BCR 3 1488c2ecf20Sopenharmony_ci#define GCC_USB3_DP_PHY_PRIM_BCR 4 1498c2ecf20Sopenharmony_ci#define GCC_USB3_DP_PHY_SEC_BCR 5 1508c2ecf20Sopenharmony_ci#define GCC_USB3_PHY_PRIM_BCR 6 1518c2ecf20Sopenharmony_ci#define GCC_USB3_PHY_SEC_BCR 7 1528c2ecf20Sopenharmony_ci#define GCC_USB3PHY_PHY_PRIM_BCR 8 1538c2ecf20Sopenharmony_ci#define GCC_USB3PHY_PHY_SEC_BCR 9 1548c2ecf20Sopenharmony_ci#define GCC_USB_PHY_CFG_AHB2PHY_BCR 10 1558c2ecf20Sopenharmony_ci 1568c2ecf20Sopenharmony_ci/* GCC GDSCRs */ 1578c2ecf20Sopenharmony_ci#define UFS_PHY_GDSC 0 1588c2ecf20Sopenharmony_ci#define USB30_PRIM_GDSC 1 1598c2ecf20Sopenharmony_ci#define HLOS1_VOTE_MMNOC_MMU_TBU_HF0_GDSC 2 1608c2ecf20Sopenharmony_ci#define HLOS1_VOTE_MMNOC_MMU_TBU_SF_GDSC 3 1618c2ecf20Sopenharmony_ci 1628c2ecf20Sopenharmony_ci#endif 163