xref: /freebsd/sys/contrib/device-tree/include/dt-bindings/clock/qcom,sm8450-videocc.h (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
2*f126890aSEmmanuel Vadot /*
3*f126890aSEmmanuel Vadot  * Copyright (c) 2023, Qualcomm Innovation Center, Inc. All rights reserved.
4*f126890aSEmmanuel Vadot  */
5*f126890aSEmmanuel Vadot 
6*f126890aSEmmanuel Vadot #ifndef _DT_BINDINGS_CLK_QCOM_VIDEO_CC_SM8450_H
7*f126890aSEmmanuel Vadot #define _DT_BINDINGS_CLK_QCOM_VIDEO_CC_SM8450_H
8*f126890aSEmmanuel Vadot 
9*f126890aSEmmanuel Vadot /* VIDEO_CC clocks */
10*f126890aSEmmanuel Vadot #define VIDEO_CC_MVS0_CLK					0
11*f126890aSEmmanuel Vadot #define VIDEO_CC_MVS0_CLK_SRC					1
12*f126890aSEmmanuel Vadot #define VIDEO_CC_MVS0_DIV_CLK_SRC				2
13*f126890aSEmmanuel Vadot #define VIDEO_CC_MVS0C_CLK					3
14*f126890aSEmmanuel Vadot #define VIDEO_CC_MVS0C_DIV2_DIV_CLK_SRC				4
15*f126890aSEmmanuel Vadot #define VIDEO_CC_MVS1_CLK					5
16*f126890aSEmmanuel Vadot #define VIDEO_CC_MVS1_CLK_SRC					6
17*f126890aSEmmanuel Vadot #define VIDEO_CC_MVS1_DIV_CLK_SRC				7
18*f126890aSEmmanuel Vadot #define VIDEO_CC_MVS1C_CLK					8
19*f126890aSEmmanuel Vadot #define VIDEO_CC_MVS1C_DIV2_DIV_CLK_SRC				9
20*f126890aSEmmanuel Vadot #define VIDEO_CC_PLL0						10
21*f126890aSEmmanuel Vadot #define VIDEO_CC_PLL1						11
22*f126890aSEmmanuel Vadot 
23*f126890aSEmmanuel Vadot /* VIDEO_CC power domains */
24*f126890aSEmmanuel Vadot #define VIDEO_CC_MVS0C_GDSC					0
25*f126890aSEmmanuel Vadot #define VIDEO_CC_MVS0_GDSC					1
26*f126890aSEmmanuel Vadot #define VIDEO_CC_MVS1C_GDSC					2
27*f126890aSEmmanuel Vadot #define VIDEO_CC_MVS1_GDSC					3
28*f126890aSEmmanuel Vadot 
29*f126890aSEmmanuel Vadot /* VIDEO_CC resets */
30*f126890aSEmmanuel Vadot #define CVP_VIDEO_CC_INTERFACE_BCR				0
31*f126890aSEmmanuel Vadot #define CVP_VIDEO_CC_MVS0_BCR					1
32*f126890aSEmmanuel Vadot #define CVP_VIDEO_CC_MVS0C_BCR					2
33*f126890aSEmmanuel Vadot #define CVP_VIDEO_CC_MVS1_BCR					3
34*f126890aSEmmanuel Vadot #define CVP_VIDEO_CC_MVS1C_BCR					4
35*f126890aSEmmanuel Vadot #define VIDEO_CC_MVS0C_CLK_ARES					5
36*f126890aSEmmanuel Vadot #define VIDEO_CC_MVS1C_CLK_ARES					6
37*f126890aSEmmanuel Vadot 
38*f126890aSEmmanuel Vadot #endif
39