11.1Sjmcneill/* $NetBSD: qcom,camcc-sm8250.h,v 1.1.1.1 2021/11/07 16:49:57 jmcneill Exp $ */ 21.1Sjmcneill 31.1Sjmcneill/* SPDX-License-Identifier: GPL-2.0 */ 41.1Sjmcneill/* 51.1Sjmcneill * Copyright (c) 2018-2021, The Linux Foundation. All rights reserved. 61.1Sjmcneill */ 71.1Sjmcneill 81.1Sjmcneill#ifndef _DT_BINDINGS_CLK_QCOM_CAM_CC_SM8250_H 91.1Sjmcneill#define _DT_BINDINGS_CLK_QCOM_CAM_CC_SM8250_H 101.1Sjmcneill 111.1Sjmcneill/* CAM_CC clocks */ 121.1Sjmcneill#define CAM_CC_BPS_AHB_CLK 0 131.1Sjmcneill#define CAM_CC_BPS_AREG_CLK 1 141.1Sjmcneill#define CAM_CC_BPS_AXI_CLK 2 151.1Sjmcneill#define CAM_CC_BPS_CLK 3 161.1Sjmcneill#define CAM_CC_BPS_CLK_SRC 4 171.1Sjmcneill#define CAM_CC_CAMNOC_AXI_CLK 5 181.1Sjmcneill#define CAM_CC_CAMNOC_AXI_CLK_SRC 6 191.1Sjmcneill#define CAM_CC_CAMNOC_DCD_XO_CLK 7 201.1Sjmcneill#define CAM_CC_CCI_0_CLK 8 211.1Sjmcneill#define CAM_CC_CCI_0_CLK_SRC 9 221.1Sjmcneill#define CAM_CC_CCI_1_CLK 10 231.1Sjmcneill#define CAM_CC_CCI_1_CLK_SRC 11 241.1Sjmcneill#define CAM_CC_CORE_AHB_CLK 12 251.1Sjmcneill#define CAM_CC_CPAS_AHB_CLK 13 261.1Sjmcneill#define CAM_CC_CPHY_RX_CLK_SRC 14 271.1Sjmcneill#define CAM_CC_CSI0PHYTIMER_CLK 15 281.1Sjmcneill#define CAM_CC_CSI0PHYTIMER_CLK_SRC 16 291.1Sjmcneill#define CAM_CC_CSI1PHYTIMER_CLK 17 301.1Sjmcneill#define CAM_CC_CSI1PHYTIMER_CLK_SRC 18 311.1Sjmcneill#define CAM_CC_CSI2PHYTIMER_CLK 19 321.1Sjmcneill#define CAM_CC_CSI2PHYTIMER_CLK_SRC 20 331.1Sjmcneill#define CAM_CC_CSI3PHYTIMER_CLK 21 341.1Sjmcneill#define CAM_CC_CSI3PHYTIMER_CLK_SRC 22 351.1Sjmcneill#define CAM_CC_CSI4PHYTIMER_CLK 23 361.1Sjmcneill#define CAM_CC_CSI4PHYTIMER_CLK_SRC 24 371.1Sjmcneill#define CAM_CC_CSI5PHYTIMER_CLK 25 381.1Sjmcneill#define CAM_CC_CSI5PHYTIMER_CLK_SRC 26 391.1Sjmcneill#define CAM_CC_CSIPHY0_CLK 27 401.1Sjmcneill#define CAM_CC_CSIPHY1_CLK 28 411.1Sjmcneill#define CAM_CC_CSIPHY2_CLK 29 421.1Sjmcneill#define CAM_CC_CSIPHY3_CLK 30 431.1Sjmcneill#define CAM_CC_CSIPHY4_CLK 31 441.1Sjmcneill#define CAM_CC_CSIPHY5_CLK 32 451.1Sjmcneill#define CAM_CC_FAST_AHB_CLK_SRC 33 461.1Sjmcneill#define CAM_CC_FD_CORE_CLK 34 471.1Sjmcneill#define CAM_CC_FD_CORE_CLK_SRC 35 481.1Sjmcneill#define CAM_CC_FD_CORE_UAR_CLK 36 491.1Sjmcneill#define CAM_CC_GDSC_CLK 37 501.1Sjmcneill#define CAM_CC_ICP_AHB_CLK 38 511.1Sjmcneill#define CAM_CC_ICP_CLK 39 521.1Sjmcneill#define CAM_CC_ICP_CLK_SRC 40 531.1Sjmcneill#define CAM_CC_IFE_0_AHB_CLK 41 541.1Sjmcneill#define CAM_CC_IFE_0_AREG_CLK 42 551.1Sjmcneill#define CAM_CC_IFE_0_AXI_CLK 43 561.1Sjmcneill#define CAM_CC_IFE_0_CLK 44 571.1Sjmcneill#define CAM_CC_IFE_0_CLK_SRC 45 581.1Sjmcneill#define CAM_CC_IFE_0_CPHY_RX_CLK 46 591.1Sjmcneill#define CAM_CC_IFE_0_CSID_CLK 47 601.1Sjmcneill#define CAM_CC_IFE_0_CSID_CLK_SRC 48 611.1Sjmcneill#define CAM_CC_IFE_0_DSP_CLK 49 621.1Sjmcneill#define CAM_CC_IFE_1_AHB_CLK 50 631.1Sjmcneill#define CAM_CC_IFE_1_AREG_CLK 51 641.1Sjmcneill#define CAM_CC_IFE_1_AXI_CLK 52 651.1Sjmcneill#define CAM_CC_IFE_1_CLK 53 661.1Sjmcneill#define CAM_CC_IFE_1_CLK_SRC 54 671.1Sjmcneill#define CAM_CC_IFE_1_CPHY_RX_CLK 55 681.1Sjmcneill#define CAM_CC_IFE_1_CSID_CLK 56 691.1Sjmcneill#define CAM_CC_IFE_1_CSID_CLK_SRC 57 701.1Sjmcneill#define CAM_CC_IFE_1_DSP_CLK 58 711.1Sjmcneill#define CAM_CC_IFE_LITE_AHB_CLK 59 721.1Sjmcneill#define CAM_CC_IFE_LITE_AXI_CLK 60 731.1Sjmcneill#define CAM_CC_IFE_LITE_CLK 61 741.1Sjmcneill#define CAM_CC_IFE_LITE_CLK_SRC 62 751.1Sjmcneill#define CAM_CC_IFE_LITE_CPHY_RX_CLK 63 761.1Sjmcneill#define CAM_CC_IFE_LITE_CSID_CLK 64 771.1Sjmcneill#define CAM_CC_IFE_LITE_CSID_CLK_SRC 65 781.1Sjmcneill#define CAM_CC_IPE_0_AHB_CLK 66 791.1Sjmcneill#define CAM_CC_IPE_0_AREG_CLK 67 801.1Sjmcneill#define CAM_CC_IPE_0_AXI_CLK 68 811.1Sjmcneill#define CAM_CC_IPE_0_CLK 69 821.1Sjmcneill#define CAM_CC_IPE_0_CLK_SRC 70 831.1Sjmcneill#define CAM_CC_JPEG_CLK 71 841.1Sjmcneill#define CAM_CC_JPEG_CLK_SRC 72 851.1Sjmcneill#define CAM_CC_MCLK0_CLK 73 861.1Sjmcneill#define CAM_CC_MCLK0_CLK_SRC 74 871.1Sjmcneill#define CAM_CC_MCLK1_CLK 75 881.1Sjmcneill#define CAM_CC_MCLK1_CLK_SRC 76 891.1Sjmcneill#define CAM_CC_MCLK2_CLK 77 901.1Sjmcneill#define CAM_CC_MCLK2_CLK_SRC 78 911.1Sjmcneill#define CAM_CC_MCLK3_CLK 79 921.1Sjmcneill#define CAM_CC_MCLK3_CLK_SRC 80 931.1Sjmcneill#define CAM_CC_MCLK4_CLK 81 941.1Sjmcneill#define CAM_CC_MCLK4_CLK_SRC 82 951.1Sjmcneill#define CAM_CC_MCLK5_CLK 83 961.1Sjmcneill#define CAM_CC_MCLK5_CLK_SRC 84 971.1Sjmcneill#define CAM_CC_MCLK6_CLK 85 981.1Sjmcneill#define CAM_CC_MCLK6_CLK_SRC 86 991.1Sjmcneill#define CAM_CC_PLL0 87 1001.1Sjmcneill#define CAM_CC_PLL0_OUT_EVEN 88 1011.1Sjmcneill#define CAM_CC_PLL0_OUT_ODD 89 1021.1Sjmcneill#define CAM_CC_PLL1 90 1031.1Sjmcneill#define CAM_CC_PLL1_OUT_EVEN 91 1041.1Sjmcneill#define CAM_CC_PLL2 92 1051.1Sjmcneill#define CAM_CC_PLL2_OUT_MAIN 93 1061.1Sjmcneill#define CAM_CC_PLL3 94 1071.1Sjmcneill#define CAM_CC_PLL3_OUT_EVEN 95 1081.1Sjmcneill#define CAM_CC_PLL4 96 1091.1Sjmcneill#define CAM_CC_PLL4_OUT_EVEN 97 1101.1Sjmcneill#define CAM_CC_SBI_AHB_CLK 98 1111.1Sjmcneill#define CAM_CC_SBI_AXI_CLK 99 1121.1Sjmcneill#define CAM_CC_SBI_CLK 100 1131.1Sjmcneill#define CAM_CC_SBI_CPHY_RX_CLK 101 1141.1Sjmcneill#define CAM_CC_SBI_CSID_CLK 102 1151.1Sjmcneill#define CAM_CC_SBI_CSID_CLK_SRC 103 1161.1Sjmcneill#define CAM_CC_SBI_DIV_CLK_SRC 104 1171.1Sjmcneill#define CAM_CC_SBI_IFE_0_CLK 105 1181.1Sjmcneill#define CAM_CC_SBI_IFE_1_CLK 106 1191.1Sjmcneill#define CAM_CC_SLEEP_CLK 107 1201.1Sjmcneill#define CAM_CC_SLEEP_CLK_SRC 108 1211.1Sjmcneill#define CAM_CC_SLOW_AHB_CLK_SRC 109 1221.1Sjmcneill#define CAM_CC_XO_CLK_SRC 110 1231.1Sjmcneill 1241.1Sjmcneill/* CAM_CC resets */ 1251.1Sjmcneill#define CAM_CC_BPS_BCR 0 1261.1Sjmcneill#define CAM_CC_ICP_BCR 1 1271.1Sjmcneill#define CAM_CC_IFE_0_BCR 2 1281.1Sjmcneill#define CAM_CC_IFE_1_BCR 3 1291.1Sjmcneill#define CAM_CC_IPE_0_BCR 4 1301.1Sjmcneill#define CAM_CC_SBI_BCR 5 1311.1Sjmcneill 1321.1Sjmcneill/* CAM_CC GDSCRs */ 1331.1Sjmcneill#define BPS_GDSC 0 1341.1Sjmcneill#define IPE_0_GDSC 1 1351.1Sjmcneill#define SBI_GDSC 2 1361.1Sjmcneill#define IFE_0_GDSC 3 1371.1Sjmcneill#define IFE_1_GDSC 4 1381.1Sjmcneill#define TITAN_TOP_GDSC 5 1391.1Sjmcneill 1401.1Sjmcneill#endif 141