[OpenWrt-Devel] [PATCH v2 3/3] ipq40xx: add support for FritzBox 7530

Christian Lamparter chunkeey at gmail.com
Mon Feb 25 17:10:30 EST 2019


On Wednesday, February 20, 2019 6:02:21 PM CET Christian Lamparter wrote:
> On Monday, February 18, 2019 11:58:34 PM CET David Bauer wrote:
> > diff --git a/target/linux/ipq40xx/files-4.14/arch/arm/boot/dts/qcom-ipq4019-fritzbox-7530.dts b/target/linux/ipq40xx/files-4.14/arch/arm/boot/dts/qcom-ipq4019-fritzbox-7530.dts
> > new file mode 100644
> > index 0000000000..b2a33468bb
> > --- /dev/null
> > +++ b/target/linux/ipq40xx/files-4.14/arch/arm/boot/dts/qcom-ipq4019-fritzbox-7530.dts
> > @@ -0,0 +1,305 @@
> > +&pcie0 {
> > +	status = "okay";
> > +
> > +	ranges = <0x81000000 0 0x40200000 0x40200000
> > +			0 0x00100000   /* downstream I/O */
> > +			0x82000000 0 0x48000000 0x48000000
> > +			0 0x10000000>; /* non-prefetchable memory */
> 
> Let me dig out my MR33 (will have to wait until the Weekend) and see if this
> should be put into the qcom-ipq4019.dtsi as well.

And it didn't work. While the pcie enumeration worked fine. 
The QCA9887 was no longer attaching. As soon as the driver was
loaded it failed due to:

[    8.888466] ath10k_pci 0000:01:00.0: enabling device (0140 -> 0142)
[    8.934145] ath10k_pci 0000:01:00.0: failed to wake up device : -110
[    8.935258] ath10k: failed to probe PCI : -110, retry-count: 0
[    8.949596] ath10k 4.19 driver, optimized for CT firmware, probing pci device: 0x50.
[    8.989503] ath10k_pci 0000:01:00.0: failed to wake up device : -110
[    8.989899] ath10k: failed to probe PCI : -110, retry-count: 1
[    9.005086] ath10k 4.19 driver, optimized for CT firmware, probing pci device: 0x50.
[    9.046821] ath10k_pci 0000:01:00.0: failed to wake up device : -110
[    9.049851] ath10k: failed to probe PCI : -110, retry-count: 2
[    9.062448] ath10k 4.19 driver, optimized for CT firmware, probing pci device: 0x50.
[    9.099055] ath10k_pci 0000:01:00.0: failed to wake up device : -110
[    9.099442] ath10k: failed to probe PCI : -110, retry-count: 3
[...]
[    9.489869] ath10k: failed to probe PCI : -110, retry-count: 10
[    9.503780] ath10k_pci: probe of 0000:01:00.0 failed with error -110
[...]

But I think we can fix the problem. Because according to the old
qcom-ipq40xx.dtsi I dug up:

<https://github.com/gl-inet/openwrt-imagebuilder-ipq806x/blob/master/build_dir/target-arm_cortex-a7_uClibc-1.0.14_eabi/linux-ipq806x/linux-3.14.77/arch/arm/boot/dts/qcom-ipq40xx.dtsi#L631>

The non-prefetchable memory area window size should be 0x00d00000.

	ranges =	<0x81000000 0 0x40200000 0x40200000 0 0x00100000>, /* downstream I/O */
				<0x82000000 0 0x40300000 0x40300000 0 0x00d00000>; /* non-prefetchable memory */

(yes, I'll be preparing a patch for linux-msm-arm. Can you please let
me know if does indeed finally let you enumerate the device?)

> > +
> > +	perst-gpio = <&tlmm 38 GPIO_ACTIVE_LOW>;
> > +	wake-gpio = <&tlmm 50 GPIO_ACTIVE_LOW>;
> > +
> > +	bridge at 0,0 {
> > +		reg = <0x00000000 0 0 0 0>;
> > +		#address-cells = <3>;
> > +		#size-cells = <2>;
> > +		ranges;
> > +
> > +		dsl at 1,0 {
> > +			compatible = "intel,vrx518";
> > +			status = "okay";
> > +			reg = <0x00010000 0 0 0 0>;
> > +		};
> > +	};
> > +};


Regards,
Christian



_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list