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
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
|
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (c) 2021, The Linux Foundation. All rights reserved.
* Copyright (c) 2022, Qualcomm Innovation Center, Inc. All rights reserved.
* Copyright (c) 2023, Linaro Limited
*/
#include <dt-bindings/interconnect/qcom,sm6115.h>
#include <linux/device.h>
#include <linux/interconnect-provider.h>
#include <linux/mod_devicetable.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/regmap.h>
#include "icc-rpm.h"
static const char * const snoc_intf_clocks[] = {
"cpu_axi",
"ufs_axi",
"usb_axi",
"ipa", /* Required by qxm_ipa */
};
static const char * const cnoc_intf_clocks[] = {
"usb_axi",
};
enum {
SM6115_MASTER_AMPSS_M0,
SM6115_MASTER_ANOC_SNOC,
SM6115_MASTER_BIMC_SNOC,
SM6115_MASTER_CAMNOC_HF,
SM6115_MASTER_CAMNOC_SF,
SM6115_MASTER_CRYPTO_CORE0,
SM6115_MASTER_GRAPHICS_3D,
SM6115_MASTER_IPA,
SM6115_MASTER_MDP_PORT0,
SM6115_MASTER_PIMEM,
SM6115_MASTER_QDSS_BAM,
SM6115_MASTER_QDSS_DAP,
SM6115_MASTER_QDSS_ETR,
SM6115_MASTER_QPIC,
SM6115_MASTER_QUP_0,
SM6115_MASTER_QUP_CORE_0,
SM6115_MASTER_SDCC_1,
SM6115_MASTER_SDCC_2,
SM6115_MASTER_SNOC_BIMC_NRT,
SM6115_MASTER_SNOC_BIMC_RT,
SM6115_MASTER_SNOC_BIMC,
SM6115_MASTER_SNOC_CFG,
SM6115_MASTER_SNOC_CNOC,
SM6115_MASTER_TCU_0,
SM6115_MASTER_TIC,
SM6115_MASTER_USB3,
SM6115_MASTER_VIDEO_P0,
SM6115_MASTER_VIDEO_PROC,
SM6115_SLAVE_AHB2PHY_USB,
SM6115_SLAVE_ANOC_SNOC,
SM6115_SLAVE_APPSS,
SM6115_SLAVE_APSS_THROTTLE_CFG,
SM6115_SLAVE_BIMC_CFG,
SM6115_SLAVE_BIMC_SNOC,
SM6115_SLAVE_BOOT_ROM,
SM6115_SLAVE_CAMERA_CFG,
SM6115_SLAVE_CAMERA_NRT_THROTTLE_CFG,
SM6115_SLAVE_CAMERA_RT_THROTTLE_CFG,
SM6115_SLAVE_CLK_CTL,
SM6115_SLAVE_CNOC_MSS,
SM6115_SLAVE_CRYPTO_0_CFG,
SM6115_SLAVE_DCC_CFG,
SM6115_SLAVE_DDR_PHY_CFG,
SM6115_SLAVE_DDR_SS_CFG,
SM6115_SLAVE_DISPLAY_CFG,
SM6115_SLAVE_DISPLAY_THROTTLE_CFG,
SM6115_SLAVE_EBI_CH0,
SM6115_SLAVE_GPU_CFG,
SM6115_SLAVE_GPU_THROTTLE_CFG,
SM6115_SLAVE_HWKM_CORE,
SM6115_SLAVE_IMEM_CFG,
SM6115_SLAVE_IPA_CFG,
SM6115_SLAVE_LPASS,
SM6115_SLAVE_MAPSS,
SM6115_SLAVE_MDSP_MPU_CFG,
SM6115_SLAVE_MESSAGE_RAM,
SM6115_SLAVE_OCIMEM,
SM6115_SLAVE_PDM,
SM6115_SLAVE_PIMEM_CFG,
SM6115_SLAVE_PIMEM,
SM6115_SLAVE_PKA_CORE,
SM6115_SLAVE_PMIC_ARB,
SM6115_SLAVE_QDSS_CFG,
SM6115_SLAVE_QDSS_STM,
SM6115_SLAVE_QM_CFG,
SM6115_SLAVE_QM_MPU_CFG,
SM6115_SLAVE_QPIC,
SM6115_SLAVE_QUP_0,
SM6115_SLAVE_QUP_CORE_0,
SM6115_SLAVE_RBCPR_CX_CFG,
SM6115_SLAVE_RBCPR_MX_CFG,
SM6115_SLAVE_RPM,
SM6115_SLAVE_SDCC_1,
SM6115_SLAVE_SDCC_2,
SM6115_SLAVE_SECURITY,
SM6115_SLAVE_SERVICE_CNOC,
SM6115_SLAVE_SERVICE_SNOC,
SM6115_SLAVE_SNOC_BIMC_NRT,
SM6115_SLAVE_SNOC_BIMC_RT,
SM6115_SLAVE_SNOC_BIMC,
SM6115_SLAVE_SNOC_CFG,
SM6115_SLAVE_SNOC_CNOC,
SM6115_SLAVE_TCSR,
SM6115_SLAVE_TCU,
SM6115_SLAVE_TLMM,
SM6115_SLAVE_USB3,
SM6115_SLAVE_VENUS_CFG,
SM6115_SLAVE_VENUS_THROTTLE_CFG,
SM6115_SLAVE_VSENSE_CTRL_CFG,
};
static const u16 slv_ebi_slv_bimc_snoc_links[] = {
SM6115_SLAVE_EBI_CH0,
SM6115_SLAVE_BIMC_SNOC,
};
static struct qcom_icc_node apps_proc = {
.name = "apps_proc",
.id = SM6115_MASTER_AMPSS_M0,
.channels = 1,
.buswidth = 16,
.qos.qos_port = 0,
.qos.qos_mode = NOC_QOS_MODE_FIXED,
.qos.prio_level = 0,
.qos.areq_prio = 0,
.mas_rpm_id = 0,
.slv_rpm_id = -1,
.num_links = ARRAY_SIZE(slv_ebi_slv_bimc_snoc_links),
.links = slv_ebi_slv_bimc_snoc_links,
};
static const u16 link_slv_ebi[] = {
SM6115_SLAVE_EBI_CH0,
};
static struct qcom_icc_node mas_snoc_bimc_rt = {
.name = "mas_snoc_bimc_rt",
.id = SM6115_MASTER_SNOC_BIMC_RT,
.channels = 1,
.buswidth = 16,
.qos.qos_port = 2,
.qos.qos_mode = NOC_QOS_MODE_BYPASS,
.qos.areq_prio = 0,
.qos.prio_level = 0,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
.num_links = ARRAY_SIZE(link_slv_ebi),
.links = link_slv_ebi,
};
static struct qcom_icc_node mas_snoc_bimc_nrt = {
.name = "mas_snoc_bimc_nrt",
.id = SM6115_MASTER_SNOC_BIMC_NRT,
.channels = 1,
.buswidth = 16,
.qos.qos_port = 3,
.qos.qos_mode = NOC_QOS_MODE_BYPASS,
.qos.areq_prio = 0,
.qos.prio_level = 0,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
.num_links = ARRAY_SIZE(link_slv_ebi),
.links = link_slv_ebi,
};
static struct qcom_icc_node mas_snoc_bimc = {
.name = "mas_snoc_bimc",
.id = SM6115_MASTER_SNOC_BIMC,
.channels = 1,
.buswidth = 16,
.qos.qos_port = 6,
.qos.qos_mode = NOC_QOS_MODE_BYPASS,
.qos.areq_prio = 0,
.qos.prio_level = 0,
.mas_rpm_id = 3,
.slv_rpm_id = -1,
.num_links = ARRAY_SIZE(link_slv_ebi),
.links = link_slv_ebi,
};
static struct qcom_icc_node qnm_gpu = {
.name = "qnm_gpu",
.id = SM6115_MASTER_GRAPHICS_3D,
.channels = 1,
.buswidth = 32,
.qos.qos_port = 1,
.qos.qos_mode = NOC_QOS_MODE_FIXED,
.qos.prio_level = 0,
.qos.areq_prio = 0,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
.num_links = ARRAY_SIZE(slv_ebi_slv_bimc_snoc_links),
.links = slv_ebi_slv_bimc_snoc_links,
};
static struct qcom_icc_node tcu_0 = {
.name = "tcu_0",
.id = SM6115_MASTER_TCU_0,
.channels = 1,
.buswidth = 8,
.qos.qos_port = 4,
.qos.qos_mode = NOC_QOS_MODE_FIXED,
.qos.prio_level = 6,
.qos.areq_prio = 6,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
.num_links = ARRAY_SIZE(slv_ebi_slv_bimc_snoc_links),
.links = slv_ebi_slv_bimc_snoc_links,
};
static const u16 qup_core_0_links[] = {
SM6115_SLAVE_QUP_CORE_0,
};
static struct qcom_icc_node qup0_core_master = {
.name = "qup0_core_master",
.id = SM6115_MASTER_QUP_CORE_0,
.channels = 1,
.buswidth = 4,
.mas_rpm_id = 170,
.slv_rpm_id = -1,
.num_links = ARRAY_SIZE(qup_core_0_links),
.links = qup_core_0_links,
};
static const u16 link_slv_anoc_snoc[] = {
SM6115_SLAVE_ANOC_SNOC,
};
static struct qcom_icc_node crypto_c0 = {
.name = "crypto_c0",
.id = SM6115_MASTER_CRYPTO_CORE0,
.channels = 1,
.buswidth = 8,
.qos.qos_port = 22,
.qos.qos_mode = NOC_QOS_MODE_FIXED,
.qos.areq_prio = 2,
.mas_rpm_id = 23,
.slv_rpm_id = -1,
.num_links = ARRAY_SIZE(link_slv_anoc_snoc),
.links = link_slv_anoc_snoc,
};
static const u16 mas_snoc_cnoc_links[] = {
SM6115_SLAVE_AHB2PHY_USB,
SM6115_SLAVE_APSS_THROTTLE_CFG,
SM6115_SLAVE_BIMC_CFG,
SM6115_SLAVE_BOOT_ROM,
SM6115_SLAVE_CAMERA_CFG,
SM6115_SLAVE_CAMERA_NRT_THROTTLE_CFG,
SM6115_SLAVE_CAMERA_RT_THROTTLE_CFG,
SM6115_SLAVE_CLK_CTL,
SM6115_SLAVE_CNOC_MSS,
SM6115_SLAVE_CRYPTO_0_CFG,
SM6115_SLAVE_DCC_CFG,
SM6115_SLAVE_DDR_PHY_CFG,
SM6115_SLAVE_DDR_SS_CFG,
SM6115_SLAVE_DISPLAY_CFG,
SM6115_SLAVE_DISPLAY_THROTTLE_CFG,
SM6115_SLAVE_GPU_CFG,
SM6115_SLAVE_GPU_THROTTLE_CFG,
SM6115_SLAVE_HWKM_CORE,
SM6115_SLAVE_IMEM_CFG,
SM6115_SLAVE_IPA_CFG,
SM6115_SLAVE_LPASS,
SM6115_SLAVE_MAPSS,
SM6115_SLAVE_MDSP_MPU_CFG,
SM6115_SLAVE_MESSAGE_RAM,
SM6115_SLAVE_PDM,
SM6115_SLAVE_PIMEM_CFG,
SM6115_SLAVE_PKA_CORE,
SM6115_SLAVE_PMIC_ARB,
SM6115_SLAVE_QDSS_CFG,
SM6115_SLAVE_QM_CFG,
SM6115_SLAVE_QM_MPU_CFG,
SM6115_SLAVE_QPIC,
SM6115_SLAVE_QUP_0,
SM6115_SLAVE_RBCPR_CX_CFG,
SM6115_SLAVE_RBCPR_MX_CFG,
SM6115_SLAVE_RPM,
SM6115_SLAVE_SDCC_1,
SM6115_SLAVE_SDCC_2,
SM6115_SLAVE_SECURITY,
SM6115_SLAVE_SERVICE_CNOC,
SM6115_SLAVE_SNOC_CFG,
SM6115_SLAVE_TCSR,
SM6115_SLAVE_TLMM,
SM6115_SLAVE_USB3,
SM6115_SLAVE_VENUS_CFG,
SM6115_SLAVE_VENUS_THROTTLE_CFG,
SM6115_SLAVE_VSENSE_CTRL_CFG,
};
static struct qcom_icc_node mas_snoc_cnoc = {
.name = "mas_snoc_cnoc",
.id = SM6115_MASTER_SNOC_CNOC,
.channels = 1,
.buswidth = 8,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
.num_links = ARRAY_SIZE(mas_snoc_cnoc_links),
.links = mas_snoc_cnoc_links,
};
static struct qcom_icc_node xm_dap = {
.name = "xm_dap",
.id = SM6115_MASTER_QDSS_DAP,
.channels = 1,
.buswidth = 8,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
.num_links = ARRAY_SIZE(mas_snoc_cnoc_links),
.links = mas_snoc_cnoc_links,
};
static const u16 link_slv_snoc_bimc_nrt[] = {
SM6115_SLAVE_SNOC_BIMC_NRT,
};
static struct qcom_icc_node qnm_camera_nrt = {
.name = "qnm_camera_nrt",
.id = SM6115_MASTER_CAMNOC_SF,
.channels = 1,
.buswidth = 32,
.qos.qos_port = 4,
.qos.qos_mode = NOC_QOS_MODE_FIXED,
.qos.areq_prio = 3,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
.num_links = ARRAY_SIZE(link_slv_snoc_bimc_nrt),
.links = link_slv_snoc_bimc_nrt,
};
static struct qcom_icc_node qxm_venus0 = {
.name = "qxm_venus0",
.id = SM6115_MASTER_VIDEO_P0,
.channels = 1,
.buswidth = 16,
.qos.qos_port = 9,
.qos.qos_mode = NOC_QOS_MODE_FIXED,
.qos.areq_prio = 3,
.qos.urg_fwd_en = true,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
.num_links = ARRAY_SIZE(link_slv_snoc_bimc_nrt),
.links = link_slv_snoc_bimc_nrt,
};
static struct qcom_icc_node qxm_venus_cpu = {
.name = "qxm_venus_cpu",
.id = SM6115_MASTER_VIDEO_PROC,
.channels = 1,
.buswidth = 8,
.qos.qos_port = 13,
.qos.qos_mode = NOC_QOS_MODE_FIXED,
.qos.areq_prio = 4,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
.num_links = ARRAY_SIZE(link_slv_snoc_bimc_nrt),
.links = link_slv_snoc_bimc_nrt,
};
static const u16 link_slv_snoc_bimc_rt[] = {
SM6115_SLAVE_SNOC_BIMC_RT,
};
static struct qcom_icc_node qnm_camera_rt = {
.name = "qnm_camera_rt",
.id = SM6115_MASTER_CAMNOC_HF,
.channels = 1,
.buswidth = 32,
.qos.qos_port = 10,
.qos.qos_mode = NOC_QOS_MODE_FIXED,
.qos.areq_prio = 3,
.qos.urg_fwd_en = true,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
.num_links = ARRAY_SIZE(link_slv_snoc_bimc_rt),
.links = link_slv_snoc_bimc_rt,
};
static struct qcom_icc_node qxm_mdp0 = {
.name = "qxm_mdp0",
.id = SM6115_MASTER_MDP_PORT0,
.channels = 1,
.buswidth = 16,
.qos.qos_port = 5,
.qos.qos_mode = NOC_QOS_MODE_FIXED,
.qos.areq_prio = 3,
.qos.urg_fwd_en = true,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
.num_links = ARRAY_SIZE(link_slv_snoc_bimc_rt),
.links = link_slv_snoc_bimc_rt,
};
static const u16 slv_service_snoc_links[] = {
SM6115_SLAVE_SERVICE_SNOC,
};
static struct qcom_icc_node qhm_snoc_cfg = {
.name = "qhm_snoc_cfg",
.id = SM6115_MASTER_SNOC_CFG,
.channels = 1,
.buswidth = 4,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
.num_links = ARRAY_SIZE(slv_service_snoc_links),
.links = slv_service_snoc_links,
};
static const u16 mas_tic_links[] = {
SM6115_SLAVE_APPSS,
SM6115_SLAVE_OCIMEM,
SM6115_SLAVE_PIMEM,
SM6115_SLAVE_QDSS_STM,
SM6115_SLAVE_TCU,
SM6115_SLAVE_SNOC_BIMC,
SM6115_SLAVE_SNOC_CNOC,
};
static struct qcom_icc_node qhm_tic = {
.name = "qhm_tic",
.id = SM6115_MASTER_TIC,
.channels = 1,
.buswidth = 4,
.qos.qos_port = 8,
.qos.qos_mode = NOC_QOS_MODE_FIXED,
.qos.areq_prio = 2,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
.num_links = ARRAY_SIZE(mas_tic_links),
.links = mas_tic_links,
};
static struct qcom_icc_node mas_anoc_snoc = {
.name = "mas_anoc_snoc",
.id = SM6115_MASTER_ANOC_SNOC,
.channels = 1,
.buswidth = 16,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
.num_links = ARRAY_SIZE(mas_tic_links),
.links = mas_tic_links,
};
static const u16 mas_bimc_snoc_links[] = {
SM6115_SLAVE_APPSS,
SM6115_SLAVE_SNOC_CNOC,
SM6115_SLAVE_OCIMEM,
SM6115_SLAVE_PIMEM,
SM6115_SLAVE_QDSS_STM,
SM6115_SLAVE_TCU,
};
static struct qcom_icc_node mas_bimc_snoc = {
.name = "mas_bimc_snoc",
.id = SM6115_MASTER_BIMC_SNOC,
.channels = 1,
.buswidth = 8,
.mas_rpm_id = 21,
.slv_rpm_id = -1,
.num_links = ARRAY_SIZE(mas_bimc_snoc_links),
.links = mas_bimc_snoc_links,
};
static const u16 mas_pimem_links[] = {
SM6115_SLAVE_OCIMEM,
SM6115_SLAVE_SNOC_BIMC,
};
static struct qcom_icc_node qxm_pimem = {
.name = "qxm_pimem",
.id = SM6115_MASTER_PIMEM,
.channels = 1,
.buswidth = 8,
.qos.qos_port = 20,
.qos.qos_mode = NOC_QOS_MODE_FIXED,
.qos.areq_prio = 2,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
.num_links = ARRAY_SIZE(mas_pimem_links),
.links = mas_pimem_links,
};
static struct qcom_icc_node qhm_qdss_bam = {
.name = "qhm_qdss_bam",
.id = SM6115_MASTER_QDSS_BAM,
.channels = 1,
.buswidth = 4,
.qos.qos_port = 2,
.qos.qos_mode = NOC_QOS_MODE_FIXED,
.qos.areq_prio = 2,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
.num_links = ARRAY_SIZE(link_slv_anoc_snoc),
.links = link_slv_anoc_snoc,
};
static struct qcom_icc_node qhm_qpic = {
.name = "qhm_qpic",
.id = SM6115_MASTER_QPIC,
.channels = 1,
.buswidth = 4,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
.num_links = ARRAY_SIZE(link_slv_anoc_snoc),
.links = link_slv_anoc_snoc,
};
static struct qcom_icc_node qhm_qup0 = {
.name = "qhm_qup0",
.id = SM6115_MASTER_QUP_0,
.channels = 1,
.buswidth = 4,
.qos.qos_port = 0,
.qos.qos_mode = NOC_QOS_MODE_FIXED,
.qos.areq_prio = 2,
.mas_rpm_id = 166,
.slv_rpm_id = -1,
.num_links = ARRAY_SIZE(link_slv_anoc_snoc),
.links = link_slv_anoc_snoc,
};
static struct qcom_icc_node qxm_ipa = {
.name = "qxm_ipa",
.id = SM6115_MASTER_IPA,
.channels = 1,
.buswidth = 8,
.qos.qos_port = 3,
.qos.qos_mode = NOC_QOS_MODE_FIXED,
.qos.areq_prio = 2,
.mas_rpm_id = 59,
.slv_rpm_id = -1,
.num_links = ARRAY_SIZE(link_slv_anoc_snoc),
.links = link_slv_anoc_snoc,
};
static struct qcom_icc_node xm_qdss_etr = {
.name = "xm_qdss_etr",
.id = SM6115_MASTER_QDSS_ETR,
.channels = 1,
.buswidth = 8,
.qos.qos_port = 12,
.qos.qos_mode = NOC_QOS_MODE_FIXED,
.qos.areq_prio = 2,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
.num_links = ARRAY_SIZE(link_slv_anoc_snoc),
.links = link_slv_anoc_snoc,
};
static struct qcom_icc_node xm_sdc1 = {
.name = "xm_sdc1",
.id = SM6115_MASTER_SDCC_1,
.channels = 1,
.buswidth = 8,
.qos.qos_port = 17,
.qos.qos_mode = NOC_QOS_MODE_FIXED,
.qos.areq_prio = 2,
.mas_rpm_id = 33,
.slv_rpm_id = -1,
.num_links = ARRAY_SIZE(link_slv_anoc_snoc),
.links = link_slv_anoc_snoc,
};
static struct qcom_icc_node xm_sdc2 = {
.name = "xm_sdc2",
.id = SM6115_MASTER_SDCC_2,
.channels = 1,
.buswidth = 8,
.qos.qos_port = 23,
.qos.qos_mode = NOC_QOS_MODE_FIXED,
.qos.areq_prio = 2,
.mas_rpm_id = 35,
.slv_rpm_id = -1,
.num_links = ARRAY_SIZE(link_slv_anoc_snoc),
.links = link_slv_anoc_snoc,
};
static struct qcom_icc_node xm_usb3_0 = {
.name = "xm_usb3_0",
.id = SM6115_MASTER_USB3,
.channels = 1,
.buswidth = 8,
.qos.qos_port = 24,
.qos.qos_mode = NOC_QOS_MODE_FIXED,
.qos.areq_prio = 2,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
.num_links = ARRAY_SIZE(link_slv_anoc_snoc),
.links = link_slv_anoc_snoc,
};
static struct qcom_icc_node ebi = {
.name = "ebi",
.id = SM6115_SLAVE_EBI_CH0,
.channels = 2,
.buswidth = 4,
.mas_rpm_id = -1,
.slv_rpm_id = 0,
};
static const u16 slv_bimc_snoc_links[] = {
SM6115_MASTER_BIMC_SNOC,
};
static struct qcom_icc_node slv_bimc_snoc = {
.name = "slv_bimc_snoc",
.id = SM6115_SLAVE_BIMC_SNOC,
.channels = 1,
.buswidth = 16,
.mas_rpm_id = -1,
.slv_rpm_id = 2,
.num_links = ARRAY_SIZE(slv_bimc_snoc_links),
.links = slv_bimc_snoc_links,
};
static struct qcom_icc_node qup0_core_slave = {
.name = "qup0_core_slave",
.id = SM6115_SLAVE_QUP_CORE_0,
.channels = 1,
.buswidth = 4,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
};
static struct qcom_icc_node qhs_ahb2phy_usb = {
.name = "qhs_ahb2phy_usb",
.id = SM6115_SLAVE_AHB2PHY_USB,
.channels = 1,
.buswidth = 4,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
};
static struct qcom_icc_node qhs_apss_throttle_cfg = {
.name = "qhs_apss_throttle_cfg",
.id = SM6115_SLAVE_APSS_THROTTLE_CFG,
.channels = 1,
.buswidth = 4,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
};
static struct qcom_icc_node qhs_bimc_cfg = {
.name = "qhs_bimc_cfg",
.id = SM6115_SLAVE_BIMC_CFG,
.channels = 1,
.buswidth = 4,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
};
static struct qcom_icc_node qhs_boot_rom = {
.name = "qhs_boot_rom",
.id = SM6115_SLAVE_BOOT_ROM,
.channels = 1,
.buswidth = 4,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
};
static struct qcom_icc_node qhs_camera_nrt_throttle_cfg = {
.name = "qhs_camera_nrt_throttle_cfg",
.id = SM6115_SLAVE_CAMERA_NRT_THROTTLE_CFG,
.channels = 1,
.buswidth = 4,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
};
static struct qcom_icc_node qhs_camera_rt_throttle_cfg = {
.name = "qhs_camera_rt_throttle_cfg",
.id = SM6115_SLAVE_CAMERA_RT_THROTTLE_CFG,
.channels = 1,
.buswidth = 4,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
};
static struct qcom_icc_node qhs_camera_ss_cfg = {
.name = "qhs_camera_ss_cfg",
.id = SM6115_SLAVE_CAMERA_CFG,
.channels = 1,
.buswidth = 4,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
};
static struct qcom_icc_node qhs_clk_ctl = {
.name = "qhs_clk_ctl",
.id = SM6115_SLAVE_CLK_CTL,
.channels = 1,
.buswidth = 4,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
};
static struct qcom_icc_node qhs_cpr_cx = {
.name = "qhs_cpr_cx",
.id = SM6115_SLAVE_RBCPR_CX_CFG,
.channels = 1,
.buswidth = 4,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
};
static struct qcom_icc_node qhs_cpr_mx = {
.name = "qhs_cpr_mx",
.id = SM6115_SLAVE_RBCPR_MX_CFG,
.channels = 1,
.buswidth = 4,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
};
static struct qcom_icc_node qhs_crypto0_cfg = {
.name = "qhs_crypto0_cfg",
.id = SM6115_SLAVE_CRYPTO_0_CFG,
.channels = 1,
.buswidth = 4,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
};
static struct qcom_icc_node qhs_dcc_cfg = {
.name = "qhs_dcc_cfg",
.id = SM6115_SLAVE_DCC_CFG,
.channels = 1,
.buswidth = 4,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
};
static struct qcom_icc_node qhs_ddr_phy_cfg = {
.name = "qhs_ddr_phy_cfg",
.id = SM6115_SLAVE_DDR_PHY_CFG,
.channels = 1,
.buswidth = 4,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
};
static struct qcom_icc_node qhs_ddr_ss_cfg = {
.name = "qhs_ddr_ss_cfg",
.id = SM6115_SLAVE_DDR_SS_CFG,
.channels = 1,
.buswidth = 4,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
};
static struct qcom_icc_node qhs_disp_ss_cfg = {
.name = "qhs_disp_ss_cfg",
.id = SM6115_SLAVE_DISPLAY_CFG,
.channels = 1,
.buswidth = 4,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
};
static struct qcom_icc_node qhs_display_throttle_cfg = {
.name = "qhs_display_throttle_cfg",
.id = SM6115_SLAVE_DISPLAY_THROTTLE_CFG,
.channels = 1,
.buswidth = 4,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
};
static struct qcom_icc_node qhs_gpu_cfg = {
.name = "qhs_gpu_cfg",
.id = SM6115_SLAVE_GPU_CFG,
.channels = 1,
.buswidth = 8,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
};
static struct qcom_icc_node qhs_gpu_throttle_cfg = {
.name = "qhs_gpu_throttle_cfg",
.id = SM6115_SLAVE_GPU_THROTTLE_CFG,
.channels = 1,
.buswidth = 4,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
};
static struct qcom_icc_node qhs_hwkm = {
.name = "qhs_hwkm",
.id = SM6115_SLAVE_HWKM_CORE,
.channels = 1,
.buswidth = 4,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
};
static struct qcom_icc_node qhs_imem_cfg = {
.name = "qhs_imem_cfg",
.id = SM6115_SLAVE_IMEM_CFG,
.channels = 1,
.buswidth = 4,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
};
static struct qcom_icc_node qhs_ipa_cfg = {
.name = "qhs_ipa_cfg",
.id = SM6115_SLAVE_IPA_CFG,
.channels = 1,
.buswidth = 4,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
};
static struct qcom_icc_node qhs_lpass = {
.name = "qhs_lpass",
.id = SM6115_SLAVE_LPASS,
.channels = 1,
.buswidth = 4,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
};
static struct qcom_icc_node qhs_mapss = {
.name = "qhs_mapss",
.id = SM6115_SLAVE_MAPSS,
.channels = 1,
.buswidth = 4,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
};
static struct qcom_icc_node qhs_mdsp_mpu_cfg = {
.name = "qhs_mdsp_mpu_cfg",
.id = SM6115_SLAVE_MDSP_MPU_CFG,
.channels = 1,
.buswidth = 4,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
};
static struct qcom_icc_node qhs_mesg_ram = {
.name = "qhs_mesg_ram",
.id = SM6115_SLAVE_MESSAGE_RAM,
.channels = 1,
.buswidth = 4,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
};
static struct qcom_icc_node qhs_mss = {
.name = "qhs_mss",
.id = SM6115_SLAVE_CNOC_MSS,
.channels = 1,
.buswidth = 4,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
};
static struct qcom_icc_node qhs_pdm = {
.name = "qhs_pdm",
.id = SM6115_SLAVE_PDM,
.channels = 1,
.buswidth = 4,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
};
static struct qcom_icc_node qhs_pimem_cfg = {
.name = "qhs_pimem_cfg",
.id = SM6115_SLAVE_PIMEM_CFG,
.channels = 1,
.buswidth = 4,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
};
static struct qcom_icc_node qhs_pka_wrapper = {
.name = "qhs_pka_wrapper",
.id = SM6115_SLAVE_PKA_CORE,
.channels = 1,
.buswidth = 4,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
};
static struct qcom_icc_node qhs_pmic_arb = {
.name = "qhs_pmic_arb",
.id = SM6115_SLAVE_PMIC_ARB,
.channels = 1,
.buswidth = 4,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
};
static struct qcom_icc_node qhs_qdss_cfg = {
.name = "qhs_qdss_cfg",
.id = SM6115_SLAVE_QDSS_CFG,
.channels = 1,
.buswidth = 4,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
};
static struct qcom_icc_node qhs_qm_cfg = {
.name = "qhs_qm_cfg",
.id = SM6115_SLAVE_QM_CFG,
.channels = 1,
.buswidth = 4,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
};
static struct qcom_icc_node qhs_qm_mpu_cfg = {
.name = "qhs_qm_mpu_cfg",
.id = SM6115_SLAVE_QM_MPU_CFG,
.channels = 1,
.buswidth = 4,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
};
static struct qcom_icc_node qhs_qpic = {
.name = "qhs_qpic",
.id = SM6115_SLAVE_QPIC,
.channels = 1,
.buswidth = 4,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
};
static struct qcom_icc_node qhs_qup0 = {
.name = "qhs_qup0",
.id = SM6115_SLAVE_QUP_0,
.channels = 1,
.buswidth = 4,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
};
static struct qcom_icc_node qhs_rpm = {
.name = "qhs_rpm",
.id = SM6115_SLAVE_RPM,
.channels = 1,
.buswidth = 4,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
};
static struct qcom_icc_node qhs_sdc1 = {
.name = "qhs_sdc1",
.id = SM6115_SLAVE_SDCC_1,
.channels = 1,
.buswidth = 4,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
};
static struct qcom_icc_node qhs_sdc2 = {
.name = "qhs_sdc2",
.id = SM6115_SLAVE_SDCC_2,
.channels = 1,
.buswidth = 4,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
};
static struct qcom_icc_node qhs_security = {
.name = "qhs_security",
.id = SM6115_SLAVE_SECURITY,
.channels = 1,
.buswidth = 4,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
};
static const u16 slv_snoc_cfg_links[] = {
SM6115_MASTER_SNOC_CFG,
};
static struct qcom_icc_node qhs_snoc_cfg = {
.name = "qhs_snoc_cfg",
.id = SM6115_SLAVE_SNOC_CFG,
.channels = 1,
.buswidth = 4,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
.num_links = ARRAY_SIZE(slv_snoc_cfg_links),
.links = slv_snoc_cfg_links,
};
static struct qcom_icc_node qhs_tcsr = {
.name = "qhs_tcsr",
.id = SM6115_SLAVE_TCSR,
.channels = 1,
.buswidth = 4,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
};
static struct qcom_icc_node qhs_tlmm = {
.name = "qhs_tlmm",
.id = SM6115_SLAVE_TLMM,
.channels = 1,
.buswidth = 4,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
};
static struct qcom_icc_node qhs_usb3 = {
.name = "qhs_usb3",
.id = SM6115_SLAVE_USB3,
.channels = 1,
.buswidth = 4,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
};
static struct qcom_icc_node qhs_venus_cfg = {
.name = "qhs_venus_cfg",
.id = SM6115_SLAVE_VENUS_CFG,
.channels = 1,
.buswidth = 4,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
};
static struct qcom_icc_node qhs_venus_throttle_cfg = {
.name = "qhs_venus_throttle_cfg",
.id = SM6115_SLAVE_VENUS_THROTTLE_CFG,
.channels = 1,
.buswidth = 4,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
};
static struct qcom_icc_node qhs_vsense_ctrl_cfg = {
.name = "qhs_vsense_ctrl_cfg",
.id = SM6115_SLAVE_VSENSE_CTRL_CFG,
.channels = 1,
.buswidth = 4,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
};
static struct qcom_icc_node srvc_cnoc = {
.name = "srvc_cnoc",
.id = SM6115_SLAVE_SERVICE_CNOC,
.channels = 1,
.buswidth = 4,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
};
static const u16 slv_snoc_bimc_nrt_links[] = {
SM6115_MASTER_SNOC_BIMC_NRT,
};
static struct qcom_icc_node slv_snoc_bimc_nrt = {
.name = "slv_snoc_bimc_nrt",
.id = SM6115_SLAVE_SNOC_BIMC_NRT,
.channels = 1,
.buswidth = 16,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
.num_links = ARRAY_SIZE(slv_snoc_bimc_nrt_links),
.links = slv_snoc_bimc_nrt_links,
};
static const u16 slv_snoc_bimc_rt_links[] = {
SM6115_MASTER_SNOC_BIMC_RT,
};
static struct qcom_icc_node slv_snoc_bimc_rt = {
.name = "slv_snoc_bimc_rt",
.id = SM6115_SLAVE_SNOC_BIMC_RT,
.channels = 1,
.buswidth = 16,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
.num_links = ARRAY_SIZE(slv_snoc_bimc_rt_links),
.links = slv_snoc_bimc_rt_links,
};
static struct qcom_icc_node qhs_apss = {
.name = "qhs_apss",
.id = SM6115_SLAVE_APPSS,
.channels = 1,
.buswidth = 8,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
};
static const u16 slv_snoc_cnoc_links[] = {
SM6115_MASTER_SNOC_CNOC
};
static struct qcom_icc_node slv_snoc_cnoc = {
.name = "slv_snoc_cnoc",
.id = SM6115_SLAVE_SNOC_CNOC,
.channels = 1,
.buswidth = 8,
.mas_rpm_id = -1,
.slv_rpm_id = 25,
.num_links = ARRAY_SIZE(slv_snoc_cnoc_links),
.links = slv_snoc_cnoc_links,
};
static struct qcom_icc_node qxs_imem = {
.name = "qxs_imem",
.id = SM6115_SLAVE_OCIMEM,
.channels = 1,
.buswidth = 8,
.mas_rpm_id = -1,
.slv_rpm_id = 26,
};
static struct qcom_icc_node qxs_pimem = {
.name = "qxs_pimem",
.id = SM6115_SLAVE_PIMEM,
.channels = 1,
.buswidth = 8,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
};
static const u16 slv_snoc_bimc_links[] = {
SM6115_MASTER_SNOC_BIMC,
};
static struct qcom_icc_node slv_snoc_bimc = {
.name = "slv_snoc_bimc",
.id = SM6115_SLAVE_SNOC_BIMC,
.channels = 1,
.buswidth = 16,
.mas_rpm_id = -1,
.slv_rpm_id = 24,
.num_links = ARRAY_SIZE(slv_snoc_bimc_links),
.links = slv_snoc_bimc_links,
};
static struct qcom_icc_node srvc_snoc = {
.name = "srvc_snoc",
.id = SM6115_SLAVE_SERVICE_SNOC,
.channels = 1,
.buswidth = 4,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
};
static struct qcom_icc_node xs_qdss_stm = {
.name = "xs_qdss_stm",
.id = SM6115_SLAVE_QDSS_STM,
.channels = 1,
.buswidth = 4,
.mas_rpm_id = -1,
.slv_rpm_id = 30,
};
static struct qcom_icc_node xs_sys_tcu_cfg = {
.name = "xs_sys_tcu_cfg",
.id = SM6115_SLAVE_TCU,
.channels = 1,
.buswidth = 8,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
};
static const u16 slv_anoc_snoc_links[] = {
SM6115_MASTER_ANOC_SNOC,
};
static struct qcom_icc_node slv_anoc_snoc = {
.name = "slv_anoc_snoc",
.id = SM6115_SLAVE_ANOC_SNOC,
.channels = 1,
.buswidth = 16,
.mas_rpm_id = -1,
.slv_rpm_id = -1,
.num_links = ARRAY_SIZE(slv_anoc_snoc_links),
.links = slv_anoc_snoc_links,
};
static struct qcom_icc_node * const bimc_nodes[] = {
[MASTER_AMPSS_M0] = &apps_proc,
[MASTER_SNOC_BIMC_RT] = &mas_snoc_bimc_rt,
[MASTER_SNOC_BIMC_NRT] = &mas_snoc_bimc_nrt,
[SNOC_BIMC_MAS] = &mas_snoc_bimc,
[MASTER_GRAPHICS_3D] = &qnm_gpu,
[MASTER_TCU_0] = &tcu_0,
[SLAVE_EBI_CH0] = &ebi,
[BIMC_SNOC_SLV] = &slv_bimc_snoc,
};
static const struct regmap_config bimc_regmap_config = {
.reg_bits = 32,
.reg_stride = 4,
.val_bits = 32,
.max_register = 0x80000,
.fast_io = true,
};
static const struct qcom_icc_desc sm6115_bimc = {
.type = QCOM_ICC_BIMC,
.nodes = bimc_nodes,
.num_nodes = ARRAY_SIZE(bimc_nodes),
.regmap_cfg = &bimc_regmap_config,
.bus_clk_desc = &bimc_clk,
.keep_alive = true,
.qos_offset = 0x8000,
.ab_coeff = 153,
};
static struct qcom_icc_node * const config_noc_nodes[] = {
[SNOC_CNOC_MAS] = &mas_snoc_cnoc,
[MASTER_QDSS_DAP] = &xm_dap,
[SLAVE_AHB2PHY_USB] = &qhs_ahb2phy_usb,
[SLAVE_APSS_THROTTLE_CFG] = &qhs_apss_throttle_cfg,
[SLAVE_BIMC_CFG] = &qhs_bimc_cfg,
[SLAVE_BOOT_ROM] = &qhs_boot_rom,
[SLAVE_CAMERA_NRT_THROTTLE_CFG] = &qhs_camera_nrt_throttle_cfg,
[SLAVE_CAMERA_RT_THROTTLE_CFG] = &qhs_camera_rt_throttle_cfg,
[SLAVE_CAMERA_CFG] = &qhs_camera_ss_cfg,
[SLAVE_CLK_CTL] = &qhs_clk_ctl,
[SLAVE_RBCPR_CX_CFG] = &qhs_cpr_cx,
[SLAVE_RBCPR_MX_CFG] = &qhs_cpr_mx,
[SLAVE_CRYPTO_0_CFG] = &qhs_crypto0_cfg,
[SLAVE_DCC_CFG] = &qhs_dcc_cfg,
[SLAVE_DDR_PHY_CFG] = &qhs_ddr_phy_cfg,
[SLAVE_DDR_SS_CFG] = &qhs_ddr_ss_cfg,
[SLAVE_DISPLAY_CFG] = &qhs_disp_ss_cfg,
[SLAVE_DISPLAY_THROTTLE_CFG] = &qhs_display_throttle_cfg,
[SLAVE_GPU_CFG] = &qhs_gpu_cfg,
[SLAVE_GPU_THROTTLE_CFG] = &qhs_gpu_throttle_cfg,
[SLAVE_HWKM_CORE] = &qhs_hwkm,
[SLAVE_IMEM_CFG] = &qhs_imem_cfg,
[SLAVE_IPA_CFG] = &qhs_ipa_cfg,
[SLAVE_LPASS] = &qhs_lpass,
[SLAVE_MAPSS] = &qhs_mapss,
[SLAVE_MDSP_MPU_CFG] = &qhs_mdsp_mpu_cfg,
[SLAVE_MESSAGE_RAM] = &qhs_mesg_ram,
[SLAVE_CNOC_MSS] = &qhs_mss,
[SLAVE_PDM] = &qhs_pdm,
[SLAVE_PIMEM_CFG] = &qhs_pimem_cfg,
[SLAVE_PKA_CORE] = &qhs_pka_wrapper,
[SLAVE_PMIC_ARB] = &qhs_pmic_arb,
[SLAVE_QDSS_CFG] = &qhs_qdss_cfg,
[SLAVE_QM_CFG] = &qhs_qm_cfg,
[SLAVE_QM_MPU_CFG] = &qhs_qm_mpu_cfg,
[SLAVE_QPIC] = &qhs_qpic,
[SLAVE_QUP_0] = &qhs_qup0,
[SLAVE_RPM] = &qhs_rpm,
[SLAVE_SDCC_1] = &qhs_sdc1,
[SLAVE_SDCC_2] = &qhs_sdc2,
[SLAVE_SECURITY] = &qhs_security,
[SLAVE_SNOC_CFG] = &qhs_snoc_cfg,
[SLAVE_TCSR] = &qhs_tcsr,
[SLAVE_TLMM] = &qhs_tlmm,
[SLAVE_USB3] = &qhs_usb3,
[SLAVE_VENUS_CFG] = &qhs_venus_cfg,
[SLAVE_VENUS_THROTTLE_CFG] = &qhs_venus_throttle_cfg,
[SLAVE_VSENSE_CTRL_CFG] = &qhs_vsense_ctrl_cfg,
[SLAVE_SERVICE_CNOC] = &srvc_cnoc,
};
static const struct regmap_config cnoc_regmap_config = {
.reg_bits = 32,
.reg_stride = 4,
.val_bits = 32,
.max_register = 0x6200,
.fast_io = true,
};
static const struct qcom_icc_desc sm6115_config_noc = {
.type = QCOM_ICC_QNOC,
.nodes = config_noc_nodes,
.num_nodes = ARRAY_SIZE(config_noc_nodes),
.regmap_cfg = &cnoc_regmap_config,
.intf_clocks = cnoc_intf_clocks,
.num_intf_clocks = ARRAY_SIZE(cnoc_intf_clocks),
.bus_clk_desc = &bus_1_clk,
.keep_alive = true,
};
static struct qcom_icc_node * const sys_noc_nodes[] = {
[MASTER_CRYPTO_CORE0] = &crypto_c0,
[MASTER_SNOC_CFG] = &qhm_snoc_cfg,
[MASTER_TIC] = &qhm_tic,
[MASTER_ANOC_SNOC] = &mas_anoc_snoc,
[BIMC_SNOC_MAS] = &mas_bimc_snoc,
[MASTER_PIMEM] = &qxm_pimem,
[MASTER_QDSS_BAM] = &qhm_qdss_bam,
[MASTER_QPIC] = &qhm_qpic,
[MASTER_QUP_0] = &qhm_qup0,
[MASTER_IPA] = &qxm_ipa,
[MASTER_QDSS_ETR] = &xm_qdss_etr,
[MASTER_SDCC_1] = &xm_sdc1,
[MASTER_SDCC_2] = &xm_sdc2,
[MASTER_USB3] = &xm_usb3_0,
[SLAVE_APPSS] = &qhs_apss,
[SNOC_CNOC_SLV] = &slv_snoc_cnoc,
[SLAVE_OCIMEM] = &qxs_imem,
[SLAVE_PIMEM] = &qxs_pimem,
[SNOC_BIMC_SLV] = &slv_snoc_bimc,
[SLAVE_SERVICE_SNOC] = &srvc_snoc,
[SLAVE_QDSS_STM] = &xs_qdss_stm,
[SLAVE_TCU] = &xs_sys_tcu_cfg,
[SLAVE_ANOC_SNOC] = &slv_anoc_snoc,
};
static const struct regmap_config sys_noc_regmap_config = {
.reg_bits = 32,
.reg_stride = 4,
.val_bits = 32,
.max_register = 0x5f080,
.fast_io = true,
};
static const struct qcom_icc_desc sm6115_sys_noc = {
.type = QCOM_ICC_QNOC,
.nodes = sys_noc_nodes,
.num_nodes = ARRAY_SIZE(sys_noc_nodes),
.regmap_cfg = &sys_noc_regmap_config,
.intf_clocks = snoc_intf_clocks,
.num_intf_clocks = ARRAY_SIZE(snoc_intf_clocks),
.bus_clk_desc = &bus_2_clk,
.qos_offset = 0x15000,
.keep_alive = true,
};
static struct qcom_icc_node * const clk_virt_nodes[] = {
[MASTER_QUP_CORE_0] = &qup0_core_master,
[SLAVE_QUP_CORE_0] = &qup0_core_slave,
};
static const struct qcom_icc_desc sm6115_clk_virt = {
.type = QCOM_ICC_QNOC,
.nodes = clk_virt_nodes,
.num_nodes = ARRAY_SIZE(clk_virt_nodes),
.regmap_cfg = &sys_noc_regmap_config,
.bus_clk_desc = &qup_clk,
.keep_alive = true,
};
static struct qcom_icc_node * const mmnrt_virt_nodes[] = {
[MASTER_CAMNOC_SF] = &qnm_camera_nrt,
[MASTER_VIDEO_P0] = &qxm_venus0,
[MASTER_VIDEO_PROC] = &qxm_venus_cpu,
[SLAVE_SNOC_BIMC_NRT] = &slv_snoc_bimc_nrt,
};
static const struct qcom_icc_desc sm6115_mmnrt_virt = {
.type = QCOM_ICC_QNOC,
.nodes = mmnrt_virt_nodes,
.num_nodes = ARRAY_SIZE(mmnrt_virt_nodes),
.regmap_cfg = &sys_noc_regmap_config,
.bus_clk_desc = &mmaxi_0_clk,
.keep_alive = true,
.qos_offset = 0x15000,
.ab_coeff = 142,
};
static struct qcom_icc_node * const mmrt_virt_nodes[] = {
[MASTER_CAMNOC_HF] = &qnm_camera_rt,
[MASTER_MDP_PORT0] = &qxm_mdp0,
[SLAVE_SNOC_BIMC_RT] = &slv_snoc_bimc_rt,
};
static const struct qcom_icc_desc sm6115_mmrt_virt = {
.type = QCOM_ICC_QNOC,
.nodes = mmrt_virt_nodes,
.num_nodes = ARRAY_SIZE(mmrt_virt_nodes),
.regmap_cfg = &sys_noc_regmap_config,
.bus_clk_desc = &mmaxi_1_clk,
.keep_alive = true,
.qos_offset = 0x15000,
.ab_coeff = 139,
};
static const struct of_device_id qnoc_of_match[] = {
{ .compatible = "qcom,sm6115-bimc", .data = &sm6115_bimc },
{ .compatible = "qcom,sm6115-clk-virt", .data = &sm6115_clk_virt },
{ .compatible = "qcom,sm6115-cnoc", .data = &sm6115_config_noc },
{ .compatible = "qcom,sm6115-mmrt-virt", .data = &sm6115_mmrt_virt },
{ .compatible = "qcom,sm6115-mmnrt-virt", .data = &sm6115_mmnrt_virt },
{ .compatible = "qcom,sm6115-snoc", .data = &sm6115_sys_noc },
{ }
};
MODULE_DEVICE_TABLE(of, qnoc_of_match);
static struct platform_driver qnoc_driver = {
.probe = qnoc_probe,
.remove_new = qnoc_remove,
.driver = {
.name = "qnoc-sm6115",
.of_match_table = qnoc_of_match,
.sync_state = icc_sync_state,
},
};
static int __init qnoc_driver_init(void)
{
return platform_driver_register(&qnoc_driver);
}
core_initcall(qnoc_driver_init);
static void __exit qnoc_driver_exit(void)
{
platform_driver_unregister(&qnoc_driver);
}
module_exit(qnoc_driver_exit);
MODULE_DESCRIPTION("SM6115 NoC driver");
MODULE_LICENSE("GPL");
|