Skip to content

Commit 49ef9f9

Browse files
soburicarlescufi
authored andcommitted
dts: arm: gigadevice: Add DMA configuration
Add DMA support for GD32 series. Signed-off-by: TOKITA Hiroshi <[email protected]>
1 parent 3a1d188 commit 49ef9f9

File tree

5 files changed

+100
-0
lines changed

5 files changed

+100
-0
lines changed

dts/arm/gigadevice/gd32e10x/gd32e10x.dtsi

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,28 @@
416416
};
417417
};
418418

419+
dma0: dma@40020000 {
420+
compatible = "gd,gd32-dma";
421+
reg = <0x40020000 0x400>;
422+
interrupts = <11 0>, <12 0>, <13 0>, <14 0>,
423+
<15 0>, <16 0>, <17 0>;
424+
rcu-periph-clock = <0x500>;
425+
dma-channels = <7>;
426+
#dma-cells = <1>;
427+
status = "disabled";
428+
};
429+
430+
dma1: dma@40020400 {
431+
compatible = "gd,gd32-dma";
432+
reg = <0x40020400 0x400>;
433+
interrupts = <56 0>, <57 0>, <58 0>, <59 0>,
434+
<60 0>;
435+
rcu-periph-clock = <0x501>;
436+
dma-channels = <5>;
437+
#dma-cells = <1>;
438+
status = "disabled";
439+
};
440+
419441
};
420442
};
421443

dts/arm/gigadevice/gd32f3x0/gd32f3x0.dtsi

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,16 @@
6565
#io-channel-cells = <1>;
6666
};
6767

68+
dma0: dma@40020000 {
69+
compatible = "gd,gd32-dma";
70+
reg = <0x40020000 0x400>;
71+
interrupts = <9 0>, <10 0>, <11 0>, <48 0>;
72+
rcu-periph-clock = <0x500>;
73+
dma-channels = <7>;
74+
#dma-cells = <1>;
75+
status = "disabled";
76+
};
77+
6878
pinctrl: pin-controller@48000000 {
6979
compatible = "gd,gd32-pinctrl-af";
7080
reg = <0x48000000 0x1800>;

dts/arm/gigadevice/gd32f403/gd32f403.dtsi

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,28 @@
433433
#pwm-cells = <3>;
434434
};
435435
};
436+
437+
dma0: dma@40020000 {
438+
compatible = "gd,gd32-dma";
439+
reg = <0x40026000 0x400>;
440+
interrupts = <11 0>, <12 0>, <13 0>, <14 0>,
441+
<15 0>, <16 0>, <17 0>;
442+
rcu-periph-clock = <0x500>;
443+
dma-channels = <7>;
444+
#dma-cells = <1>;
445+
status = "disabled";
446+
};
447+
448+
dma1: dma@40020400 {
449+
compatible = "gd,gd32-dma";
450+
reg = <0x40026400 0x400>;
451+
interrupts = <56 0>, <57 0>, <58 0>, <59 0>,
452+
<60 0>;
453+
rcu-periph-clock = <0x501>;
454+
dma-channels = <5>;
455+
#dma-cells = <1>;
456+
status = "disabled";
457+
};
436458
};
437459
};
438460

dts/arm/gigadevice/gd32f4xx/gd32f4xx.dtsi

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,28 @@
554554
#pwm-cells = <3>;
555555
};
556556
};
557+
558+
dma0: dma@40026000 {
559+
compatible = "gd,gd32-dma";
560+
reg = <0x40026000 0x400>;
561+
interrupts = <11 0>, <12 0>, <13 0>, <14 0>,
562+
<15 0>, <16 0>, <17 0>, <47 0>;
563+
rcu-periph-clock = <0xc15>;
564+
dma-channels = <8>;
565+
#dma-cells = <1>;
566+
status = "disabled";
567+
};
568+
569+
dma1: dma@40026400 {
570+
compatible = "gd,gd32-dma";
571+
reg = <0x40026400 0x400>;
572+
interrupts = <56 0>, <57 0>, <58 0>, <59 0>,
573+
<60 0>, <68 0>, <69 0>, <70 0>;
574+
rcu-periph-clock = <0xc16>;
575+
dma-channels = <8>;
576+
#dma-cells = <1>;
577+
status = "disabled";
578+
};
557579
};
558580
};
559581

dts/riscv/gigadevice/gd32vf103.dtsi

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,5 +350,29 @@
350350
channels = <0>;
351351
status = "disabled";
352352
};
353+
354+
dma0: dma@40020000 {
355+
compatible = "gd,gd32-dma";
356+
reg = <0x40020000 0x400>;
357+
interrupt-parent = <&eclic>;
358+
interrupts = <30 0>, <31 0>, <32 0>, <33 0>,
359+
<34 0>, <35 0>, <36 0>;
360+
rcu-periph-clock = <0x500>;
361+
dma-channels = <7>;
362+
#dma-cells = <1>;
363+
status = "disabled";
364+
};
365+
366+
dma1: dma@40020400 {
367+
compatible = "gd,gd32-dma";
368+
reg = <0x40020400 0x400>;
369+
interrupt-parent = <&eclic>;
370+
interrupts = <75 0>, <76 0>, <77 0>, <78 0>,
371+
<79 0>;
372+
rcu-periph-clock = <0x501>;
373+
dma-channels = <5>;
374+
#dma-cells = <1>;
375+
status = "disabled";
376+
};
353377
};
354378
};

0 commit comments

Comments
 (0)