11.1Sjmcneill/* $NetBSD: qcom,camcc-sc7180.h,v 1.1.1.1 2021/11/07 16:49:59 jmcneill Exp $ */ 21.1Sjmcneill 31.1Sjmcneill/* SPDX-License-Identifier: GPL-2.0-only */ 41.1Sjmcneill/* 51.1Sjmcneill * Copyright (c) 2020, The Linux Foundation. All rights reserved. 61.1Sjmcneill */ 71.1Sjmcneill 81.1Sjmcneill#ifndef _DT_BINDINGS_CLK_QCOM_CAM_CC_SC7180_H 91.1Sjmcneill#define _DT_BINDINGS_CLK_QCOM_CAM_CC_SC7180_H 101.1Sjmcneill 111.1Sjmcneill/* CAM_CC clocks */ 121.1Sjmcneill#define CAM_CC_PLL2_OUT_EARLY 0 131.1Sjmcneill#define CAM_CC_PLL0 1 141.1Sjmcneill#define CAM_CC_PLL1 2 151.1Sjmcneill#define CAM_CC_PLL2 3 161.1Sjmcneill#define CAM_CC_PLL2_OUT_AUX 4 171.1Sjmcneill#define CAM_CC_PLL3 5 181.1Sjmcneill#define CAM_CC_CAMNOC_AXI_CLK 6 191.1Sjmcneill#define CAM_CC_CCI_0_CLK 7 201.1Sjmcneill#define CAM_CC_CCI_0_CLK_SRC 8 211.1Sjmcneill#define CAM_CC_CCI_1_CLK 9 221.1Sjmcneill#define CAM_CC_CCI_1_CLK_SRC 10 231.1Sjmcneill#define CAM_CC_CORE_AHB_CLK 11 241.1Sjmcneill#define CAM_CC_CPAS_AHB_CLK 12 251.1Sjmcneill#define CAM_CC_CPHY_RX_CLK_SRC 13 261.1Sjmcneill#define CAM_CC_CSI0PHYTIMER_CLK 14 271.1Sjmcneill#define CAM_CC_CSI0PHYTIMER_CLK_SRC 15 281.1Sjmcneill#define CAM_CC_CSI1PHYTIMER_CLK 16 291.1Sjmcneill#define CAM_CC_CSI1PHYTIMER_CLK_SRC 17 301.1Sjmcneill#define CAM_CC_CSI2PHYTIMER_CLK 18 311.1Sjmcneill#define CAM_CC_CSI2PHYTIMER_CLK_SRC 19 321.1Sjmcneill#define CAM_CC_CSI3PHYTIMER_CLK 20 331.1Sjmcneill#define CAM_CC_CSI3PHYTIMER_CLK_SRC 21 341.1Sjmcneill#define CAM_CC_CSIPHY0_CLK 22 351.1Sjmcneill#define CAM_CC_CSIPHY1_CLK 23 361.1Sjmcneill#define CAM_CC_CSIPHY2_CLK 24 371.1Sjmcneill#define CAM_CC_CSIPHY3_CLK 25 381.1Sjmcneill#define CAM_CC_FAST_AHB_CLK_SRC 26 391.1Sjmcneill#define CAM_CC_ICP_APB_CLK 27 401.1Sjmcneill#define CAM_CC_ICP_ATB_CLK 28 411.1Sjmcneill#define CAM_CC_ICP_CLK 29 421.1Sjmcneill#define CAM_CC_ICP_CLK_SRC 30 431.1Sjmcneill#define CAM_CC_ICP_CTI_CLK 31 441.1Sjmcneill#define CAM_CC_ICP_TS_CLK 32 451.1Sjmcneill#define CAM_CC_IFE_0_AXI_CLK 33 461.1Sjmcneill#define CAM_CC_IFE_0_CLK 34 471.1Sjmcneill#define CAM_CC_IFE_0_CLK_SRC 35 481.1Sjmcneill#define CAM_CC_IFE_0_CPHY_RX_CLK 36 491.1Sjmcneill#define CAM_CC_IFE_0_CSID_CLK 37 501.1Sjmcneill#define CAM_CC_IFE_0_CSID_CLK_SRC 38 511.1Sjmcneill#define CAM_CC_IFE_0_DSP_CLK 39 521.1Sjmcneill#define CAM_CC_IFE_1_AXI_CLK 40 531.1Sjmcneill#define CAM_CC_IFE_1_CLK 41 541.1Sjmcneill#define CAM_CC_IFE_1_CLK_SRC 42 551.1Sjmcneill#define CAM_CC_IFE_1_CPHY_RX_CLK 43 561.1Sjmcneill#define CAM_CC_IFE_1_CSID_CLK 44 571.1Sjmcneill#define CAM_CC_IFE_1_CSID_CLK_SRC 45 581.1Sjmcneill#define CAM_CC_IFE_1_DSP_CLK 46 591.1Sjmcneill#define CAM_CC_IFE_LITE_CLK 47 601.1Sjmcneill#define CAM_CC_IFE_LITE_CLK_SRC 48 611.1Sjmcneill#define CAM_CC_IFE_LITE_CPHY_RX_CLK 49 621.1Sjmcneill#define CAM_CC_IFE_LITE_CSID_CLK 50 631.1Sjmcneill#define CAM_CC_IFE_LITE_CSID_CLK_SRC 51 641.1Sjmcneill#define CAM_CC_IPE_0_AHB_CLK 52 651.1Sjmcneill#define CAM_CC_IPE_0_AREG_CLK 53 661.1Sjmcneill#define CAM_CC_IPE_0_AXI_CLK 54 671.1Sjmcneill#define CAM_CC_IPE_0_CLK 55 681.1Sjmcneill#define CAM_CC_IPE_0_CLK_SRC 56 691.1Sjmcneill#define CAM_CC_JPEG_CLK 57 701.1Sjmcneill#define CAM_CC_JPEG_CLK_SRC 58 711.1Sjmcneill#define CAM_CC_LRME_CLK 59 721.1Sjmcneill#define CAM_CC_LRME_CLK_SRC 60 731.1Sjmcneill#define CAM_CC_MCLK0_CLK 61 741.1Sjmcneill#define CAM_CC_MCLK0_CLK_SRC 62 751.1Sjmcneill#define CAM_CC_MCLK1_CLK 63 761.1Sjmcneill#define CAM_CC_MCLK1_CLK_SRC 64 771.1Sjmcneill#define CAM_CC_MCLK2_CLK 65 781.1Sjmcneill#define CAM_CC_MCLK2_CLK_SRC 66 791.1Sjmcneill#define CAM_CC_MCLK3_CLK 67 801.1Sjmcneill#define CAM_CC_MCLK3_CLK_SRC 68 811.1Sjmcneill#define CAM_CC_MCLK4_CLK 69 821.1Sjmcneill#define CAM_CC_MCLK4_CLK_SRC 70 831.1Sjmcneill#define CAM_CC_BPS_AHB_CLK 71 841.1Sjmcneill#define CAM_CC_BPS_AREG_CLK 72 851.1Sjmcneill#define CAM_CC_BPS_AXI_CLK 73 861.1Sjmcneill#define CAM_CC_BPS_CLK 74 871.1Sjmcneill#define CAM_CC_BPS_CLK_SRC 75 881.1Sjmcneill#define CAM_CC_SLOW_AHB_CLK_SRC 76 891.1Sjmcneill#define CAM_CC_SOC_AHB_CLK 77 901.1Sjmcneill#define CAM_CC_SYS_TMR_CLK 78 911.1Sjmcneill 921.1Sjmcneill/* CAM_CC power domains */ 931.1Sjmcneill#define BPS_GDSC 0 941.1Sjmcneill#define IFE_0_GDSC 1 951.1Sjmcneill#define IFE_1_GDSC 2 961.1Sjmcneill#define IPE_0_GDSC 3 971.1Sjmcneill#define TITAN_TOP_GDSC 4 981.1Sjmcneill 991.1Sjmcneill/* CAM_CC resets */ 1001.1Sjmcneill#define CAM_CC_BPS_BCR 0 1011.1Sjmcneill#define CAM_CC_CAMNOC_BCR 1 1021.1Sjmcneill#define CAM_CC_CCI_0_BCR 2 1031.1Sjmcneill#define CAM_CC_CCI_1_BCR 3 1041.1Sjmcneill#define CAM_CC_CPAS_BCR 4 1051.1Sjmcneill#define CAM_CC_CSI0PHY_BCR 5 1061.1Sjmcneill#define CAM_CC_CSI1PHY_BCR 6 1071.1Sjmcneill#define CAM_CC_CSI2PHY_BCR 7 1081.1Sjmcneill#define CAM_CC_CSI3PHY_BCR 8 1091.1Sjmcneill#define CAM_CC_ICP_BCR 9 1101.1Sjmcneill#define CAM_CC_IFE_0_BCR 10 1111.1Sjmcneill#define CAM_CC_IFE_1_BCR 11 1121.1Sjmcneill#define CAM_CC_IFE_LITE_BCR 12 1131.1Sjmcneill#define CAM_CC_IPE_0_BCR 13 1141.1Sjmcneill#define CAM_CC_JPEG_BCR 14 1151.1Sjmcneill#define CAM_CC_LRME_BCR 15 1161.1Sjmcneill#define CAM_CC_MCLK0_BCR 16 1171.1Sjmcneill#define CAM_CC_MCLK1_BCR 17 1181.1Sjmcneill#define CAM_CC_MCLK2_BCR 18 1191.1Sjmcneill#define CAM_CC_MCLK3_BCR 19 1201.1Sjmcneill#define CAM_CC_MCLK4_BCR 20 1211.1Sjmcneill#define CAM_CC_TITAN_TOP_BCR 21 1221.1Sjmcneill 1231.1Sjmcneill#endif 124