Skip to content

Commit 393038d

Browse files
committed
dts: arm: microchip: sama7g5: add DMA Controller (XDMAC) support
Add dma nodes to sama7g5.dtsi and sama7g54_ek.dts files. Signed-off-by: Tony Han <tony.han@microchip.com>
1 parent 46da897 commit 393038d

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

boards/microchip/sam/sama7g54_ek/sama7g54_ek.dts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,18 @@
3737
};
3838
};
3939

40+
&dma0 {
41+
status = "okay";
42+
};
43+
44+
&dma1 {
45+
status = "okay";
46+
};
47+
48+
&dma2 {
49+
status = "okay";
50+
};
51+
4052
&flx3 {
4153
mchp,flexcom-mode = <SAM_FLEXCOM_MODE_USART>;
4254
status = "okay";

dts/arm/microchip/sam/sama7g5.dtsi

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,39 @@
4646
#clock-cells = <1>;
4747
};
4848

49+
dma0: dma-controller@e2808000 {
50+
compatible = "atmel,sam-xdmac";
51+
reg = <0xe2808000 0x1000>;
52+
interrupt-parent = <&gic>;
53+
interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>;
54+
#dma-cells = <2>;
55+
clocks = <&pmc PMC_TYPE_PERIPHERAL 22>;
56+
clock-names = "dma_clk";
57+
status = "disabled";
58+
};
59+
60+
dma1: dma-controller@e280c000 {
61+
compatible = "atmel,sam-xdmac";
62+
reg = <0xe280c000 0x1000>;
63+
interrupt-parent = <&gic>;
64+
interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>;
65+
#dma-cells = <2>;
66+
clocks = <&pmc PMC_TYPE_PERIPHERAL 23>;
67+
clock-names = "dma_clk";
68+
status = "disabled";
69+
};
70+
71+
dma2: dma-controller@e1200000 {
72+
compatible = "atmel,sam-xdmac";
73+
reg = <0xe1200000 0x1000>;
74+
interrupt-parent = <&gic>;
75+
interrupts = <GIC_SPI 114 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>;
76+
#dma-cells = <2>;
77+
clocks = <&pmc PMC_TYPE_PERIPHERAL 24>;
78+
clock-names = "dma_clk";
79+
status = "disabled";
80+
};
81+
4982
flx0: flexcom@e1818000 {
5083
compatible = "microchip,sam-flexcom";
5184
reg = <0xe1818000 0x200>;

0 commit comments

Comments
 (0)