summaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/qcom/msm8998-v2.dtsi
blob: acdd4bdcd95b8b5130330e7e3ba9647488cdbae4 (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
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
/* Copyright (c) 2016-2017, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
 * only version 2 as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

/*
 * As a general rule, only version-specific property overrides should be placed
 * inside this file. Common device definitions should be placed inside the
 * msm8998.dtsi file.
 */

#include "msm8998.dtsi"
#include "msm8998-v2-camera.dtsi"

/ {
	model = "Qualcomm Technologies, Inc. MSM8998 v2";
	qcom,msm-id = <292 0x20000>;
};

&clock_cpu {
	compatible = "qcom,cpu-clock-osm-msm8998-v2";
	reg = <0x179c0000 0x4000>,
	      <0x17916000 0x1000>,
	      <0x17816000 0x1000>,
	      <0x179d1000 0x1000>,
	      <0x17914800 0x800>,
	      <0x17814800 0x800>,
	      <0x00784130 0x8>,
	      <0x1791101c 0x8>;
	reg-names = "osm", "pwrcl_pll", "perfcl_pll",
		    "apcs_common", "pwrcl_acd", "perfcl_acd",
		    "perfcl_efuse", "debug";

	qcom,acdtd-val = <0x00009611 0x00009611>;
	qcom,acdcr-val = <0x002b5ffd 0x002b5ffd>;
	qcom,acdsscr-val = <0x00000501 0x00000501>;
	qcom,acdextint0-val = <0x2cf9ae8 0x2cf9ae8>;
	qcom,acdextint1-val = <0x2cf9afe 0x2cf9afe>;
	qcom,acdautoxfer-val = <0x00000015 0x00000015>;
	qcom,pwrcl-apcs-mem-acc-threshold-voltage = <852000>;
	qcom,perfcl-apcs-mem-acc-threshold-voltage = <852000>;
	qcom,apm-threshold-voltage = <800000>;

	/delete-property/ qcom,llm-sw-overr;
	qcom,pwrcl-speedbin0-v0 =
		<   300000000 0x0004000f 0x01200020 0x1 1 >,
		<   364800000 0x05040013 0x01200020 0x1 2 >,
		<   441600000 0x05040017 0x02200020 0x1 3 >,
		<   518400000 0x0504001b 0x02200020 0x1 4 >,
		<   595200000 0x0504001f 0x02200020 0x1 5 >,
		<   672000000 0x05040023 0x03200020 0x1 6 >,
		<   748800000 0x05040027 0x03200020 0x1 7 >,
		<   825600000 0x0404002b 0x03220022 0x1 8 >,
		<   883200000 0x0404002e 0x04250025 0x1 9 >,
		<   960000000 0x04040032 0x04280028 0x1 10 >,
		<  1036800000 0x04040036 0x042b002b 0x1 11 >,
		<  1094400000 0x04040039 0x052e002e 0x2 12 >,
		<  1171200000 0x0404003d 0x05310031 0x2 13 >,
		<  1248000000 0x04040041 0x05340034 0x2 14 >,
		<  1324800000 0x04040045 0x06370037 0x2 15 >,
		<  1401600000 0x04040049 0x063a003a 0x2 16 >,
		<  1478400000 0x0404004d 0x073e003e 0x2 17 >,
		<  1555200000 0x04040051 0x07410041 0x2 18 >,
		<  1670400000 0x04040057 0x08460046 0x2 19 >,
		<  1747200000 0x0404005b 0x08490049 0x2 20 >,
		<  1824000000 0x0404005f 0x084c004c 0x3 21 >,
		<  1900800000 0x04040063 0x094f004f 0x3 22 >;

	qcom,perfcl-speedbin0-v0 =
		<   300000000 0x0004000f 0x01200020 0x1 1 >,
		<   345600000 0x05040012 0x01200020 0x1 2 >,
		<   422400000 0x05040016 0x02200020 0x1 3 >,
		<   499200000 0x0504001a 0x02200020 0x1 4 >,
		<   576000000 0x0504001e 0x02200020 0x1 5 >,
		<   652800000 0x05040022 0x03200020 0x1 6 >,
		<   729600000 0x05040026 0x03200020 0x1 7 >,
		<   806400000 0x0504002a 0x03220022 0x1 8 >,
		<   902400000 0x0404002f 0x04260026 0x1 9 >,
		<   979200000 0x04040033 0x04290029 0x1 10 >,
		<  1056000000 0x04040037 0x052c002c 0x1 11 >,
		<  1132800000 0x0404003b 0x052f002f 0x1 12 >,
		<  1190400000 0x0404003e 0x05320032 0x2 13 >,
		<  1267200000 0x04040042 0x06350035 0x2 14 >,
		<  1344000000 0x04040046 0x06380038 0x2 15 >,
		<  1420800000 0x0404004a 0x063b003b 0x2 16 >,
		<  1497600000 0x0404004e 0x073e003e 0x2 17 >,
		<  1574400000 0x04040052 0x07420042 0x2 18 >,
		<  1651200000 0x04040056 0x07450045 0x2 19 >,
		<  1728000000 0x0404005a 0x08480048 0x2 20 >,
		<  1804800000 0x0404005e 0x084b004b 0x2 21 >,
		<  1881600000 0x04040062 0x094e004e 0x2 22 >,
		<  1958400000 0x04040066 0x09520052 0x2 23 >,
		<  2035200000 0x0404006a 0x09550055 0x3 24 >,
		<  2112000000 0x0404006e 0x0a580058 0x3 25 >,
		<  2208000000 0x04040073 0x0a5c005c 0x3 26 >,
		<  2265600000 0x04010076 0x0a5e005e 0x3 26 >,
		<  2265600000 0x04040076 0x0a5e005e 0x3 27 >,
		<  2342400000 0x0401007a 0x0a620062 0x3 27 >,
		<  2342400000 0x0404007a 0x0a620062 0x3 28 >,
		<  2419200000 0x0401007e 0x0a650065 0x3 28 >,
		<  2419200000 0x0404007e 0x0a650065 0x3 29 >,
		<  2496000000 0x04010082 0x0a680068 0x3 29 >,
		<  2457600000 0x04040080 0x0a660066 0x3 30 >,
		<  2553600000 0x04010085 0x0a6a006a 0x3 30 >,
		<  2476800000 0x04040081 0x0a670067 0x3 31 >,
		<  2572800000 0x04010086 0x0a6b006b 0x3 31 >,
		<  2496000000 0x04040082 0x0a680068 0x3 32 >,
		<  2592000000 0x04010087 0x0a6c006c 0x3 32 >;

	qcom,perfcl-speedbin1-v0 =
		<   300000000 0x0004000f 0x01200020 0x1 1 >,
		<   345600000 0x05040012 0x01200020 0x1 2 >,
		<   422400000 0x05040016 0x02200020 0x1 3 >,
		<   499200000 0x0504001a 0x02200020 0x1 4 >,
		<   576000000 0x0504001e 0x02200020 0x1 5 >,
		<   652800000 0x05040022 0x03200020 0x1 6 >,
		<   729600000 0x05040026 0x03200020 0x1 7 >,
		<   806400000 0x0504002a 0x03220022 0x1 8 >,
		<   902400000 0x0404002f 0x04260026 0x1 9 >,
		<   979200000 0x04040033 0x04290029 0x1 10 >,
		<  1056000000 0x04040037 0x052c002c 0x1 11 >,
		<  1132800000 0x0404003b 0x052f002f 0x1 12 >,
		<  1190400000 0x0404003e 0x05320032 0x2 13 >,
		<  1267200000 0x04040042 0x06350035 0x2 14 >,
		<  1344000000 0x04040046 0x06380038 0x2 15 >,
		<  1420800000 0x0404004a 0x063b003b 0x2 16 >,
		<  1497600000 0x0404004e 0x073e003e 0x2 17 >,
		<  1574400000 0x04040052 0x07420042 0x2 18 >,
		<  1651200000 0x04040056 0x07450045 0x2 19 >,
		<  1728000000 0x0404005a 0x08480048 0x2 20 >,
		<  1804800000 0x0404005e 0x084b004b 0x2 21 >,
		<  1881600000 0x04040062 0x094e004e 0x2 22 >,
		<  1958400000 0x04040066 0x09520052 0x2 23 >,
		<  2035200000 0x0404006a 0x09550055 0x3 24 >,
		<  2112000000 0x0404006e 0x0a580058 0x3 25 >,
		<  2208000000 0x04040073 0x0a5c005c 0x3 26 >,
		<  2304000000 0x04010078 0x0a600060 0x3 26 >;

	qcom,perfcl-speedbin2-v0 =
		<   300000000 0x0004000f 0x01200020 0x1 1 >,
		<   345600000 0x05040012 0x01200020 0x1 2 >,
		<   422400000 0x05040016 0x02200020 0x1 3 >,
		<   499200000 0x0504001a 0x02200020 0x1 4 >,
		<   576000000 0x0504001e 0x02200020 0x1 5 >,
		<   652800000 0x05040022 0x03200020 0x1 6 >,
		<   729600000 0x05040026 0x03200020 0x1 7 >,
		<   806400000 0x0504002a 0x03220022 0x1 8 >,
		<   902400000 0x0404002f 0x04260026 0x1 9 >,
		<   979200000 0x04040033 0x04290029 0x1 10 >,
		<  1056000000 0x04040037 0x052c002c 0x1 11 >,
		<  1132800000 0x0404003b 0x052f002f 0x1 12 >,
		<  1190400000 0x0404003e 0x05320032 0x2 13 >,
		<  1267200000 0x04040042 0x06350035 0x2 14 >,
		<  1344000000 0x04040046 0x06380038 0x2 15 >,
		<  1420800000 0x0404004a 0x063b003b 0x2 16 >,
		<  1497600000 0x0404004e 0x073e003e 0x2 17 >,
		<  1574400000 0x04040052 0x07420042 0x2 18 >,
		<  1651200000 0x04040056 0x07450045 0x2 19 >,
		<  1728000000 0x0404005a 0x08480048 0x2 20 >,
		<  1804800000 0x0404005e 0x084b004b 0x2 21 >,
		<  1881600000 0x04040062 0x094e004e 0x2 22 >,
		<  1958400000 0x04040066 0x09520052 0x2 23 >,
		<  2035200000 0x0404006a 0x09550055 0x3 24 >,
		<  2112000000 0x0404006e 0x0a580058 0x3 25 >,
		<  2208000000 0x04040073 0x0a5c005c 0x3 26 >,
		<  2265600000 0x04010076 0x0a5e005e 0x3 26 >,
		<  2265600000 0x04040076 0x0a5e005e 0x3 27 >,
		<  2342400000 0x0401007a 0x0a620062 0x3 27 >,
		<  2323200000 0x04040079 0x0a610061 0x3 28 >,
		<  2419200000 0x0401007e 0x0a650065 0x3 28 >,
		<  2342400000 0x0404007a 0x0a620062 0x3 29 >,
		<  2438400000 0x0401007f 0x0a660066 0x3 29 >,
		<  2361600000 0x0404007b 0x0a620062 0x3 30 >,
		<  2457600000 0x04010080 0x0a660066 0x3 30 >;

	qcom,perfcl-speedbin3-v0 =
		<   300000000 0x0004000f 0x01200020 0x1 1 >,
		<   345600000 0x05040012 0x01200020 0x1 2 >,
		<   422400000 0x05040016 0x02200020 0x1 3 >,
		<   499200000 0x0504001a 0x02200020 0x1 4 >,
		<   576000000 0x0504001e 0x02200020 0x1 5 >,
		<   652800000 0x05040022 0x03200020 0x1 6 >,
		<   729600000 0x05040026 0x03200020 0x1 7 >,
		<   806400000 0x0504002a 0x03220022 0x1 8 >,
		<   902400000 0x0404002f 0x04260026 0x1 9 >,
		<   979200000 0x04040033 0x04290029 0x1 10 >,
		<  1056000000 0x04040037 0x052c002c 0x1 11 >,
		<  1132800000 0x0404003b 0x052f002f 0x1 12 >,
		<  1190400000 0x0404003e 0x05320032 0x2 13 >,
		<  1267200000 0x04040042 0x06350035 0x2 14 >,
		<  1344000000 0x04040046 0x06380038 0x2 15 >,
		<  1420800000 0x0404004a 0x063b003b 0x2 16 >,
		<  1497600000 0x0404004e 0x073e003e 0x2 17 >,
		<  1574400000 0x04040052 0x07420042 0x2 18 >,
		<  1651200000 0x04040056 0x07450045 0x2 19 >,
		<  1728000000 0x0404005a 0x08480048 0x2 20 >,
		<  1804800000 0x0404005e 0x084b004b 0x2 21 >,
		<  1881600000 0x04040062 0x094e004e 0x2 22 >,
		<  1958400000 0x04040066 0x09520052 0x2 23 >,
		<  2035200000 0x0404006a 0x09550055 0x3 24 >,
		<  2112000000 0x0404006e 0x0a580058 0x3 25 >,
		<  2208000000 0x04040073 0x0a5c005c 0x3 26 >,
		<  2265600000 0x04010076 0x0a5e005e 0x3 26 >,
		<  2265600000 0x04040076 0x0a5e005e 0x3 27 >,
		<  2342400000 0x0401007a 0x0a620062 0x3 27 >,
		<  2323200000 0x04040079 0x0a610061 0x3 28 >,
		<  2419200000 0x0401007e 0x0a650065 0x3 28 >,
		<  2342400000 0x0404007a 0x0a620062 0x3 29 >,
		<  2438400000 0x0401007f 0x0a660066 0x3 29 >,
		<  2361600000 0x0404007b 0x0a620062 0x3 30 >,
		<  2457600000 0x04010080 0x0a660066 0x3 30 >;
};

&msm_cpufreq {
	qcom,cpufreq-table-0 =
		<   300000 >,
		<   364800 >,
		<   441600 >,
		<   518400 >,
		<   595200 >,
		<   672000 >,
		<   748800 >,
		<   825600 >,
		<   883200 >,
		<   960000 >,
		<  1036800 >,
		<  1094400 >,
		<  1171200 >,
		<  1248000 >,
		<  1324800 >,
		<  1401600 >,
		<  1478400 >,
		<  1555200 >,
		<  1670400 >,
		<  1747200 >,
		<  1824000 >,
		<  1900800 >;

	qcom,cpufreq-table-4 =
		<   300000 >,
		<   345600 >,
		<   422400 >,
		<   499200 >,
		<   576000 >,
		<   652800 >,
		<   729600 >,
		<   806400 >,
		<   902400 >,
		<   979200 >,
		<  1056000 >,
		<  1132800 >,
		<  1190400 >,
		<  1267200 >,
		<  1344000 >,
		<  1420800 >,
		<  1497600 >,
		<  1574400 >,
		<  1651200 >,
		<  1728000 >,
		<  1804800 >,
		<  1881600 >,
		<  1958400 >,
		<  2035200 >,
		<  2112000 >,
		<  2208000 >,
		<  2265600 >,
		<  2304000 >,
		<  2323200 >,
		<  2342400 >,
		<  2361600 >,
		<  2419200 >,
		<  2457600 >,
		<  2476800 >,
		<  2496000 >,
		<  2592000 >;
};

&bwmon {
	compatible = "qcom,bimc-bwmon4";
	qcom,hw-timer-hz = <19200000>;
};

&devfreq_cpufreq {
	mincpubw-cpufreq {
		cpu-to-dev-map-0 =
			< 1900800 1525 >;
		cpu-to-dev-map-4 =
			< 2112000 1525 >,
			< 2496000 5195 >;
		};
};

&devfreq_memlat_0 {
	qcom,core-dev-table =
		<  300000 1525 >,
		<  595200 3143 >,
		< 1324800 4173 >,
		< 1555200 5859 >,
		< 1747200 5859 >,
		< 1900800 7759 >;
};

&devfreq_memlat_4 {
	qcom,core-dev-table =
		<  576000  3143 >,
		< 1132800  4173 >,
		< 1344000  5859 >,
		< 1728000  7759 >,
		< 1958400 11863 >,
		< 2208000 13763 >;
};
&clock_gcc {
	compatible = "qcom,gcc-8998-v2";
};

&clock_mmss {
	compatible = "qcom,mmsscc-8998-v2";
};

&clock_gpu {
	compatible = "qcom,gpucc-8998-v2";
};

&clock_gfx {
	compatible = "qcom,gfxcc-8998-v2";
	qcom,gfxfreq-speedbin0 =
		<         0 0                           0 >,
		< 180000000 1 RPM_SMD_REGULATOR_LEVEL_SVS >,
		< 257000000 2 RPM_SMD_REGULATOR_LEVEL_SVS >,
		< 342000000 3 RPM_SMD_REGULATOR_LEVEL_SVS >,
		< 414000000 4 RPM_SMD_REGULATOR_LEVEL_SVS >,
		< 515000000 5 RPM_SMD_REGULATOR_LEVEL_NOM >,
		< 596000000 6 RPM_SMD_REGULATOR_LEVEL_NOM >,
		< 670000000 7 RPM_SMD_REGULATOR_LEVEL_TURBO >,
		< 710000000 8 RPM_SMD_REGULATOR_LEVEL_TURBO >;
	qcom,gfxfreq-mx-speedbin0 =
		<         0                           0 >,
		< 180000000 RPM_SMD_REGULATOR_LEVEL_SVS >,
		< 257000000 RPM_SMD_REGULATOR_LEVEL_SVS >,
		< 342000000 RPM_SMD_REGULATOR_LEVEL_SVS >,
		< 414000000 RPM_SMD_REGULATOR_LEVEL_SVS >,
		< 515000000 RPM_SMD_REGULATOR_LEVEL_NOM >,
		< 596000000 RPM_SMD_REGULATOR_LEVEL_NOM >,
		< 670000000 RPM_SMD_REGULATOR_LEVEL_TURBO >,
		< 710000000 RPM_SMD_REGULATOR_LEVEL_TURBO >;
};

&mdss_mdp {
	qcom,vbif-settings = <0x00d0 0x00002020>;
	qcom,max-bandwidth-low-kbps = <9400000>;
	qcom,max-bandwidth-high-kbps = <9400000>;
	qcom,max-bandwidth-per-pipe-kbps = <4700000>;
};

&pm8998_s10 {
	regulator-min-microvolt = <568000>;
	regulator-max-microvolt = <1056000>;
};

&pm8998_s13 {
	regulator-min-microvolt = <568000>;
	regulator-max-microvolt = <1136000>;
};

&pcie0 {
	qcom,phy-sequence = <0x804 0x01 0x00
				0x034 0x14 0x00
				0x138 0x30 0x00
				0x048 0x0f 0x00
				0x15c 0x06 0x00
				0x090 0x01 0x00
				0x088 0x20 0x00
				0x0f0 0x00 0x00
				0x0f8 0x01 0x00
				0x0f4 0xc9 0x00
				0x11c 0xff 0x00
				0x120 0x3f 0x00
				0x164 0x01 0x00
				0x154 0x00 0x00
				0x148 0x0a 0x00
				0x05C 0x19 0x00
				0x038 0x90 0x00
				0x0b0 0x82 0x00
				0x0c0 0x03 0x00
				0x0bc 0x55 0x00
				0x0b8 0x55 0x00
				0x0a0 0x00 0x00
				0x09c 0x0d 0x00
				0x098 0x04 0x00
				0x13c 0x00 0x00
				0x060 0x08 0x00
				0x068 0x16 0x00
				0x070 0x34 0x00
				0x15c 0x06 0x00
				0x138 0x33 0x00
				0x03c 0x02 0x00
				0x040 0x07 0x00
				0x080 0x04 0x00
				0x0dc 0x00 0x00
				0x0d8 0x3f 0x00
				0x00c 0x09 0x00
				0x010 0x01 0x00
				0x01c 0x40 0x00
				0x020 0x01 0x00
				0x014 0x02 0x00
				0x018 0x00 0x00
				0x024 0x7e 0x00
				0x028 0x15 0x00
				0x244 0x02 0x00
				0x2a4 0x12 0x00
				0x260 0x10 0x00
				0x28c 0x06 0x00
				0x504 0x03 0x00
				0x500 0x1c 0x00
				0x50c 0x14 0x00
				0x4d4 0x0a 0x00
				0x4d8 0x04 0x00
				0x4dc 0x1a 0x00
				0x434 0x4b 0x00
				0x414 0x04 0x00
				0x40c 0x04 0x00
				0x4f8 0x00 0x00
				0x4fc 0x80 0x00
				0x51c 0x40 0x00
				0x444 0x71 0x00
				0x43c 0x40 0x00
				0x854 0x04 0x00
				0x62c 0x52 0x00
				0x9ac 0x00 0x00
				0x8a0 0x01 0x00
				0x9e0 0x00 0x00
				0x9dc 0x20 0x00
				0x9a8 0x00 0x00
				0x8a4 0x01 0x00
				0x8a8 0x73 0x00
				0x9d8 0x99 0x00
				0x9b0 0x03 0x00
				0x804 0x03 0x00
				0x800 0x00 0x00
				0x808 0x03 0x00>;
};

&apc0_cpr {
	compatible = "qcom,cprh-msm8998-v2-kbss-regulator";
	qcom,cpr-corner-switch-delay-time = <1042>;
	qcom,cpr-aging-ref-voltage = <1056000>;
	qcom,apm-threshold-voltage = <800000>;
	qcom,apm-hysteresis-voltage = <0>;
	qcom,mem-acc-threshold-voltage = <852000>;
	qcom,mem-acc-crossover-voltage = <852000>;
};

&apc0_pwrcl_vreg {
	regulator-max-microvolt = <23>;

	qcom,cpr-fuse-combos = <32>;
	qcom,cpr-speed-bins = <4>;
	qcom,cpr-speed-bin-corners = <22 22 22 22>;
	qcom,cpr-corners = <22>;

	qcom,cpr-corner-fmax-map = <8 11 18 22>;

	qcom,cpr-voltage-ceiling =
		<828000  828000  828000  828000  828000
		 828000  828000  828000  828000  828000
		 828000  900000  900000  900000  900000
		 900000  900000  900000  952000  952000
		1056000 1056000>;

	qcom,cpr-voltage-floor =
		<568000  568000  568000  568000  568000
		 568000  568000  568000  568000  568000
		 568000  632000  632000  632000  632000
		 632000  632000  632000  712000  712000
		 772000  772000>;

	qcom,cpr-floor-to-ceiling-max-range =
		<32000  32000  32000  32000
		 32000  32000  32000  32000
		 32000  32000  32000  32000
		 32000  32000  32000  32000
		 32000  32000  40000  40000
		 40000  40000>;

	qcom,corner-frequencies =
		<300000000  364800000  441600000
		 518400000  595200000  672000000
		 748800000  825600000  883200000
		 960000000 1036800000 1094400000
		1171200000 1248000000 1324800000
		1401600000 1478400000 1555200000
		1670400000 1747200000 1824000000
		1900800000>;

	qcom,cpr-ro-scaling-factor =
		<2595 2794 2577 2762 2471 2674 2199
		 2553 3189 3255 3192 2962 3054 2982
		 2042 2945>,
		<2595 2794 2577 2762 2471 2674 2199
		 2553 3189 3255 3192 2962 3054 2982
		 2042 2945>,
		<2391 2550 2483 2638 2382 2564 2259
		 2555 2766 3041 2988 2935 2873 2688
		 2013 2784>,
		<2066 2153 2300 2434 2220 2386 2288
		 2465 2028 2511 2487 2734 2554 2117
		 1892 2377>;

	qcom,cpr-open-loop-voltage-fuse-adjustment =
		/* Speed bin 0 */
		<40000  24000   12000  30000>,
		<40000  24000   12000  30000>,
		<40000  24000   12000  30000>,
		<40000  24000   12000  30000>,
		<40000  24000   12000  30000>,
		<40000  24000   12000  30000>,
		<40000  24000   12000  30000>,
		<40000  24000   12000  30000>,
		/* Speed bin 1 */
		<40000  24000   12000  30000>,
		<40000  24000   12000  30000>,
		<40000  24000   12000  30000>,
		<40000  24000   12000  30000>,
		<40000  24000   12000  30000>,
		<40000  24000   12000  30000>,
		<40000  24000   12000  30000>,
		<40000  24000   12000  30000>,
		/* Speed bin 2 */
		<40000  24000   12000  30000>,
		<40000  24000   12000  30000>,
		<40000  24000   12000  30000>,
		<40000  24000   12000  30000>,
		<40000  24000   12000  30000>,
		<40000  24000   12000  30000>,
		<40000  24000   12000  30000>,
		<40000  24000   12000  30000>,
		/* Speed bin 3 */
		<40000  24000   12000  30000>,
		<40000  24000   12000  30000>,
		<40000  24000   12000  30000>,
		<40000  24000   12000  30000>,
		<40000  24000   12000  30000>,
		<40000  24000   12000  30000>,
		<40000  24000   12000  30000>,
		<40000  24000   12000  30000>;

	qcom,cpr-closed-loop-voltage-fuse-adjustment =
		/* Speed bin 0 */
		<20000  26000   12000  30000>,
		<20000  26000   12000  30000>,
		<20000  26000   12000  30000>,
		<20000  26000   12000  30000>,
		<20000  26000   12000  30000>,
		<20000  26000   12000  30000>,
		<20000  26000   12000  30000>,
		<20000  26000   12000  30000>,
		/* Speed bin 1 */
		<20000  26000   12000  30000>,
		<20000  26000   12000  30000>,
		<20000  26000   12000  30000>,
		<20000  26000   12000  30000>,
		<20000  26000   12000  30000>,
		<20000  26000   12000  30000>,
		<20000  26000   12000  30000>,
		<20000  26000   12000  30000>,
		/* Speed bin 2 */
		<20000  26000   12000  30000>,
		<20000  26000   12000  30000>,
		<20000  26000   12000  30000>,
		<20000  26000   12000  30000>,
		<20000  26000   12000  30000>,
		<20000  26000   12000  30000>,
		<20000  26000   12000  30000>,
		<20000  26000   12000  30000>,
		/* Speed bin 3 */
		<20000  26000   12000  30000>,
		<20000  26000   12000  30000>,
		<20000  26000   12000  30000>,
		<20000  26000   12000  30000>,
		<20000  26000   12000  30000>,
		<20000  26000   12000  30000>,
		<20000  26000   12000  30000>,
		<20000  26000   12000  30000>;

	qcom,cpr-open-loop-voltage-adjustment =
		/* Speed bin 0 */
		<     0        0        0        0        0
		      0        0        0        0        0
		      0  (-12000) (-12000) (-12000) (-12000)
		(-12000) (-16000) (-16000) (-20000) (-24000)
		(-28000) (-28000)>,
		/* Speed bin 1 */
		<     0        0        0        0        0
		      0        0        0        0        0
		      0  (-12000) (-12000) (-12000) (-12000)
		(-12000) (-16000) (-16000) (-20000) (-24000)
		(-28000) (-28000)>,
		/* Speed bin 2 */
		<     0        0        0        0        0
		      0        0        0        0        0
		      0  (-12000) (-12000) (-12000) (-12000)
		(-12000) (-16000) (-16000) (-20000) (-24000)
		(-28000) (-28000)>,
		/* Speed bin 3 */
		<     0        0        0        0        0
		      0        0        0        0        0
		      0  (-12000) (-12000) (-12000) (-12000)
		(-12000) (-16000) (-16000) (-20000) (-24000)
		(-28000) (-28000)>;

	qcom,cpr-closed-loop-voltage-adjustment =
		/* Speed bin 0 */
		<     0        0        0        0        0
		      0        0        0        0        0
		      0  (-10000) (-11000) (-12000) (-13000)
		(-14000) (-14000) (-15000) (-21000) (-24000)
		(-26000) (-28000)>,
		/* Speed bin 1 */
		<     0        0        0        0        0
		      0        0        0        0        0
		      0  (-10000) (-11000) (-12000) (-13000)
		(-14000) (-14000) (-15000) (-21000) (-24000)
		(-26000) (-28000)>,
		/* Speed bin 2 */
		<     0        0        0        0        0
		      0        0        0        0        0
		      0  (-10000) (-11000) (-12000) (-13000)
		(-14000) (-14000) (-15000) (-21000) (-24000)
		(-26000) (-28000)>,
		/* Speed bin 3 */
		<     0        0        0        0        0
		      0        0        0        0        0
		      0  (-10000) (-11000) (-12000) (-13000)
		(-14000) (-14000) (-15000) (-21000) (-24000)
		(-26000) (-28000)>;

	qcom,allow-voltage-interpolation;
	qcom,allow-quotient-interpolation;
	qcom,cpr-scaled-open-loop-voltage-as-ceiling;

	qcom,cpr-aging-ref-corner = <22>;
	qcom,cpr-aging-ro-scaling-factor = <1620>;
	qcom,allow-aging-voltage-adjustment = <0>;
};

&apc1_cpr {
	compatible = "qcom,cprh-msm8998-v2-kbss-regulator";
	qcom,cpr-corner-switch-delay-time = <1042>;
	qcom,cpr-aging-ref-voltage = <1136000>;
	qcom,apm-threshold-voltage = <800000>;
	qcom,apm-hysteresis-voltage = <0>;
	qcom,mem-acc-threshold-voltage = <852000>;
	qcom,mem-acc-crossover-voltage = <852000>;
};

&apc1_perfcl_vreg {
	regulator-max-microvolt = <34>;

	qcom,cpr-fuse-combos = <32>;
	qcom,cpr-speed-bins = <4>;
	qcom,cpr-speed-bin-corners = <32 26 30 31>;
	qcom,cpr-corners =
		/* Speed bin 0 */
		<32 32 32 32 32 32 32 32>,
		/* Speed bin 1 */
		<26 26 26 26 26 26 26 26>,
		/* Speed bin 2 */
		<30 30 30 30 30 30 30 30>,
		/* Speed bin 3 */
		<31 31 31 31 31 31 31 31>;

	qcom,cpr-corner-fmax-map =
		/* Speed bin 0 */
		<8 12 20 32>,
		/* Speed bin 1 */
		<8 12 20 26>,
		/* Speed bin 2 */
		<8 12 20 30>,
		/* Speed bin 3 */
		<8 12 20 31>;

	qcom,cpr-voltage-ceiling =
		/* Speed bin 0 */
		<828000  828000  828000  828000  828000
		 828000  828000  828000  828000  828000
		 828000  828000  900000  900000  900000
		 900000  900000  900000  900000  900000
		 952000  952000  952000 1136000 1136000
		1136000 1136000 1136000 1136000 1136000
		1136000 1136000>,
		/* Speed bin 1 */
		<828000  828000  828000  828000  828000
		 828000  828000  828000  828000  828000
		 828000  828000  900000  900000  900000
		 900000  900000  900000  900000  900000
		 952000  952000  952000 1136000 1136000
		1136000>,
		/* Speed bin 2 */
		<828000  828000  828000  828000  828000
		 828000  828000  828000  828000  828000
		 828000  828000  900000  900000  900000
		 900000  900000  900000  900000  900000
		 952000  952000  952000 1136000 1136000
		1136000 1136000 1136000 1136000 1136000>,
		/* Speed bin 3 */
		<828000  828000  828000  828000  828000
		 828000  828000  828000  828000  828000
		 828000  828000  900000  900000  900000
		 900000  900000  900000  900000  900000
		 952000  952000  952000 1136000 1136000
		1136000 1136000 1136000 1136000 1136000
		1136000>;

	qcom,cpr-voltage-floor =
		/* Speed bin 0 */
		<568000  568000  568000  568000  568000
		 568000  568000  568000  568000  568000
		 568000  568000  632000  632000  632000
		 632000  632000  632000  632000  632000
		 712000  712000  712000  772000  772000
		 772000  772000  772000  772000  772000
		 772000  772000>,
		/* Speed bin 1 */
		<568000  568000  568000  568000  568000
		 568000  568000  568000  568000  568000
		 568000  568000  632000  632000  632000
		 632000  632000  632000  632000  632000
		 712000  712000  712000  772000  772000
		 772000>,
		/* Speed bin 2 */
		<568000  568000  568000  568000  568000
		 568000  568000  568000  568000  568000
		 568000  568000  632000  632000  632000
		 632000  632000  632000  632000  632000
		 712000  712000  712000  772000  772000
		 772000  772000  772000  772000  772000>,
		/* Speed bin 3 */
		<568000  568000  568000  568000  568000
		 568000  568000  568000  568000  568000
		 568000  568000  632000  632000  632000
		 632000  632000  632000  632000  632000
		 712000  712000  712000  772000  772000
		 772000  772000  772000  772000  772000
		 772000>;

	qcom,cpr-floor-to-ceiling-max-range =
		/* Speed bin 0 */
		<32000  32000  32000  32000
		 32000  32000  32000  32000
		 32000  32000  32000  32000
		 32000  32000  32000  32000
		 32000  32000  32000  32000
		 40000  40000  40000  40000
		 40000  40000  40000  40000
		 40000  40000  40000  40000>,
		/* Speed bin 1 */
		<32000  32000  32000  32000
		 32000  32000  32000  32000
		 32000  32000  32000  32000
		 32000  32000  32000  32000
		 32000  32000  32000  32000
		 40000  40000  40000  40000
		 40000  40000>,
		/* Speed bin 2 */
		<32000  32000  32000  32000
		 32000  32000  32000  32000
		 32000  32000  32000  32000
		 32000  32000  32000  32000
		 32000  32000  32000  32000
		 40000  40000  40000  40000
		 40000  40000  40000  40000
		 40000  40000>,
		/* Speed bin 3 */
		<32000  32000  32000  32000
		 32000  32000  32000  32000
		 32000  32000  32000  32000
		 32000  32000  32000  32000
		 32000  32000  32000  32000
		 40000  40000  40000  40000
		 40000  40000  40000  40000
		 40000  40000  40000>;

	qcom,corner-frequencies =
		/* Speed bin 0 */
		<300000000  345600000  422400000
		 499200000  576000000  652800000
		 729600000  806400000  902400000
		 979200000 1056000000 1132800000
		1190400000 1267200000 1344000000
		1420800000 1497600000 1574400000
		1651200000 1728000000 1804800000
		1881600000 1958400000 2035200000
		2112000000 2208000000 2265600000
		2342400000 2419200000 2457600000
		2476800000 2496000000>,
		/* Speed bin 1 */
		<300000000  345600000  422400000
		 499200000  576000000  652800000
		 729600000  806400000  902400000
		 979200000 1056000000 1132800000
		1190400000 1267200000 1344000000
		1420800000 1497600000 1574400000
		1651200000 1728000000 1804800000
		1881600000 1958400000 2035200000
		2112000000 2208000000>,
		/* Speed bin 2 */
		<300000000  345600000  422400000
		 499200000  576000000  652800000
		 729600000  806400000  902400000
		 979200000 1056000000 1132800000
		1190400000 1267200000 1344000000
		1420800000 1497600000 1574400000
		1651200000 1728000000 1804800000
		1881600000 1958400000 2035200000
		2112000000 2208000000 2265600000
		2323200000 2342400000 2361600000>,
		/* Speed bin 3 */
		<300000000  345600000  422400000
		 499200000  576000000  652800000
		 729600000  806400000  902400000
		 979200000 1056000000 1132800000
		1190400000 1267200000 1344000000
		1420800000 1497600000 1574400000
		1651200000 1728000000 1804800000
		1881600000 1958400000 2035200000
		2112000000 2208000000 2265600000
		2323200000 2342400000 2361600000
		2457600000>;

	qcom,cpr-ro-scaling-factor =
		<2857 3057 2828 2952 2699 2798 2446
		 2631 2629 2578 2244 3344 3289 3137
		 3164 2655>,
		<2857 3057 2828 2952 2699 2798 2446
		 2631 2629 2578 2244 3344 3289 3137
		 3164 2655>,
		<2603 2755 2676 2777 2573 2685 2465
		 2610 2312 2423 2243 3104 3022 3036
		 2740 2303>,
		<1901 2016 2096 2228 2034 2161 2077
		 2188 1565 1870 1925 2235 2205 2413
		 1762 1478>;

	qcom,cpr-open-loop-voltage-fuse-adjustment =
		/* Speed bin 0 */
		<  8000        0   12000  52000>,
		<  8000        0   12000  52000>,
		<  8000        0   12000  52000>,
		<  8000        0   12000  52000>,
		<  8000        0   12000  52000>,
		<  8000        0   12000  52000>,
		<  8000        0   12000  52000>,
		<  8000        0   12000  52000>,
		/* Speed bin 1 */
		<  8000        0   12000  52000>,
		<  8000        0   12000  52000>,
		<  8000        0   12000  52000>,
		<  8000        0   12000  52000>,
		<  8000        0   12000  52000>,
		<  8000        0   12000  52000>,
		<  8000        0   12000  52000>,
		<  8000        0   12000  52000>,
		/* Speed bin 2 */
		<  8000        0   12000  52000>,
		<  8000        0   12000  52000>,
		<  8000        0   12000  52000>,
		<  8000        0   12000  52000>,
		<  8000        0   12000  52000>,
		<  8000        0   12000  52000>,
		<  8000        0   12000  52000>,
		<  8000        0   12000  52000>,
		/* Speed bin 3 */
		<  8000        0   12000  52000>,
		<  8000        0   12000  52000>,
		<  8000        0   12000  52000>,
		<  8000        0   12000  52000>,
		<  8000        0   12000  52000>,
		<  8000        0   12000  52000>,
		<  8000        0   12000  52000>,
		<  8000        0   12000  52000>;

	qcom,cpr-closed-loop-voltage-fuse-adjustment =
		/* Speed bin 0 */
		<      0        0   12000  50000>,
		<      0        0   12000  50000>,
		<      0        0   12000  50000>,
		<      0        0   12000  50000>,
		<      0        0   12000  50000>,
		<      0        0   12000  50000>,
		<      0        0   12000  50000>,
		<      0        0   12000  50000>,
		/* Speed bin 1 */
		<      0        0   12000  50000>,
		<      0        0   12000  50000>,
		<      0        0   12000  50000>,
		<      0        0   12000  50000>,
		<      0        0   12000  50000>,
		<      0        0   12000  50000>,
		<      0        0   12000  50000>,
		<      0        0   12000  50000>,
		/* Speed bin 2 */
		<      0        0   12000  50000>,
		<      0        0   12000  50000>,
		<      0        0   12000  50000>,
		<      0        0   12000  50000>,
		<      0        0   12000  50000>,
		<      0        0   12000  50000>,
		<      0        0   12000  50000>,
		<      0        0   12000  50000>,
		/* Speed bin 3 */
		<      0        0   12000  50000>,
		<      0        0   12000  50000>,
		<      0        0   12000  50000>,
		<      0        0   12000  50000>,
		<      0        0   12000  50000>,
		<      0        0   12000  50000>,
		<      0        0   12000  50000>,
		<      0        0   12000  50000>;

	qcom,cpr-open-loop-voltage-adjustment =
		/* Speed bin 0 */
		<     0        0        0        0        0
		      0        0        0        0        0
		      0   (-8000) (-12000) (-12000) (-12000)
		(-12000) (-12000) (-12000) (-16000) (-16000)
		(-20000) (-16000) (-16000) (-16000) (-12000)
		(-28000) (-28000) (-28000) (-28000) (-28000)
		(-28000) (-28000)>,
		/* Speed bin 1 */
		<     0        0        0        0        0
		      0        0        0        0        0
		      0   (-8000) (-12000) (-12000) (-12000)
		(-12000) (-12000) (-12000) (-16000) (-16000)
		(-20000) (-16000) (-16000) (-16000) (-16000)
		(-28000)>,
		/* Speed bin 2 */
		<     0        0        0        0        0
		      0        0        0        0        0
		      0   (-8000) (-12000) (-12000) (-12000)
		(-12000) (-12000) (-12000) (-16000) (-16000)
		(-20000) (-16000) (-16000) (-16000) (-12000)
		(-28000) (-28000) (-28000) (-28000) (-28000)>,
		/* Speed bin 3 */
		<     0        0        0        0        0
		      0        0        0        0        0
		      0   (-8000) (-12000) (-12000) (-12000)
		(-12000) (-12000) (-12000) (-16000) (-16000)
		(-20000) (-16000) (-16000) (-16000) (-12000)
		(-28000) (-28000) (-28000) (-28000) (-28000)
		(-28000)>;

	qcom,cpr-closed-loop-voltage-adjustment =
		/* Speed bin 0 */
		<     0        0        0        0        0
		      0        0        0        0        0
		      0  (-10000) (-10000) (-11000) (-12000)
		(-12000) (-13000) (-14000) (-14000) (-15000)
		(-16000) (-16000) (-17000) (-15000) (-13000)
		(-26000) (-26000) (-27000) (-27000) (-28000)
		(-28000) (-28000)>,
		/* Speed bin 1 */
		<     0        0        0        0        0
		      0        0        0        0        0
		      0  (-10000) (-10000) (-11000) (-12000)
		(-12000) (-13000) (-14000) (-14000) (-15000)
		(-16000) (-16000) (-17000) (-16000) (-15000)
		(-28000)>,
		/* Speed bin 2 */
		<     0        0        0        0        0
		      0        0        0        0        0
		      0  (-10000) (-10000) (-11000) (-12000)
		(-12000) (-13000) (-14000) (-14000) (-15000)
		(-16000) (-16000) (-17000) (-15000) (-14000)
		(-27000) (-27000) (-28000) (-28000) (-28000)>,
		/* Speed bin 3 */
		<     0        0        0        0        0
		      0        0        0        0        0
		      0  (-10000) (-10000) (-11000) (-12000)
		(-12000) (-13000) (-14000) (-14000) (-15000)
		(-16000) (-16000) (-17000) (-15000) (-14000)
		(-26000) (-27000) (-27000) (-28000) (-28000)
		(-28000)>;

	qcom,allow-voltage-interpolation;
	qcom,allow-quotient-interpolation;
	qcom,cpr-scaled-open-loop-voltage-as-ceiling;

	qcom,cpr-aging-ref-corner = <32 26 30 31>;
	qcom,cpr-aging-ro-scaling-factor = <1700>;
	qcom,allow-aging-voltage-adjustment = <0>;
};

&pm8005_s1 {
	regulator-min-microvolt = <516000>;
	regulator-max-microvolt = <1088000>;
};

&gfx_cpr {
	compatible = "qcom,cpr4-msm8998-v2-mmss-regulator";
	qcom,cpr-aging-ref-voltage = <1088000>;
};

&gfx_vreg {
	regulator-min-microvolt = <1>;
	regulator-max-microvolt = <8>;

	qcom,cpr-fuse-corners = <4>;
	qcom,cpr-fuse-combos = <8>;
	qcom,cpr-corners = <8>;

	qcom,cpr-corner-fmax-map = <1 3 5 8>;

	qcom,cpr-voltage-ceiling =
		<716000 716000 772000 880000 908000 948000 1016000 1088000>,
		<724000 724000 772000 832000 916000 968000 1024000 1088000>,
		<724000 724000 772000 832000 916000 968000 1024000 1088000>,
		<724000 724000 772000 832000 916000 968000 1024000 1088000>,
		<724000 724000 772000 832000 916000 968000 1024000 1088000>,
		<724000 724000 772000 832000 916000 968000 1024000 1088000>,
		<724000 724000 772000 832000 916000 968000 1024000 1088000>,
		<724000 724000 772000 832000 916000 968000 1024000 1088000>;

	qcom,cpr-voltage-floor =
		<516000 516000 532000 584000 632000 672000 712000 756000>;

	qcom,mem-acc-voltage = <1 1 1 2 2 2 2 2>;

	qcom,corner-frequencies =
		<180000000 257000000 342000000 414000000
		 515000000 596000000 670000000 710000000>;

	qcom,cpr-target-quotients =
		<   0    0    0    0  331  357    0    0
		    0    0    0    0    0    0  115    0>,
		<   0    0    0    0  467  500    0    0
		    0    0    0    0    0    0  199    0>,
		<   0    0    0    0  628  665    0    0
		    0    0    0    0    0    0  290    0>,
		<   0    0    0    0  762  805    0    0
		    0    0    0    0    0    0  397    0>,
		<   0    0    0    0  964 1013    0    0
		    0    0 1143    0 1138 1055    0    0>,
		<   0    0    0    0    0    0    0    0
		    0    0 1306    0 1289 1168    0    0>,
		<   0    0    0    0    0    0    0    0
		    0    0 1468    0 1429 1256    0    0>,
		<   0    0    0    0    0    0    0    0
		    0    0 1627    0 1578 1353    0    0>;

	qcom,cpr-ro-scaling-factor =
		<   0    0    0    0 2377 2571    0    0
		    0    0 2168    0 2209 1849 1997    0>,
		<   0    0    0    0 2377 2571    0    0
		    0    0 2168    0 2209 1849 1997    0>,
		<   0    0    0    0 2377 2571    0    0
		    0    0 2168    0 2209 1849 1997    0>,
		<   0    0    0    0 2377 2571    0    0
		    0    0 2168    0 2209 1849 1997    0>,
		<   0    0    0    0 2377 2571    0    0
		    0    0 2168    0 2209 1849 1997    0>,
		<   0    0    0    0 2377 2571    0    0
		    0    0 2168    0 2209 1849 1997    0>,
		<   0    0    0    0 2377 2571    0    0
		    0    0 2168    0 2209 1849 1997    0>,
		<   0    0    0    0 2377 2571    0    0
		    0    0 2168    0 2209 1849 1997    0>;

	qcom,cpr-open-loop-voltage-fuse-adjustment =
		<   60000        0        0        0>,
		<   60000        0        0        0>,
		<   60000        0        0        0>,
		<   60000        0        0        0>,
		<   60000        0        0        0>,
		<   60000        0        0        0>,
		<   60000        0        0        0>,
		<   60000        0        0        0>;

	qcom,cpr-closed-loop-voltage-adjustment =
		<   90000    38000    28000     8000
			0    29000    11000        0>,
		<   90000    38000    28000     8000
			0    29000    11000        0>,
		<   90000    38000    28000     8000
			0    29000    11000        0>,
		<   90000    38000    28000     8000
			0    29000    11000        0>,
		<   90000    38000    28000     8000
			0    29000    11000        0>,
		<   90000    38000    28000     8000
			0    29000    11000        0>,
		<   90000    38000    28000     8000
			0    29000    11000        0>,
		<   90000    38000    28000     8000
			0    29000    11000        0>;

	qcom,cpr-floor-to-ceiling-max-range =
	       <40000 40000 40000 40000 40000 40000 50000 50000>;

	qcom,cpr-fused-closed-loop-voltage-adjustment-map =
		<0 0 0 0 1 2 3 4>;

	qcom,allow-voltage-interpolation;
	qcom,cpr-scaled-open-loop-voltage-as-ceiling;

	qcom,cpr-aging-max-voltage-adjustment = <15000>;
	qcom,cpr-aging-ref-corner = <8>;
	qcom,cpr-aging-ro-scaling-factor = <1620>;
	qcom,allow-aging-voltage-adjustment = <0>;
};

&qusb_phy0 {
	reg = <0x0c012000 0x2a8>,
	      <0x01fcb24c 0x4>,
	      <0x00784238 0x4>;
	reg-names = "qusb_phy_base",
			"tcsr_clamp_dig_n_1p8",
			"efuse_addr";
	qcom,efuse-bit-pos = <16>;
	qcom,efuse-num-bits = <4>;
	qcom,qusb-phy-init-seq =
			/* <value reg_offset> */
				<0x13 0x04 /* analog_controls_two */
				0x7c 0x18c /* pll_clock_inverter */
				0x80 0x2c /* pll_cmode */
				0x0a 0x184 /* pll_lock_delay */
				0xa5 0x23c /* tune1 */
				0x09 0x240 /* tune2 */
				0x19 0xb4>; /* digital_timers_two */
};

&msm_vidc {
	qcom,load-freq-tbl =
		/* Encoders */
		<1105920 533000000 0x55555555>, /* 4kx2304@30 */ /*TURBO*/
		<1036800 444000000 0x55555555>, /* 720p@240, 1080p@120,1440p@60,
						 * UHD@30 */ /*NOMINAL*/
		< 829440 355200000 0x55555555>, /* UHD/4096x2160@30 SVSL1 */
		< 489600 269330000 0x55555555>, /* 1080p@60, 720p@120 SVS */
		< 345600 200000000 0x55555555>, /* 2560x1440@24, 1080p@30 */
						/* SVS2 */

		/* Decoders */
		<2211840 533000000 0xffffffff>, /* 4kx2304@60, 1080p@240 */
						/* TURBO */
		<1728000 444000000 0xffffffff>, /* 2560x1440@120 */
						/* NOMINAL */
		<1675472 355200000 0xffffffff>, /* 4kx2304@44 */ /*SVSL1*/
		<1105920 269330000 0xffffffff>, /* UHD/4k2304@30, 1080p@120 */
						/* SVS */
		< 829440 200000000 0xffffffff>; /* 720p@120, 1080p@60 */
						/* SVS2 */

	qcom,imem-ab-tbl =
		<200000000 1560000>,/* imem @ svs2 freq 75 Mhz */
		<269330000 3570000>,/* imem @ svs freq 171 Mhz */
		<355200000 3570000>,/* imem @ svs freq 171 Mhz */
		<444000000 6750000>,/* imem @ nom freq 323 Mhz */
		<533000000 8490000>;/* imem @ turbo freq 406 Mhz */

	qcom,dcvs-tbl = /* minLoad LoadLow LoadHigh CodecCheck */
		/* Decode */
		/* Load > Nominal, Nominal <-> Turbo Eg.3840x2160@60 */
		<1728000 1728000 2211840 0x3f00000c>,
		/* Encoder */
		/* Load > Nominal, Nominal <-> Turbo Eg. 4kx2304@30 */
		<1036800 1036800 1105920 0x04000004>,
		/* Load > SVSL1, SVSL1<-> Nominal Eg. 3840x2160@30 */
		< 829440  829440 1036800 0x04000004>,
		/* Load > SVS , SVS <-> SVSL1 Eg. 4kx2304@24 */
		< 489600  489600  829440 0x04000004>;

	qcom,dcvs-limit = /* Min Frame size, Min MBs/sec */
		<32400 30>, /* Encoder 3840x2160@30 */
		<32400 60>; /* Decoder 3840x2160@60 */

};

&soc {
	/* Gold L2 SAW */
	qcom,spm@178120000 {
		qcom,saw2-avs-limit = <0x4700470>;
	};

	/* Silver L2 SAW */
	qcom,spm@179120000 {
		qcom,saw2-avs-limit = <0x4200420>;
	};
};

/* GPU overrides */
&msm_gpu {
	/* Updated chip ID */
	qcom,chipid = <0x05040001>;
	qcom,initial-pwrlevel = <6>;

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

		compatible = "qcom,gpu-pwrlevels";

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

		qcom,gpu-pwrlevel@1 {
			reg = <1>;
			qcom,gpu-freq = <670000000>;
			qcom,bus-freq = <12>;
			qcom,bus-min = <11>;
			qcom,bus-max = <12>;
		};

		qcom,gpu-pwrlevel@2 {
			reg = <2>;
			qcom,gpu-freq = <596000000>;
			qcom,bus-freq = <11>;
			qcom,bus-min = <9>;
			qcom,bus-max = <12>;
		};

		qcom,gpu-pwrlevel@3 {
			reg = <3>;
			qcom,gpu-freq = <515000000>;
			qcom,bus-freq = <11>;
			qcom,bus-min = <9>;
			qcom,bus-max = <12>;
		};

		qcom,gpu-pwrlevel@4 {
			reg = <4>;
			qcom,gpu-freq = <414000000>;
			qcom,bus-freq = <9>;
			qcom,bus-min = <8>;
			qcom,bus-max = <11>;
		};

		qcom,gpu-pwrlevel@5 {
			reg = <5>;
			qcom,gpu-freq = <342000000>;
			qcom,bus-freq = <8>;
			qcom,bus-min = <5>;
			qcom,bus-max = <9>;
		};

		qcom,gpu-pwrlevel@6 {
			reg = <6>;
			qcom,gpu-freq = <257000000>;
			qcom,bus-freq = <5>;
			qcom,bus-min = <3>;
			qcom,bus-max = <8>;
		};

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

&spss_utils {
	qcom,spss-test-firmware-name = "spss2t";	/* 8 chars max */
	qcom,spss-prod-firmware-name = "spss2p";	/* 8 chars max */
	qcom,spss-hybr-firmware-name = "spss2h";	/* 8 chars max */
};

&ufs1 {
	clock-names =
		"core_clk",
		"bus_aggr_clk",
		"iface_clk",
		"core_clk_unipro",
		"core_clk_ice",
		"ref_clk",
		"tx_lane0_sync_clk",
		"rx_lane0_sync_clk",
		"rx_lane1_sync_clk";
	clocks =
		<&clock_gcc clk_gcc_ufs_axi_hw_ctl_clk>,
		<&clock_gcc clk_gcc_aggre1_ufs_axi_clk>,
		<&clock_gcc clk_gcc_ufs_ahb_clk>,
		<&clock_gcc clk_gcc_ufs_unipro_core_hw_ctl_clk>,
		<&clock_gcc clk_gcc_ufs_ice_core_hw_ctl_clk>,
		<&clock_gcc clk_ln_bb_clk1>,
		<&clock_gcc clk_gcc_ufs_tx_symbol_0_clk>,
		<&clock_gcc clk_gcc_ufs_rx_symbol_0_clk>,
		<&clock_gcc clk_gcc_ufs_rx_symbol_1_clk>;
	freq-table-hz =
		<50000000 200000000>,
		<0 0>,
		<0 0>,
		<37500000 150000000>,
		<75000000 300000000>,
		<0 0>,
		<0 0>,
		<0 0>,
		<0 0>;

	lanes-per-direction = <2>;
};

&ssc_sensors {
	qcom,firmware-name = "slpi_v2";
};