Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

xtensa: configure shared DMA pool reservation in kc705 DTS

Add example 64MByte long reservation in the first 512MBytes of physical
memory used as shared DMA pool.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>

+16
+16
arch/xtensa/boot/dts/kc705.dts
··· 11 11 device_type = "memory"; 12 12 reg = <0x00000000 0x38000000>; 13 13 }; 14 + 15 + reserved-memory { 16 + #address-cells = <1>; 17 + #size-cells = <1>; 18 + ranges; 19 + 20 + /* global autoconfigured region for contiguous allocations */ 21 + linux,cma { 22 + compatible = "shared-dma-pool"; 23 + reusable; 24 + size = <0x04000000>; 25 + alignment = <0x2000>; 26 + alloc-ranges = <0x00000000 0x20000000>; 27 + linux,cma-default; 28 + }; 29 + }; 14 30 };