board: rpi-4: Reserve memory correct for GPU

This commit is contained in:
Mattias Walström
2025-08-23 22:22:21 +02:00
parent d4726aff82
commit 9374feefb0
@@ -1,18 +1,21 @@
#include <arm64/broadcom/bcm2711-rpi-4-b.dts>
/ {
memory@0 {
device_type = "memory";
reg = <0x0 0x0 0x0 0x30000000>; /* Reserve top 256MB for GPU */
/* Dynamic GPU reservation */
gpu-reserved {
size = <0x0 0x10000000>; /* 256MB */
alignment = <0x0 0x1000000>; /* 16MB aligned */
alloc-ranges = <0x0 0x10000000 0x1 0x00000000>; /* Allow anywhere in RAM */
no-map;
};
reserved-memory {
#address-cells = <2>;
#size-cells = <2>;
ranges;
gpu_reserved: gpu@30000000 {
reg = <0x0 0x30000000 0x0 0x10000000>;
no-map;
};
/* CMA pool */
cma-reserved {
compatible = "shared-dma-pool";
size = <0x0 0x10000000>; /* 256MB */
alignment = <0x0 0x1000000>; /* 16MB aligned */
linux,cma-default;
reusable;
};
panel_disp: panel_disp@1 {