bcm27xx: update patches from RPi foundation
[openwrt/openwrt.git] / target / linux / bcm27xx / patches-5.4 / 950-0428-ARM-dts-Remove-CMA-allocation-from-Pi-4-dts.patch
1 From 1a66f120abddf36eaf2540532ddeb7f7767442c5 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.com>
3 Date: Sat, 1 Feb 2020 08:58:11 +0000
4 Subject: [PATCH] ARM: dts: Remove CMA allocation from Pi 4 dts
5
6 The 5.5 tree includes a patch to disable the CMA command line
7 parameter and replace it with properties from a DT node.
8 The upstream Pi 4 .dts, now used downstream with modifications,
9 includes the "linux,cma" node, but only reserves 32MB which is
10 often not enough.
11
12 Temporarily remove the "linux,cma" node to reenable the command line
13 parameter.
14
15 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
16 ---
17 arch/arm/boot/dts/bcm2711-rpi-4-b.dts | 4 ++++
18 1 file changed, 4 insertions(+)
19
20 --- a/arch/arm/boot/dts/bcm2711-rpi-4-b.dts
21 +++ b/arch/arm/boot/dts/bcm2711-rpi-4-b.dts
22 @@ -167,6 +167,10 @@
23 };
24
25 /delete-node/ wifi-pwrseq;
26 +
27 + reserved-memory {
28 + /delete-node/ linux,cma;
29 + };
30 };
31
32 &mmcnr {