1*7ef62cebSEmmanuel Vadot /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ 2*7ef62cebSEmmanuel Vadot /* 3*7ef62cebSEmmanuel Vadot * Copyright (c) 2022, The Linux Foundation. All rights reserved. 4*7ef62cebSEmmanuel Vadot */ 5*7ef62cebSEmmanuel Vadot 6*7ef62cebSEmmanuel Vadot #ifndef _DT_BINDINGS_CLK_QCOM_DISP_CC_SM8450_H 7*7ef62cebSEmmanuel Vadot #define _DT_BINDINGS_CLK_QCOM_DISP_CC_SM8450_H 8*7ef62cebSEmmanuel Vadot 9*7ef62cebSEmmanuel Vadot /* DISP_CC clocks */ 10*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_AHB1_CLK 0 11*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_AHB_CLK 1 12*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_AHB_CLK_SRC 2 13*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_BYTE0_CLK 3 14*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_BYTE0_CLK_SRC 4 15*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_BYTE0_DIV_CLK_SRC 5 16*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_BYTE0_INTF_CLK 6 17*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_BYTE1_CLK 7 18*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_BYTE1_CLK_SRC 8 19*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_BYTE1_DIV_CLK_SRC 9 20*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_BYTE1_INTF_CLK 10 21*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_DPTX0_AUX_CLK 11 22*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_DPTX0_AUX_CLK_SRC 12 23*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_DPTX0_CRYPTO_CLK 13 24*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_DPTX0_LINK_CLK 14 25*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_DPTX0_LINK_CLK_SRC 15 26*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_DPTX0_LINK_DIV_CLK_SRC 16 27*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_DPTX0_LINK_INTF_CLK 17 28*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_DPTX0_PIXEL0_CLK 18 29*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_DPTX0_PIXEL0_CLK_SRC 19 30*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_DPTX0_PIXEL1_CLK 20 31*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_DPTX0_PIXEL1_CLK_SRC 21 32*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_DPTX0_USB_ROUTER_LINK_INTF_CLK 22 33*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_DPTX1_AUX_CLK 23 34*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_DPTX1_AUX_CLK_SRC 24 35*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_DPTX1_CRYPTO_CLK 25 36*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_DPTX1_LINK_CLK 26 37*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_DPTX1_LINK_CLK_SRC 27 38*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_DPTX1_LINK_DIV_CLK_SRC 28 39*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_DPTX1_LINK_INTF_CLK 29 40*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_DPTX1_PIXEL0_CLK 30 41*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_DPTX1_PIXEL0_CLK_SRC 31 42*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_DPTX1_PIXEL1_CLK 32 43*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_DPTX1_PIXEL1_CLK_SRC 33 44*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_DPTX1_USB_ROUTER_LINK_INTF_CLK 34 45*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_DPTX2_AUX_CLK 35 46*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_DPTX2_AUX_CLK_SRC 36 47*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_DPTX2_CRYPTO_CLK 37 48*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_DPTX2_LINK_CLK 38 49*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_DPTX2_LINK_CLK_SRC 39 50*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_DPTX2_LINK_DIV_CLK_SRC 40 51*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_DPTX2_LINK_INTF_CLK 41 52*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_DPTX2_PIXEL0_CLK 42 53*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_DPTX2_PIXEL0_CLK_SRC 43 54*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_DPTX2_PIXEL1_CLK 44 55*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_DPTX2_PIXEL1_CLK_SRC 45 56*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_DPTX3_AUX_CLK 46 57*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_DPTX3_AUX_CLK_SRC 47 58*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_DPTX3_CRYPTO_CLK 48 59*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_DPTX3_LINK_CLK 49 60*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_DPTX3_LINK_CLK_SRC 50 61*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_DPTX3_LINK_DIV_CLK_SRC 51 62*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_DPTX3_LINK_INTF_CLK 52 63*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_DPTX3_PIXEL0_CLK 53 64*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_DPTX3_PIXEL0_CLK_SRC 54 65*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_ESC0_CLK 55 66*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_ESC0_CLK_SRC 56 67*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_ESC1_CLK 57 68*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_ESC1_CLK_SRC 58 69*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_MDP1_CLK 59 70*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_MDP_CLK 60 71*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_MDP_CLK_SRC 61 72*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_MDP_LUT1_CLK 62 73*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_MDP_LUT_CLK 63 74*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_NON_GDSC_AHB_CLK 64 75*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_PCLK0_CLK 65 76*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_PCLK0_CLK_SRC 66 77*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_PCLK1_CLK 67 78*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_PCLK1_CLK_SRC 68 79*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_ROT1_CLK 69 80*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_ROT_CLK 70 81*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_ROT_CLK_SRC 71 82*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_RSCC_AHB_CLK 72 83*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_RSCC_VSYNC_CLK 73 84*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_VSYNC1_CLK 74 85*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_VSYNC_CLK 75 86*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_VSYNC_CLK_SRC 76 87*7ef62cebSEmmanuel Vadot #define DISP_CC_PLL0 77 88*7ef62cebSEmmanuel Vadot #define DISP_CC_PLL1 78 89*7ef62cebSEmmanuel Vadot #define DISP_CC_SLEEP_CLK 79 90*7ef62cebSEmmanuel Vadot #define DISP_CC_SLEEP_CLK_SRC 80 91*7ef62cebSEmmanuel Vadot #define DISP_CC_XO_CLK 81 92*7ef62cebSEmmanuel Vadot #define DISP_CC_XO_CLK_SRC 82 93*7ef62cebSEmmanuel Vadot 94*7ef62cebSEmmanuel Vadot /* DISP_CC resets */ 95*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_CORE_BCR 0 96*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_CORE_INT2_BCR 1 97*7ef62cebSEmmanuel Vadot #define DISP_CC_MDSS_RSCC_BCR 2 98*7ef62cebSEmmanuel Vadot 99*7ef62cebSEmmanuel Vadot /* DISP_CC GDSCR */ 100*7ef62cebSEmmanuel Vadot #define MDSS_GDSC 0 101*7ef62cebSEmmanuel Vadot #define MDSS_INT2_GDSC 1 102*7ef62cebSEmmanuel Vadot 103*7ef62cebSEmmanuel Vadot #endif 104