From e19578dd497df7e60068d5066c35e4b62e02cfcc Mon Sep 17 00:00:00 2001 From: Josep Orga Date: Fri, 8 Oct 2021 19:26:54 +0200 Subject: [PATCH] arm64: dts: imx8mn-somdevices.dtsi: Configure memory and allocate less cma memory. Signed-off-by: Josep Orga --- .../arm64/boot/dts/freescale/imx8mn-somdevices.dtsi | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mn-somdevices.dtsi b/arch/arm64/boot/dts/freescale/imx8mn-somdevices.dtsi index cbd125069dd0..c9b040380261 100644 --- a/arch/arm64/boot/dts/freescale/imx8mn-somdevices.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mn-somdevices.dtsi @@ -29,7 +29,7 @@ memory@40000000 { device_type = "memory"; - reg = <0x0 0x40000000 0 0x80000000>; + reg = <0x0 0x40000000 0 0x20000000>; }; modem_reset: modem-reset { @@ -291,6 +291,17 @@ }; }; +&resmem { + /* global autoconfigured region for contiguous allocations */ + linux,cma { + compatible = "shared-dma-pool"; + reusable; + size = <0 0xA000000>; + alloc-ranges = <0 0x40000000 0 0x40000000>; + linux,cma-default; + }; +}; + &sai5 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_sai5>; -- 2.17.1