From 07de3da1a5c07f35ca9328fa683d23056760498b Mon Sep 17 00:00:00 2001 From: Josep Orga Date: Fri, 13 Aug 2021 11:41:28 +0200 Subject: [PATCH] arm64: dts: imx8mm-somdevices.dtsi: Configure memory and allocate less cma memory. Signed-off-by: Josep Orga --- .../arm64/boot/dts/freescale/imx8mm-somdevices.dtsi | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-somdevices.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-somdevices.dtsi index 64a9b6f023b7..8703d6983b91 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-somdevices.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm-somdevices.dtsi @@ -18,7 +18,7 @@ memory@40000000 { device_type = "memory"; - reg = <0x0 0x40000000 0 0x80000000>; + reg = <0x0 0x40000000 0 0x40000000>; }; leds { @@ -394,6 +394,17 @@ status = "disabled"; }; +&resmem { + /* global autoconfigured region for contiguous allocations */ + linux,cma { + compatible = "shared-dma-pool"; + reusable; + size = <0 0x14000000>; + alloc-ranges = <0 0x40000000 0 0x40000000>; + linux,cma-default; + }; +}; + &sai1 { pinctrl-names = "default", "dsd"; pinctrl-0 = <&pinctrl_sai1>; -- 2.17.1