1283f93708288d9e96a765148cf0986e63ff23bb
[oweals/openwrt.git] / target / linux / ipq40xx / patches-4.19 / 083-ARM-dts-qcom-ipq4019-enlarge-PCIe-BAR-range.patch
1 From: Christian Lamparter <chunkeey@gmail.com>
2 Date: Mon, 25 Feb 2019 20:14:19 +0100
3 Subject: [PATCH] ARM: dts: qcom: ipq4019: enlarge PCIe BAR range
4
5 David Bauer reported that the VDSL modem (attached via PCIe)
6 on his AVM Fritz!Box 7530 was complaining about not having
7 enough space in the BAR. A closer inspection of the old
8 qcom-ipq40xx.dtsi pulled from the GL-iNet repository listed:
9
10 | qcom,pcie@80000 {
11 |       compatible = "qcom,msm_pcie";
12 |       reg = <0x80000 0x2000>,
13 |             <0x99000 0x800>,
14 |             <0x40000000 0xf1d>,
15 |             <0x40000f20 0xa8>,
16 |             <0x40100000 0x1000>,
17 |             <0x40200000 0x100000>,
18 |             <0x40300000 0xd00000>;
19 |       reg-names = "parf", "phy", "dm_core", "elbi",
20 |                       "conf", "io", "bars";
21
22 Matching the reg-names with the listed reg leads to
23 <0xd00000> as the size for the "bars".
24
25 BugLink: https://www.mail-archive.com/openwrt-devel@lists.openwrt.org/msg45212.html
26 Reported-by: David Bauer <mail@david-bauer.net>
27 Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
28 ---
29
30 --- a/arch/arm/boot/dts/qcom-ipq4019.dtsi
31 +++ b/arch/arm/boot/dts/qcom-ipq4019.dtsi
32 @@ -405,8 +405,8 @@
33                         #address-cells = <3>;
34                         #size-cells = <2>;
35  
36 -                       ranges = <0x81000000 0 0x40200000 0x40200000 0 0x00100000
37 -                                 0x82000000 0 0x40300000 0x40300000 0 0x400000>;
38 +                       ranges = <0x81000000 0 0x40200000 0x40200000 0 0x00100000>,
39 +                                <0x82000000 0 0x40300000 0x40300000 0 0x00d00000>;
40  
41                         interrupts = <GIC_SPI 141 IRQ_TYPE_EDGE_RISING>;
42                         interrupt-names = "msi";