Skip to content

Commit 58be524

Browse files
committed
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 58be524

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

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)