Skip to content

Commit a23cf5f

Browse files
P33Mpelwell
authored andcommitted
dtoverlays: adjust inbound windows for MIP1 on Pi 5 with 32-bit PCIe DMA
Upstream bcm2712 support added/split out the inbound window for MIP1 into a separate range. For the pcie-32bit-dma overlay to work, both the MIP and RC ranges need to agree. Shift the MIP window to the top 4K page below 4GB. Signed-off-by: Jonathan Bell <jonathan@raspberrypi.com>
1 parent 359f37f commit a23cf5f

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

arch/arm/boot/dts/overlays/pcie-32bit-dma-pi5-overlay.dts

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,21 @@
1919
#address-cells = <3>;
2020
#size-cells = <2>;
2121
dma-ranges = <0x02000000 0x0 0x00000000 0x0 0x00000000
22-
0x0 0x80000000>;
22+
0x0 0x80000000>,
23+
<0x02000000 0x00 0xfffff000 0x10 0x00131000
24+
0x00 0x00001000>;
2325
};
2426
};
2527

28+
fragment@1 {
29+
target = <&mip1>;
30+
__overlay__ {
31+
/*
32+
* The MIP driver uses the reg property to derive the target
33+
* address for MSI writes - place this below 4GB.
34+
*/
35+
reg = <0x10 0x00131000 0x00 0xc0>,
36+
<0x00 0xfffff000 0x00 0x1000>;
37+
};
38+
};
2639
};

0 commit comments

Comments
 (0)