Skip to content

Commit dda83b1

Browse files
P33Mpelwell
authored andcommitted
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 <[email protected]>
1 parent c1432b4 commit dda83b1

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

arch/arm/boot/dts/overlays/README

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3550,6 +3550,8 @@ Params: l1ss Enable ASPM L1 sub-state support
35503550
the MSI-MIP peripheral. Use if a) more than 8
35513551
interrupt vectors are required or b) the EP
35523552
requires DMA and MSI addresses to be 32bit.
3553+
mmio-hi Move the start of outbound 32bit addresses to
3554+
2GB and expand 64bit outbound space to 14GB.
35533555

35543556

35553557
[ The pcf2127-rtc overlay has been deleted. See i2c-rtc. ]

arch/arm/boot/dts/overlays/pciex1-compat-pi5-overlay.dts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,29 @@
3232
};
3333
};
3434

35+
/*
36+
* Shift the start of the 32bit outbound window to 2GB,
37+
* so there are no BARs starting at 0x0. Expand the 64bit
38+
* outbound window to use the spare 2GB.
39+
*/
40+
fragment@3 {
41+
target = <&pciex1>;
42+
__dormant__ {
43+
#address-cells = <3>;
44+
#size-cells = <2>;
45+
ranges = <0x02000000 0x00 0x80000000
46+
0x1b 0x80000000
47+
0x00 0x7ffffffc>,
48+
<0x43000000 0x04 0x00000000
49+
0x18 0x00000000
50+
0x03 0x80000000>;
51+
};
52+
};
53+
3554
__overrides__ {
3655
l1ss = <0>, "+0";
3756
no-l0s = <0>, "+1";
3857
no-mip = <0>, "+2";
58+
mmio-hi = <0>, "+3";
3959
};
4060
};

0 commit comments

Comments
 (0)