1*8d13bc63SEmmanuel Vadot /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ 2*8d13bc63SEmmanuel Vadot /* 3*8d13bc63SEmmanuel Vadot * Copyright (c) 2021, The Linux Foundation. All rights reserved. 4*8d13bc63SEmmanuel Vadot * Copyright (c) 2023, Linaro Ltd. 5*8d13bc63SEmmanuel Vadot */ 6*8d13bc63SEmmanuel Vadot 7*8d13bc63SEmmanuel Vadot #ifndef __DT_BINDINGS_CLK_QCOM_CAMCC_SC8280XP_H__ 8*8d13bc63SEmmanuel Vadot #define __DT_BINDINGS_CLK_QCOM_CAMCC_SC8280XP_H__ 9*8d13bc63SEmmanuel Vadot 10*8d13bc63SEmmanuel Vadot /* CAMCC clocks */ 11*8d13bc63SEmmanuel Vadot #define CAMCC_PLL0 0 12*8d13bc63SEmmanuel Vadot #define CAMCC_PLL0_OUT_EVEN 1 13*8d13bc63SEmmanuel Vadot #define CAMCC_PLL0_OUT_ODD 2 14*8d13bc63SEmmanuel Vadot #define CAMCC_PLL1 3 15*8d13bc63SEmmanuel Vadot #define CAMCC_PLL1_OUT_EVEN 4 16*8d13bc63SEmmanuel Vadot #define CAMCC_PLL2 5 17*8d13bc63SEmmanuel Vadot #define CAMCC_PLL3 6 18*8d13bc63SEmmanuel Vadot #define CAMCC_PLL3_OUT_EVEN 7 19*8d13bc63SEmmanuel Vadot #define CAMCC_PLL4 8 20*8d13bc63SEmmanuel Vadot #define CAMCC_PLL4_OUT_EVEN 9 21*8d13bc63SEmmanuel Vadot #define CAMCC_PLL5 10 22*8d13bc63SEmmanuel Vadot #define CAMCC_PLL5_OUT_EVEN 11 23*8d13bc63SEmmanuel Vadot #define CAMCC_PLL6 12 24*8d13bc63SEmmanuel Vadot #define CAMCC_PLL6_OUT_EVEN 13 25*8d13bc63SEmmanuel Vadot #define CAMCC_PLL7 14 26*8d13bc63SEmmanuel Vadot #define CAMCC_PLL7_OUT_EVEN 15 27*8d13bc63SEmmanuel Vadot #define CAMCC_PLL7_OUT_ODD 16 28*8d13bc63SEmmanuel Vadot #define CAMCC_BPS_AHB_CLK 17 29*8d13bc63SEmmanuel Vadot #define CAMCC_BPS_AREG_CLK 18 30*8d13bc63SEmmanuel Vadot #define CAMCC_BPS_AXI_CLK 19 31*8d13bc63SEmmanuel Vadot #define CAMCC_BPS_CLK 20 32*8d13bc63SEmmanuel Vadot #define CAMCC_BPS_CLK_SRC 21 33*8d13bc63SEmmanuel Vadot #define CAMCC_CAMNOC_AXI_CLK 22 34*8d13bc63SEmmanuel Vadot #define CAMCC_CAMNOC_AXI_CLK_SRC 23 35*8d13bc63SEmmanuel Vadot #define CAMCC_CAMNOC_DCD_XO_CLK 24 36*8d13bc63SEmmanuel Vadot #define CAMCC_CCI_0_CLK 25 37*8d13bc63SEmmanuel Vadot #define CAMCC_CCI_0_CLK_SRC 26 38*8d13bc63SEmmanuel Vadot #define CAMCC_CCI_1_CLK 27 39*8d13bc63SEmmanuel Vadot #define CAMCC_CCI_1_CLK_SRC 28 40*8d13bc63SEmmanuel Vadot #define CAMCC_CCI_2_CLK 29 41*8d13bc63SEmmanuel Vadot #define CAMCC_CCI_2_CLK_SRC 30 42*8d13bc63SEmmanuel Vadot #define CAMCC_CCI_3_CLK 31 43*8d13bc63SEmmanuel Vadot #define CAMCC_CCI_3_CLK_SRC 32 44*8d13bc63SEmmanuel Vadot #define CAMCC_CORE_AHB_CLK 33 45*8d13bc63SEmmanuel Vadot #define CAMCC_CPAS_AHB_CLK 34 46*8d13bc63SEmmanuel Vadot #define CAMCC_CPHY_RX_CLK_SRC 35 47*8d13bc63SEmmanuel Vadot #define CAMCC_CSI0PHYTIMER_CLK 36 48*8d13bc63SEmmanuel Vadot #define CAMCC_CSI0PHYTIMER_CLK_SRC 37 49*8d13bc63SEmmanuel Vadot #define CAMCC_CSI1PHYTIMER_CLK 38 50*8d13bc63SEmmanuel Vadot #define CAMCC_CSI1PHYTIMER_CLK_SRC 39 51*8d13bc63SEmmanuel Vadot #define CAMCC_CSI2PHYTIMER_CLK 40 52*8d13bc63SEmmanuel Vadot #define CAMCC_CSI2PHYTIMER_CLK_SRC 41 53*8d13bc63SEmmanuel Vadot #define CAMCC_CSI3PHYTIMER_CLK 42 54*8d13bc63SEmmanuel Vadot #define CAMCC_CSI3PHYTIMER_CLK_SRC 43 55*8d13bc63SEmmanuel Vadot #define CAMCC_CSIPHY0_CLK 44 56*8d13bc63SEmmanuel Vadot #define CAMCC_CSIPHY1_CLK 45 57*8d13bc63SEmmanuel Vadot #define CAMCC_CSIPHY2_CLK 46 58*8d13bc63SEmmanuel Vadot #define CAMCC_CSIPHY3_CLK 47 59*8d13bc63SEmmanuel Vadot #define CAMCC_FAST_AHB_CLK_SRC 48 60*8d13bc63SEmmanuel Vadot #define CAMCC_GDSC_CLK 49 61*8d13bc63SEmmanuel Vadot #define CAMCC_ICP_AHB_CLK 50 62*8d13bc63SEmmanuel Vadot #define CAMCC_ICP_CLK 51 63*8d13bc63SEmmanuel Vadot #define CAMCC_ICP_CLK_SRC 52 64*8d13bc63SEmmanuel Vadot #define CAMCC_IFE_0_AXI_CLK 53 65*8d13bc63SEmmanuel Vadot #define CAMCC_IFE_0_CLK 54 66*8d13bc63SEmmanuel Vadot #define CAMCC_IFE_0_CLK_SRC 55 67*8d13bc63SEmmanuel Vadot #define CAMCC_IFE_0_CPHY_RX_CLK 56 68*8d13bc63SEmmanuel Vadot #define CAMCC_IFE_0_CSID_CLK 57 69*8d13bc63SEmmanuel Vadot #define CAMCC_IFE_0_CSID_CLK_SRC 58 70*8d13bc63SEmmanuel Vadot #define CAMCC_IFE_0_DSP_CLK 59 71*8d13bc63SEmmanuel Vadot #define CAMCC_IFE_1_AXI_CLK 60 72*8d13bc63SEmmanuel Vadot #define CAMCC_IFE_1_CLK 61 73*8d13bc63SEmmanuel Vadot #define CAMCC_IFE_1_CLK_SRC 62 74*8d13bc63SEmmanuel Vadot #define CAMCC_IFE_1_CPHY_RX_CLK 63 75*8d13bc63SEmmanuel Vadot #define CAMCC_IFE_1_CSID_CLK 64 76*8d13bc63SEmmanuel Vadot #define CAMCC_IFE_1_CSID_CLK_SRC 65 77*8d13bc63SEmmanuel Vadot #define CAMCC_IFE_1_DSP_CLK 66 78*8d13bc63SEmmanuel Vadot #define CAMCC_IFE_2_AXI_CLK 67 79*8d13bc63SEmmanuel Vadot #define CAMCC_IFE_2_CLK 68 80*8d13bc63SEmmanuel Vadot #define CAMCC_IFE_2_CLK_SRC 69 81*8d13bc63SEmmanuel Vadot #define CAMCC_IFE_2_CPHY_RX_CLK 70 82*8d13bc63SEmmanuel Vadot #define CAMCC_IFE_2_CSID_CLK 71 83*8d13bc63SEmmanuel Vadot #define CAMCC_IFE_2_CSID_CLK_SRC 72 84*8d13bc63SEmmanuel Vadot #define CAMCC_IFE_2_DSP_CLK 73 85*8d13bc63SEmmanuel Vadot #define CAMCC_IFE_3_AXI_CLK 74 86*8d13bc63SEmmanuel Vadot #define CAMCC_IFE_3_CLK 75 87*8d13bc63SEmmanuel Vadot #define CAMCC_IFE_3_CLK_SRC 76 88*8d13bc63SEmmanuel Vadot #define CAMCC_IFE_3_CPHY_RX_CLK 77 89*8d13bc63SEmmanuel Vadot #define CAMCC_IFE_3_CSID_CLK 78 90*8d13bc63SEmmanuel Vadot #define CAMCC_IFE_3_CSID_CLK_SRC 79 91*8d13bc63SEmmanuel Vadot #define CAMCC_IFE_3_DSP_CLK 80 92*8d13bc63SEmmanuel Vadot #define CAMCC_IFE_LITE_0_CLK 81 93*8d13bc63SEmmanuel Vadot #define CAMCC_IFE_LITE_0_CLK_SRC 82 94*8d13bc63SEmmanuel Vadot #define CAMCC_IFE_LITE_0_CPHY_RX_CLK 83 95*8d13bc63SEmmanuel Vadot #define CAMCC_IFE_LITE_0_CSID_CLK 84 96*8d13bc63SEmmanuel Vadot #define CAMCC_IFE_LITE_0_CSID_CLK_SRC 85 97*8d13bc63SEmmanuel Vadot #define CAMCC_IFE_LITE_1_CLK 86 98*8d13bc63SEmmanuel Vadot #define CAMCC_IFE_LITE_1_CLK_SRC 87 99*8d13bc63SEmmanuel Vadot #define CAMCC_IFE_LITE_1_CPHY_RX_CLK 88 100*8d13bc63SEmmanuel Vadot #define CAMCC_IFE_LITE_1_CSID_CLK 89 101*8d13bc63SEmmanuel Vadot #define CAMCC_IFE_LITE_1_CSID_CLK_SRC 90 102*8d13bc63SEmmanuel Vadot #define CAMCC_IFE_LITE_2_CLK 91 103*8d13bc63SEmmanuel Vadot #define CAMCC_IFE_LITE_2_CLK_SRC 92 104*8d13bc63SEmmanuel Vadot #define CAMCC_IFE_LITE_2_CPHY_RX_CLK 93 105*8d13bc63SEmmanuel Vadot #define CAMCC_IFE_LITE_2_CSID_CLK 94 106*8d13bc63SEmmanuel Vadot #define CAMCC_IFE_LITE_2_CSID_CLK_SRC 95 107*8d13bc63SEmmanuel Vadot #define CAMCC_IFE_LITE_3_CLK 96 108*8d13bc63SEmmanuel Vadot #define CAMCC_IFE_LITE_3_CLK_SRC 97 109*8d13bc63SEmmanuel Vadot #define CAMCC_IFE_LITE_3_CPHY_RX_CLK 98 110*8d13bc63SEmmanuel Vadot #define CAMCC_IFE_LITE_3_CSID_CLK 99 111*8d13bc63SEmmanuel Vadot #define CAMCC_IFE_LITE_3_CSID_CLK_SRC 100 112*8d13bc63SEmmanuel Vadot #define CAMCC_IPE_0_AHB_CLK 101 113*8d13bc63SEmmanuel Vadot #define CAMCC_IPE_0_AREG_CLK 102 114*8d13bc63SEmmanuel Vadot #define CAMCC_IPE_0_AXI_CLK 103 115*8d13bc63SEmmanuel Vadot #define CAMCC_IPE_0_CLK 104 116*8d13bc63SEmmanuel Vadot #define CAMCC_IPE_0_CLK_SRC 105 117*8d13bc63SEmmanuel Vadot #define CAMCC_IPE_1_AHB_CLK 106 118*8d13bc63SEmmanuel Vadot #define CAMCC_IPE_1_AREG_CLK 107 119*8d13bc63SEmmanuel Vadot #define CAMCC_IPE_1_AXI_CLK 108 120*8d13bc63SEmmanuel Vadot #define CAMCC_IPE_1_CLK 109 121*8d13bc63SEmmanuel Vadot #define CAMCC_JPEG_CLK 110 122*8d13bc63SEmmanuel Vadot #define CAMCC_JPEG_CLK_SRC 111 123*8d13bc63SEmmanuel Vadot #define CAMCC_LRME_CLK 112 124*8d13bc63SEmmanuel Vadot #define CAMCC_LRME_CLK_SRC 113 125*8d13bc63SEmmanuel Vadot #define CAMCC_MCLK0_CLK 114 126*8d13bc63SEmmanuel Vadot #define CAMCC_MCLK0_CLK_SRC 115 127*8d13bc63SEmmanuel Vadot #define CAMCC_MCLK1_CLK 116 128*8d13bc63SEmmanuel Vadot #define CAMCC_MCLK1_CLK_SRC 117 129*8d13bc63SEmmanuel Vadot #define CAMCC_MCLK2_CLK 118 130*8d13bc63SEmmanuel Vadot #define CAMCC_MCLK2_CLK_SRC 119 131*8d13bc63SEmmanuel Vadot #define CAMCC_MCLK3_CLK 120 132*8d13bc63SEmmanuel Vadot #define CAMCC_MCLK3_CLK_SRC 121 133*8d13bc63SEmmanuel Vadot #define CAMCC_MCLK4_CLK 122 134*8d13bc63SEmmanuel Vadot #define CAMCC_MCLK4_CLK_SRC 123 135*8d13bc63SEmmanuel Vadot #define CAMCC_MCLK5_CLK 124 136*8d13bc63SEmmanuel Vadot #define CAMCC_MCLK5_CLK_SRC 125 137*8d13bc63SEmmanuel Vadot #define CAMCC_MCLK6_CLK 126 138*8d13bc63SEmmanuel Vadot #define CAMCC_MCLK6_CLK_SRC 127 139*8d13bc63SEmmanuel Vadot #define CAMCC_MCLK7_CLK 128 140*8d13bc63SEmmanuel Vadot #define CAMCC_MCLK7_CLK_SRC 129 141*8d13bc63SEmmanuel Vadot #define CAMCC_SLEEP_CLK 130 142*8d13bc63SEmmanuel Vadot #define CAMCC_SLEEP_CLK_SRC 131 143*8d13bc63SEmmanuel Vadot #define CAMCC_SLOW_AHB_CLK_SRC 132 144*8d13bc63SEmmanuel Vadot #define CAMCC_XO_CLK_SRC 133 145*8d13bc63SEmmanuel Vadot 146*8d13bc63SEmmanuel Vadot /* CAMCC resets */ 147*8d13bc63SEmmanuel Vadot #define CAMCC_BPS_BCR 0 148*8d13bc63SEmmanuel Vadot #define CAMCC_CAMNOC_BCR 1 149*8d13bc63SEmmanuel Vadot #define CAMCC_CCI_BCR 2 150*8d13bc63SEmmanuel Vadot #define CAMCC_CPAS_BCR 3 151*8d13bc63SEmmanuel Vadot #define CAMCC_CSI0PHY_BCR 4 152*8d13bc63SEmmanuel Vadot #define CAMCC_CSI1PHY_BCR 5 153*8d13bc63SEmmanuel Vadot #define CAMCC_CSI2PHY_BCR 6 154*8d13bc63SEmmanuel Vadot #define CAMCC_CSI3PHY_BCR 7 155*8d13bc63SEmmanuel Vadot #define CAMCC_ICP_BCR 8 156*8d13bc63SEmmanuel Vadot #define CAMCC_IFE_0_BCR 9 157*8d13bc63SEmmanuel Vadot #define CAMCC_IFE_1_BCR 10 158*8d13bc63SEmmanuel Vadot #define CAMCC_IFE_2_BCR 11 159*8d13bc63SEmmanuel Vadot #define CAMCC_IFE_3_BCR 12 160*8d13bc63SEmmanuel Vadot #define CAMCC_IFE_LITE_0_BCR 13 161*8d13bc63SEmmanuel Vadot #define CAMCC_IFE_LITE_1_BCR 14 162*8d13bc63SEmmanuel Vadot #define CAMCC_IFE_LITE_2_BCR 15 163*8d13bc63SEmmanuel Vadot #define CAMCC_IFE_LITE_3_BCR 16 164*8d13bc63SEmmanuel Vadot #define CAMCC_IPE_0_BCR 17 165*8d13bc63SEmmanuel Vadot #define CAMCC_IPE_1_BCR 18 166*8d13bc63SEmmanuel Vadot #define CAMCC_JPEG_BCR 19 167*8d13bc63SEmmanuel Vadot #define CAMCC_LRME_BCR 20 168*8d13bc63SEmmanuel Vadot 169*8d13bc63SEmmanuel Vadot /* CAMCC GDSCRs */ 170*8d13bc63SEmmanuel Vadot #define BPS_GDSC 0 171*8d13bc63SEmmanuel Vadot #define IFE_0_GDSC 1 172*8d13bc63SEmmanuel Vadot #define IFE_1_GDSC 2 173*8d13bc63SEmmanuel Vadot #define IFE_2_GDSC 3 174*8d13bc63SEmmanuel Vadot #define IFE_3_GDSC 4 175*8d13bc63SEmmanuel Vadot #define IPE_0_GDSC 5 176*8d13bc63SEmmanuel Vadot #define IPE_1_GDSC 6 177*8d13bc63SEmmanuel Vadot #define TITAN_TOP_GDSC 7 178*8d13bc63SEmmanuel Vadot 179*8d13bc63SEmmanuel Vadot #endif /* __DT_BINDINGS_CLK_QCOM_CAMCC_SC8280XP_H__ */ 180