Skip to content

Commit

Permalink
dts: arm: raspberrypi: rpi_pico: rp2350: Add DMA configuration
Browse files Browse the repository at this point in the history
Add configuration for `dma`.

Signed-off-by: TOKITA Hiroshi <[email protected]>
  • Loading branch information
soburi committed Oct 6, 2024
1 parent 48e8648 commit 46bec14
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions boards/raspberrypi/rpi_pico2/rpi_pico2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ supported:
- i2c
- spi
- uart
- dma
16 changes: 16 additions & 0 deletions dts/arm/raspberrypi/rpi_pico/rp2350.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,22 @@
status = "disabled";
};

dma: dma@50000000 {
compatible = "raspberrypi,pico-dma";
reg = <0x50000000 DT_SIZE_K(64)>;
resets = <&reset RPI_PICO_RESETS_RESET_DMA>;
clocks = <&clocks RPI_PICO_CLKID_CLK_SYS>;
interrupts = <10 RPI_PICO_DEFAULT_IRQ_PRIORITY>,
<11 RPI_PICO_DEFAULT_IRQ_PRIORITY>,
<12 RPI_PICO_DEFAULT_IRQ_PRIORITY>,
<13 RPI_PICO_DEFAULT_IRQ_PRIORITY>;
interrupt-names = "dma0", "dma1", "dma2", "dma3";
dma-channels = <16>;
irq0-channels = [00 02 04 06 08 0a 0c 0e];
status = "disabled";
#dma-cells = <3>;
};

usbd: usbd@50100000 {
compatible = "raspberrypi,pico-usbd";
reg = <0x50100000 0x10000>;
Expand Down

0 comments on commit 46bec14

Please sign in to comment.