-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathjh7110.dtsi
1499 lines (1398 loc) · 43.1 KB
/
jh7110.dtsi
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
// SPDX-License-Identifier: GPL-2.0 OR MIT
/*
* Copyright (C) 2022 StarFive Technology Co., Ltd.
* Copyright (C) 2022 Hal Feng <hal.feng@starfivetech.com>
*/
/dts-v1/;
#include "jh7110_clk.dtsi"
#include <dt-bindings/reset/starfive-jh7110.h>
#include <dt-bindings/clock/starfive-jh7110-clkgen.h>
#include <dt-bindings/clock/starfive-jh7110-isp.h>
/ {
compatible = "starfive,jh7110";
#address-cells = <2>;
#size-cells = <2>;
cpus {
#address-cells = <1>;
#size-cells = <0>;
cpu0: cpu@0 {
compatible = "sifive,s7", "riscv";
reg = <0>;
d-cache-block-size = <64>;
d-cache-sets = <64>;
d-cache-size = <8192>;
d-tlb-sets = <1>;
d-tlb-size = <40>;
device_type = "cpu";
i-cache-block-size = <64>;
i-cache-sets = <64>;
i-cache-size = <16384>;
i-tlb-sets = <1>;
i-tlb-size = <40>;
mmu-type = "riscv,sv39";
next-level-cache = <&cachectrl>;
riscv,isa = "rv64imacu_zba_zbb";
tlb-split;
status = "disabled";
cpu0intctrl: interrupt-controller {
#interrupt-cells = <1>;
compatible = "riscv,cpu-intc";
interrupt-controller;
};
};
cpu1: cpu@1 {
compatible = "sifive,u74-mc", "riscv";
reg = <1>;
d-cache-block-size = <64>;
d-cache-sets = <64>;
d-cache-size = <32768>;
d-tlb-sets = <1>;
d-tlb-size = <40>;
device_type = "cpu";
i-cache-block-size = <64>;
i-cache-sets = <64>;
i-cache-size = <32768>;
i-tlb-sets = <1>;
i-tlb-size = <40>;
mmu-type = "riscv,sv39";
next-level-cache = <&cachectrl>;
riscv,isa = "rv64imafdcbsux_zba_zbb";
tlb-split;
status = "okay";
cpu1intctrl: interrupt-controller {
#interrupt-cells = <1>;
compatible = "riscv,cpu-intc";
interrupt-controller;
};
};
cpu2: cpu@2 {
compatible = "sifive,u74-mc", "riscv";
reg = <2>;
d-cache-block-size = <64>;
d-cache-sets = <64>;
d-cache-size = <32768>;
d-tlb-sets = <1>;
d-tlb-size = <40>;
device_type = "cpu";
i-cache-block-size = <64>;
i-cache-sets = <64>;
i-cache-size = <32768>;
i-tlb-sets = <1>;
i-tlb-size = <40>;
mmu-type = "riscv,sv39";
next-level-cache = <&cachectrl>;
riscv,isa = "rv64imafdcbsux_zba_zbb";
tlb-split;
status = "okay";
cpu2intctrl: interrupt-controller {
#interrupt-cells = <1>;
compatible = "riscv,cpu-intc";
interrupt-controller;
};
};
cpu3: cpu@3 {
compatible = "sifive,u74-mc", "riscv";
reg = <3>;
d-cache-block-size = <64>;
d-cache-sets = <64>;
d-cache-size = <32768>;
d-tlb-sets = <1>;
d-tlb-size = <40>;
device_type = "cpu";
i-cache-block-size = <64>;
i-cache-sets = <64>;
i-cache-size = <32768>;
i-tlb-sets = <1>;
i-tlb-size = <40>;
mmu-type = "riscv,sv39";
next-level-cache = <&cachectrl>;
riscv,isa = "rv64imafdcbsux_zba_zbb";
tlb-split;
status = "okay";
cpu3intctrl: interrupt-controller {
#interrupt-cells = <1>;
compatible = "riscv,cpu-intc";
interrupt-controller;
};
};
cpu4: cpu@4 {
compatible = "sifive,u74-mc", "riscv";
reg = <4>;
d-cache-block-size = <64>;
d-cache-sets = <64>;
d-cache-size = <32768>;
d-tlb-sets = <1>;
d-tlb-size = <40>;
device_type = "cpu";
i-cache-block-size = <64>;
i-cache-sets = <64>;
i-cache-size = <32768>;
i-tlb-sets = <1>;
i-tlb-size = <40>;
mmu-type = "riscv,sv39";
next-level-cache = <&cachectrl>;
riscv,isa = "rv64imafdcbsux_zba_zbb";
tlb-split;
status = "okay";
cpu4intctrl: interrupt-controller {
#interrupt-cells = <1>;
compatible = "riscv,cpu-intc";
interrupt-controller;
};
};
};
soc: soc {
compatible = "simple-bus";
interrupt-parent = <&plic>;
#address-cells = <2>;
#size-cells = <2>;
#clock-cells = <1>;
ranges;
pmu {
compatible = "riscv,pmu";
riscv,event-to-mhpmcounters = <0x5 0x06 0x18>;
riscv,event-to-mhpmevent = <0x05 0x00000000 0x4000
0x06 0x00000000 0x4001>;
riscv,raw-event-to-mhpmcounters =
<0x00000000 0x100 0xffffffff 0xffffffff 0x18
0x00000000 0x200 0xffffffff 0xffffffff 0x18
0x00000000 0x400 0xffffffff 0xffffffff 0x18
0x00000000 0x800 0xffffffff 0xffffffff 0x18
0x00000000 0x1000 0xffffffff 0xffffffff 0x18
0x00000000 0x2000 0xffffffff 0xffffffff 0x18
0x00000000 0x4000 0xffffffff 0xffffffff 0x18
0x00000000 0x8000 0xffffffff 0xffffffff 0x18
0x00000000 0x10000 0xffffffff 0xffffffff 0x18
0x00000000 0x20000 0xffffffff 0xffffffff 0x18
0x00000000 0x40000 0xffffffff 0xffffffff 0x18
0x00000000 0x80000 0xffffffff 0xffffffff 0x18
0x00000000 0x100000 0xffffffff 0xffffffff 0x18
0x00000000 0x200000 0xffffffff 0xffffffff 0x18
0x00000000 0x400000 0xffffffff 0xffffffff 0x18
0x00000000 0x800000 0xffffffff 0xffffffff 0x18
0x00000000 0x1000000 0xffffffff 0xffffffff 0x18
0x00000000 0x2000000 0xffffffff 0xffffffff 0x18
0x00000000 0x101 0xffffffff 0xffffffff 0x18
0x00000000 0x201 0xffffffff 0xffffffff 0x18
0x00000000 0x401 0xffffffff 0xffffffff 0x18
0x00000000 0x801 0xffffffff 0xffffffff 0x18
0x00000000 0x1001 0xffffffff 0xffffffff 0x18
0x00000000 0x2001 0xffffffff 0xffffffff 0x18
0x00000000 0x4001 0xffffffff 0xffffffff 0x18
0x00000000 0x8001 0xffffffff 0xffffffff 0x18
0x00000000 0x10001 0xffffffff 0xffffffff 0x18
0x00000000 0x20001 0xffffffff 0xffffffff 0x18
0x00000000 0x40001 0xffffffff 0xffffffff 0x18
0x00000000 0x102 0xffffffff 0xffffffff 0x18
0x00000000 0x202 0xffffffff 0xffffffff 0x18
0x00000000 0x402 0xffffffff 0xffffffff 0x18
0x00000000 0x802 0xffffffff 0xffffffff 0x18
0x00000000 0x1002 0xffffffff 0xffffffff 0x18
0x00000000 0x2002 0xffffffff 0xffffffff 0x18>;
};
cachectrl: cache-controller@2010000 {
compatible = "sifive,fu740-c000-ccache", "cache";
reg = <0x0 0x2010000 0x0 0x4000 0x0 0x8000000 0x0 0x2000000>;
reg-names = "control", "sideband";
interrupts = <1 3 4 2>;
cache-block-size = <64>;
cache-level = <2>;
cache-sets = <2048>;
cache-size = <2097152>;
cache-unified;
};
aon_syscon: aon_syscon@17010000 {
compatible = "syscon";
reg = <0x0 0x17010000 0x0 0x1000>;
};
stg_syscon: stg_syscon@10240000 {
compatible = "syscon";
reg = <0x0 0x10240000 0x0 0x1000>;
};
sys_syscon: sys_syscon@13030000 {
compatible = "syscon";
reg = <0x0 0x13030000 0x0 0x1000>;
};
clint: clint@2000000 {
compatible = "riscv,clint0";
reg = <0x0 0x2000000 0x0 0x10000>;
reg-names = "control";
interrupts-extended = <&cpu0intctrl 3 &cpu0intctrl 7
&cpu1intctrl 3 &cpu1intctrl 7
&cpu2intctrl 3 &cpu2intctrl 7
&cpu3intctrl 3 &cpu3intctrl 7
&cpu4intctrl 3 &cpu4intctrl 7>;
#interrupt-cells = <1>;
};
plic: plic@c000000 {
compatible = "riscv,plic0";
reg = <0x0 0xc000000 0x0 0x4000000>;
reg-names = "control";
interrupts-extended = <&cpu0intctrl 11
&cpu1intctrl 11 &cpu1intctrl 9
&cpu2intctrl 11 &cpu2intctrl 9
&cpu3intctrl 11 &cpu3intctrl 9
&cpu4intctrl 11 &cpu4intctrl 9>;
interrupt-controller;
#interrupt-cells = <1>;
riscv,max-priority = <7>;
riscv,ndev = <136>;
};
clkgen: clock-controller {
compatible = "starfive,jh7110-clkgen";
reg = <0x0 0x13020000 0x0 0x10000>,
<0x0 0x10230000 0x0 0x10000>,
<0x0 0x17000000 0x0 0x10000>;
reg-names = "sys", "stg", "aon";
clocks = <&osc>, <&gmac1_rmii_refin>,
<&gmac1_rgmii_rxin>,
<&i2stx_bclk_ext>, <&i2stx_lrck_ext>,
<&i2srx_bclk_ext>, <&i2srx_lrck_ext>,
<&tdm_ext>, <&mclk_ext>,
<&jtag_tck_inner>, <&bist_apb>,
<&stg_apb>, <&clk_rtc>,
<&gmac0_rmii_refin>, <&gmac0_rgmii_rxin>;
clock-names = "osc", "gmac1_rmii_refin",
"gmac1_rgmii_rxin",
"i2stx_bclk_ext", "i2stx_lrck_ext",
"i2srx_bclk_ext", "i2srx_lrck_ext",
"tdm_ext", "mclk_ext",
"jtag_tck_inner", "bist_apb",
"stg_apb", "clk_rtc",
"gmac0_rmii_refin", "gmac0_rgmii_rxin";
#clock-cells = <1>;
status = "okay";
};
clkvout: clock-controller@295C0000 {
compatible = "starfive,jh7110-clk-vout";
reg = <0x0 0x295C0000 0x0 0x10000>;
reg-names = "vout";
clocks = <&hdmitx0_pixelclk>,
<&mipitx_dphy_rxesc>,
<&mipitx_dphy_txbytehs>;
clock-names = "hdmitx0_pixelclk",
"mipitx_dphy_rxesc",
"mipitx_dphy_txbytehs";
#clock-cells = <1>;
status = "okay";
};
clkisp: clock-controller@19810000 {
compatible = "starfive,jh7110-clk-isp";
reg = <0x0 0x19810000 0x0 0x10000>;
reg-names = "isp";
#clock-cells = <1>;
clocks = <&clkgen JH7110_ISP_TOP_CLK_DVP>,
<&clkgen JH7110_ISP_TOP_CLK_ISPCORE_2X>,
<&clkgen JH7110_ISP_TOP_CLK_ISP_AXI>;
clock-names = "u0_dom_isp_top_clk_dom_isp_top_clk_dvp",
"u0_dom_isp_top_clk_dom_isp_top_clk_ispcore_2x",
"u0_dom_isp_top_clk_dom_isp_top_clk_isp_axi";
resets = <&rstgen RSTN_U0_DOM_ISP_TOP_N>,
<&rstgen RSTN_U0_DOM_ISP_TOP_AXI>;
reset-names = "rst_isp_top_n", "rst_isp_top_axi";
status = "disabled";
};
qspi: spi@13010000 {
compatible = "cdns,qspi-nor";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x0 0x13010000 0x0 0x10000
0x0 0x21000000 0x0 0x400000>;
clocks = <&clkgen JH7110_QSPI_CLK_REF>;
clock-names = "clk_ref";
resets = <&rstgen RSTN_U0_CDNS_QSPI_APB>,
<&rstgen RSTN_U0_CDNS_QSPI_AHB>,
<&rstgen RSTN_U0_CDNS_QSPI_REF>;
resets-names = "rst_apb", "rst_ahb", "rst_ref";
cdns,fifo-depth = <256>;
cdns,fifo-width = <4>;
spi-max-frequency = <250000000>;
nor_flash: nor-flash@0 {
compatible = "jedec,spi-nor";
reg=<0>;
spi-max-frequency = <100000000>;
cdns,tshsl-ns = <1>;
cdns,tsd2d-ns = <1>;
cdns,tchsh-ns = <1>;
cdns,tslch-ns = <1>;
};
};
otp: otp@17050000 {
compatible = "starfive,jh7110-otp";
reg = <0x0 0x17050000 0x0 0x10000>;
clock-frequency = <4000000>;
clocks = <&clkgen JH7110_OTPC_CLK_APB>;
clock-names = "apb";
};
usbdrd30: usbdrd{
compatible = "starfive,jh7110-cdns3";
dma-coherent;
#address-cells = <2>;
#size-cells = <2>;
reg = <0x0 0x10210000 0x0 0x1000>,
<0x0 0x10200000 0x0 0x1000>;
clocks = <&clkgen JH7110_USB_125M>,
<&clkgen JH7110_USB0_CLK_APP_125>,
<&clkgen JH7110_USB0_CLK_LPM>,
<&clkgen JH7110_USB0_CLK_STB>,
<&clkgen JH7110_USB0_CLK_USB_APB>,
<&clkgen JH7110_USB0_CLK_AXI>,
<&clkgen JH7110_USB0_CLK_UTMI_APB>;
clock-names = "125m","app","lpm","stb","apb","axi","utmi";
resets = <&rstgen RSTN_U0_CDN_USB_PWRUP>,
<&rstgen RSTN_U0_CDN_USB_APB>,
<&rstgen RSTN_U0_CDN_USB_AXI>,
<&rstgen RSTN_U0_CDN_USB_UTMI_APB>;
reset-names = "pwrup","apb","axi","utmi";
starfive,stg-syscon = <&stg_syscon 0x4 0xc4 0x148 0x1f4>;
starfive,sys-syscon = <&sys_syscon 0x18>;
status = "disabled";
usbdrd_cdns3: usb@10100000 {
compatible = "cdns,usb3";
reg = <0x0 0x10100000 0x0 0x10000>,
<0x0 0x10110000 0x0 0x10000>,
<0x0 0x10120000 0x0 0x10000>;
reg-names = "otg", "xhci", "dev";
interrupts = <100>, <108>, <110>;
interrupt-names = "host", "peripheral", "otg";
phy-names = "cdns3,usb3-phy", "cnds3,usb2-phy";
maximum-speed = "super-speed";
};
};
timer: timer@13050000 {
compatible = "starfive,si5-timers";
reg = <0x0 0x13050000 0x0 0x10000>;
interrupts = <69>, <70>, <71> ,<72>;
interrupt-names = "timer0", "timer1",
"timer2", "timer3";
clocks = <&clkgen JH7110_TIMER_CLK_TIMER0>,
<&clkgen JH7110_TIMER_CLK_TIMER1>,
<&clkgen JH7110_TIMER_CLK_TIMER2>,
<&clkgen JH7110_TIMER_CLK_TIMER3>,
<&clkgen JH7110_TIMER_CLK_APB>;
clock-names = "timer0", "timer1",
"timer2", "timer3", "apb_clk";
clock-frequency = <2000000>;
status = "okay";
};
wdog: wdog@13070000 {
compatible = "starfive,dskit-wdt";
reg = <0x0 0x13070000 0x0 0x10000>;
interrupts = <68>;
interrupt-names = "wdog";
clock-frequency = <2000000>;
clocks = <&clkgen JH7110_DSKIT_WDT_CLK_WDT>,
<&clkgen JH7110_DSKIT_WDT_CLK_APB>;
clock-names = "core_clk", "apb_clk";
resets = <&rstgen RSTN_U0_DSKIT_WDT_APB>,
<&rstgen RSTN_U0_DSKIT_WDT_CORE>;
reset-names = "rst_apb", "rst_core";
timeout-sec = <15>;
status = "okay";
};
rtc: rtc@17040000 {
compatible = "starfive,rtc_hms";
reg = <0x0 0x17040000 0x0 0x10000>;
interrupts = <10>, <11>, <12>;
interrupt-names = "rtc_ms_pulse", "rtc_sec_pulse", "rtc";
clocks = <&clkgen JH7110_RTC_HMS_CLK_APB>,
<&clkgen JH7110_RTC_HMS_CLK_CAL>;
clock-names = "pclk", "cal_clk";
resets = <&rstgen RSTN_U0_RTC_HMS_APB>,
<&rstgen RSTN_U0_RTC_HMS_CAL>,
<&rstgen RSTN_U0_RTC_HMS_OSC32K>;
reset-names = "rst_apb", "rst_cal", "rst_osc";
rtc,cal-clock-freq = <1000000>;
status = "okay";
};
pmu: pmu@17030000 {
compatible = "starfive,jh7110-pmu";
reg = <0x0 0x17030000 0x0 0x10000>;
interrupts = <111>;
status = "okay";
};
uart0: serial@10000000 {
compatible = "snps,dw-apb-uart";
reg = <0x0 0x10000000 0x0 0x10000>;
reg-io-width = <4>;
reg-shift = <2>;
clocks = <&clkgen JH7110_UART0_CLK_CORE>,
<&clkgen JH7110_UART0_CLK_APB>;
clock-names = "baudclk", "apb_pclk";
resets = <&rstgen RSTN_U0_DW_UART_APB>,
<&rstgen RSTN_U0_DW_UART_CORE>;
interrupts = <32>;
status = "disabled";
};
uart1: serial@10010000 {
compatible = "snps,dw-apb-uart";
reg = <0x0 0x10010000 0x0 0x10000>;
reg-io-width = <4>;
reg-shift = <2>;
clocks = <&clkgen JH7110_UART1_CLK_CORE>,
<&clkgen JH7110_UART1_CLK_APB>;
clock-names = "baudclk", "apb_pclk";
resets = <&rstgen RSTN_U1_DW_UART_APB>,
<&rstgen RSTN_U1_DW_UART_CORE>;
interrupts = <33>;
status = "disabled";
};
uart2: serial@10020000 {
compatible = "snps,dw-apb-uart";
reg = <0x0 0x10020000 0x0 0x10000>;
reg-io-width = <4>;
reg-shift = <2>;
clocks = <&clkgen JH7110_UART2_CLK_CORE>,
<&clkgen JH7110_UART2_CLK_APB>;
clock-names = "baudclk", "apb_pclk";
resets = <&rstgen RSTN_U2_DW_UART_APB>,
<&rstgen RSTN_U2_DW_UART_CORE>;
interrupts = <34>;
status = "disabled";
};
uart3: serial@12000000 {
compatible = "snps,dw-apb-uart";
reg = <0x0 0x12000000 0x0 0x10000>;
reg-io-width = <4>;
reg-shift = <2>;
clocks = <&clkgen JH7110_UART3_CLK_CORE>,
<&clkgen JH7110_UART3_CLK_APB>;
clock-names = "baudclk", "apb_pclk";
resets = <&rstgen RSTN_U3_DW_UART_APB>,
<&rstgen RSTN_U3_DW_UART_CORE>;
interrupts = <45>;
status = "disabled";
};
uart4: serial@12010000 {
compatible = "snps,dw-apb-uart";
reg = <0x0 0x12010000 0x0 0x10000>;
reg-io-width = <4>;
reg-shift = <2>;
clocks = <&clkgen JH7110_UART4_CLK_CORE>,
<&clkgen JH7110_UART4_CLK_APB>;
clock-names = "baudclk", "apb_pclk";
resets = <&rstgen RSTN_U4_DW_UART_APB>,
<&rstgen RSTN_U4_DW_UART_CORE>;
interrupts = <46>;
status = "disabled";
};
uart5: serial@12020000 {
compatible = "snps,dw-apb-uart";
reg = <0x0 0x12020000 0x0 0x10000>;
reg-io-width = <4>;
reg-shift = <2>;
clocks = <&clkgen JH7110_UART5_CLK_CORE>,
<&clkgen JH7110_UART5_CLK_APB>;
clock-names = "baudclk", "apb_pclk";
resets = <&rstgen RSTN_U5_DW_UART_APB>,
<&rstgen RSTN_U5_DW_UART_CORE>;
interrupts = <47>;
status = "disabled";
};
dma: dma-controller@16050000 {
compatible = "starfive,axi-dma";
reg = <0x0 0x16050000 0x0 0x10000>;
clocks = <&clkgen JH7110_DMA1P_CLK_AXI>,
<&clkgen JH7110_DMA1P_CLK_AHB>;
clock-names = "core-clk", "cfgr-clk";
resets = <&rstgen RSTN_U0_DW_DMA1P_AXI>,
<&rstgen RSTN_U0_DW_DMA1P_AHB>;
reset-names = "rst_axi", "rst_ahb";
interrupts = <73>;
#dma-cells = <2>;
dma-channels = <4>;
snps,dma-masters = <1>;
snps,data-width = <3>;
snps,num-hs-if = <56>;
snps,block-size = <65536 65536 65536 65536>;
snps,priority = <0 1 2 3>;
snps,axi-max-burst-len = <16>;
status = "disabled";
};
gpio: gpio@13040000 {
compatible = "starfive,jh7110-sys-pinctrl";
reg = <0x0 0x13040000 0x0 0x10000>;
reg-names = "control";
interrupts = <91>;
interrupt-controller;
gpio-controller;
#gpio-cells = <2>;
ngpios = <64>;
status = "okay";
};
gpioa: gpio@17020000 {
compatible = "starfive,jh7110-aon-pinctrl";
reg = <0x0 0x17020000 0x0 0x10000>;
reg-names = "control";
interrupts = <90>;
interrupt-controller;
gpio-controller;
#gpio-cells = <2>;
ngpios = <4>;
status = "okay";
};
trng: trng@1600C000 {
compatible = "starfive,trng";
reg = <0x0 0x1600C000 0x0 0x4000>;
clocks = <&clkgen JH7110_SEC_HCLK>,
<&clkgen JH7110_SEC_MISCAHB_CLK>;
clock-names = "hclk", "miscahb_clk";
resets = <&rstgen RSTN_U0_SEC_TOP_HRESETN>;
interrupts = <30>;
status = "disabled";
};
sec_dma: sec_dma@16008000 {
/*compatible = "arm,pl080", "arm,primecell";*/
compatible = "starfive,pl080";
reg = <0x0 0x16008000 0x0 0x4000>;
reg-names = "sec_dma";
interrupts = <29>;
clocks = <&clkgen JH7110_SEC_HCLK>,
<&clkgen JH7110_SEC_MISCAHB_CLK>;
clock-names = "sec_hclk","sec_ahb";
resets = <&rstgen RSTN_U0_SEC_TOP_HRESETN>;
reset-names = "sec_hre";
lli-bus-interface-ahb1;
mem-bus-interface-ahb1;
memcpy-burst-size = <256>;
memcpy-bus-width = <32>;
#dma-cells = <2>;
status = "disabled";
};
crypto: crypto@16000000 {
compatible = "starfive,jh7110-sec";
reg = <0x0 0x16000000 0x0 0x4000>,
<0x0 0x16008000 0x0 0x4000>;
reg-names = "secreg","secdma";
interrupts = <28>, <29>;
interrupt-names = "secirq", "dmairq";
clocks = <&clkgen JH7110_SEC_HCLK>,
<&clkgen JH7110_SEC_MISCAHB_CLK>;
clock-names = "sec_hclk","sec_ahb";
resets = <&rstgen RSTN_U0_SEC_TOP_HRESETN>;
reset-names = "sec_hre";
enable-dma = "true";
dmas = <&sec_dma 1 2>,
<&sec_dma 0 2>;
dma-names = "sec_m","sec_p";
status = "disabled";
};
i2c0: i2c@10030000 {
compatible = "snps,designware-i2c";
reg = <0x0 0x10030000 0x0 0x10000>;
clocks = <&clkgen JH7110_I2C0_CLK_APB>;
clock-names = "pclk";
resets = <&rstgen RSTN_U0_DW_I2C_APB>;
interrupts = <35>;
#address-cells = <1>;
#size-cells = <0>;
status = "disabled";
};
i2c1: i2c@10040000 {
compatible = "snps,designware-i2c";
reg = <0x0 0x10040000 0x0 0x10000>;
clocks = <&clkgen JH7110_I2C1_CLK_APB>;
clock-names = "pclk";
resets = <&rstgen RSTN_U1_DW_I2C_APB>;
interrupts = <36>;
#address-cells = <1>;
#size-cells = <0>;
status = "disabled";
};
i2c2: i2c@10050000 {
compatible = "snps,designware-i2c";
reg = <0x0 0x10050000 0x0 0x10000>;
clocks = <&clkgen JH7110_I2C2_CLK_APB>;
clock-names = "pclk";
resets = <&rstgen RSTN_U2_DW_I2C_APB>;
interrupts = <37>;
#address-cells = <1>;
#size-cells = <0>;
status = "disabled";
};
i2c3: i2c@12030000 {
compatible = "snps,designware-i2c";
reg = <0x0 0x12030000 0x0 0x10000>;
clocks = <&clkgen JH7110_I2C3_CLK_APB>;
clock-names = "pclk";
resets = <&rstgen RSTN_U3_DW_I2C_APB>;
interrupts = <48>;
#address-cells = <1>;
#size-cells = <0>;
status = "disabled";
};
i2c4: i2c@12040000 {
compatible = "snps,designware-i2c";
reg = <0x0 0x12040000 0x0 0x10000>;
clocks = <&clkgen JH7110_I2C4_CLK_APB>;
clock-names = "pclk";
resets = <&rstgen RSTN_U4_DW_I2C_APB>;
interrupts = <49>;
#address-cells = <1>;
#size-cells = <0>;
status = "disabled";
};
i2c5: i2c5@12050000 {
compatible = "snps,designware-i2c";
reg = <0x0 0x12050000 0x0 0x10000>;
clocks = <&clkgen JH7110_I2C5_CLK_APB>;
clock-names = "pclk";
resets = <&rstgen RSTN_U5_DW_I2C_APB>;
interrupts = <50>;
#address-cells = <1>;
#size-cells = <0>;
status = "disabled";
};
i2c6: i2c@12060000 {
compatible = "snps,designware-i2c";
reg = <0x0 0x12060000 0x0 0x10000>;
clocks = <&clkgen JH7110_I2C6_CLK_APB>;
clock-names = "pclk";
resets = <&rstgen RSTN_U6_DW_I2C_APB>;
interrupts = <51>;
#address-cells = <1>;
#size-cells = <0>;
status = "disabled";
};
/* unremovable emmc as mmcblk0 */
sdio0: sdio0@16010000 {
compatible = "snps,dw-mshc";
reg = <0x0 0x16010000 0x0 0x10000>;
clocks = <&clkgen JH7110_SDIO0_CLK_AHB>,
<&clkgen JH7110_SDIO0_CLK_SDCARD>;
clock-names = "biu","ciu";
resets = <&rstgen RSTN_U0_DW_SDIO_AHB>;
reset-names = "reset";
};
sdio1: sdio1@16020000 {
compatible = "snps,dw-mshc";
reg = <0x0 0x16020000 0x0 0x10000>;
clocks = <&clkgen JH7110_SDIO1_CLK_AHB>,
<&clkgen JH7110_SDIO1_CLK_SDCARD>;
clock-names = "biu","ciu";
resets = <&rstgen RSTN_U1_DW_SDIO_AHB>;
reset-names = "reset";
};
vin_sysctl: vin_sysctl@19800000 {
compatible = "starfive,stf-vin";
reg = <0x0 0x19800000 0x0 0x10000>,
<0x0 0x19810000 0x0 0x10000>,
<0x0 0x19820000 0x0 0x10000>,
<0x0 0x19830000 0x0 0x10000>,
<0x0 0x19840000 0x0 0x10000>,
<0x0 0x19870000 0x0 0x30000>,
<0x0 0x198a0000 0x0 0x30000>,
<0x0 0x11840000 0x0 0x10000>,
<0x0 0x17030000 0x0 0x10000>,
<0x0 0x13020000 0x0 0x10000>;
reg-names = "mipi0", "vclk", "vrst", "mipi1", "sctrl",
"isp0", "isp1", "trst", "pmu", "syscrg";
clocks = <&clkisp JH7110_DOM4_APB_FUNC>,
<&clkisp JH7110_U0_VIN_PCLK>,
<&clkisp JH7110_U0_VIN_SYS_CLK>,
<&clkisp JH7110_U0_ISPV2_TOP_WRAPPER_CLK_C>,
<&clkisp JH7110_DVP_INV>,
<&clkisp JH7110_U0_VIN_CLK_P_AXIWR>,
<&clkisp JH7110_MIPI_RX0_PXL>,
<&clkisp JH7110_U0_VIN_PIXEL_CLK_IF0>,
<&clkisp JH7110_U0_VIN_PIXEL_CLK_IF1>,
<&clkisp JH7110_U0_VIN_PIXEL_CLK_IF2>,
<&clkisp JH7110_U0_VIN_PIXEL_CLK_IF3>;
clock-names = "clk_apb_func", "clk_pclk", "clk_sys_clk",
"clk_wrapper_clk_c", "clk_dvp_inv", "clk_axiwr",
"clk_mipi_rx0_pxl", "clk_pixel_clk_if0",
"clk_pixel_clk_if1", "clk_pixel_clk_if2",
"clk_pixel_clk_if3";
resets = <&rstgen RSTN_U0_ISPV2_TOP_WRAPPER_P>,
<&rstgen RSTN_U0_ISPV2_TOP_WRAPPER_C>,
<&rstgen RSTN_U0_VIN_N_PCLK>,
<&rstgen RSTN_U0_VIN_N_SYS_CLK>,
<&rstgen RSTN_U0_VIN_P_AXIRD>,
<&rstgen RSTN_U0_VIN_P_AXIWR>,
<&rstgen RSTN_U0_VIN_N_PIXEL_CLK_IF0>,
<&rstgen RSTN_U0_VIN_N_PIXEL_CLK_IF1>,
<&rstgen RSTN_U0_VIN_N_PIXEL_CLK_IF2>,
<&rstgen RSTN_U0_VIN_N_PIXEL_CLK_IF3>,
<&rstgen RSTN_U0_M31DPHY_HW>,
<&rstgen RSTN_U0_M31DPHY_B09_ALWAYS_ON>;
reset-names = "rst_wrapper_p", "rst_wrapper_c", "rst_pclk",
"rst_sys_clk", "rst_axird", "rst_axiwr", "rst_pixel_clk_if0",
"rst_pixel_clk_if1", "rst_pixel_clk_if2", "rst_pixel_clk_if3",
"rst_m31dphy_hw", "rst_m31dphy_b09_always_on";
interrupts = <92 87 86>;
status = "disabled";
};
jpu: jpu@11900000 {
compatible = "starfive,jpu";
reg = <0x0 0x13090000 0x0 0x300>;
interrupts = <14>;
clocks = <&clkgen JH7110_CODAJ12_CLK_AXI>,
<&clkgen JH7110_CODAJ12_CLK_CORE>,
<&clkgen JH7110_CODAJ12_CLK_APB>;
clock-names = "axi_clk", "core_clk", "apb_clk";
resets = <&rstgen RSTN_U0_CODAJ12_AXI>,
<&rstgen RSTN_U0_CODAJ12_CORE>,
<&rstgen RSTN_U0_CODAJ12_APB>;
reset-names = "rst_axi", "rst_core", "rst_apb";
status = "disabled";
};
vpu_dec: vpu_dec@130A0000 {
compatible = "starfive,vdec";
reg = <0x0 0x130A0000 0x0 0x10000>;
interrupts = <13>;
clocks = <&clkgen JH7110_WAVE511_CLK_AXI>,
<&clkgen JH7110_WAVE511_CLK_BPU>,
<&clkgen JH7110_WAVE511_CLK_VCE>,
<&clkgen JH7110_WAVE511_CLK_APB>,
<&clkgen JH7110_NOC_BUS_CLK_VDEC_AXI>;
clock-names = "axi_clk",
"bpu_clk",
"vce_clk",
"apb_clk",
"noc_bus";
resets = <&rstgen RSTN_U0_WAVE511_AXI>,
<&rstgen RSTN_U0_WAVE511_BPU>,
<&rstgen RSTN_U0_WAVE511_VCE>,
<&rstgen RSTN_U0_WAVE511_APB>,
<&rstgen RSTN_U0_AXIMEM_128B_AXI>;
reset-names = "rst_axi",
"rst_bpu",
"rst_vce",
"rst_apb",
"rst_sram";
starfive,vdec_noc_ctrl;
status = "disabled";
};
vpu_enc: vpu_enc@130B0000 {
compatible = "starfive,venc";
reg = <0x0 0x130B0000 0x0 0x10000>;
interrupts = <15>;
clocks = <&clkgen JH7110_WAVE420L_CLK_AXI>,
<&clkgen JH7110_WAVE420L_CLK_BPU>,
<&clkgen JH7110_WAVE420L_CLK_VCE>,
<&clkgen JH7110_WAVE420L_CLK_APB>,
<&clkgen JH7110_NOC_BUS_CLK_VENC_AXI>;
clock-names = "axi_clk",
"bpu_clk",
"vce_clk",
"apb_clk",
"noc_bus";
resets = <&rstgen RSTN_U0_WAVE420L_AXI>,
<&rstgen RSTN_U0_WAVE420L_BPU>,
<&rstgen RSTN_U0_WAVE420L_VCE>,
<&rstgen RSTN_U0_WAVE420L_APB>,
<&rstgen RSTN_U1_AXIMEM_128B_AXI>;
reset-names = "rst_axi",
"rst_bpu",
"rst_vce",
"rst_apb",
"rst_sram";
starfive,venc_noc_ctrl;
status = "disabled";
};
rstgen: reset-controller {
compatible = "starfive,jh7110-reset";
reg = <0x0 0x13020000 0x0 0x10000>,
<0x0 0x10230000 0x0 0x10000>,
<0x0 0x17000000 0x0 0x10000>,
<0x0 0x19810000 0x0 0x10000>,
<0x0 0x295C0000 0x0 0x10000>;
reg-names = "syscrg", "stgcrg", "aoncrg", "ispcrg", "voutcrg";
#reset-cells = <1>;
status = "okay";
};
stmmac_axi_setup: stmmac-axi-config {
snps,wr_osr_lmt = <0xf>;
snps,rd_osr_lmt = <0xf>;
snps,blen = <256 128 64 32 0 0 0>;
};
gmac0: ethernet@16030000 {
compatible = "starfive,jh7110-eqos-5.20";
reg = <0x0 0x16030000 0x0 0x10000>;
clock-names = "gtx",
"tx",
"ptp_ref",
"stmmaceth",
"pclk",
"gtxc",
"rmii_rtx";
clocks = <&clkgen JH7110_GMAC0_GTXCLK>,
<&clkgen JH7110_U0_GMAC5_CLK_TX>,
<&clkgen JH7110_GMAC0_PTP>,
<&clkgen JH7110_U0_GMAC5_CLK_AHB>,
<&clkgen JH7110_U0_GMAC5_CLK_AXI>,
<&clkgen JH7110_GMAC0_GTXC>,
<&clkgen JH7110_GMAC0_RMII_RTX>;
resets = <&rstgen RSTN_U0_DW_GMAC5_AXI64_AHB>,
<&rstgen RSTN_U0_DW_GMAC5_AXI64_AXI>;
reset-names = "ahb", "stmmaceth";
interrupts = <7>, <6>, <5> ;
interrupt-names = "macirq", "eth_wake_irq", "eth_lpi";
max-frame-size = <9000>;
phy-mode = "rgmii-id";
snps,multicast-filter-bins = <256>;
snps,perfect-filter-entries = <128>;
rx-fifo-depth = <262144>;
tx-fifo-depth = <131072>;
snps,fixed-burst;
snps,no-pbl-x8;
snps,force_thresh_dma_mode;
snps,axi-config = <&stmmac_axi_setup>;
snps,tso;
snps,en-tx-lpi-clockgating;
snps,en-lpi;
snps,write-requests = <2>;
snps,read-requests = <16>;
snps,burst-map = <0x7>;
snps,txpbl = <16>;
snps,rxpbl = <16>;
status = "disabled";
};
gmac1: ethernet@16040000 {
compatible = "starfive,jh7110-eqos-5.20";
reg = <0x0 0x16040000 0x0 0x10000>;
clock-names = "gtx",
"tx",
"ptp_ref",
"stmmaceth",
"pclk",
"gtxc",
"rmii_rtx";
clocks = <&clkgen JH7110_GMAC1_GTXCLK>,
<&clkgen JH7110_GMAC5_CLK_TX>,
<&clkgen JH7110_GMAC5_CLK_PTP>,
<&clkgen JH7110_GMAC5_CLK_AHB>,
<&clkgen JH7110_GMAC5_CLK_AXI>,
<&clkgen JH7110_GMAC1_GTXC>,
<&clkgen JH7110_GMAC1_RMII_RTX>;
resets = <&rstgen RSTN_U1_DW_GMAC5_AXI64_H_N>,
<&rstgen RSTN_U1_DW_GMAC5_AXI64_A_I>;
reset-names = "ahb", "stmmaceth";
interrupts = <78>, <77>, <76> ;
interrupt-names = "macirq", "eth_wake_irq", "eth_lpi";
max-frame-size = <9000>;
phy-mode = "rgmii-id";
snps,multicast-filter-bins = <256>;
snps,perfect-filter-entries = <128>;
rx-fifo-depth = <262144>;
tx-fifo-depth = <131072>;
snps,fixed-burst;
snps,no-pbl-x8;
snps,force_thresh_dma_mode;
snps,axi-config = <&stmmac_axi_setup>;
snps,tso;
snps,en-tx-lpi-clockgating;
snps,en-lpi;
snps,write-requests = <2>;
snps,read-requests = <16>;
snps,burst-map = <0x7>;
snps,txpbl = <16>;
snps,rxpbl = <16>;
status = "disabled";
};
gpu: gpu@18000000 {
compatible = "img-gpu";
reg = <0x0 0x18000000 0x0 0x100000>,
<0x0 0x130C000 0x0 0x10000>;
clocks = <&clkgen JH7110_GPU_CLK_APB>,
<&clkgen JH7110_GPU_RTC_TOGGLE>,
<&clkgen JH7110_GPU_CORE_CLK>,
<&clkgen JH7110_GPU_SYS_CLK>,
<&clkgen JH7110_NOC_BUS_CLK_GPU_AXI>;
clock-names = "clk_apb", "clk_rtc",
"clk_core", "clk_sys",
"clk_axi";
resets = <&rstgen RSTN_U0_IMG_GPU_APB>,
<&rstgen RSTN_U0_IMG_GPU_DOMA>;
reset-names = "rst_apb", "rst_doma";
interrupts = <82>;
current-clock = <8000000>;
status = "disabled";
};
can0: can@130d0000 {
compatible = "ipms,can";
reg = <0x0 0x130d0000 0x0 0x1000>;
interrupts = <112>;
clocks = <&clkgen JH7110_CAN0_CTRL_CLK_APB>,
<&clkgen JH7110_CAN0_CTRL_CLK_CAN>,
<&clkgen JH7110_CAN0_CTRL_CLK_TIMER>;
clock-names = "apb_clk", "core_clk", "timer_clk";
resets = <&rstgen RSTN_U0_CAN_CTRL_APB>,
<&rstgen RSTN_U0_CAN_CTRL_CORE>,
<&rstgen RSTN_U0_CAN_CTRL_TIMER>;
reset-names = "rst_apb", "rst_core", "rst_timer";
starfive,sys-syscon = <&sys_syscon 0x10 0x3 0x8>;
syscon,can_or_canfd = <0>;
status = "disabled";
};
can1: can@130e0000 {
compatible = "ipms,can";
reg = <0x0 0x130e0000 0x0 0x1000>;
interrupts = <113>;
clocks = <&clkgen JH7110_CAN1_CTRL_CLK_APB>,
<&clkgen JH7110_CAN1_CTRL_CLK_CAN>,
<&clkgen JH7110_CAN1_CTRL_CLK_TIMER>;
clock-names = "apb_clk", "core_clk", "timer_clk";