summaryrefslogtreecommitdiff
path: root/qcom/lito-v2.dtsi
blob: 97affc51181d437ee4d37797b261b41c5fe00e24 (plain)
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
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
#include "lito.dtsi"

/ {
	model = "Qualcomm Technologies, Inc. Lito v2";
	compatible = "qcom,lito";
	qcom,msm-id = <400 0x20000>, <440 0x20000>;
};

&lito_snd {
	qcom,lito-is-v2-enabled = <1>;
};

&camcc {
	compatible = "qcom,lito-camcc-v2", "syscon";
};

&npucc {
	compatible = "qcom,lito-npucc-v2", "syscon";
};

&pm8008_regulators {
	vdd_l7-supply = <&BOB>;
};

&msm_gpu {
	/delete-property/qcom,chipid;
	qcom,chipid = <0x06020001>;

	/delete-node/qcom,gpu-pwrlevel-bins;
	qcom,gpu-pwrlevel-bins {
		#address-cells = <1>;
		#size-cells = <0>;

		compatible="qcom,gpu-pwrlevel-bins";

		qcom,gpu-pwrlevels-0 {
			#address-cells = <1>;
			#size-cells = <0>;

			qcom,speed-bin = <0>;
			qcom,ca-target-pwrlevel = <4>;
			qcom,initial-pwrlevel = <5>;
			qcom,throttle-pwrlevel = <0>;

			/* TURBO */
			qcom,gpu-pwrlevel@0 {
				reg = <0>;
				qcom,gpu-freq = <750000000>;
				qcom,bus-freq = <10>;
				qcom,bus-min = <9>;
				qcom,bus-max = <12>;
				qcom,acd-level = <0xA02C5FFD>;
			};

			/* NOM */
			qcom,gpu-pwrlevel@1 {
				reg = <1>;
				qcom,gpu-freq = <670000000>;
				qcom,bus-freq = <10>;
				qcom,bus-min = <9>;
				qcom,bus-max = <12>;
				qcom,acd-level = <0xA02C5FFD>;
			};

			/* NOM */
			qcom,gpu-pwrlevel@2 {
				reg = <2>;
				qcom,gpu-freq = <625000000>;
				qcom,bus-freq = <10>;
				qcom,bus-min = <9>;
				qcom,bus-max = <12>;
				qcom,acd-level = <0x802D5FFD>;
			};

			/* SVS L1 */
			qcom,gpu-pwrlevel@3 {
				reg = <3>;
				qcom,gpu-freq = <500000000>;
				qcom,bus-freq = <8>;
				qcom,bus-min = <7>;
				qcom,bus-max = <10>;
				qcom,acd-level = <0xA02D5FFD>;
			};

			/* SVS */
			qcom,gpu-pwrlevel@4 {
				reg = <4>;
				qcom,gpu-freq = <400000000>;
				qcom,bus-freq = <7>;
				qcom,bus-min = <5>;
				qcom,bus-max = <8>;
				qcom,acd-level = <0x802E5FFD>;
			};

			/* Low SVS */
			qcom,gpu-pwrlevel@5 {
				reg = <5>;
				qcom,gpu-freq = <275000000>;
				qcom,bus-freq = <5>;
				qcom,bus-min = <5>;
				qcom,bus-max = <7>;
				qcom,acd-level = <0x802F5FFD>;
			};

			qcom,gpu-pwrlevel@6 {
				reg = <6>;
				qcom,gpu-freq = <0>;
				qcom,bus-freq = <0>;
				qcom,bus-min = <0>;
				qcom,bus-max = <0>;
			};
		};

		qcom,gpu-pwrlevels-1 {
			#address-cells = <1>;
			#size-cells = <0>;

			qcom,speed-bin = <132>;

			qcom,initial-pwrlevel = <3>;
			qcom,ca-target-pwrlevel = <2>;

			/* NOM */
			qcom,gpu-pwrlevel@0 {
				reg = <0>;
				qcom,gpu-freq = <625000000>;
				qcom,bus-freq = <10>;
				qcom,bus-min = <9>;
				qcom,bus-max = <12>;
				qcom,acd-level = <0x802D5FFD>;
			};

			/* SVS L1 */
			qcom,gpu-pwrlevel@1 {
				reg = <1>;
				qcom,gpu-freq = <500000000>;
				qcom,bus-freq = <8>;
				qcom,bus-min = <7>;
				qcom,bus-max = <10>;
				qcom,acd-level = <0xA02D5FFD>;
			};

			/* SVS */
			qcom,gpu-pwrlevel@2 {
				reg = <2>;
				qcom,gpu-freq = <400000000>;
				qcom,bus-freq = <7>;
				qcom,bus-min = <5>;
				qcom,bus-max = <8>;
				qcom,acd-level = <0x802E5FFD>;
			};

			/* Low SVS */
			qcom,gpu-pwrlevel@3 {
				reg = <3>;
				qcom,gpu-freq = <275000000>;
				qcom,bus-freq = <5>;
				qcom,bus-min = <5>;
				qcom,bus-max = <7>;
				qcom,acd-level = <0x802F5FFD>;
			};

			qcom,gpu-pwrlevel@4 {
				reg = <4>;
				qcom,gpu-freq = <0>;
				qcom,bus-freq = <0>;
				qcom,bus-min = <0>;
				qcom,bus-max = <0>;
			};
		};

		qcom,gpu-pwrlevels-3 {
			#address-cells = <1>;
			#size-cells = <0>;

			qcom,speed-bin = <115>;
			qcom,initial-pwrlevel = <2>;
			qcom,ca-target-pwrlevel = <1>;

			/* SVS L1 */
			qcom,gpu-pwrlevel@0 {
				reg = <0>;
				qcom,gpu-freq = <540000000>;
				qcom,bus-freq = <8>;
				qcom,bus-min = <7>;
				qcom,bus-max = <12>;
				qcom,acd-level = <0x802D5FFD>;
			};

			/* SVS */
			qcom,gpu-pwrlevel@1 {
				reg = <1>;
				qcom,gpu-freq = <400000000>;
				qcom,bus-freq = <7>;
				qcom,bus-min = <5>;
				qcom,bus-max = <8>;
				qcom,acd-level = <0x802E5FFD>;
			};

			/* Low SVS */
			qcom,gpu-pwrlevel@2 {
				reg = <2>;
				qcom,gpu-freq = <275000000>;
				qcom,bus-freq = <5>;
				qcom,bus-min = <5>;
				qcom,bus-max = <7>;
				qcom,acd-level = <0x802F5FFD>;
			};

			qcom,gpu-pwrlevel@3 {
				reg = <3>;
				qcom,gpu-freq = <0>;
				qcom,bus-freq = <0>;
				qcom,bus-min = <0>;
				qcom,bus-max = <0>;
			};
		};

		qcom,gpu-pwrlevels-4 {
			#address-cells = <1>;
			#size-cells = <0>;

			qcom,speed-bin = <158>;
			qcom,ca-target-pwrlevel = <4>;
			qcom,initial-pwrlevel = <5>;
			qcom,throttle-pwrlevel = <0>;

			/* TURBO */
			qcom,gpu-pwrlevel@0 {
				reg = <0>;
				qcom,gpu-freq = <750000000>;
				qcom,bus-freq = <10>;
				qcom,bus-min = <9>;
				qcom,bus-max = <12>;
				qcom,acd-level = <0xA02C5FFD>;
			};

			/* NOM */
			qcom,gpu-pwrlevel@1 {
				reg = <1>;
				qcom,gpu-freq = <670000000>;
				qcom,bus-freq = <10>;
				qcom,bus-min = <9>;
				qcom,bus-max = <12>;
				qcom,acd-level = <0xA02C5FFD>;
			};

			/* NOM */
			qcom,gpu-pwrlevel@2 {
				reg = <2>;
				qcom,gpu-freq = <625000000>;
				qcom,bus-freq = <10>;
				qcom,bus-min = <9>;
				qcom,bus-max = <12>;
				qcom,acd-level = <0x802D5FFD>;
			};

			/* SVS L1 */
			qcom,gpu-pwrlevel@3 {
				reg = <3>;
				qcom,gpu-freq = <500000000>;
				qcom,bus-freq = <8>;
				qcom,bus-min = <7>;
				qcom,bus-max = <10>;
				qcom,acd-level = <0xA02D5FFD>;
			};

			/* SVS */
			qcom,gpu-pwrlevel@4 {
				reg = <4>;
				qcom,gpu-freq = <400000000>;
				qcom,bus-freq = <7>;
				qcom,bus-min = <5>;
				qcom,bus-max = <8>;
				qcom,acd-level = <0x802E5FFD>;
			};

			/* Low SVS */
			qcom,gpu-pwrlevel@5 {
				reg = <5>;
				qcom,gpu-freq = <275000000>;
				qcom,bus-freq = <5>;
				qcom,bus-min = <5>;
				qcom,bus-max = <7>;
				qcom,acd-level = <0x802F5FFD>;
			};

			qcom,gpu-pwrlevel@6 {
				reg = <6>;
				qcom,gpu-freq = <0>;
				qcom,bus-freq = <0>;
				qcom,bus-min = <0>;
				qcom,bus-max = <0>;
			};
		};

		qcom,gpu-pwrlevels-5 {
			#address-cells = <1>;
			#size-cells = <0>;

			qcom,speed-bin = <165>;

			qcom,initial-pwrlevel = <3>;
			qcom,ca-target-pwrlevel = <2>;

			/* NOM */
			qcom,gpu-pwrlevel@0 {
				reg = <0>;
				qcom,gpu-freq = <625000000>;
				qcom,bus-freq = <10>;
				qcom,bus-min = <9>;
				qcom,bus-max = <12>;
				qcom,acd-level = <0x802D5FFD>;
			};

			/* SVS L1 */
			qcom,gpu-pwrlevel@1 {
				reg = <1>;
				qcom,gpu-freq = <500000000>;
				qcom,bus-freq = <8>;
				qcom,bus-min = <7>;
				qcom,bus-max = <10>;
				qcom,acd-level = <0xA02D5FFD>;
			};

			/* SVS */
			qcom,gpu-pwrlevel@2 {
				reg = <2>;
				qcom,gpu-freq = <400000000>;
				qcom,bus-freq = <7>;
				qcom,bus-min = <5>;
				qcom,bus-max = <8>;
				qcom,acd-level = <0x802E5FFD>;
			};

			/* Low SVS */
			qcom,gpu-pwrlevel@3 {
				reg = <3>;
				qcom,gpu-freq = <275000000>;
				qcom,bus-freq = <5>;
				qcom,bus-min = <5>;
				qcom,bus-max = <7>;
				qcom,acd-level = <0x802F5FFD>;
			};

			qcom,gpu-pwrlevel@4 {
				reg = <4>;
				qcom,gpu-freq = <0>;
				qcom,bus-freq = <0>;
				qcom,bus-min = <0>;
				qcom,bus-max = <0>;
			};
		};
	};
};

&cpu0_cpu_l3_latmon {
	qcom,core-dev-table =
		<  614400  300000000 >,
		<  864000  556800000 >,
		< 1075200  787200000 >,
		< 1363200  940800000 >,
		< 1804800 1516800000 >;
};

&cpu0_cpu_llcc_latmon {
	qcom,core-dev-table =
		< 1075200 MHZ_TO_MBPS(300, 16) >,
		< 1363200 MHZ_TO_MBPS(466, 16) >,
		< 1804800 MHZ_TO_MBPS(600, 16) >;
};

&cpu0_llcc_ddr_latmon {
	qcom,core-dev-table =
		<  614400 MHZ_TO_MBPS( 300, 4) >,
		<  864000 MHZ_TO_MBPS( 451, 4) >,
		< 1075200 MHZ_TO_MBPS( 547, 4) >,
		< 1363200 MHZ_TO_MBPS( 768, 4) >,
		< 1804800 MHZ_TO_MBPS(1017, 4) >;
};

&cpu0_computemon {
	qcom,core-dev-table =
		<  614400 MHZ_TO_MBPS( 300, 4) >,
		< 1075200 MHZ_TO_MBPS( 451, 4) >,
		< 1363200 MHZ_TO_MBPS( 547, 4) >,
		< 1804800 MHZ_TO_MBPS( 768, 4) >;
};

&cpu6_cpu_l3_latmon {
	qcom,core-dev-table =
		<  940800  556800000 >,
		< 1152000  787200000 >,
		< 1728000 1209600000 >,
		< 1900800 1382400000 >,
		< 2342400 1516800000 >;
};

&cpu7_cpu_l3_latmon {
	qcom,core-dev-table =
		< 1094400  556800000 >,
		< 1401600  787200000 >,
		< 1996800 1209600000 >,
		< 2188800 1324800000 >,
		< 2707200 1516800000 >;
};

&cpu6_cpu_llcc_latmon {
	qcom,core-dev-table =
		<  652800 MHZ_TO_MBPS( 300, 16) >,
		<  940800 MHZ_TO_MBPS( 466, 16) >,
		< 1152000 MHZ_TO_MBPS( 600, 16) >,
		< 1728000 MHZ_TO_MBPS( 806, 16) >,
		< 2342400 MHZ_TO_MBPS( 933, 16) >,
		< 3000000 MHZ_TO_MBPS(1066, 16) >;
};

&cpu6_llcc_ddr_latmon {
	qcom,core-dev-table =
		<  652800 MHZ_TO_MBPS( 451, 4) >,
		<  940800 MHZ_TO_MBPS( 547, 4) >,
		< 1152000 MHZ_TO_MBPS(1017, 4) >,
		< 1728000 MHZ_TO_MBPS(1555, 4) >,
		< 2342400 MHZ_TO_MBPS(1804, 4) >,
		< 3000000 MHZ_TO_MBPS(2092, 4) >;
};

&cpu6_computemon {
	qcom,core-dev-table =
		<  652800 MHZ_TO_MBPS( 300, 4) >,
		< 1152000 MHZ_TO_MBPS( 547, 4) >,
		< 1478400 MHZ_TO_MBPS( 768, 4) >,
		< 1728000 MHZ_TO_MBPS(1017, 4) >,
		< 2342400 MHZ_TO_MBPS(1804, 4) >,
		< 3000000 MHZ_TO_MBPS(2092, 4) >;
};

&cpu7_computemon {
	qcom,core-dev-table =
		<  806400 MHZ_TO_MBPS( 300, 4) >,
		< 1401600 MHZ_TO_MBPS( 547, 4) >,
		< 1766400 MHZ_TO_MBPS( 768, 4) >,
		< 1996800 MHZ_TO_MBPS(1017, 4) >,
		< 2707200 MHZ_TO_MBPS(1804, 4) >,
		< 3000000 MHZ_TO_MBPS(2092, 4) >;
};

/* NPU overrides */
&msm_npu {
	qcom,npu-pwrlevels {
		#address-cells = <1>;
		#size-cells = <0>;
		compatible = "qcom,npu-pwrlevels";
		initial-pwrlevel = <5>;
		qcom,npu-pwrlevel@0 {
			reg = <0>;
			vreg = <1>;
			clk-freq = <19200000
				100000000
				230000000
				230000000
				150000000
				40000000
				300000000
				100000000
				19200000
				50000000
				50000000
				100000000
				100000000
				100000000
				19200000
				100000000
				19200000
				50000000
				230000000
				50000000
				19200000
				230000000
				19200000
				300000000>;
		};

		qcom,npu-pwrlevel@1 {
			reg = <1>;
			vreg = <2>;
			clk-freq = <19200000
				200000000
				422000000
				422000000
				207000000
				40000000
				403000000
				200000000
				19200000
				50000000
				50000000
				200000000
				200000000
				200000000
				19200000
				200000000
				19200000
				50000000
				422000000
				50000000
				19200000
				422000000
				19200000
				400000000>;
		};

		qcom,npu-pwrlevel@2 {
			reg = <2>;
			vreg = <3>;
			clk-freq = <19200000
				333000000
				557000000
				557000000
				300000000
				75000000
				533000000
				214000000
				19200000
				50000000
				100000000
				214000000
				214000000
				214000000
				19200000
				214000000
				19200000
				50000000
				557000000
				50000000
				19200000
				557000000
				19200000
				500000000>;
		};

		qcom,npu-pwrlevel@3 {
			reg = <3>;
			vreg = <4>;
			clk-freq = <19200000
				400000000
				729000000
				729000000
				403000000
				75000000
				700000000
				285714286
				19200000
				100000000
				200000000
				285714286
				285714286
				285714286
				19200000
				285714286
				19200000
				100000000
				729000000
				100000000
				19200000
				729000000
				19200000
				660000000>;
		};

		qcom,npu-pwrlevel@4 {
			reg = <4>;
			vreg = <6>;
			clk-freq = <19200000
				500000000
				844000000
				844000000
				533000000
				75000000
				806000000
				285714286
				19200000
				100000000
				200000000
				285714286
				285714286
				285714286
				19200000
				285714286
				19200000
				100000000
				844000000
				100000000
				19200000
				844000000
				19200000
				800000000>;
		};

		qcom,npu-pwrlevel@5 {
			reg = <5>;
			vreg = <7>;
			clk-freq = <19200000
				500000000
				1000000000
				1000000000
				533000000
				75000000
				806000000
				285714286
				19200000
				100000000
				200000000
				285714286
				285714286
				285714286
				19200000
				285714286
				19200000
				100000000
				1000000000
				100000000
				19200000
				1000000000
				19200000
				800000000>;
		};
	};
};