Path: blob/master/Documentation/devicetree/bindings/dma/k3dma.txt
26308 views
* Hisilicon K3 DMA controller12See dma.txt first34Required properties:5- compatible: Must be one of6- "hisilicon,k3-dma-1.0"7- "hisilicon,hisi-pcm-asp-dma-1.0"8- reg: Should contain DMA registers location and length.9- interrupts: Should contain one interrupt shared by all channel10- #dma-cells: see dma.txt, should be 1, para number11- dma-channels: physical channels supported12- dma-requests: virtual channels supported, each virtual channel13have specific request line14- clocks: clock required1516Example:1718Controller:19dma0: dma@fcd02000 {20compatible = "hisilicon,k3-dma-1.0";21reg = <0xfcd02000 0x1000>;22#dma-cells = <1>;23dma-channels = <16>;24dma-requests = <27>;25interrupts = <0 12 4>;26clocks = <&pclk>;27};2829Client:30Use specific request line passing from dmax31For example, i2c0 read channel request line is 18, while write channel use 193233i2c0: i2c@fcb08000 {34compatible = "snps,designware-i2c";35dmas = <&dma0 18 /* read channel */36&dma0 19>; /* write channel */37dma-names = "rx", "tx";38};3940i2c1: i2c@fcb09000 {41compatible = "snps,designware-i2c";42dmas = <&dma0 20 /* read channel */43&dma0 21>; /* write channel */44dma-names = "rx", "tx";45};46474849