xref: /freebsd/sys/contrib/device-tree/include/dt-bindings/power/qcom-rpmpd.h (revision 8ddb146abcdf061be9f2c0db7e391697dafad85c)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright (c) 2018, The Linux Foundation. All rights reserved. */
3 
4 #ifndef _DT_BINDINGS_POWER_QCOM_RPMPD_H
5 #define _DT_BINDINGS_POWER_QCOM_RPMPD_H
6 
7 /* SDM845 Power Domain Indexes */
8 #define SDM845_EBI	0
9 #define SDM845_MX	1
10 #define SDM845_MX_AO	2
11 #define SDM845_CX	3
12 #define SDM845_CX_AO	4
13 #define SDM845_LMX	5
14 #define SDM845_LCX	6
15 #define SDM845_GFX	7
16 #define SDM845_MSS	8
17 
18 /* SDX55 Power Domain Indexes */
19 #define SDX55_MSS	0
20 #define SDX55_MX	1
21 #define SDX55_CX	2
22 
23 /* SM6350 Power Domain Indexes */
24 #define SM6350_CX	0
25 #define SM6350_GFX	1
26 #define SM6350_LCX	2
27 #define SM6350_LMX	3
28 #define SM6350_MSS	4
29 #define SM6350_MX	5
30 
31 /* SM8150 Power Domain Indexes */
32 #define SM8150_MSS	0
33 #define SM8150_EBI	1
34 #define SM8150_LMX	2
35 #define SM8150_LCX	3
36 #define SM8150_GFX	4
37 #define SM8150_MX	5
38 #define SM8150_MX_AO	6
39 #define SM8150_CX	7
40 #define SM8150_CX_AO	8
41 #define SM8150_MMCX	9
42 #define SM8150_MMCX_AO	10
43 
44 /* SM8250 Power Domain Indexes */
45 #define SM8250_CX	0
46 #define SM8250_CX_AO	1
47 #define SM8250_EBI	2
48 #define SM8250_GFX	3
49 #define SM8250_LCX	4
50 #define SM8250_LMX	5
51 #define SM8250_MMCX	6
52 #define SM8250_MMCX_AO	7
53 #define SM8250_MX	8
54 #define SM8250_MX_AO	9
55 
56 /* SM8350 Power Domain Indexes */
57 #define SM8350_CX	0
58 #define SM8350_CX_AO	1
59 #define SM8350_EBI	2
60 #define SM8350_GFX	3
61 #define SM8350_LCX	4
62 #define SM8350_LMX	5
63 #define SM8350_MMCX	6
64 #define SM8350_MMCX_AO	7
65 #define SM8350_MX	8
66 #define SM8350_MX_AO	9
67 #define SM8350_MXC	10
68 #define SM8350_MXC_AO	11
69 #define SM8350_MSS	12
70 
71 /* SM8450 Power Domain Indexes */
72 #define SM8450_CX	0
73 #define SM8450_CX_AO	1
74 #define SM8450_EBI	2
75 #define SM8450_GFX	3
76 #define SM8450_LCX	4
77 #define SM8450_LMX	5
78 #define SM8450_MMCX	6
79 #define SM8450_MMCX_AO	7
80 #define SM8450_MX	8
81 #define SM8450_MX_AO	9
82 #define SM8450_MXC	10
83 #define SM8450_MXC_AO	11
84 #define SM8450_MSS	12
85 
86 /* SC7180 Power Domain Indexes */
87 #define SC7180_CX	0
88 #define SC7180_CX_AO	1
89 #define SC7180_GFX	2
90 #define SC7180_MX	3
91 #define SC7180_MX_AO	4
92 #define SC7180_LMX	5
93 #define SC7180_LCX	6
94 #define SC7180_MSS	7
95 
96 /* SC7280 Power Domain Indexes */
97 #define SC7280_CX	0
98 #define SC7280_CX_AO	1
99 #define SC7280_EBI	2
100 #define SC7280_GFX	3
101 #define SC7280_MX	4
102 #define SC7280_MX_AO	5
103 #define SC7280_LMX	6
104 #define SC7280_LCX	7
105 #define SC7280_MSS	8
106 
107 /* SC8180X Power Domain Indexes */
108 #define SC8180X_CX	0
109 #define SC8180X_CX_AO	1
110 #define SC8180X_EBI	2
111 #define SC8180X_GFX	3
112 #define SC8180X_LCX	4
113 #define SC8180X_LMX	5
114 #define SC8180X_MMCX	6
115 #define SC8180X_MMCX_AO	7
116 #define SC8180X_MSS	8
117 #define SC8180X_MX	9
118 #define SC8180X_MX_AO	10
119 
120 /* SDM845 Power Domain performance levels */
121 #define RPMH_REGULATOR_LEVEL_RETENTION	16
122 #define RPMH_REGULATOR_LEVEL_MIN_SVS	48
123 #define RPMH_REGULATOR_LEVEL_LOW_SVS	64
124 #define RPMH_REGULATOR_LEVEL_SVS	128
125 #define RPMH_REGULATOR_LEVEL_SVS_L0	144
126 #define RPMH_REGULATOR_LEVEL_SVS_L1	192
127 #define RPMH_REGULATOR_LEVEL_SVS_L2	224
128 #define RPMH_REGULATOR_LEVEL_NOM	256
129 #define RPMH_REGULATOR_LEVEL_NOM_L1	320
130 #define RPMH_REGULATOR_LEVEL_NOM_L2	336
131 #define RPMH_REGULATOR_LEVEL_TURBO	384
132 #define RPMH_REGULATOR_LEVEL_TURBO_L1	416
133 
134 /* MDM9607 Power Domains */
135 #define MDM9607_VDDCX		0
136 #define MDM9607_VDDCX_AO	1
137 #define MDM9607_VDDCX_VFL	2
138 #define MDM9607_VDDMX		3
139 #define MDM9607_VDDMX_AO	4
140 #define MDM9607_VDDMX_VFL	5
141 
142 /* MSM8226 Power Domain Indexes */
143 #define MSM8226_VDDCX		0
144 #define MSM8226_VDDCX_AO	1
145 #define MSM8226_VDDCX_VFC	2
146 
147 /* MSM8939 Power Domains */
148 #define MSM8939_VDDMDCX		0
149 #define MSM8939_VDDMDCX_AO	1
150 #define MSM8939_VDDMDCX_VFC	2
151 #define MSM8939_VDDCX		3
152 #define MSM8939_VDDCX_AO	4
153 #define MSM8939_VDDCX_VFC	5
154 #define MSM8939_VDDMX		6
155 #define MSM8939_VDDMX_AO	7
156 
157 /* MSM8916 Power Domain Indexes */
158 #define MSM8916_VDDCX		0
159 #define MSM8916_VDDCX_AO	1
160 #define MSM8916_VDDCX_VFC	2
161 #define MSM8916_VDDMX		3
162 #define MSM8916_VDDMX_AO	4
163 
164 /* MSM8953 Power Domain Indexes */
165 #define MSM8953_VDDMD		0
166 #define MSM8953_VDDMD_AO	1
167 #define MSM8953_VDDCX		2
168 #define MSM8953_VDDCX_AO	3
169 #define MSM8953_VDDCX_VFL	4
170 #define MSM8953_VDDMX		5
171 #define MSM8953_VDDMX_AO	6
172 
173 /* MSM8976 Power Domain Indexes */
174 #define MSM8976_VDDCX		0
175 #define MSM8976_VDDCX_AO	1
176 #define MSM8976_VDDCX_VFL	2
177 #define MSM8976_VDDMX		3
178 #define MSM8976_VDDMX_AO	4
179 #define MSM8976_VDDMX_VFL	5
180 
181 /* MSM8994 Power Domain Indexes */
182 #define MSM8994_VDDCX		0
183 #define MSM8994_VDDCX_AO	1
184 #define MSM8994_VDDCX_VFC	2
185 #define MSM8994_VDDMX		3
186 #define MSM8994_VDDMX_AO	4
187 #define MSM8994_VDDGFX		5
188 #define MSM8994_VDDGFX_VFC	6
189 
190 /* MSM8996 Power Domain Indexes */
191 #define MSM8996_VDDCX		0
192 #define MSM8996_VDDCX_AO	1
193 #define MSM8996_VDDCX_VFC	2
194 #define MSM8996_VDDMX		3
195 #define MSM8996_VDDMX_AO	4
196 #define MSM8996_VDDSSCX		5
197 #define MSM8996_VDDSSCX_VFC	6
198 
199 /* MSM8998 Power Domain Indexes */
200 #define MSM8998_VDDCX		0
201 #define MSM8998_VDDCX_AO	1
202 #define MSM8998_VDDCX_VFL	2
203 #define MSM8998_VDDMX		3
204 #define MSM8998_VDDMX_AO	4
205 #define MSM8998_VDDMX_VFL	5
206 #define MSM8998_SSCCX		6
207 #define MSM8998_SSCCX_VFL	7
208 #define MSM8998_SSCMX		8
209 #define MSM8998_SSCMX_VFL	9
210 
211 /* QCS404 Power Domains */
212 #define QCS404_VDDMX		0
213 #define QCS404_VDDMX_AO		1
214 #define QCS404_VDDMX_VFL	2
215 #define QCS404_LPICX		3
216 #define QCS404_LPICX_VFL	4
217 #define QCS404_LPIMX		5
218 #define QCS404_LPIMX_VFL	6
219 
220 /* SDM660 Power Domains */
221 #define SDM660_VDDCX		0
222 #define SDM660_VDDCX_AO		1
223 #define SDM660_VDDCX_VFL	2
224 #define SDM660_VDDMX		3
225 #define SDM660_VDDMX_AO		4
226 #define SDM660_VDDMX_VFL	5
227 #define SDM660_SSCCX		6
228 #define SDM660_SSCCX_VFL	7
229 #define SDM660_SSCMX		8
230 #define SDM660_SSCMX_VFL	9
231 
232 /* SM6115 Power Domains */
233 #define SM6115_VDDCX		0
234 #define SM6115_VDDCX_AO		1
235 #define SM6115_VDDCX_VFL	2
236 #define SM6115_VDDMX		3
237 #define SM6115_VDDMX_AO		4
238 #define SM6115_VDDMX_VFL	5
239 #define SM6115_VDD_LPI_CX	6
240 #define SM6115_VDD_LPI_MX	7
241 
242 /* SM6125 Power Domains */
243 #define SM6125_VDDCX		0
244 #define SM6125_VDDCX_AO		1
245 #define SM6125_VDDCX_VFL	2
246 #define SM6125_VDDMX		3
247 #define SM6125_VDDMX_AO		4
248 #define SM6125_VDDMX_VFL	5
249 
250 /* QCM2290 Power Domains */
251 #define QCM2290_VDDCX		0
252 #define QCM2290_VDDCX_AO	1
253 #define QCM2290_VDDCX_VFL	2
254 #define QCM2290_VDDMX		3
255 #define QCM2290_VDDMX_AO	4
256 #define QCM2290_VDDMX_VFL	5
257 #define QCM2290_VDD_LPI_CX	6
258 #define QCM2290_VDD_LPI_MX	7
259 
260 /* RPM SMD Power Domain performance levels */
261 #define RPM_SMD_LEVEL_RETENTION       16
262 #define RPM_SMD_LEVEL_RETENTION_PLUS  32
263 #define RPM_SMD_LEVEL_MIN_SVS         48
264 #define RPM_SMD_LEVEL_LOW_SVS         64
265 #define RPM_SMD_LEVEL_SVS             128
266 #define RPM_SMD_LEVEL_SVS_PLUS        192
267 #define RPM_SMD_LEVEL_NOM             256
268 #define RPM_SMD_LEVEL_NOM_PLUS        320
269 #define RPM_SMD_LEVEL_TURBO           384
270 #define RPM_SMD_LEVEL_TURBO_NO_CPR    416
271 #define RPM_SMD_LEVEL_TURBO_HIGH      448
272 #define RPM_SMD_LEVEL_BINNING         512
273 
274 #endif
275