hc
2025-02-14 bbb9540dc49f70f6b703d1c8d1b85fa5f602d86e
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
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
 * Copyright (c) 2022 Rockchip Electronics Co., Ltd.
 */
#include <dt-bindings/clock/rv1106-cru.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/pinctrl/rockchip.h>
#include <dt-bindings/soc/rockchip,boot-mode.h>
#include <dt-bindings/soc/rockchip-system-status.h>
#include <dt-bindings/thermal/thermal.h>
 
/ {
   #address-cells = <1>;
   #size-cells = <1>;
 
   compatible = "rockchip,rv1106";
 
   interrupt-parent = <&gic>;
 
   aliases {
       csi2dphy0 = &csi2_dphy0;
       csi2dphy1 = &csi2_dphy1;
       csi2dphy2 = &csi2_dphy2;
       ethernet0 = &gmac;
       gpio0 = &gpio0;
       gpio1 = &gpio1;
       gpio2 = &gpio2;
       gpio3 = &gpio3;
       gpio4 = &gpio4;
       i2c0 = &i2c0;
       i2c1 = &i2c1;
       i2c2 = &i2c2;
       i2c3 = &i2c3;
       i2c4 = &i2c4;
       mmc0 = &emmc;
       mmc1 = &sdmmc;
       mmc2 = &sdio;
       pwm0 = &pwm0;
       pwm1 = &pwm1;
       pwm2 = &pwm2;
       pwm3 = &pwm3;
       pwm4 = &pwm4;
       pwm5 = &pwm5;
       pwm6 = &pwm6;
       pwm7 = &pwm7;
       pwm8 = &pwm8;
       pwm9 = &pwm9;
       pwm10 = &pwm10;
       pwm11 = &pwm11;
       rkcif_mipi_lvds0 = &rkcif_mipi_lvds;
       rkcif_mipi_lvds1 = &rkcif_mipi_lvds1;
       serial0 = &uart0;
       serial1 = &uart1;
       serial2 = &uart2;
       serial3 = &uart3;
       serial4 = &uart4;
       serial5 = &uart5;
       spi0 = &spi0;
       spi1 = &spi1;
       spi2 = &sfc;
   };
 
   clocks {
       compatible = "simple-bus";
 
       cpu_pvtpll: cpu-pvtpll {
           compatible = "fixed-clock";
           clock-frequency = <1300000000>;
           clock-output-names = "cpu_pvtpll";
           #clock-cells = <0>;
           status = "disabled";
       };
 
       rkvenc_pvtpll: pvtpll-0 {
           compatible = "fixed-clock";
           clock-frequency = <410000000>;
           clock-output-names = "clk_pvtpll_0";
           #clock-cells = <0>;
       };
 
       npu_pvtpll: pvtpll-1 {
           compatible = "fixed-clock";
           clock-frequency = <420000000>;
           clock-output-names = "clk_pvtpll_1";
           #clock-cells = <0>;
       };
 
       xin24m: oscillator {
           compatible = "fixed-clock";
           clock-frequency = <24000000>;
           clock-output-names = "xin24m";
           #clock-cells = <0>;
       };
   };
 
   cpus {
       #address-cells = <1>;
       #size-cells = <0>;
 
       cpu0: cpu@0 {
           device_type = "cpu";
           compatible = "arm,cortex-a7";
           reg = <0x0>;
           clocks = <&cru ARMCLK>;
           operating-points-v2 = <&cpu0_opp_table>;
       };
   };
 
   cpu0_opp_table: cpu0-opp-table {
       compatible = "operating-points-v2";
       opp-shared;
 
       nvmem-cells = <&cpu_leakage>;
       nvmem-cell-names = "leakage";
 
       rockchip,pvtpll-avg-offset = <0x4001c>;
       rockchip,pvtpll-min-rate = <1104000>;
       rockchip,pvtpll-volt-step = <12500>;
       rockchip,grf = <&grf>;
       rockchip,temp-hysteresis = <5000>;
       rockchip,low-temp = <10000>;
       rockchip,low-temp-min-volt = <900000>;
 
       opp-408000000 {
           opp-hz = /bits/ 64 <408000000>;
           opp-microvolt = <850000 850000 1000000>;
           clock-latency-ns = <40000>;
       };
       opp-600000000 {
           opp-hz = /bits/ 64 <600000000>;
           opp-microvolt = <850000 850000 1000000>;
           clock-latency-ns = <40000>;
       };
       opp-816000000 {
           opp-hz = /bits/ 64 <816000000>;
           opp-microvolt = <850000 850000 1000000>;
           clock-latency-ns = <40000>;
           opp-suspend;
       };
       opp-1104000000 {
           opp-hz = /bits/ 64 <1104000000>;
           opp-microvolt = <850000 850000 1000000>;
           clock-latency-ns = <40000>;
       };
       opp-1200000000 {
           opp-hz = /bits/ 64 <1200000000>;
           opp-microvolt = <850000 850000 1000000>;
           clock-latency-ns = <40000>;
       };
       opp-1296000000 {
           opp-hz = /bits/ 64 <1296000000>;
           opp-microvolt = <875000 850000 1000000>;
           clock-latency-ns = <40000>;
       };
       opp-1416000000 {
           opp-hz = /bits/ 64 <1416000000>;
           opp-microvolt = <925000 850000 1000000>;
           clock-latency-ns = <40000>;
       };
       opp-1512000000 {
           opp-hz = /bits/ 64 <1512000000>;
           opp-microvolt = <975000 850000 1000000>;
           clock-latency-ns = <40000>;
       };
       opp-1608000000 {
           opp-hz = /bits/ 64 <1608000000>;
           opp-microvolt = <1000000 850000 1000000>;
           clock-latency-ns = <40000>;
       };
   };
 
   arm-pmu {
       compatible = "arm,cortex-a7-pmu";
       interrupts = <GIC_SPI 126 IRQ_TYPE_LEVEL_HIGH>;
       interrupt-affinity = <&cpu0>;
   };
 
   cpuinfo {
       compatible = "rockchip,cpuinfo";
       nvmem-cells = <&otp_id>, <&otp_cpu_version>, <&cpu_code>;
       nvmem-cell-names = "id", "cpu-version", "cpu-code";
   };
 
   /* dphy0 full mode */
   csi2_dphy0: csi2-dphy0 {
       compatible = "rockchip,rv1106-csi2-dphy";
       rockchip,hw = <&csi2_dphy_hw>;
       status = "disabled";
   };
 
   /* dphy1 split mode 01 */
   csi2_dphy1: csi2-dphy1 {
       compatible = "rockchip,rv1106-csi2-dphy";
       rockchip,hw = <&csi2_dphy_hw>;
       status = "disabled";
   };
 
   /* dphy2 split mode 23 */
   csi2_dphy2: csi2-dphy2 {
       compatible = "rockchip,rv1106-csi2-dphy";
       rockchip,hw = <&csi2_dphy_hw>;
       status = "disabled";
   };
 
   display_subsystem: display-subsystem {
       compatible = "rockchip,display-subsystem";
       ports = <&vop_out>;
       status = "disabled";
 
       route {
           route_rgb: route-rgb {
               status = "disabled";
               logo,uboot = "logo.bmp";
               logo,kernel = "logo_kernel.bmp";
               logo,mode = "center";
               charge_logo,mode = "center";
               connect = <&vop_out_rgb>;
           };
       };
   };
 
   fiq_debugger: fiq-debugger {
       compatible = "rockchip,fiq-debugger";
       rockchip,serial-id = <2>;
       rockchip,wake-irq = <0>;
       rockchip,irq-mode-enable = <0>;
       rockchip,baudrate = <115200>;    /* Only 115200 and 1500000 */
       interrupts = <GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>;
       status = "disabled";
   };
 
   firmware {
       optee: optee {
           compatible = "linaro,optee-tz";
           method = "smc";
           status = "disabled";
       };
   };
 
   mipi0_csi2: mipi0-csi2 {
       compatible = "rockchip,rv1106-mipi-csi2";
       rockchip,hw = <&mipi0_csi2_hw>, <&mipi1_csi2_hw>;
       status = "disabled";
   };
 
   mipi1_csi2: mipi1-csi2 {
       compatible = "rockchip,rv1106-mipi-csi2";
       rockchip,hw = <&mipi0_csi2_hw>, <&mipi1_csi2_hw>;
       status = "disabled";
   };
 
   mpp_srv: mpp-srv {
       compatible = "rockchip,mpp-service";
       rockchip,taskqueue-count = <2>;
       status = "disabled";
   };
 
   mpp_vcodec: mpp-vcodec {
       compatible = "rockchip,vcodec";
       status = "disabled";
   };
 
   psci {
       compatible = "arm,psci-1.0";
       method = "smc";
   };
 
   rkcif_dvp: rkcif-dvp {
       compatible = "rockchip,rkcif-dvp";
       rockchip,hw = <&rkcif>;
       status = "disabled";
   };
 
   rkcif_dvp_sditf: rkcif-dvp-sditf {
       compatible = "rockchip,rkcif-sditf";
       rockchip,cif = <&rkcif_dvp>;
       status = "disabled";
   };
 
   rkcif_mipi_lvds: rkcif-mipi-lvds {
       compatible = "rockchip,rkcif-mipi-lvds";
       rockchip,hw = <&rkcif>;
       status = "disabled";
   };
 
   rkcif_mipi_lvds_sditf: rkcif-mipi-lvds-sditf {
       compatible = "rockchip,rkcif-sditf";
       rockchip,cif = <&rkcif_mipi_lvds>;
       status = "disabled";
   };
 
   rkcif_mipi_lvds1: rkcif-mipi-lvds1 {
       compatible = "rockchip,rkcif-mipi-lvds";
       rockchip,hw = <&rkcif>;
       status = "disabled";
   };
 
   rkcif_mipi_lvds1_sditf: rkcif-mipi-lvds1-sditf {
       compatible = "rockchip,rkcif-sditf";
       rockchip,cif = <&rkcif_mipi_lvds1>;
       status = "disabled";
   };
 
   rkisp_vir0: rkisp-vir0 {
       compatible = "rockchip,rkisp-vir";
       rockchip,hw = <&rkisp>;
       dvbm = <&rkdvbm>;
       status = "disabled";
   };
 
   rkisp_vir1: rkisp-vir1 {
       compatible = "rockchip,rkisp-vir";
       rockchip,hw = <&rkisp>;
       status = "disabled";
   };
 
   rkisp_vir2: rkisp-vir2 {
       compatible = "rockchip,rkisp-vir";
       rockchip,hw = <&rkisp>;
       status = "disabled";
   };
 
   rkisp_vir3: rkisp-vir3 {
       compatible = "rockchip,rkisp-vir";
       rockchip,hw = <&rkisp>;
       status = "disabled";
   };
 
   rockchip_system_monitor: rockchip-system-monitor {
       compatible = "rockchip,system-monitor";
 
       rockchip,thermal-zone = "soc-thermal";
   };
 
   thermal_zones: thermal-zones {
       soc_thermal: soc-thermal {
           polling-delay-passive = <20>; /* milliseconds */
           polling-delay = <1000>; /* milliseconds */
           sustainable-power = <2100>; /* milliwatts */
 
           thermal-sensors = <&tsadc 0>;
           trips {
               threshold: trip-point-0 {
                   temperature = <75000>;
                   hysteresis = <2000>;
                   type = "passive";
               };
               target: trip-point-1 {
                   temperature = <85000>;
                   hysteresis = <2000>;
                   type = "passive";
               };
               soc_crit: soc-crit {
                   /* millicelsius */
                   temperature = <115000>;
                   /* millicelsius */
                   hysteresis = <2000>;
                   type = "critical";
               };
           };
       };
   };
 
   timer {
       compatible = "arm,armv7-timer";
       interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_HIGH)>,
                <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_HIGH)>;
       clock-frequency = <24000000>;
   };
 
   grf: syscon@ff000000 {
       compatible = "rockchip,rv1106-grf", "syscon", "simple-mfd";
       reg = <0xff000000 0x68000>;
 
       grf_cru: grf-clock-controller {
           compatible = "rockchip,rv1106-grf-cru";
           #clock-cells = <1>;
       };
 
       reboot_mode: reboot-mode {
           compatible = "syscon-reboot-mode";
           offset = <0x20200>;
           mode-bootloader = <BOOT_BL_DOWNLOAD>;
           mode-charge = <BOOT_CHARGING>;
           mode-fastboot = <BOOT_FASTBOOT>;
           mode-loader = <BOOT_BL_DOWNLOAD>;
           mode-normal = <BOOT_NORMAL>;
           mode-recovery = <BOOT_RECOVERY>;
           mode-ums = <BOOT_UMS>;
           mode-panic = <BOOT_PANIC>;
           mode-watchdog = <BOOT_WATCHDOG>;
       };
 
       rgb: rgb {
           compatible = "rockchip,rv1106-rgb";
           status = "disabled";
 
           ports {
               #address-cells = <1>;
               #size-cells = <0>;
 
               port@0 {
                   reg = <0>;
                   #address-cells = <1>;
                   #size-cells = <0>;
 
                   rgb_in_vop: endpoint@0 {
                       reg = <0>;
                       remote-endpoint = <&vop_out_rgb>;
                   };
               };
           };
       };
 
       rknpor_powergood: rknpor-powergood {
           compatible = "rockchip,rv1106-npor-powergood";
           interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
           status = "okay";
       };
   };
 
   rtc: rtc@ff1c0000 {
       compatible = "rockchip,rv1106-rtc";
       reg = <0xff1c0000 0x1000>;
       rockchip,grf = <&grf>;
       interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
       clocks = <&cru PCLK_VI_RTC_PHY>, <&cru PCLK_VI_RTC_TEST>;
       clock-names = "pclk_phy", "pclk_test";
       assigned-clocks = <&cru PCLK_VI_RTC_PHY>;
       assigned-clock-rates = <24000000>;
       status = "disabled";
   };
 
   gic: interrupt-controller@ff1f0000 {
       compatible = "arm,gic-400";
       interrupt-controller;
       #interrupt-cells = <3>;
       #address-cells = <0>;
 
       reg = <0xff1f1000 0x1000>,
             <0xff1f2000 0x2000>,
             <0xff1f4000 0x2000>,
             <0xff1f6000 0x2000>;
       interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_HIGH)>;
   };
 
   arm-debug@ff200000 {
       compatible = "rockchip,debug";
       reg = <0xff200000 0x1000>;
   };
 
   pvtm@ff240000 {
       compatible = "rockchip,rv1106-core-pvtm";
       reg = <0xff240000 0x100>;
       #address-cells = <1>;
       #size-cells = <0>;
 
       pvtm@0 {
           reg = <0>;
           clocks = <&cru CLK_PVTM_CORE>;
           clock-names = "clk";
           resets = <&cru SRST_PVTM_CORE>, <&cru SRST_P_PVTM_CORE>;
           reset-names = "rst", "rst-p";
       };
   };
 
   pmu: power-management@ff300000 {
       compatible = "rockchip,rv1106-pmu", "syscon";
       reg = <0xff300000 0x1000>;
   };
 
   i2c0: i2c@ff310000 {
       compatible = "rockchip,rv1106-i2c", "rockchip,rk3399-i2c";
       reg = <0xff310000 0x1000>;
       interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
       #address-cells = <1>;
       #size-cells = <0>;
       clocks = <&cru CLK_I2C0>, <&cru PCLK_I2C0>;
       clock-names = "i2c", "pclk";
       pinctrl-names = "default";
       pinctrl-0 = <&i2c0m0_xfer>;
       status = "disabled";
   };
 
   i2c1: i2c@ff320000 {
       compatible = "rockchip,rv1106-i2c", "rockchip,rk3399-i2c";
       reg = <0xff320000 0x1000>;
       interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
       #address-cells = <1>;
       #size-cells = <0>;
       clocks = <&cru CLK_I2C1>, <&cru PCLK_I2C1>;
       clock-names = "i2c", "pclk";
       pinctrl-names = "default";
       pinctrl-0 = <&i2c1m0_xfer>;
       status = "disabled";
   };
 
   dsm: codec-digital@ff340000 {
       compatible = "rockchip,rv1106-codec-digital", "rockchip,codec-digital-v1";
       reg = <0xff340000 0x1000>;
       clocks = <&cru MCLK_DSM>, <&cru PCLK_DSM>;
       clock-names = "dac", "pclk";
       resets = <&cru SRST_M_DSM>;
       reset-names = "reset" ;
       rockchip,grf = <&grf>;
       rockchip,pwm-output-mode;
       #sound-dai-cells = <0>;
       pinctrl-names = "default";
       pinctrl-0 = <&dsmaudio_pins>;
       status = "disabled";
   };
 
   pwm0: pwm@ff350000 {
       compatible = "rockchip,rv1106-pwm", "rockchip,rk3328-pwm";
       reg = <0xff350000 0x10>;
       interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
       #pwm-cells = <3>;
       pinctrl-names = "active";
       pinctrl-0 = <&pwm0m0_pins>;
       clocks = <&cru CLK_PWM0_PERI>, <&cru PCLK_PWM0_PERI>;
       clock-names = "pwm", "pclk";
       status = "disabled";
   };
 
   pwm1: pwm@ff350010 {
       compatible = "rockchip,rv1106-pwm", "rockchip,rk3328-pwm";
       reg = <0xff350010 0x10>;
       interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
       #pwm-cells = <3>;
       pinctrl-names = "active";
       pinctrl-0 = <&pwm1m0_pins>;
       clocks = <&cru CLK_PWM0_PERI>, <&cru PCLK_PWM0_PERI>;
       clock-names = "pwm", "pclk";
       status = "disabled";
   };
 
   pwm2: pwm@ff350020 {
       compatible = "rockchip,rv1106-pwm", "rockchip,rk3328-pwm";
       reg = <0xff350020 0x10>;
       interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
       #pwm-cells = <3>;
       pinctrl-names = "active";
       pinctrl-0 = <&pwm2m0_pins>;
       clocks = <&cru CLK_PWM0_PERI>, <&cru PCLK_PWM0_PERI>;
       clock-names = "pwm", "pclk";
       status = "disabled";
   };
 
   pwm3: pwm@ff350030 {
       compatible = "rockchip,rv1106-pwm", "rockchip,rk3328-pwm";
       reg = <0xff350030 0x10>;
       interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>,
                <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
       #pwm-cells = <3>;
       pinctrl-names = "active";
       pinctrl-0 = <&pwm3m0_pins>;
       clocks = <&cru CLK_PWM0_PERI>, <&cru PCLK_PWM0_PERI>;
       clock-names = "pwm", "pclk";
       status = "disabled";
   };
 
   pwm4: pwm@ff360000 {
       compatible = "rockchip,rv1106-pwm", "rockchip,rk3328-pwm";
       reg = <0xff360000 0x10>;
       interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
       #pwm-cells = <3>;
       pinctrl-names = "active";
       pinctrl-0 = <&pwm4m0_pins>;
       clocks = <&cru CLK_PWM1_PERI>, <&cru PCLK_PWM1_PERI>;
       clock-names = "pwm", "pclk";
       status = "disabled";
   };
 
   pwm5: pwm@ff360010 {
       compatible = "rockchip,rv1106-pwm", "rockchip,rk3328-pwm";
       reg = <0xff360010 0x10>;
       interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
       #pwm-cells = <3>;
       pinctrl-names = "active";
       pinctrl-0 = <&pwm5m0_pins>;
       clocks = <&cru CLK_PWM1_PERI>, <&cru PCLK_PWM1_PERI>;
       clock-names = "pwm", "pclk";
       status = "disabled";
   };
 
   pwm6: pwm@ff360020 {
       compatible = "rockchip,rv1106-pwm", "rockchip,rk3328-pwm";
       reg = <0xff360020 0x10>;
       interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
       #pwm-cells = <3>;
       pinctrl-names = "active";
       pinctrl-0 = <&pwm6m0_pins>;
       clocks = <&cru CLK_PWM1_PERI>, <&cru PCLK_PWM1_PERI>;
       clock-names = "pwm", "pclk";
       status = "disabled";
   };
 
   pwm7: pwm@ff360030 {
       compatible = "rockchip,rv1106-pwm", "rockchip,rk3328-pwm";
       reg = <0xff360030 0x10>;
       interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>,
                <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
       #pwm-cells = <3>;
       pinctrl-names = "active";
       pinctrl-0 = <&pwm7m0_pins>;
       clocks = <&cru CLK_PWM1_PERI>, <&cru PCLK_PWM1_PERI>;
       clock-names = "pwm", "pclk";
       status = "disabled";
   };
 
   pmu_mailbox: mailbox@ff378000 {
       compatible = "rockchip,rv1106-mailbox",
                "rockchip,rk3368-mailbox";
       reg = <0xff378000 0x200>;
       interrupts = <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>;
       clocks = <&cru PCLK_PMU_MAILBOX>;
       clock-names = "pclk_mailbox";
       #mbox-cells = <1>;
       status = "disabled";
   };
 
   pmuioc: syscon@ff388000 {
       compatible = "rockchip,rv1106-pmuioc", "syscon";
       reg = <0xff388000 0x1000>;
   };
 
   pvtm@ff390000 {
       compatible = "rockchip,rv1106-pmu-pvtm";
       reg = <0xff390000 0x100>;
       #address-cells = <1>;
       #size-cells = <0>;
 
       pvtm@0 {
           reg = <1>;
           clocks = <&cru CLK_PVTM_PMU>, <&cru PCLK_PVTM_PMU>;
           clock-names = "clk", "pclk";
           resets = <&cru SRST_PVTM_PMU>, <&cru SRST_P_PVTM_PMU>;
           reset-names = "rst", "rst-p";
       };
   };
 
   cru: clock-controller@ff3a0000 {
       compatible = "rockchip,rv1106-cru";
       reg = <0xff3a0000 0x20000>;
       rockchip,grf = <&grf>;
       #clock-cells = <1>;
       #reset-cells = <1>;
 
       assigned-clocks =
           <&cru PLL_GPLL>, <&cru PLL_CPLL>,
           <&cru ARMCLK>,
           <&cru ACLK_PERI_ROOT>, <&cru HCLK_PERI_ROOT>,
           <&cru PCLK_PERI_ROOT>, <&cru ACLK_BUS_ROOT>,
           <&cru PCLK_TOP_ROOT>, <&cru PCLK_PMU_ROOT>,
           <&cru HCLK_PMU_ROOT>;
       assigned-clock-rates =
           <1188000000>, <1000000000>,
           <1104000000>,
           <400000000>, <200000000>,
           <100000000>, <300000000>,
           <100000000>, <100000000>,
           <200000000>;
   };
 
   saradc: saradc@ff3c0000 {
       compatible = "rockchip,rv1106-saradc";
       reg = <0xff3c0000 0x200>;
       interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
       #io-channel-cells = <1>;
       clocks = <&cru CLK_SARADC>, <&cru PCLK_SARADC>;
       clock-names = "saradc", "apb_pclk";
       resets = <&cru SRST_P_SARADC>;
       reset-names = "saradc-apb";
       status = "disabled";
   };
 
   tsadc: tsadc@ff3c8000 {
       compatible = "rockchip,rv1106-tsadc";
       reg = <0xff3c8000 0x1000>;
       rockchip,grf = <&grf>;
       interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>;
       clocks = <&cru CLK_TSADC>, <&cru PCLK_TSADC>, <&cru CLK_TSADC_TSEN>;
       clock-names = "tsadc", "apb_pclk", "tsen";
       assigned-clocks = <&cru CLK_TSADC>, <&cru CLK_TSADC_TSEN>;
       assigned-clock-rates = <1000000>, <12000000>;
       resets = <&cru SRST_TSADC>, <&cru SRST_P_TSADC>;
       reset-names = "tsadc", "tsadc-apb";
       #thermal-sensor-cells = <1>;
       rockchip,hw-tshut-temp = <120000>;
       rockchip,hw-tshut-mode = <0>; /* tshut mode 0:CRU 1:GPIO */
       rockchip,hw-tshut-polarity = <0>; /* tshut polarity 0:LOW 1:HIGH */
       status = "disabled";
   };
 
   otp: otp@ff3d0000 {
       compatible = "rockchip,rv1106-otp";
       reg = <0xff3d0000 0x4000>;
       #address-cells = <1>;
       #size-cells = <1>;
       clocks = <&cru CLK_USER_OTPC_NS>, <&cru CLK_SBPI_OTPC_NS>,
            <&cru PCLK_OTPC_NS>, <&cru PCLK_OTP_MASK>,
            <&cru CLK_OTPC_ARB>, <&cru CLK_PMC_OTP>;
       clock-names = "usr", "sbpi", "apb", "phy", "arb", "pmc";
       resets = <&cru SRST_USER_OTPC_NS>, <&cru SRST_SBPI_OTPC_NS>,
            <&cru SRST_P_OTPC_NS>, <&cru SRST_P_OTP_MASK>,
            <&cru SRST_OTPC_ARB>, <&cru SRST_PMC_OTP>;
       reset-names = "usr", "sbpi", "apb", "phy", "arb", "pmc";
 
       /* Data cells */
       cpu_code: cpu-code@2 {
           reg = <0x02 0x2>;
       };
       otp_cpu_version: cpu-version@8 {
           reg = <0x08 0x1>;
           bits = <3 3>;
       };
       otp_id: id@a {
           reg = <0x0a 0x10>;
       };
       cpu_leakage: cpu-leakage@1a {
           reg = <0x1a 0x1>;
       };
       log_leakage: log-leakage@1b {
           reg = <0x1b 0x1>;
       };
       macphy_bgs: macphy-bgs@2d {
           reg = <0x2d 0x1>;
       };
       macphy_txlevel: macphy-txlevel@2e {
           reg = <0x2e 0x2>;
       };
   };
 
   u2phy: usb2-phy@ff3e0000 {
       compatible = "rockchip,rv1106-usb2phy";
       reg = <0xff3e0000 0x8000>;
       rockchip,usbgrf = <&grf>;
       clocks = <&cru CLK_REF_USBPHY>, <&cru PCLK_USBPHY>;
       clock-names = "phyclk", "pclk";
       resets = <&cru SRST_USBPHY_POR>, <&cru SRST_P_USBPHY>;
       reset-names = "u2phy", "u2phy-apb";
       #clock-cells = <0>;
       status = "disabled";
 
       u2phy_otg: otg-port {
           #phy-cells = <0>;
           interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>,
                    <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>,
                    <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>,
                    <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
           interrupt-names = "otg-bvalid", "otg-id",
                     "linestate", "disconnect";
           status = "disabled";
       };
   };
 
   csi2_dphy_hw: csi2-dphy-hw@ff3e8000 {
       compatible = "rockchip,rv1106-csi2-dphy-hw";
       reg = <0xff3e8000 0x8000>;
       clocks = <&cru PCLK_MIPICSIPHY>;
       clock-names = "pclk";
       resets = <&cru SRST_P_MIPICSIPHY>;
       reset-names = "srst_p_csiphy";
       rockchip,grf = <&grf>;
       status = "disabled";
   };
 
   dmac: dma-controller@ff420000 {
       compatible = "arm,pl330", "arm,primecell";
       reg = <0xff420000 0x4000>;
       interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>,
                <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>,
                <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>,
                <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>,
                <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>,
                <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>,
                <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>,
                <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>,
                <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
       #dma-cells = <1>;
       clocks = <&cru ACLK_DMAC>;
       clock-names = "apb_pclk";
       arm,pl330-periph-burst;
   };
 
   crypto: crypto@ff440000 {
       compatible = "rockchip,crypto-v3";
       reg = <0xff440000 0x2000>;
       interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
       clocks = <&cru ACLK_CRYPTO>, <&cru HCLK_CRYPTO>,
            <&cru CLK_CORE_CRYPTO>, <&cru CLK_PKA_CRYPTO>;
       clock-names = "aclk", "hclk", "sclk", "pka";
       assigned-clocks = <&cru CLK_CORE_CRYPTO>, <&cru CLK_PKA_CRYPTO>;
       assigned-clock-rates = <200000000>, <200000000>;
       resets = <&cru SRST_CORE_CRYPTO>;
       reset-names = "crypto-rst";
       status = "disabled";
   };
 
   rng: rng@ff448000 {
       compatible = "rockchip,trngv1";
       reg = <0xff448000 0x200>;
       interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
       clocks = <&cru HCLK_TRNG_NS>;
       clock-names = "hclk_trng";
       resets = <&cru SRST_H_TRNG_NS>;
       reset-names = "reset";
       status = "disabled";
   };
 
   i2c2: i2c@ff450000 {
       compatible = "rockchip,rv1106-i2c", "rockchip,rk3399-i2c";
       reg = <0xff450000 0x1000>;
       interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
       #address-cells = <1>;
       #size-cells = <0>;
       clocks = <&cru CLK_I2C2>, <&cru PCLK_I2C2>;
       clock-names = "i2c", "pclk";
       pinctrl-names = "default";
       pinctrl-0 = <&i2c2m0_xfer>;
       status = "disabled";
   };
 
   i2c3: i2c@ff460000 {
       compatible = "rockchip,rv1106-i2c", "rockchip,rk3399-i2c";
       reg = <0xff460000 0x1000>;
       interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
       #address-cells = <1>;
       #size-cells = <0>;
       clocks = <&cru CLK_I2C3>, <&cru PCLK_I2C3>;
       clock-names = "i2c", "pclk";
       pinctrl-names = "default";
       pinctrl-0 = <&i2c3m0_xfer>;
       status = "disabled";
   };
 
   i2c4: i2c@ff470000 {
       compatible = "rockchip,rv1106-i2c", "rockchip,rk3399-i2c";
       reg = <0xff470000 0x1000>;
       interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>;
       #address-cells = <1>;
       #size-cells = <0>;
       clocks = <&cru CLK_I2C4>, <&cru PCLK_I2C4>;
       clock-names = "i2c", "pclk";
       pinctrl-names = "default";
       pinctrl-0 = <&i2c4m0_xfer>;
       status = "disabled";
   };
 
   acodec: acodec@ff480000 {
       compatible = "rockchip,rv1106-codec";
       reg = <0xff480000 0x1000>;
       rockchip,grf = <&grf>;
       clocks = <&cru PCLK_ACODEC>,
            <&cru MCLK_ACODEC_TX>,
            <&cru MCLK_I2S0_8CH_TX>;
       clock-names = "pclk_acodec", "mclk_acodec", "mclk_cpu";
       resets = <&cru SRST_P_ACODEC>;
       reset-names = "acodec-reset";
       acodec,micbias;
       init-mic-gain = <0x22>; /* Left:20dB Right:20dB */
       status = "disabled";
   };
 
   pwm8: pwm@ff490000 {
       compatible = "rockchip,rv1106-pwm", "rockchip,rk3328-pwm";
       reg = <0xff490000 0x10>;
       interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
       #pwm-cells = <3>;
       pinctrl-names = "active";
       pinctrl-0 = <&pwm8m0_pins>;
       clocks = <&cru CLK_PWM2_PERI>, <&cru PCLK_PWM2_PERI>;
       clock-names = "pwm", "pclk";
       status = "disabled";
   };
 
   pwm9: pwm@ff490010 {
       compatible = "rockchip,rv1106-pwm", "rockchip,rk3328-pwm";
       reg = <0xff490010 0x10>;
       interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
       #pwm-cells = <3>;
       pinctrl-names = "active";
       pinctrl-0 = <&pwm9m0_pins>;
       clocks = <&cru CLK_PWM2_PERI>, <&cru PCLK_PWM2_PERI>;
       clock-names = "pwm", "pclk";
       status = "disabled";
   };
 
   pwm10: pwm@ff490020 {
       compatible = "rockchip,rv1106-pwm", "rockchip,rk3328-pwm";
       reg = <0xff490020 0x10>;
       interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
       #pwm-cells = <3>;
       pinctrl-names = "active";
       pinctrl-0 = <&pwm10m0_pins>;
       clocks = <&cru CLK_PWM2_PERI>, <&cru PCLK_PWM2_PERI>;
       clock-names = "pwm", "pclk";
       status = "disabled";
   };
 
   pwm11: pwm@ff490030 {
       compatible = "rockchip,rv1106-pwm", "rockchip,rk3328-pwm";
       reg = <0xff490030 0x10>;
       interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>,
                <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
       #pwm-cells = <3>;
       pinctrl-names = "active";
       pinctrl-0 = <&pwm11m0_pins>;
       clocks = <&cru CLK_PWM2_PERI>, <&cru PCLK_PWM2_PERI>;
       clock-names = "pwm", "pclk";
       status = "disabled";
   };
 
   uart0: serial@ff4a0000 {
       compatible = "rockchip,rv1106-uart", "snps,dw-apb-uart";
       reg = <0xff4a0000 0x100>;
       interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
       reg-shift = <2>;
       reg-io-width = <4>;
       dmas = <&dmac 7>, <&dmac 6>;
       clock-frequency = <24000000>;
       clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>;
       clock-names = "baudclk", "apb_pclk";
       pinctrl-names = "default";
       pinctrl-0 = <&uart0m0_xfer>;
       status = "disabled";
   };
 
   uart1: serial@ff4b0000 {
       compatible = "rockchip,rv1106-uart", "snps,dw-apb-uart";
       reg = <0xff4b0000 0x100>;
       interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
       reg-shift = <2>;
       reg-io-width = <4>;
       dmas = <&dmac 9>, <&dmac 8>;
       clock-frequency = <24000000>;
       clocks = <&cru SCLK_UART1>, <&cru PCLK_UART1>;
       clock-names = "baudclk", "apb_pclk";
       pinctrl-names = "default";
       pinctrl-0 = <&uart1m0_xfer &uart1m0_ctsn &uart1m0_rtsn>;
       status = "disabled";
   };
 
   uart2: serial@ff4c0000 {
       compatible = "rockchip,rv1106-uart", "snps,dw-apb-uart";
       reg = <0xff4c0000 0x100>;
       interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
       reg-shift = <2>;
       reg-io-width = <4>;
       dmas = <&dmac 11>, <&dmac 10>;
       clock-frequency = <24000000>;
       clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>;
       clock-names = "baudclk", "apb_pclk";
       pinctrl-names = "default";
       pinctrl-0 = <&uart2m1_xfer>;
       status = "disabled";
   };
 
   uart3: serial@ff4d0000 {
       compatible = "rockchip,rv1106-uart", "snps,dw-apb-uart";
       reg = <0xff4d0000 0x100>;
       interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
       reg-shift = <2>;
       reg-io-width = <4>;
       dmas = <&dmac 13>, <&dmac 12>;
       clock-frequency = <24000000>;
       clocks = <&cru SCLK_UART3>, <&cru PCLK_UART3>;
       clock-names = "baudclk", "apb_pclk";
       pinctrl-names = "default";
       pinctrl-0 = <&uart3m0_xfer>;
       status = "disabled";
   };
 
   uart4: serial@ff4e0000 {
       compatible = "rockchip,rv1106-uart", "snps,dw-apb-uart";
       reg = <0xff4e0000 0x100>;
       interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
       reg-shift = <2>;
       reg-io-width = <4>;
       dmas = <&dmac 15>, <&dmac 14>;
       clock-frequency = <24000000>;
       clocks = <&cru SCLK_UART4>, <&cru PCLK_UART4>;
       clock-names = "baudclk", "apb_pclk";
       pinctrl-names = "default";
       pinctrl-0 = <&uart4m0_xfer>;
       status = "disabled";
   };
 
   uart5: serial@ff4f0000 {
       compatible = "rockchip,rv1106-uart", "snps,dw-apb-uart";
       reg = <0xff4f0000 0x100>;
       interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
       reg-shift = <2>;
       reg-io-width = <4>;
       dmas = <&dmac 17>, <&dmac 16>;
       clock-frequency = <24000000>;
       clocks = <&cru SCLK_UART5>, <&cru PCLK_UART5>;
       clock-names = "baudclk", "apb_pclk";
       pinctrl-names = "default";
       pinctrl-0 = <&uart5m0_xfer &uart5m0_ctsn &uart5m0_rtsn>;
       status = "disabled";
   };
 
   spi0: spi@ff500000 {
       compatible = "rockchip,rv1106-spi", "rockchip,rk3066-spi";
       reg = <0xff500000 0x1000>;
       interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
       #address-cells = <1>;
       #size-cells = <0>;
       clocks = <&cru CLK_SPI0>, <&cru PCLK_SPI0>, <&cru SCLK_IN_SPI0>;
       clock-names = "spiclk", "apb_pclk", "sclk_in";
       dmas = <&dmac 1>, <&dmac 0>;
       dma-names = "tx", "rx";
       pinctrl-names = "default";
       pinctrl-0 = <&spi0m0_cs0 &spi0m0_cs1 &spi0m0_pins>;
       status = "disabled";
   };
 
   spi1: spi@ff510000 {
       compatible = "rockchip,rv1106-spi", "rockchip,rk3066-spi";
       reg = <0xff510000 0x1000>;
       interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
       #address-cells = <1>;
       #size-cells = <0>;
       clocks = <&cru CLK_SPI1>, <&cru PCLK_SPI1>;
       clock-names = "spiclk", "apb_pclk";
       assigned-clocks = <&cru CLK_SPI1>;
       assigned-clock-rates = <200000000>;
       dmas = <&dmac 3>, <&dmac 2>;
       dma-names = "tx", "rx";
       pinctrl-names = "default";
       pinctrl-0 = <&spi1m0_cs0 &spi1m0_cs1 &spi1m0_pins>;
       status = "disabled";
   };
 
   hw_decompress: decompress@ff520000 {
       compatible = "rockchip,hw-decompress";
       reg = <0xff520000 0x1000>;
       interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>;
       clocks = <&cru ACLK_DECOM>, <&cru DCLK_DECOM>, <&cru PCLK_DECOM>;
       clock-names = "aclk", "dclk", "pclk";
       resets = <&cru SRST_D_DECOM>;
       reset-names = "dresetn";
       status = "disabled";
   };
 
   ioc: syscon@ff538000 {
       compatible = "rockchip,rv1106-ioc", "syscon";
       reg = <0xff538000 0x40000>;
   };
 
   wdt: watchdog@ff5a0000 {
       compatible = "rockchip,rv1106-wdt", "snps,dw-wdt";
       reg = <0xff5a0000 0x100>;
       clocks = <&cru TCLK_WDT_NS>, <&cru PCLK_WDT_NS>;
       clock-names = "tclk", "pclk";
       interrupts = <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>;
       status = "disabled";
   };
 
   mailbox: mailbox@ff5c0000 {
       compatible = "rockchip,rv1106-mailbox",
                "rockchip,rk3368-mailbox";
       reg = <0xff5c0000 0x200>;
       interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
       clocks = <&cru PCLK_MAILBOX>;
       clock-names = "pclk_mailbox";
       #mbox-cells = <1>;
       status = "disabled";
   };
 
   npu: npu@ff660000 {
       compatible = "rockchip,rv1106-rknpu";
       reg = <0xff660000 0x10000>;
       interrupts = <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>;
       clocks = <&cru ACLK_RKNN>, <&cru HCLK_RKNN>;
       clock-names = "aclk", "hclk";
       assigned-clocks = <&cru ACLK_RKNN>;
       assigned-clock-rates = <420000000>;
       resets = <&cru SRST_A_RKNN>, <&cru SRST_H_RKNN>;
       reset-names = "srst_a", "srst_h";
       status = "disabled";
   };
 
   system_sram: sram@ff6c0000 {
       compatible = "mmio-sram";
       reg = <0xff6c0000 0x40000>;
       #address-cells = <1>;
       #size-cells = <1>;
       ranges = <0 0xff6c0000 0x40000>;
       rkisp_sram: rkisp-sram@0 {
           reg = <0x0 0x3f000>;
       };
       hpmcu_sram: hpmcu-sram@3f000 {
           reg = <0x3f000 0x1000>;
       };
   };
 
   rga2: rga@ff980000 {
       compatible = "rockchip,rga2_core0";
       reg = <0xff980000 0x1000>;
       interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
       clocks = <&cru ACLK_RGA2E>, <&cru HCLK_RGA2E>, <&cru CLK_CORE_RGA2E>;
       clock-names = "aclk_rga2", "hclk_rga2", "clk_rga2";
       status = "disabled";
   };
 
   vop: vop@ff990000 {
       compatible = "rockchip,rv1106-vop";
       reg = <0xff990000 0x200>;
       reg-names = "regs";
       rockchip,grf = <&grf>;
       interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
       clocks = <&cru ACLK_VOP>, <&cru DCLK_VOP>, <&cru HCLK_VOP>;
       clock-names = "aclk_vop", "dclk_vop", "hclk_vop";
       status = "disabled";
 
       vop_out: port {
           #address-cells = <1>;
           #size-cells = <0>;
 
           vop_out_rgb: endpoint@0 {
               reg = <0>;
               remote-endpoint = <&rgb_in_vop>;
           };
       };
   };
 
   sdio: mmc@ff9a0000 {
       compatible = "rockchip,rv1106-dw-mshc", "rockchip,rk3288-dw-mshc";
       reg = <0xff9a0000 0x4000>;
       interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>;
       clocks = <&cru HCLK_SDIO>, <&cru CCLK_SRC_SDIO>,
            <&grf_cru SCLK_SDIO_DRV>, <&grf_cru SCLK_SDIO_SAMPLE>;
       clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
       fifo-depth = <0x100>;
       max-frequency = <200000000>;
       status = "disabled";
   };
 
   rkisp: rkisp@ffa00000 {
       compatible = "rockchip,rv1106-rkisp";
       reg = <0xffa00000 0x7f00>;
       interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>,
                <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>,
                <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
       interrupt-names = "isp_irq", "mi_irq", "mipi_irq";
       clocks = <&cru ACLK_ISP3P2>, <&cru HCLK_ISP3P2>,
            <&cru CLK_CORE_ISP3P2>, <&cru ISP0CLK_VICAP>;
       clock-names = "aclk_isp", "hclk_isp",
                 "clk_isp_core", "clk_isp_core_vicap";
       rockchip,sram = <&rkisp_sram>;
       status = "disabled";
   };
 
   rkcif: rkcif@ffa10000 {
       compatible = "rockchip,rv1106-cif";
       reg = <0xffa10000 0x10000>;
       reg-names = "cif_regs";
       interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>;
       interrupt-names = "cif-intr";
       clocks = <&cru ACLK_VICAP>, <&cru HCLK_VICAP>,
            <&cru DCLK_VICAP>, <&cru PCLK_VICAP>,
            <&cru I0CLK_VICAP>, <&cru I1CLK_VICAP>,
            <&cru RX0PCLK_VICAP>, <&cru RX1PCLK_VICAP>,
            <&cru ISP0CLK_VICAP>, <&cru SCLK_VICAP_M0>,
            <&cru SCLK_VICAP_M1>, <&cru PCLK_VICAP_VEPU>;
       clock-names = "aclk_cif","hclk_cif",
                 "dclk_cif", "pclk_cif",
                 "i0clk_cif", "i1clk_cif",
                 "rx0clk_cif", "rx1clk_cif",
                 "isp0clk_cif", "sclk_m0_cif",
                 "sclk_m1_cif", "pclk_vepu_cif";
       resets = <&cru SRST_A_VICAP>, <&cru SRST_H_VICAP>,
            <&cru SRST_D_VICAP>, <&cru SRST_P_VICAP>,
            <&cru SRST_VICAP_I0>, <&cru SRST_VICAP_I1>,
            <&cru SRST_VICAP_RX0>, <&cru SRST_VICAP_RX1>,
            <&cru SRST_VICAP_ISP0>, <&cru SRST_P_VICAP_VEPU>;
       reset-names = "rst_cif_a","rst_cif_h",
                 "rst_cif_d", "rst_cif_p",
                 "rst_cif_i0", "rst_cif_i1",
                 "rst_cif_rx0", "rst_cif_rx1",
                 "rst_cif_isp0", "rst_cif_pclk_vepu";
       rockchip,grf = <&grf>;
       status = "disabled";
   };
 
   mipi0_csi2_hw: mipi-csi2-hw@ffa20000 {
       compatible = "rockchip,rv1106-mipi-csi2-hw";
       reg = <0xffa20000 0x10000>;
       reg-names = "csihost_regs";
       interrupts = <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>,
                <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>;
       interrupt-names = "csi-intr1", "csi-intr2";
       clocks = <&cru PCLK_CSIHOST0>, <&cru CLK_RXBYTECLKHS_0>;
       clock-names = "pclk_csi2host", "clk_rxbyte_hs";
       resets = <&cru SRST_P_CSIHOST0>;
       reset-names = "srst_csihost_p";
       status = "okay";
   };
 
   mipi1_csi2_hw: mipi-csi2-hw@ffa30000 {
       compatible = "rockchip,rv1106-mipi-csi2-hw";
       reg = <0xffa30000 0x10000>;
       reg-names = "csihost_regs";
       interrupts = <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>,
                <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>;
       interrupt-names = "csi-intr1", "csi-intr2";
       clocks = <&cru PCLK_CSIHOST1>, <&cru CLK_RXBYTECLKHS_1>;
       clock-names = "pclk_csi2host", "clk_rxbyte_hs";
       resets = <&cru SRST_P_CSIHOST1>;
       reset-names = "srst_csihost_p";
       status = "okay";
   };
 
   rkvenc: rkvenc@ffa50000 {
       compatible = "rockchip,rkv-encoder-rv1106";
       reg = <0xffa50000 0x6000>;
       interrupts = <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>;
       interrupt-names = "irq_rkvenc";
       clocks = <&cru ACLK_VEPU>, <&cru HCLK_VEPU>, <&cru CLK_CORE_VEPU>;
       clock-names = "aclk_vcodec", "hclk_vcodec", "clk_core";
       rockchip,normal-rates = <300000000>, <0>, <410000000>;
       assigned-clocks = <&cru ACLK_VEPU>, <&cru CLK_CORE_VEPU>;
       assigned-clock-rates = <300000000>, <400000000>;
       resets = <&cru SRST_A_VEPU>, <&cru SRST_H_VEPU>, <&cru SRST_CORE_VEPU>;
       reset-names = "video_a", "video_h", "video_core";
       rockchip,srv = <&mpp_srv>;
       rockchip,taskqueue-node = <0>;
       dvbm = <&rkdvbm>;
       status = "disabled";
   };
 
   rkvenc_pp: rkvenc-pp@ffa60000 {
       compatible = "rockchip,rkvenc-pp-rv1106";
       reg = <0xffa60000 0x900>;
       interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>;
       interrupt-names = "irq_rkvenc_pp";
       clocks = <&cru ACLK_VEPU_PP>, <&cru HCLK_VEPU_PP>;
       clock-names = "aclk_vepu_pp", "hclk_vepu_pp";
       assigned-clocks = <&cru ACLK_VEPU_PP>, <&cru HCLK_VEPU_PP>;
       resets = <&cru SRST_A_VEPU_PP>, <&cru SRST_H_VEPU_PP>;
       rockchip,srv = <&mpp_srv>;
       rockchip,taskqueue-node = <1>;
       status = "disabled";
   };
 
   rkdvbm: rkdvbm@ffa70000 {
       compatible = "rockchip,rk-dvbm";
       reg = <0xffa70000 0x90>;
       interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>;
       interrupt-names = "irq_rkdvbm";
       clocks = <&cru CLK_CORE_VEPU_DVBM>;
       clock-names = "clk_core";
       assigned-clocks = <&cru CLK_CORE_VEPU_DVBM>;
       assigned-clock-rates = <200000000>;
       resets = <&cru SRST_CORE_VEPU_DVBM>;
       reset-names = "dvbm_rst";
       status = "disabled";
   };
 
   gmac: ethernet@ffa80000 {
       compatible = "rockchip,rv1106-gmac", "snps,dwmac-4.20a";
       reg = <0xffa80000 0x10000>;
       interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>,
                <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
       interrupt-names = "macirq", "eth_wake_irq";
       rockchip,grf = <&grf>;
       clocks = <&cru CLK_GMAC0_TX_50M_O>, <&cru CLK_GMAC0_REF_50M>,
            <&cru ACLK_MAC>, <&cru PCLK_MAC>;
       clock-names = "stmmaceth", "clk_mac_ref",
                 "aclk_mac", "pclk_mac";
       resets = <&cru SRST_A_MAC>;
       reset-names = "stmmaceth";
 
       snps,mixed-burst;
       snps,tso;
 
       tx-dma-size = <256>;
       rx-dma-size = <128>;
 
       snps,axi-config = <&stmmac_axi_setup>;
       snps,mtl-rx-config = <&mtl_rx_setup>;
       snps,mtl-tx-config = <&mtl_tx_setup>;
 
       phy-mode = "rmii";
       clock_in_out = "input";
       phy-handle = <&rmii_phy>;
 
       /* FLOW_OFF: 0, FLOW_RX: 1, FLOW_TX: 2, FLOW_AUTO: 3 */
       snps,flow-ctrl = <0>;
 
       nvmem-cells = <&macphy_bgs>;
       nvmem-cell-names = "bgs";
       status = "disabled";
 
       mdio: mdio {
           compatible = "snps,dwmac-mdio";
           #address-cells = <0x1>;
           #size-cells = <0x0>;
           rmii_phy: ethernet-phy@2 {
               compatible = "ethernet-phy-id0044.1400", "ethernet-phy-ieee802.3-c22";
               reg = <2>;
               clocks = <&cru CLK_MACPHY>;
               resets = <&cru SRST_MACPHY>;
               phy-is-integrated;
               nvmem-cells = <&macphy_txlevel>;
               nvmem-cell-names = "txlevel";
               bgs,increment = <2>;
           };
       };
 
       stmmac_axi_setup: stmmac-axi-config {
           snps,wr_osr_lmt = <4>;
           snps,rd_osr_lmt = <8>;
           snps,blen = <0 0 0 0 16 8 4>;
       };
 
       mtl_rx_setup: rx-queues-config {
           snps,rx-queues-to-use = <1>;
           queue0 {
               status = "okay";
           };
       };
 
       mtl_tx_setup: tx-queues-config {
           snps,tx-queues-to-use = <1>;
           queue0 {
               status = "okay";
           };
       };
   };
 
   emmc: mmc@ffa90000 {
       compatible = "rockchip,rv1106-dw-mshc", "rockchip,rk3288-dw-mshc";
       reg = <0xffa90000 0x4000>;
       interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>;
       clocks = <&cru HCLK_EMMC>, <&cru CCLK_SRC_EMMC>,
            <&grf_cru SCLK_EMMC_DRV>, <&grf_cru SCLK_EMMC_SAMPLE>;
       clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
       fifo-depth = <0x100>;
       max-frequency = <200000000>;
       rockchip,use-v2-tuning;
       status = "disabled";
   };
 
   sdmmc: mmc@ffaa0000 {
       compatible = "rockchip,rv1106-dw-mshc", "rockchip,rk3288-dw-mshc";
       reg = <0xffaa0000 0x4000>;
       interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>;
       clocks = <&cru HCLK_SDMMC>, <&cru CCLK_SRC_SDMMC>,
            <&grf_cru SCLK_SDMMC_DRV>, <&grf_cru SCLK_SDMMC_SAMPLE>;
       clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
       fifo-depth = <0x100>;
       max-frequency = <200000000>;
       status = "disabled";
   };
 
   sfc: spi@ffac0000 {
       compatible = "rockchip,sfc";
       reg = <0xffac0000 0x4000>;
       interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>;
       clocks = <&cru SCLK_SFC>, <&cru HCLK_SFC>;
       clock-names = "clk_sfc", "hclk_sfc";
       assigned-clocks = <&cru SCLK_SFC>;
       assigned-clock-rates = <75000000>;
       #address-cells = <1>;
       #size-cells = <0>;
       status = "disabled";
   };
 
   rve: rve@ffad0000 {
       compatible = "rockchip,rve";
       reg = <0xffad0000 0x1000>;
       interrupts = <GIC_SPI 111 IRQ_TYPE_LEVEL_HIGH>;
       clocks = <&cru ACLK_IVE>, <&cru HCLK_IVE>;
       clock-names = "aclk_rve", "hclk_rve";
       status = "disabled";
   };
 
   i2s0_8ch: i2s@ffae0000 {
       compatible = "rockchip,rv1106-i2s-tdm";
       reg = <0xffae0000 0x1000>;
       interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
       clocks = <&cru MCLK_I2S0_8CH_TX>, <&cru MCLK_I2S0_8CH_RX>, <&cru HCLK_I2S0>;
       clock-names = "mclk_tx", "mclk_rx", "hclk";
       dmas = <&dmac 22>, <&dmac 21>;
       dma-names = "tx", "rx";
       resets = <&cru SRST_M_I2S0_8CH_TX>, <&cru SRST_M_I2S0_8CH_RX>;
       reset-names = "tx-m", "rx-m";
       rockchip,clk-trcm = <1>;
       #sound-dai-cells = <0>;
       status = "disabled";
   };
 
   usbdrd: usbdrd {
       compatible = "rockchip,rv1106-dwc3", "rockchip,rk3399-dwc3";
       clocks = <&cru CLK_REF_USBOTG>, <&cru CLK_UTMI_USBOTG>,
            <&cru ACLK_USBOTG>;
       clock-names = "ref", "utmi", "bus";
       #address-cells = <1>;
       #size-cells = <1>;
       ranges;
       status = "disabled";
 
       usbdrd_dwc3: usb@ffb00000 {
           compatible = "snps,dwc3";
           reg = <0xffb00000 0x100000>;
           interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>;
           resets = <&cru SRST_A_USBOTG>;
           reset-names = "usb3-otg";
           dr_mode = "otg";
           maximum-speed = "high-speed";
           phys = <&u2phy_otg>;
           phy-names = "usb2-phy";
           phy_type = "utmi_wide";
           snps,dis_enblslpm_quirk;
           snps,dis-u2-freeclk-exists-quirk;
           snps,dis_u2_susphy_quirk;
           snps,dis-del-phy-power-chg-quirk;
           snps,dis-tx-ipgap-linecheck-quirk;
           snps,usb2-gadget-lpm-disable;
           snps,usb2-lpm-disable;
           snps,parkmode-disable-hs-quirk;
           status = "disabled";
       };
   };
 
   pinctrl: pinctrl {
       compatible = "rockchip,rv1106-pinctrl";
       rockchip,grf = <&ioc>;
       rockchip,pmu = <&pmuioc>;
       #address-cells = <1>;
       #size-cells = <1>;
       ranges;
 
       gpio0: gpio@ff380000 {
           compatible = "rockchip,gpio-bank";
           reg = <0xff380000 0x100>;
           interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
           clocks = <&cru PCLK_PMU_GPIO0>, <&cru DBCLK_PMU_GPIO0>;
 
           gpio-controller;
           #gpio-cells = <2>;
           gpio-ranges = <&pinctrl 0 0 32>;
           interrupt-controller;
           #interrupt-cells = <2>;
       };
 
       gpio1: gpio@ff530000 {
           compatible = "rockchip,gpio-bank";
           reg = <0xff530000 0x100>;
           interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
           clocks = <&cru PCLK_GPIO1>, <&cru DBCLK_GPIO1>;
 
           gpio-controller;
           #gpio-cells = <2>;
           gpio-ranges = <&pinctrl 0 32 32>;
           interrupt-controller;
           #interrupt-cells = <2>;
       };
 
       gpio2: gpio@ff540000 {
           compatible = "rockchip,gpio-bank";
           reg = <0xff540000 0x100>;
           interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
           clocks = <&cru PCLK_GPIO2>, <&cru DBCLK_GPIO2>;
 
           gpio-controller;
           #gpio-cells = <2>;
           gpio-ranges = <&pinctrl 0 64 32>;
           interrupt-controller;
           #interrupt-cells = <2>;
       };
 
       gpio3: gpio@ff550000 {
           compatible = "rockchip,gpio-bank";
           reg = <0xff550000 0x100>;
           interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
           clocks = <&cru PCLK_GPIO3>, <&cru DBCLK_GPIO3>;
 
           gpio-controller;
           #gpio-cells = <2>;
           gpio-ranges = <&pinctrl 0 96 32>;
           interrupt-controller;
           #interrupt-cells = <2>;
       };
 
       gpio4: gpio@ff560000 {
           compatible = "rockchip,gpio-bank";
           reg = <0xff560000 0x100>;
           interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
           clocks = <&cru PCLK_GPIO4>, <&cru DBCLK_GPIO4>;
 
           gpio-controller;
           #gpio-cells = <2>;
           gpio-ranges = <&pinctrl 0 128 32>;
           interrupt-controller;
           #interrupt-cells = <2>;
       };
   };
};
 
#include "rv1106-pinctrl.dtsi"