xref: /freebsd/sys/contrib/device-tree/include/dt-bindings/clock/qcom,dispcc-sm8350.h (revision 8bab661a3316d8bd9b9fbd11a3b4371b91507bd2)
1b97ee269SEmmanuel Vadot /* SPDX-License-Identifier: GPL-2.0 */
2b97ee269SEmmanuel Vadot /*
3b97ee269SEmmanuel Vadot  * Copyright (c) 2018-2020, The Linux Foundation. All rights reserved.
4b97ee269SEmmanuel Vadot  */
5b97ee269SEmmanuel Vadot 
6b97ee269SEmmanuel Vadot #ifndef _DT_BINDINGS_CLK_QCOM_DISP_CC_SM8250_H
7b97ee269SEmmanuel Vadot #define _DT_BINDINGS_CLK_QCOM_DISP_CC_SM8250_H
8b97ee269SEmmanuel Vadot 
9b97ee269SEmmanuel Vadot /* DISP_CC clock registers */
10b97ee269SEmmanuel Vadot #define DISP_CC_MDSS_AHB_CLK			0
11b97ee269SEmmanuel Vadot #define DISP_CC_MDSS_AHB_CLK_SRC		1
12b97ee269SEmmanuel Vadot #define DISP_CC_MDSS_BYTE0_CLK			2
13b97ee269SEmmanuel Vadot #define DISP_CC_MDSS_BYTE0_CLK_SRC		3
14b97ee269SEmmanuel Vadot #define DISP_CC_MDSS_BYTE0_DIV_CLK_SRC		4
15b97ee269SEmmanuel Vadot #define DISP_CC_MDSS_BYTE0_INTF_CLK		5
16b97ee269SEmmanuel Vadot #define DISP_CC_MDSS_BYTE1_CLK			6
17b97ee269SEmmanuel Vadot #define DISP_CC_MDSS_BYTE1_CLK_SRC		7
18b97ee269SEmmanuel Vadot #define DISP_CC_MDSS_BYTE1_DIV_CLK_SRC		8
19b97ee269SEmmanuel Vadot #define DISP_CC_MDSS_BYTE1_INTF_CLK		9
20b97ee269SEmmanuel Vadot #define DISP_CC_MDSS_DP_AUX1_CLK		10
21b97ee269SEmmanuel Vadot #define DISP_CC_MDSS_DP_AUX1_CLK_SRC		11
22b97ee269SEmmanuel Vadot #define DISP_CC_MDSS_DP_AUX_CLK			12
23b97ee269SEmmanuel Vadot #define DISP_CC_MDSS_DP_AUX_CLK_SRC		13
24b97ee269SEmmanuel Vadot #define DISP_CC_MDSS_DP_LINK1_CLK		14
25b97ee269SEmmanuel Vadot #define DISP_CC_MDSS_DP_LINK1_CLK_SRC		15
26b97ee269SEmmanuel Vadot #define DISP_CC_MDSS_DP_LINK1_DIV_CLK_SRC	16
27b97ee269SEmmanuel Vadot #define DISP_CC_MDSS_DP_LINK1_INTF_CLK		17
28b97ee269SEmmanuel Vadot #define DISP_CC_MDSS_DP_LINK_CLK		18
29b97ee269SEmmanuel Vadot #define DISP_CC_MDSS_DP_LINK_CLK_SRC		19
30b97ee269SEmmanuel Vadot #define DISP_CC_MDSS_DP_LINK_DIV_CLK_SRC	20
31b97ee269SEmmanuel Vadot #define DISP_CC_MDSS_DP_LINK_INTF_CLK		21
32b97ee269SEmmanuel Vadot #define DISP_CC_MDSS_DP_PIXEL1_CLK		22
33b97ee269SEmmanuel Vadot #define DISP_CC_MDSS_DP_PIXEL1_CLK_SRC		23
34b97ee269SEmmanuel Vadot #define DISP_CC_MDSS_DP_PIXEL2_CLK		24
35b97ee269SEmmanuel Vadot #define DISP_CC_MDSS_DP_PIXEL2_CLK_SRC		25
36b97ee269SEmmanuel Vadot #define DISP_CC_MDSS_DP_PIXEL_CLK		26
37b97ee269SEmmanuel Vadot #define DISP_CC_MDSS_DP_PIXEL_CLK_SRC		27
38b97ee269SEmmanuel Vadot #define DISP_CC_MDSS_ESC0_CLK			28
39b97ee269SEmmanuel Vadot #define DISP_CC_MDSS_ESC0_CLK_SRC		29
40b97ee269SEmmanuel Vadot #define DISP_CC_MDSS_ESC1_CLK			30
41b97ee269SEmmanuel Vadot #define DISP_CC_MDSS_ESC1_CLK_SRC		31
42b97ee269SEmmanuel Vadot #define DISP_CC_MDSS_MDP_CLK			32
43b97ee269SEmmanuel Vadot #define DISP_CC_MDSS_MDP_CLK_SRC		33
44b97ee269SEmmanuel Vadot #define DISP_CC_MDSS_MDP_LUT_CLK		34
45b97ee269SEmmanuel Vadot #define DISP_CC_MDSS_NON_GDSC_AHB_CLK		35
46b97ee269SEmmanuel Vadot #define DISP_CC_MDSS_PCLK0_CLK			36
47b97ee269SEmmanuel Vadot #define DISP_CC_MDSS_PCLK0_CLK_SRC		37
48b97ee269SEmmanuel Vadot #define DISP_CC_MDSS_PCLK1_CLK			38
49b97ee269SEmmanuel Vadot #define DISP_CC_MDSS_PCLK1_CLK_SRC		39
50b97ee269SEmmanuel Vadot #define DISP_CC_MDSS_ROT_CLK			40
51b97ee269SEmmanuel Vadot #define DISP_CC_MDSS_ROT_CLK_SRC		41
52b97ee269SEmmanuel Vadot #define DISP_CC_MDSS_RSCC_AHB_CLK		42
53b97ee269SEmmanuel Vadot #define DISP_CC_MDSS_RSCC_VSYNC_CLK		43
54b97ee269SEmmanuel Vadot #define DISP_CC_MDSS_VSYNC_CLK			44
55b97ee269SEmmanuel Vadot #define DISP_CC_MDSS_VSYNC_CLK_SRC		45
56b97ee269SEmmanuel Vadot #define DISP_CC_PLL0				46
57b97ee269SEmmanuel Vadot #define DISP_CC_PLL1				47
58b97ee269SEmmanuel Vadot #define DISP_CC_MDSS_EDP_AUX_CLK		48
59b97ee269SEmmanuel Vadot #define DISP_CC_MDSS_EDP_AUX_CLK_SRC		49
60b97ee269SEmmanuel Vadot #define DISP_CC_MDSS_EDP_GTC_CLK		50
61b97ee269SEmmanuel Vadot #define DISP_CC_MDSS_EDP_GTC_CLK_SRC		51
62b97ee269SEmmanuel Vadot #define DISP_CC_MDSS_EDP_LINK_CLK		52
63b97ee269SEmmanuel Vadot #define DISP_CC_MDSS_EDP_LINK_CLK_SRC		53
64b97ee269SEmmanuel Vadot #define DISP_CC_MDSS_EDP_LINK_INTF_CLK		54
65b97ee269SEmmanuel Vadot #define DISP_CC_MDSS_EDP_PIXEL_CLK		55
66b97ee269SEmmanuel Vadot #define DISP_CC_MDSS_EDP_PIXEL_CLK_SRC		56
67*8bab661aSEmmanuel Vadot #define DISP_CC_MDSS_EDP_LINK_DIV_CLK_SRC	57
68b97ee269SEmmanuel Vadot 
69b97ee269SEmmanuel Vadot /* DISP_CC Reset */
70b97ee269SEmmanuel Vadot #define DISP_CC_MDSS_CORE_BCR			0
71b97ee269SEmmanuel Vadot #define DISP_CC_MDSS_RSCC_BCR			1
72b97ee269SEmmanuel Vadot 
73b97ee269SEmmanuel Vadot /* DISP_CC GDSCR */
74b97ee269SEmmanuel Vadot #define MDSS_GDSC				0
75b97ee269SEmmanuel Vadot 
76b97ee269SEmmanuel Vadot #endif
77