hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
// SPDX-License-Identifier: BSD-3-Clause
 
/dts-v1/;
 
#include "msm8996.dtsi"
#include "pm8994.dtsi"
#include "pmi8994.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
 
/ {
   model = "Inforce 6640 Single Board Computer";
   compatible = "inforce,ifc6640", "qcom,apq8096-sbc", "qcom,apq8096";
 
   qcom,msm-id = <291 0x00030001>;
   qcom,board-id = <0x00010018 0>;
 
   aliases {
       serial0 = &blsp2_uart1;
   };
 
   chosen {
       stdout-path = "serial0:115200n8";
   };
 
   v1p05: v1p05-regulator {
       compatible = "regulator-fixed";
       reglator-name = "v1p05";
       regulator-always-on;
       regulator-boot-on;
 
       regulator-min-microvolt = <1050000>;
       regulator-max-microvolt = <1050000>;
 
       vin-supply = <&v5p0>;
   };
 
   v12_poe: v12-poe-regulator {
       compatible = "regulator-fixed";
       reglator-name = "v12_poe";
       regulator-always-on;
       regulator-boot-on;
 
       regulator-min-microvolt = <12000000>;
       regulator-max-microvolt = <12000000>;
   };
 
   v3p3: v3p3-regulator {
       compatible = "regulator-fixed";
       regulator-name = "v3p3";
       regulator-always-on;
       regulator-boot-on;
 
       regulator-min-microvolt = <3300000>;
       regulator-max-microvolt = <3300000>;
 
       vin-supply = <&v12_poe>;
   };
 
   v5p0: v5p0-regulator {
       compatible = "regulator-fixed";
       regulator-name = "v5p0";
       regulator-always-on;
       regulator-boot-on;
 
       regulator-min-microvolt = <5000000>;
       regulator-max-microvolt = <5000000>;
 
       vin-supply = <&v12_poe>;
   };
 
   vph_pwr: vph-pwr-regulator {
       compatible = "regulator-fixed";
       regulator-name = "vph_pwr";
       regulator-always-on;
       regulator-boot-on;
 
       regulator-min-microvolt = <3800000>;
       regulator-max-microvolt = <3800000>;
   };
};
 
&blsp2_uart1 {
   status = "okay";
   pinctrl-names = "default", "sleep";
   pinctrl-0 = <&blsp2_uart1_2pins_default>;
   pinctrl-1 = <&blsp2_uart1_2pins_sleep>;
};
 
&msmgpio {
   sdc2_pins_default: sdc2-pins-default {
       clk {
           pins = "sdc2_clk";
           bias-disable;
           drive-strength = <16>;
       };
 
       cmd {
           pins = "sdc2_cmd";
           bias-pull-up;
           drive-strength = <10>;
       };
 
       data {
           pins = "sdc2_data";
           bias-pull-up;
           drive-strength = <10>;
       };
 
       cd {
           pins = "gpio38";
           function = "gpio";
 
           bias-pull-up;
           drive-strength = <16>;
       };
   };
 
   sdc2_pins_sleep: sdc2-pins-sleep {
       clk {
           pins = "sdc2_clk";
           bias-disable;
           drive-strength = <2>;
       };
 
       cmd {
           pins = "sdc2_cmd";
           bias-pull-up;
           drive-strength = <2>;
       };
 
       data {
           pins = "sdc2_data";
           bias-pull-up;
           drive-strength = <2>;
       };
 
       cd {
           pins = "gpio38";
           function = "gpio";
           bias-pull-up;
           drive-strength = <2>;
       };
   };
};
 
&rpm_requests {
   pm8994-regulators {
       compatible = "qcom,rpm-pm8994-regulators";
 
       vdd_s1-supply = <&vph_pwr>;
       vdd_s2-supply = <&vph_pwr>;
       vdd_s3-supply = <&vph_pwr>;
       vdd_s4-supply = <&vph_pwr>;
       vdd_s5-supply = <&vph_pwr>;
       vdd_s6-supply = <&vph_pwr>;
       vdd_s7-supply = <&vph_pwr>;
       vdd_s8-supply = <&vph_pwr>;
       vdd_s9-supply = <&vph_pwr>;
       vdd_s10-supply = <&vph_pwr>;
       vdd_s11-supply = <&vph_pwr>;
       vdd_s12-supply = <&vph_pwr>;
       vdd_l2_l26_l28-supply = <&vreg_s3a_1p3>;
       vdd_l3_l11-supply = <&vreg_s3a_1p3>;
       vdd_l4_l27_l31-supply = <&vreg_s3a_1p3>;
       vdd_l5_l7-supply = <&vreg_s5a_2p15>;
       vdd_l6_l12_l32-supply = <&vreg_s5a_2p15>;
       vdd_l8_l16_l30-supply = <&vph_pwr>;
       vdd_l25-supply = <&vreg_s3a_1p3>;
       vdd_lvs1_2-supply = <&vreg_s4a_1p8>;
 
       vreg_s3a_1p3: s3 {
           regulator-name = "vreg_s3a_1p3";
           regulator-min-microvolt = <1300000>;
           regulator-max-microvolt = <1300000>;
       };
 
       vreg_s4a_1p8: s4 {
           regulator-name = "vreg_s4a_1p8";
           regulator-min-microvolt = <1800000>;
           regulator-max-microvolt = <1800000>;
           regulator-always-on;
       };
       vreg_s5a_2p15: s5 {
           regulator-name = "vreg_s5a_2p15";
           regulator-min-microvolt = <2150000>;
           regulator-max-microvolt = <2150000>;
       };
       vreg_s7a_1p0: s7 {
           regulator-name = "vreg_s7a_1p0";
           regulator-min-microvolt = <800000>;
           regulator-max-microvolt = <800000>;
       };
 
       vreg_l1a_1p0: l1 {
           regulator-name = "vreg_l1a_1p0";
           regulator-min-microvolt = <1000000>;
           regulator-max-microvolt = <1000000>;
       };
       vreg_l2a_1p25: l2 {
           regulator-name = "vreg_l2a_1p25";
           regulator-min-microvolt = <1250000>;
           regulator-max-microvolt = <1250000>;
       };
       vreg_l3a_0p875: l3 {
           regulator-name = "vreg_l3a_0p875";
           regulator-min-microvolt = <850000>;
           regulator-max-microvolt = <850000>;
       };
       vreg_l4a_1p225: l4 {
           regulator-name = "vreg_l4a_1p225";
           regulator-min-microvolt = <1225000>;
           regulator-max-microvolt = <1225000>;
       };
       vreg_l6a_1p2: l6 {
           regulator-name = "vreg_l6a_1p2";
           regulator-min-microvolt = <1200000>;
           regulator-max-microvolt = <1200000>;
       };
       vreg_l8a_1p8: l8 {
           regulator-name = "vreg_l8a_1p8";
           regulator-min-microvolt = <1800000>;
           regulator-max-microvolt = <1800000>;
       };
       vreg_l9a_1p8: l9 {
           regulator-name = "vreg_l9a_1p8";
           regulator-min-microvolt = <1800000>;
           regulator-max-microvolt = <1800000>;
       };
       vreg_l10a_1p8: l10 {
           regulator-name = "vreg_l10a_1p8";
           regulator-min-microvolt = <1800000>;
           regulator-max-microvolt = <1800000>;
       };
       vreg_l11a_1p15: l11 {
           regulator-name = "vreg_l11a_1p15";
           regulator-min-microvolt = <1150000>;
           regulator-max-microvolt = <1150000>;
       };
       vreg_l12a_1p8: l12 {
           regulator-name = "vreg_l12a_1p8";
           regulator-min-microvolt = <1800000>;
           regulator-max-microvolt = <1800000>;
       };
       vreg_l13a_2p95: l13 {
           regulator-name = "vreg_l13a_2p95";
           regulator-min-microvolt = <1800000>;
           regulator-max-microvolt = <2950000>;
       };
       vreg_l14a_1p8: l14 {
           regulator-name = "vreg_l14a_1p8";
           regulator-min-microvolt = <1800000>;
           regulator-max-microvolt = <1800000>;
       };
       vreg_l15a_1p8: l15 {
           regulator-name = "vreg_l15a_1p8";
           regulator-min-microvolt = <1800000>;
           regulator-max-microvolt = <1800000>;
       };
       vreg_l16a_2p7: l16 {
           regulator-name = "vreg_l16a_2p7";
           regulator-min-microvolt = <2700000>;
           regulator-max-microvolt = <2700000>;
       };
       vreg_l17a_2p8: l17 {
           regulator-name = "vreg_l17a_2p8";
           regulator-min-microvolt = <2500000>;
           regulator-max-microvolt = <2500000>;
       };
       vreg_l18a_2p85: l18 {
           regulator-name = "vreg_l18a_2p85";
           regulator-min-microvolt = <2700000>;
           regulator-max-microvolt = <2900000>;
       };
       vreg_l19a_2p8: l19 {
           regulator-name = "vreg_l19a_2p8";
           regulator-min-microvolt = <3000000>;
           regulator-max-microvolt = <3000000>;
       };
       vreg_l20a_2p95: l20 {
           regulator-name = "vreg_l20a_2p95";
           regulator-min-microvolt = <2950000>;
           regulator-max-microvolt = <2950000>;
           regulator-allow-set-load;
       };
       vreg_l21a_2p95: l21 {
           regulator-name = "vreg_l21a_2p95";
           regulator-min-microvolt = <2950000>;
           regulator-max-microvolt = <2950000>;
       };
       vreg_l22a_3p0: l22 {
           regulator-name = "vreg_l22a_3p0";
           regulator-min-microvolt = <3300000>;
           regulator-max-microvolt = <3300000>;
       };
       vreg_l23a_2p8: l23 {
           regulator-name = "vreg_l23a_2p8";
           regulator-min-microvolt = <2800000>;
           regulator-max-microvolt = <2800000>;
       };
       vreg_l24a_3p075: l24 {
           regulator-name = "vreg_l24a_3p075";
           regulator-min-microvolt = <3075000>;
           regulator-max-microvolt = <3075000>;
       };
       vreg_l25a_1p2: l25 {
           regulator-name = "vreg_l25a_1p2";
           regulator-min-microvolt = <1200000>;
           regulator-max-microvolt = <1200000>;
           regulator-allow-set-load;
       };
       vreg_l26a_0p8: l27 {
           regulator-name = "vreg_l26a_0p8";
           regulator-min-microvolt = <1000000>;
           regulator-max-microvolt = <1000000>;
       };
       vreg_l28a_0p925: l28 {
           regulator-name = "vreg_l28a_0p925";
           regulator-min-microvolt = <925000>;
           regulator-max-microvolt = <925000>;
           regulator-allow-set-load;
       };
       vreg_l29a_2p8: l29 {
           regulator-name = "vreg_l29a_2p8";
           regulator-min-microvolt = <2800000>;
           regulator-max-microvolt = <2800000>;
       };
       vreg_l30a_1p8: l30 {
           regulator-name = "vreg_l30a_1p8";
           regulator-min-microvolt = <1800000>;
           regulator-max-microvolt = <1800000>;
       };
       vreg_l32a_1p8: l32 {
           regulator-name = "vreg_l32a_1p8";
           regulator-min-microvolt = <1800000>;
           regulator-max-microvolt = <1800000>;
       };
 
       vreg_lvs1a_1p8: lvs1 {
           regulator-name = "vreg_lvs1a_1p8";
       };
 
       vreg_lvs2a_1p8: lvs2 {
           regulator-name = "vreg_lvs2a_1p8";
       };
   };
};
 
&sdhc2 {
   status = "okay";
 
   bus-width = <4>;
 
   cd-gpios = <&msmgpio 38 0x1>;
 
   vmmc-supply = <&vreg_l21a_2p95>;
   vqmmc-supply = <&vreg_l13a_2p95>;
 
   pinctrl-names = "default", "sleep";
   pinctrl-0 = <&sdc2_pins_default>;
   pinctrl-1 = <&sdc2_pins_sleep>;
};
 
&ufshc {
   status = "okay";
 
   vcc-supply = <&vreg_l20a_2p95>;
   vccq-supply = <&vreg_l25a_1p2>;
   vccq2-supply = <&vreg_s4a_1p8>;
 
   vcc-max-microamp = <600000>;
   vccq-max-microamp = <450000>;
   vccq2-max-microamp = <450000>;
};
 
&ufsphy {
   status = "okay";
 
   vdda-phy-supply = <&vreg_l28a_0p925>;
   vdda-pll-supply = <&vreg_l12a_1p8>;
 
   vdda-phy-max-microamp = <18380>;
   vdda-pll-max-microamp = <9440>;
};