xref: /freebsd/sys/contrib/device-tree/include/dt-bindings/clock/qcom,sm7150-camcc.h (revision 0e8011faf58b743cc652e3b2ad0f7671227610df)
1*0e8011faSEmmanuel Vadot /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
2*0e8011faSEmmanuel Vadot /*
3*0e8011faSEmmanuel Vadot  * Copyright (c) 2018, The Linux Foundation. All rights reserved.
4*0e8011faSEmmanuel Vadot  * Copyright (c) 2024, Danila Tikhonov <danila@jiaxyga.com>
5*0e8011faSEmmanuel Vadot  */
6*0e8011faSEmmanuel Vadot 
7*0e8011faSEmmanuel Vadot #ifndef _DT_BINDINGS_CLK_QCOM_CAMCC_SM7150_H
8*0e8011faSEmmanuel Vadot #define _DT_BINDINGS_CLK_QCOM_CAMCC_SM7150_H
9*0e8011faSEmmanuel Vadot 
10*0e8011faSEmmanuel Vadot /* Hardware clocks */
11*0e8011faSEmmanuel Vadot #define CAMCC_PLL0_OUT_EVEN					0
12*0e8011faSEmmanuel Vadot #define CAMCC_PLL0_OUT_ODD					1
13*0e8011faSEmmanuel Vadot #define CAMCC_PLL1_OUT_EVEN					2
14*0e8011faSEmmanuel Vadot #define CAMCC_PLL2_OUT_EARLY					3
15*0e8011faSEmmanuel Vadot #define CAMCC_PLL3_OUT_EVEN					4
16*0e8011faSEmmanuel Vadot #define CAMCC_PLL4_OUT_EVEN					5
17*0e8011faSEmmanuel Vadot 
18*0e8011faSEmmanuel Vadot /* CAMCC clock registers */
19*0e8011faSEmmanuel Vadot #define CAMCC_PLL0						6
20*0e8011faSEmmanuel Vadot #define CAMCC_PLL1						7
21*0e8011faSEmmanuel Vadot #define CAMCC_PLL2						8
22*0e8011faSEmmanuel Vadot #define CAMCC_PLL2_OUT_AUX					9
23*0e8011faSEmmanuel Vadot #define CAMCC_PLL2_OUT_MAIN					10
24*0e8011faSEmmanuel Vadot #define CAMCC_PLL3						11
25*0e8011faSEmmanuel Vadot #define CAMCC_PLL4						12
26*0e8011faSEmmanuel Vadot #define CAMCC_BPS_AHB_CLK					13
27*0e8011faSEmmanuel Vadot #define CAMCC_BPS_AREG_CLK					14
28*0e8011faSEmmanuel Vadot #define CAMCC_BPS_AXI_CLK					15
29*0e8011faSEmmanuel Vadot #define CAMCC_BPS_CLK						16
30*0e8011faSEmmanuel Vadot #define CAMCC_BPS_CLK_SRC					17
31*0e8011faSEmmanuel Vadot #define CAMCC_CAMNOC_AXI_CLK					18
32*0e8011faSEmmanuel Vadot #define CAMCC_CAMNOC_AXI_CLK_SRC				19
33*0e8011faSEmmanuel Vadot #define CAMCC_CAMNOC_DCD_XO_CLK					20
34*0e8011faSEmmanuel Vadot #define CAMCC_CCI_0_CLK						21
35*0e8011faSEmmanuel Vadot #define CAMCC_CCI_0_CLK_SRC					22
36*0e8011faSEmmanuel Vadot #define CAMCC_CCI_1_CLK						23
37*0e8011faSEmmanuel Vadot #define CAMCC_CCI_1_CLK_SRC					24
38*0e8011faSEmmanuel Vadot #define CAMCC_CORE_AHB_CLK					25
39*0e8011faSEmmanuel Vadot #define CAMCC_CPAS_AHB_CLK					26
40*0e8011faSEmmanuel Vadot #define CAMCC_CPHY_RX_CLK_SRC					27
41*0e8011faSEmmanuel Vadot #define CAMCC_CSI0PHYTIMER_CLK					28
42*0e8011faSEmmanuel Vadot #define CAMCC_CSI0PHYTIMER_CLK_SRC				29
43*0e8011faSEmmanuel Vadot #define CAMCC_CSI1PHYTIMER_CLK					30
44*0e8011faSEmmanuel Vadot #define CAMCC_CSI1PHYTIMER_CLK_SRC				31
45*0e8011faSEmmanuel Vadot #define CAMCC_CSI2PHYTIMER_CLK					32
46*0e8011faSEmmanuel Vadot #define CAMCC_CSI2PHYTIMER_CLK_SRC				33
47*0e8011faSEmmanuel Vadot #define CAMCC_CSI3PHYTIMER_CLK					34
48*0e8011faSEmmanuel Vadot #define CAMCC_CSI3PHYTIMER_CLK_SRC				35
49*0e8011faSEmmanuel Vadot #define CAMCC_CSIPHY0_CLK					36
50*0e8011faSEmmanuel Vadot #define CAMCC_CSIPHY1_CLK					37
51*0e8011faSEmmanuel Vadot #define CAMCC_CSIPHY2_CLK					38
52*0e8011faSEmmanuel Vadot #define CAMCC_CSIPHY3_CLK					39
53*0e8011faSEmmanuel Vadot #define CAMCC_FAST_AHB_CLK_SRC					40
54*0e8011faSEmmanuel Vadot #define CAMCC_FD_CORE_CLK					41
55*0e8011faSEmmanuel Vadot #define CAMCC_FD_CORE_CLK_SRC					42
56*0e8011faSEmmanuel Vadot #define CAMCC_FD_CORE_UAR_CLK					43
57*0e8011faSEmmanuel Vadot #define CAMCC_ICP_AHB_CLK					44
58*0e8011faSEmmanuel Vadot #define CAMCC_ICP_CLK						45
59*0e8011faSEmmanuel Vadot #define CAMCC_ICP_CLK_SRC					46
60*0e8011faSEmmanuel Vadot #define CAMCC_IFE_0_AXI_CLK					47
61*0e8011faSEmmanuel Vadot #define CAMCC_IFE_0_CLK						48
62*0e8011faSEmmanuel Vadot #define CAMCC_IFE_0_CLK_SRC					49
63*0e8011faSEmmanuel Vadot #define CAMCC_IFE_0_CPHY_RX_CLK					50
64*0e8011faSEmmanuel Vadot #define CAMCC_IFE_0_CSID_CLK					51
65*0e8011faSEmmanuel Vadot #define CAMCC_IFE_0_CSID_CLK_SRC				52
66*0e8011faSEmmanuel Vadot #define CAMCC_IFE_0_DSP_CLK					53
67*0e8011faSEmmanuel Vadot #define CAMCC_IFE_1_AXI_CLK					54
68*0e8011faSEmmanuel Vadot #define CAMCC_IFE_1_CLK						55
69*0e8011faSEmmanuel Vadot #define CAMCC_IFE_1_CLK_SRC					56
70*0e8011faSEmmanuel Vadot #define CAMCC_IFE_1_CPHY_RX_CLK					57
71*0e8011faSEmmanuel Vadot #define CAMCC_IFE_1_CSID_CLK					58
72*0e8011faSEmmanuel Vadot #define CAMCC_IFE_1_CSID_CLK_SRC				59
73*0e8011faSEmmanuel Vadot #define CAMCC_IFE_1_DSP_CLK					60
74*0e8011faSEmmanuel Vadot #define CAMCC_IFE_LITE_CLK					61
75*0e8011faSEmmanuel Vadot #define CAMCC_IFE_LITE_CLK_SRC					62
76*0e8011faSEmmanuel Vadot #define CAMCC_IFE_LITE_CPHY_RX_CLK				63
77*0e8011faSEmmanuel Vadot #define CAMCC_IFE_LITE_CSID_CLK					64
78*0e8011faSEmmanuel Vadot #define CAMCC_IFE_LITE_CSID_CLK_SRC				65
79*0e8011faSEmmanuel Vadot #define CAMCC_IPE_0_AHB_CLK					66
80*0e8011faSEmmanuel Vadot #define CAMCC_IPE_0_AREG_CLK					67
81*0e8011faSEmmanuel Vadot #define CAMCC_IPE_0_AXI_CLK					68
82*0e8011faSEmmanuel Vadot #define CAMCC_IPE_0_CLK						69
83*0e8011faSEmmanuel Vadot #define CAMCC_IPE_0_CLK_SRC					70
84*0e8011faSEmmanuel Vadot #define CAMCC_IPE_1_AHB_CLK					71
85*0e8011faSEmmanuel Vadot #define CAMCC_IPE_1_AREG_CLK					72
86*0e8011faSEmmanuel Vadot #define CAMCC_IPE_1_AXI_CLK					73
87*0e8011faSEmmanuel Vadot #define CAMCC_IPE_1_CLK						74
88*0e8011faSEmmanuel Vadot #define CAMCC_JPEG_CLK						75
89*0e8011faSEmmanuel Vadot #define CAMCC_JPEG_CLK_SRC					76
90*0e8011faSEmmanuel Vadot #define CAMCC_LRME_CLK						77
91*0e8011faSEmmanuel Vadot #define CAMCC_LRME_CLK_SRC					78
92*0e8011faSEmmanuel Vadot #define CAMCC_MCLK0_CLK						79
93*0e8011faSEmmanuel Vadot #define CAMCC_MCLK0_CLK_SRC					80
94*0e8011faSEmmanuel Vadot #define CAMCC_MCLK1_CLK						81
95*0e8011faSEmmanuel Vadot #define CAMCC_MCLK1_CLK_SRC					82
96*0e8011faSEmmanuel Vadot #define CAMCC_MCLK2_CLK						83
97*0e8011faSEmmanuel Vadot #define CAMCC_MCLK2_CLK_SRC					84
98*0e8011faSEmmanuel Vadot #define CAMCC_MCLK3_CLK						85
99*0e8011faSEmmanuel Vadot #define CAMCC_MCLK3_CLK_SRC					86
100*0e8011faSEmmanuel Vadot #define CAMCC_SLEEP_CLK						87
101*0e8011faSEmmanuel Vadot #define CAMCC_SLEEP_CLK_SRC					88
102*0e8011faSEmmanuel Vadot #define CAMCC_SLOW_AHB_CLK_SRC					89
103*0e8011faSEmmanuel Vadot #define CAMCC_XO_CLK_SRC					90
104*0e8011faSEmmanuel Vadot 
105*0e8011faSEmmanuel Vadot /* CAMCC GDSCRs */
106*0e8011faSEmmanuel Vadot #define BPS_GDSC						0
107*0e8011faSEmmanuel Vadot #define IFE_0_GDSC						1
108*0e8011faSEmmanuel Vadot #define IFE_1_GDSC						2
109*0e8011faSEmmanuel Vadot #define IPE_0_GDSC						3
110*0e8011faSEmmanuel Vadot #define IPE_1_GDSC						4
111*0e8011faSEmmanuel Vadot #define TITAN_TOP_GDSC						5
112*0e8011faSEmmanuel Vadot 
113*0e8011faSEmmanuel Vadot #endif
114