zephyr/dts/arm/atmel/samr21.dtsi
Michael Hope ba21de582b drivers: dma: Add SAM0 DMAC driver
This adds support for the SAM0 DMA Controller (DMAC).  Chained
transfer are not currently implemented.

Tested with tests/drivers/dma/loop_transfer and custom modifications
to that test using three parallel reloading channels.  Also tested
with a trivial program that did memory->serial.

Signed-off-by: Michael Hope <mlhx@google.com>

[hageman@inthat.cloud: Rebased and updated commit message]
Signed-off-by: Derek Hageman <hageman@inthat.cloud>
2019-05-02 19:20:12 -05:00

65 lines
960 B
Text

/*
* Copyright (c) 2019 Benjamin Valentin
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <atmel/samd.dtsi>
/ {
soc {
usb0: usb@41005000 {
compatible = "atmel,sam0-usb";
status = "disabled";
reg = <0x41005000 0x1000>;
interrupts = <7 0>;
num-bidir-endpoints = <8>;
label = "USB0";
};
dma: dmac@41004800 {
compatible = "atmel,sam0-dmac";
reg = <0x41004800 0x50>;
interrupts = <6 0>;
label = "DMA_0";
};
portc: gpio@41004500 {
compatible = "atmel,sam0-gpio";
reg = <0x41004500 0x80>;
label = "PORTC";
gpio-controller;
#gpio-cells = <2>;
};
pinmux_c: pinmux@41004500 {
compatible = "atmel,sam0-pinmux";
reg = <0x41004500 0x80>;
label = "PINMUX_C";
};
};
};
&sercom0 {
interrupts = <9 0>;
};
&sercom1 {
interrupts = <10 0>;
};
&sercom2 {
interrupts = <11 0>;
};
&sercom3 {
interrupts = <12 0>;
};
&sercom4 {
interrupts = <13 0>;
};
&sercom5 {
interrupts = <14 0>;
};