diff mbox series

arm64: dts: marvell: mochabin: enlarge PCI memory window

Message ID 20230219121418.1395401-1-robert.marko@sartura.hr (mailing list archive)
State New, archived
Headers show
Series arm64: dts: marvell: mochabin: enlarge PCI memory window | expand

Commit Message

Robert Marko Feb. 19, 2023, 12:14 p.m. UTC
Armada 7040 uses a rather small 15MB memory window for every PCI adapter,
however this is not sufficient for Qualcomm QCA6390 802.11ax cards that
are shipped along with the OpenWrt WLAN model of MOCHAbin as ath11k
requires at least 16MB of memory.

So, similar to what MACCHIATOBin has been doing for years, lets move
to using the second PCIe 2 memory window and expand it to 128MB to
make it future proof.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
---
 arch/arm64/boot/dts/marvell/armada-7040-mochabin.dts | 1 +
 1 file changed, 1 insertion(+)

Comments

Gregory CLEMENT April 7, 2023, 3:01 p.m. UTC | #1
Robert Marko <robert.marko@sartura.hr> writes:

> Armada 7040 uses a rather small 15MB memory window for every PCI adapter,
> however this is not sufficient for Qualcomm QCA6390 802.11ax cards that
> are shipped along with the OpenWrt WLAN model of MOCHAbin as ath11k
> requires at least 16MB of memory.
>
> So, similar to what MACCHIATOBin has been doing for years, lets move
> to using the second PCIe 2 memory window and expand it to 128MB to
> make it future proof.
>
> Signed-off-by: Robert Marko <robert.marko@sartura.hr>

Applied on mvebu/dt64

Thanks,

Gregory
> ---
>  arch/arm64/boot/dts/marvell/armada-7040-mochabin.dts | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/arch/arm64/boot/dts/marvell/armada-7040-mochabin.dts b/arch/arm64/boot/dts/marvell/armada-7040-mochabin.dts
> index 7ca71f2d7afb..39ce6e25a8ef 100644
> --- a/arch/arm64/boot/dts/marvell/armada-7040-mochabin.dts
> +++ b/arch/arm64/boot/dts/marvell/armada-7040-mochabin.dts
> @@ -455,4 +455,5 @@ &cp0_pcie2 {
>  	phys = <&cp0_comphy5 2>;
>  	phy-names = "cp0-pcie2-x1-phy";
>  	reset-gpios = <&cp0_gpio1 9 GPIO_ACTIVE_LOW>;
> +	ranges = <0x82000000 0x0 0xc0000000 0x0 0xc0000000 0x0 0x8000000>;
>  };
> -- 
> 2.39.2
>
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/marvell/armada-7040-mochabin.dts b/arch/arm64/boot/dts/marvell/armada-7040-mochabin.dts
index 7ca71f2d7afb..39ce6e25a8ef 100644
--- a/arch/arm64/boot/dts/marvell/armada-7040-mochabin.dts
+++ b/arch/arm64/boot/dts/marvell/armada-7040-mochabin.dts
@@ -455,4 +455,5 @@  &cp0_pcie2 {
 	phys = <&cp0_comphy5 2>;
 	phy-names = "cp0-pcie2-x1-phy";
 	reset-gpios = <&cp0_gpio1 9 GPIO_ACTIVE_LOW>;
+	ranges = <0x82000000 0x0 0xc0000000 0x0 0xc0000000 0x0 0x8000000>;
 };