msm8916-openwrt/target/linux/bcm27xx/patches-6.6/950-1107-DTS-overlays-add-mmio-hi-parameter-to-pciex1-compat-.patch
Álvaro Fernández Rojas 8c405cdccc bcm27xx: add 6.6 kernel patches
The patches were generated from the RPi repo with the following command:
git format-patch v6.6.34..rpi-6.1.y

Some patches needed rebasing and, as usual, the applied and reverted, wireless
drivers, Github workflows, READMEs and defconfigs patches were removed.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2024-06-18 18:52:49 +02:00

62 lines
2.0 KiB
Diff

From dda83b1fb650670b865e8735115c00bdfccacabf Mon Sep 17 00:00:00 2001
From: Jonathan Bell <jonathan@raspberrypi.com>
Date: Fri, 24 May 2024 14:49:28 +0100
Subject: [PATCH 1107/1135] DTS: overlays: add mmio-hi parameter to
pciex1-compat-pi5
I225-V network adapters have a buggy ROM that won't complete internal
initialisation if (at least) BAR0 has an assigned address of 0x0.
Add a parameter to the pciex1-compat-pi5 overlay to make outbound
addresses start at 2GB.
Signed-off-by: Jonathan Bell <jonathan@raspberrypi.com>
---
arch/arm/boot/dts/overlays/README | 2 ++
.../overlays/pciex1-compat-pi5-overlay.dts | 20 +++++++++++++++++++
2 files changed, 22 insertions(+)
--- a/arch/arm/boot/dts/overlays/README
+++ b/arch/arm/boot/dts/overlays/README
@@ -3550,6 +3550,8 @@ Params: l1ss Enable A
the MSI-MIP peripheral. Use if a) more than 8
interrupt vectors are required or b) the EP
requires DMA and MSI addresses to be 32bit.
+ mmio-hi Move the start of outbound 32bit addresses to
+ 2GB and expand 64bit outbound space to 14GB.
[ The pcf2127-rtc overlay has been deleted. See i2c-rtc. ]
--- a/arch/arm/boot/dts/overlays/pciex1-compat-pi5-overlay.dts
+++ b/arch/arm/boot/dts/overlays/pciex1-compat-pi5-overlay.dts
@@ -32,9 +32,29 @@
};
};
+ /*
+ * Shift the start of the 32bit outbound window to 2GB,
+ * so there are no BARs starting at 0x0. Expand the 64bit
+ * outbound window to use the spare 2GB.
+ */
+ fragment@3 {
+ target = <&pciex1>;
+ __dormant__ {
+ #address-cells = <3>;
+ #size-cells = <2>;
+ ranges = <0x02000000 0x00 0x80000000
+ 0x1b 0x80000000
+ 0x00 0x7ffffffc>,
+ <0x43000000 0x04 0x00000000
+ 0x18 0x00000000
+ 0x03 0x80000000>;
+ };
+ };
+
__overrides__ {
l1ss = <0>, "+0";
no-l0s = <0>, "+1";
no-mip = <0>, "+2";
+ mmio-hi = <0>, "+3";
};
};