162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * Copyright (c) 2020, The Linux Foundation. All rights reserved. 462306a36Sopenharmony_ci */ 562306a36Sopenharmony_ci 662306a36Sopenharmony_ci#ifndef _DT_BINDINGS_CLK_QCOM_CAM_CC_SC7180_H 762306a36Sopenharmony_ci#define _DT_BINDINGS_CLK_QCOM_CAM_CC_SC7180_H 862306a36Sopenharmony_ci 962306a36Sopenharmony_ci/* CAM_CC clocks */ 1062306a36Sopenharmony_ci#define CAM_CC_PLL2_OUT_EARLY 0 1162306a36Sopenharmony_ci#define CAM_CC_PLL0 1 1262306a36Sopenharmony_ci#define CAM_CC_PLL1 2 1362306a36Sopenharmony_ci#define CAM_CC_PLL2 3 1462306a36Sopenharmony_ci#define CAM_CC_PLL2_OUT_AUX 4 1562306a36Sopenharmony_ci#define CAM_CC_PLL3 5 1662306a36Sopenharmony_ci#define CAM_CC_CAMNOC_AXI_CLK 6 1762306a36Sopenharmony_ci#define CAM_CC_CCI_0_CLK 7 1862306a36Sopenharmony_ci#define CAM_CC_CCI_0_CLK_SRC 8 1962306a36Sopenharmony_ci#define CAM_CC_CCI_1_CLK 9 2062306a36Sopenharmony_ci#define CAM_CC_CCI_1_CLK_SRC 10 2162306a36Sopenharmony_ci#define CAM_CC_CORE_AHB_CLK 11 2262306a36Sopenharmony_ci#define CAM_CC_CPAS_AHB_CLK 12 2362306a36Sopenharmony_ci#define CAM_CC_CPHY_RX_CLK_SRC 13 2462306a36Sopenharmony_ci#define CAM_CC_CSI0PHYTIMER_CLK 14 2562306a36Sopenharmony_ci#define CAM_CC_CSI0PHYTIMER_CLK_SRC 15 2662306a36Sopenharmony_ci#define CAM_CC_CSI1PHYTIMER_CLK 16 2762306a36Sopenharmony_ci#define CAM_CC_CSI1PHYTIMER_CLK_SRC 17 2862306a36Sopenharmony_ci#define CAM_CC_CSI2PHYTIMER_CLK 18 2962306a36Sopenharmony_ci#define CAM_CC_CSI2PHYTIMER_CLK_SRC 19 3062306a36Sopenharmony_ci#define CAM_CC_CSI3PHYTIMER_CLK 20 3162306a36Sopenharmony_ci#define CAM_CC_CSI3PHYTIMER_CLK_SRC 21 3262306a36Sopenharmony_ci#define CAM_CC_CSIPHY0_CLK 22 3362306a36Sopenharmony_ci#define CAM_CC_CSIPHY1_CLK 23 3462306a36Sopenharmony_ci#define CAM_CC_CSIPHY2_CLK 24 3562306a36Sopenharmony_ci#define CAM_CC_CSIPHY3_CLK 25 3662306a36Sopenharmony_ci#define CAM_CC_FAST_AHB_CLK_SRC 26 3762306a36Sopenharmony_ci#define CAM_CC_ICP_APB_CLK 27 3862306a36Sopenharmony_ci#define CAM_CC_ICP_ATB_CLK 28 3962306a36Sopenharmony_ci#define CAM_CC_ICP_CLK 29 4062306a36Sopenharmony_ci#define CAM_CC_ICP_CLK_SRC 30 4162306a36Sopenharmony_ci#define CAM_CC_ICP_CTI_CLK 31 4262306a36Sopenharmony_ci#define CAM_CC_ICP_TS_CLK 32 4362306a36Sopenharmony_ci#define CAM_CC_IFE_0_AXI_CLK 33 4462306a36Sopenharmony_ci#define CAM_CC_IFE_0_CLK 34 4562306a36Sopenharmony_ci#define CAM_CC_IFE_0_CLK_SRC 35 4662306a36Sopenharmony_ci#define CAM_CC_IFE_0_CPHY_RX_CLK 36 4762306a36Sopenharmony_ci#define CAM_CC_IFE_0_CSID_CLK 37 4862306a36Sopenharmony_ci#define CAM_CC_IFE_0_CSID_CLK_SRC 38 4962306a36Sopenharmony_ci#define CAM_CC_IFE_0_DSP_CLK 39 5062306a36Sopenharmony_ci#define CAM_CC_IFE_1_AXI_CLK 40 5162306a36Sopenharmony_ci#define CAM_CC_IFE_1_CLK 41 5262306a36Sopenharmony_ci#define CAM_CC_IFE_1_CLK_SRC 42 5362306a36Sopenharmony_ci#define CAM_CC_IFE_1_CPHY_RX_CLK 43 5462306a36Sopenharmony_ci#define CAM_CC_IFE_1_CSID_CLK 44 5562306a36Sopenharmony_ci#define CAM_CC_IFE_1_CSID_CLK_SRC 45 5662306a36Sopenharmony_ci#define CAM_CC_IFE_1_DSP_CLK 46 5762306a36Sopenharmony_ci#define CAM_CC_IFE_LITE_CLK 47 5862306a36Sopenharmony_ci#define CAM_CC_IFE_LITE_CLK_SRC 48 5962306a36Sopenharmony_ci#define CAM_CC_IFE_LITE_CPHY_RX_CLK 49 6062306a36Sopenharmony_ci#define CAM_CC_IFE_LITE_CSID_CLK 50 6162306a36Sopenharmony_ci#define CAM_CC_IFE_LITE_CSID_CLK_SRC 51 6262306a36Sopenharmony_ci#define CAM_CC_IPE_0_AHB_CLK 52 6362306a36Sopenharmony_ci#define CAM_CC_IPE_0_AREG_CLK 53 6462306a36Sopenharmony_ci#define CAM_CC_IPE_0_AXI_CLK 54 6562306a36Sopenharmony_ci#define CAM_CC_IPE_0_CLK 55 6662306a36Sopenharmony_ci#define CAM_CC_IPE_0_CLK_SRC 56 6762306a36Sopenharmony_ci#define CAM_CC_JPEG_CLK 57 6862306a36Sopenharmony_ci#define CAM_CC_JPEG_CLK_SRC 58 6962306a36Sopenharmony_ci#define CAM_CC_LRME_CLK 59 7062306a36Sopenharmony_ci#define CAM_CC_LRME_CLK_SRC 60 7162306a36Sopenharmony_ci#define CAM_CC_MCLK0_CLK 61 7262306a36Sopenharmony_ci#define CAM_CC_MCLK0_CLK_SRC 62 7362306a36Sopenharmony_ci#define CAM_CC_MCLK1_CLK 63 7462306a36Sopenharmony_ci#define CAM_CC_MCLK1_CLK_SRC 64 7562306a36Sopenharmony_ci#define CAM_CC_MCLK2_CLK 65 7662306a36Sopenharmony_ci#define CAM_CC_MCLK2_CLK_SRC 66 7762306a36Sopenharmony_ci#define CAM_CC_MCLK3_CLK 67 7862306a36Sopenharmony_ci#define CAM_CC_MCLK3_CLK_SRC 68 7962306a36Sopenharmony_ci#define CAM_CC_MCLK4_CLK 69 8062306a36Sopenharmony_ci#define CAM_CC_MCLK4_CLK_SRC 70 8162306a36Sopenharmony_ci#define CAM_CC_BPS_AHB_CLK 71 8262306a36Sopenharmony_ci#define CAM_CC_BPS_AREG_CLK 72 8362306a36Sopenharmony_ci#define CAM_CC_BPS_AXI_CLK 73 8462306a36Sopenharmony_ci#define CAM_CC_BPS_CLK 74 8562306a36Sopenharmony_ci#define CAM_CC_BPS_CLK_SRC 75 8662306a36Sopenharmony_ci#define CAM_CC_SLOW_AHB_CLK_SRC 76 8762306a36Sopenharmony_ci#define CAM_CC_SOC_AHB_CLK 77 8862306a36Sopenharmony_ci#define CAM_CC_SYS_TMR_CLK 78 8962306a36Sopenharmony_ci 9062306a36Sopenharmony_ci/* CAM_CC power domains */ 9162306a36Sopenharmony_ci#define BPS_GDSC 0 9262306a36Sopenharmony_ci#define IFE_0_GDSC 1 9362306a36Sopenharmony_ci#define IFE_1_GDSC 2 9462306a36Sopenharmony_ci#define IPE_0_GDSC 3 9562306a36Sopenharmony_ci#define TITAN_TOP_GDSC 4 9662306a36Sopenharmony_ci 9762306a36Sopenharmony_ci/* CAM_CC resets */ 9862306a36Sopenharmony_ci#define CAM_CC_BPS_BCR 0 9962306a36Sopenharmony_ci#define CAM_CC_CAMNOC_BCR 1 10062306a36Sopenharmony_ci#define CAM_CC_CCI_0_BCR 2 10162306a36Sopenharmony_ci#define CAM_CC_CCI_1_BCR 3 10262306a36Sopenharmony_ci#define CAM_CC_CPAS_BCR 4 10362306a36Sopenharmony_ci#define CAM_CC_CSI0PHY_BCR 5 10462306a36Sopenharmony_ci#define CAM_CC_CSI1PHY_BCR 6 10562306a36Sopenharmony_ci#define CAM_CC_CSI2PHY_BCR 7 10662306a36Sopenharmony_ci#define CAM_CC_CSI3PHY_BCR 8 10762306a36Sopenharmony_ci#define CAM_CC_ICP_BCR 9 10862306a36Sopenharmony_ci#define CAM_CC_IFE_0_BCR 10 10962306a36Sopenharmony_ci#define CAM_CC_IFE_1_BCR 11 11062306a36Sopenharmony_ci#define CAM_CC_IFE_LITE_BCR 12 11162306a36Sopenharmony_ci#define CAM_CC_IPE_0_BCR 13 11262306a36Sopenharmony_ci#define CAM_CC_JPEG_BCR 14 11362306a36Sopenharmony_ci#define CAM_CC_LRME_BCR 15 11462306a36Sopenharmony_ci#define CAM_CC_MCLK0_BCR 16 11562306a36Sopenharmony_ci#define CAM_CC_MCLK1_BCR 17 11662306a36Sopenharmony_ci#define CAM_CC_MCLK2_BCR 18 11762306a36Sopenharmony_ci#define CAM_CC_MCLK3_BCR 19 11862306a36Sopenharmony_ci#define CAM_CC_MCLK4_BCR 20 11962306a36Sopenharmony_ci#define CAM_CC_TITAN_TOP_BCR 21 12062306a36Sopenharmony_ci 12162306a36Sopenharmony_ci#endif 122