xref: /freebsd/sys/contrib/device-tree/include/dt-bindings/clock/qcom,milos-camcc.h (revision 833e5d42ab135b0238e61c5b3c19b8619677cbfa)
1*833e5d42SEmmanuel Vadot /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
2*833e5d42SEmmanuel Vadot /*
3*833e5d42SEmmanuel Vadot  * Copyright (c) 2023, Qualcomm Innovation Center, Inc. All rights reserved.
4*833e5d42SEmmanuel Vadot  * Copyright (c) 2025, Luca Weiss <luca.weiss@fairphone.com>
5*833e5d42SEmmanuel Vadot  */
6*833e5d42SEmmanuel Vadot 
7*833e5d42SEmmanuel Vadot #ifndef _DT_BINDINGS_CLK_QCOM_CAM_CC_MILOS_H
8*833e5d42SEmmanuel Vadot #define _DT_BINDINGS_CLK_QCOM_CAM_CC_MILOS_H
9*833e5d42SEmmanuel Vadot 
10*833e5d42SEmmanuel Vadot /* CAM_CC clocks */
11*833e5d42SEmmanuel Vadot #define CAM_CC_PLL0						0
12*833e5d42SEmmanuel Vadot #define CAM_CC_PLL0_OUT_EVEN					1
13*833e5d42SEmmanuel Vadot #define CAM_CC_PLL0_OUT_ODD					2
14*833e5d42SEmmanuel Vadot #define CAM_CC_PLL1						3
15*833e5d42SEmmanuel Vadot #define CAM_CC_PLL1_OUT_EVEN					4
16*833e5d42SEmmanuel Vadot #define CAM_CC_PLL2						5
17*833e5d42SEmmanuel Vadot #define CAM_CC_PLL2_OUT_EVEN					6
18*833e5d42SEmmanuel Vadot #define CAM_CC_PLL3						7
19*833e5d42SEmmanuel Vadot #define CAM_CC_PLL3_OUT_EVEN					8
20*833e5d42SEmmanuel Vadot #define CAM_CC_PLL4						9
21*833e5d42SEmmanuel Vadot #define CAM_CC_PLL4_OUT_EVEN					10
22*833e5d42SEmmanuel Vadot #define CAM_CC_PLL5						11
23*833e5d42SEmmanuel Vadot #define CAM_CC_PLL5_OUT_EVEN					12
24*833e5d42SEmmanuel Vadot #define CAM_CC_PLL6						13
25*833e5d42SEmmanuel Vadot #define CAM_CC_PLL6_OUT_EVEN					14
26*833e5d42SEmmanuel Vadot #define CAM_CC_BPS_AHB_CLK					15
27*833e5d42SEmmanuel Vadot #define CAM_CC_BPS_AREG_CLK					16
28*833e5d42SEmmanuel Vadot #define CAM_CC_BPS_CLK						17
29*833e5d42SEmmanuel Vadot #define CAM_CC_BPS_CLK_SRC					18
30*833e5d42SEmmanuel Vadot #define CAM_CC_CAMNOC_ATB_CLK					19
31*833e5d42SEmmanuel Vadot #define CAM_CC_CAMNOC_AXI_CLK_SRC				20
32*833e5d42SEmmanuel Vadot #define CAM_CC_CAMNOC_AXI_HF_CLK				21
33*833e5d42SEmmanuel Vadot #define CAM_CC_CAMNOC_AXI_SF_CLK				22
34*833e5d42SEmmanuel Vadot #define CAM_CC_CAMNOC_NRT_AXI_CLK				23
35*833e5d42SEmmanuel Vadot #define CAM_CC_CAMNOC_RT_AXI_CLK				24
36*833e5d42SEmmanuel Vadot #define CAM_CC_CCI_0_CLK					25
37*833e5d42SEmmanuel Vadot #define CAM_CC_CCI_0_CLK_SRC					26
38*833e5d42SEmmanuel Vadot #define CAM_CC_CCI_1_CLK					27
39*833e5d42SEmmanuel Vadot #define CAM_CC_CCI_1_CLK_SRC					28
40*833e5d42SEmmanuel Vadot #define CAM_CC_CORE_AHB_CLK					29
41*833e5d42SEmmanuel Vadot #define CAM_CC_CPAS_AHB_CLK					30
42*833e5d42SEmmanuel Vadot #define CAM_CC_CPHY_RX_CLK_SRC					31
43*833e5d42SEmmanuel Vadot #define CAM_CC_CRE_AHB_CLK					32
44*833e5d42SEmmanuel Vadot #define CAM_CC_CRE_CLK						33
45*833e5d42SEmmanuel Vadot #define CAM_CC_CRE_CLK_SRC					34
46*833e5d42SEmmanuel Vadot #define CAM_CC_CSI0PHYTIMER_CLK					35
47*833e5d42SEmmanuel Vadot #define CAM_CC_CSI0PHYTIMER_CLK_SRC				36
48*833e5d42SEmmanuel Vadot #define CAM_CC_CSI1PHYTIMER_CLK					37
49*833e5d42SEmmanuel Vadot #define CAM_CC_CSI1PHYTIMER_CLK_SRC				38
50*833e5d42SEmmanuel Vadot #define CAM_CC_CSI2PHYTIMER_CLK					39
51*833e5d42SEmmanuel Vadot #define CAM_CC_CSI2PHYTIMER_CLK_SRC				40
52*833e5d42SEmmanuel Vadot #define CAM_CC_CSI3PHYTIMER_CLK					41
53*833e5d42SEmmanuel Vadot #define CAM_CC_CSI3PHYTIMER_CLK_SRC				42
54*833e5d42SEmmanuel Vadot #define CAM_CC_CSIPHY0_CLK					43
55*833e5d42SEmmanuel Vadot #define CAM_CC_CSIPHY1_CLK					44
56*833e5d42SEmmanuel Vadot #define CAM_CC_CSIPHY2_CLK					45
57*833e5d42SEmmanuel Vadot #define CAM_CC_CSIPHY3_CLK					46
58*833e5d42SEmmanuel Vadot #define CAM_CC_FAST_AHB_CLK_SRC					47
59*833e5d42SEmmanuel Vadot #define CAM_CC_GDSC_CLK						48
60*833e5d42SEmmanuel Vadot #define CAM_CC_ICP_ATB_CLK					49
61*833e5d42SEmmanuel Vadot #define CAM_CC_ICP_CLK						50
62*833e5d42SEmmanuel Vadot #define CAM_CC_ICP_CLK_SRC					51
63*833e5d42SEmmanuel Vadot #define CAM_CC_ICP_CTI_CLK					52
64*833e5d42SEmmanuel Vadot #define CAM_CC_ICP_TS_CLK					53
65*833e5d42SEmmanuel Vadot #define CAM_CC_MCLK0_CLK					54
66*833e5d42SEmmanuel Vadot #define CAM_CC_MCLK0_CLK_SRC					55
67*833e5d42SEmmanuel Vadot #define CAM_CC_MCLK1_CLK					56
68*833e5d42SEmmanuel Vadot #define CAM_CC_MCLK1_CLK_SRC					57
69*833e5d42SEmmanuel Vadot #define CAM_CC_MCLK2_CLK					58
70*833e5d42SEmmanuel Vadot #define CAM_CC_MCLK2_CLK_SRC					59
71*833e5d42SEmmanuel Vadot #define CAM_CC_MCLK3_CLK					60
72*833e5d42SEmmanuel Vadot #define CAM_CC_MCLK3_CLK_SRC					61
73*833e5d42SEmmanuel Vadot #define CAM_CC_MCLK4_CLK					62
74*833e5d42SEmmanuel Vadot #define CAM_CC_MCLK4_CLK_SRC					63
75*833e5d42SEmmanuel Vadot #define CAM_CC_OPE_0_AHB_CLK					64
76*833e5d42SEmmanuel Vadot #define CAM_CC_OPE_0_AREG_CLK					65
77*833e5d42SEmmanuel Vadot #define CAM_CC_OPE_0_CLK					66
78*833e5d42SEmmanuel Vadot #define CAM_CC_OPE_0_CLK_SRC					67
79*833e5d42SEmmanuel Vadot #define CAM_CC_SLEEP_CLK					68
80*833e5d42SEmmanuel Vadot #define CAM_CC_SLEEP_CLK_SRC					69
81*833e5d42SEmmanuel Vadot #define CAM_CC_SLOW_AHB_CLK_SRC					70
82*833e5d42SEmmanuel Vadot #define CAM_CC_SOC_AHB_CLK					71
83*833e5d42SEmmanuel Vadot #define CAM_CC_SYS_TMR_CLK					72
84*833e5d42SEmmanuel Vadot #define CAM_CC_TFE_0_AHB_CLK					73
85*833e5d42SEmmanuel Vadot #define CAM_CC_TFE_0_CLK					74
86*833e5d42SEmmanuel Vadot #define CAM_CC_TFE_0_CLK_SRC					75
87*833e5d42SEmmanuel Vadot #define CAM_CC_TFE_0_CPHY_RX_CLK				76
88*833e5d42SEmmanuel Vadot #define CAM_CC_TFE_0_CSID_CLK					77
89*833e5d42SEmmanuel Vadot #define CAM_CC_TFE_0_CSID_CLK_SRC				78
90*833e5d42SEmmanuel Vadot #define CAM_CC_TFE_1_AHB_CLK					79
91*833e5d42SEmmanuel Vadot #define CAM_CC_TFE_1_CLK					80
92*833e5d42SEmmanuel Vadot #define CAM_CC_TFE_1_CLK_SRC					81
93*833e5d42SEmmanuel Vadot #define CAM_CC_TFE_1_CPHY_RX_CLK				82
94*833e5d42SEmmanuel Vadot #define CAM_CC_TFE_1_CSID_CLK					83
95*833e5d42SEmmanuel Vadot #define CAM_CC_TFE_1_CSID_CLK_SRC				84
96*833e5d42SEmmanuel Vadot #define CAM_CC_TFE_2_AHB_CLK					85
97*833e5d42SEmmanuel Vadot #define CAM_CC_TFE_2_CLK					86
98*833e5d42SEmmanuel Vadot #define CAM_CC_TFE_2_CLK_SRC					87
99*833e5d42SEmmanuel Vadot #define CAM_CC_TFE_2_CPHY_RX_CLK				88
100*833e5d42SEmmanuel Vadot #define CAM_CC_TFE_2_CSID_CLK					89
101*833e5d42SEmmanuel Vadot #define CAM_CC_TFE_2_CSID_CLK_SRC				90
102*833e5d42SEmmanuel Vadot #define CAM_CC_TOP_SHIFT_CLK					91
103*833e5d42SEmmanuel Vadot #define CAM_CC_XO_CLK_SRC					92
104*833e5d42SEmmanuel Vadot 
105*833e5d42SEmmanuel Vadot /* CAM_CC resets */
106*833e5d42SEmmanuel Vadot #define CAM_CC_BPS_BCR						0
107*833e5d42SEmmanuel Vadot #define CAM_CC_CAMNOC_BCR					1
108*833e5d42SEmmanuel Vadot #define CAM_CC_CAMSS_TOP_BCR					2
109*833e5d42SEmmanuel Vadot #define CAM_CC_CCI_0_BCR					3
110*833e5d42SEmmanuel Vadot #define CAM_CC_CCI_1_BCR					4
111*833e5d42SEmmanuel Vadot #define CAM_CC_CPAS_BCR						5
112*833e5d42SEmmanuel Vadot #define CAM_CC_CRE_BCR						6
113*833e5d42SEmmanuel Vadot #define CAM_CC_CSI0PHY_BCR					7
114*833e5d42SEmmanuel Vadot #define CAM_CC_CSI1PHY_BCR					8
115*833e5d42SEmmanuel Vadot #define CAM_CC_CSI2PHY_BCR					9
116*833e5d42SEmmanuel Vadot #define CAM_CC_CSI3PHY_BCR					10
117*833e5d42SEmmanuel Vadot #define CAM_CC_ICP_BCR						11
118*833e5d42SEmmanuel Vadot #define CAM_CC_MCLK0_BCR					12
119*833e5d42SEmmanuel Vadot #define CAM_CC_MCLK1_BCR					13
120*833e5d42SEmmanuel Vadot #define CAM_CC_MCLK2_BCR					14
121*833e5d42SEmmanuel Vadot #define CAM_CC_MCLK3_BCR					15
122*833e5d42SEmmanuel Vadot #define CAM_CC_MCLK4_BCR					16
123*833e5d42SEmmanuel Vadot #define CAM_CC_OPE_0_BCR					17
124*833e5d42SEmmanuel Vadot #define CAM_CC_TFE_0_BCR					18
125*833e5d42SEmmanuel Vadot #define CAM_CC_TFE_1_BCR					19
126*833e5d42SEmmanuel Vadot #define CAM_CC_TFE_2_BCR					20
127*833e5d42SEmmanuel Vadot 
128*833e5d42SEmmanuel Vadot /* CAM_CC power domains */
129*833e5d42SEmmanuel Vadot #define CAM_CC_CAMSS_TOP_GDSC					0
130*833e5d42SEmmanuel Vadot 
131*833e5d42SEmmanuel Vadot #endif
132