Writing EDMA driver

I’m trying to learn how to write an EDMA driver. I’ve found a simple example here and made it work by adding #include <linux/of_device.h> and compiling (and installing) the corresponding overlay.

Sadly the slave config fails and I have no clue why that would be:

Mar 15 06:07:30 beaglebone kernel: [  170.378809] dma_test dma-test: Dmaengine slave config failed
Mar 15 06:07:30 beaglebone kernel: [  170.390936] dma_test: probe of dma-test failed with error -22

I’m positive that it has something to do with the config, but I lack the experience to identify what exactly is causing the issue.