Skip to content

Paced DMA on RP1 not possible #7078

@goldwaving

Description

@goldwaving

Describe the bug

Setting up paced DMA with PWM flow control (or any other flow control peripheral) fails to work on RP1. In dw-axi-dmac-platform.c the snps,sel-require entry is read from the device tree. However that entry does not exist. So in the dw_axi_dma_of_xlate function, the dw->sel_required values are always zero, resulting in a zero chan_mask. No channel can be selected.

Also the DMA handshake table in the RP1 Peripherals document is missing entirely, even though it is mentioned in the text.

Would adding a snps,sel-require entry in the device tree solve this problem? If so, what would be the appropriate values for DREQ setup?

Steps to reproduce the behaviour

Attempt to set up paced DMA using PWM on RP1

Device (s)

Raspberry Pi 5

System

Raspberry Pi reference 2025-05-13
Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, 5dabc7dc940059dfbc46af5d97b60a1e812523dd, stage2

2025/05/08 15:13:17
Copyright (c) 2012 Broadcom
version 69471177 (release) (embedded)

Linux precisionwall 6.12.47+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.12.47-1+rpt1~bookworm (2025-09-16) aarch64 GNU/Linux

Logs

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions