Adding WiFi/USB support to Audiocodes MP264

Hi,

I'm currently in the process of porting LEDE to the Audiocodes MP264, a Lantiq device. I can boot from the ramdisk using the OEM's u-boot. Ethernet works, but I am having trouble setting up USB and WiFi.

Having looked at the kernel logs, I think that the problem is that I am not setting up the PCI correctly (in particular see the last line):

[ 0.377157] PCI host bridge to bus 0000:00
[ 0.381164] pci_bus 0000:00: root bus resource [mem 0x18000000-0x19ffffff]
[ 0.388105] pci_bus 0000:00: root bus resource [io 0x1ae00000-0x1affffff]
[ 0.395058] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[ 0.401904] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 0.409970] pci 0000:00:0e.0: [1814:3062] type 00 class 0x028000
[ 0.415979] pci 0000:00:0e.0: reg 0x10: [mem 0xffff0000-0xffffffff]
[ 0.422766] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[ 0.429302] pci 0000:00:0e.0: BAR 0: assigned [mem 0x18000000-0x1800ffff]
[ 0.436149] pci 0000:00:0e.0: BAR 0: error updating (0x18000000 != 0xffff0000)

However, after booting, lspci still sees the WiFi, though:

root@LEDE:/# lspci
00:0e.0 Class 0280: 1814:3062

Here is a copy of the device tree file that I am using. It has been created by copying and pasting from other files, then changing relevant values (e.g. memory load address), so the LEDs/GPIO values are likely incorrect.

Here is a copy of my LEDE bootlog and the OEM (OpenRG) bootlog. Attaching a link because it wouldn't fit in the forum's size limits:
https://pastebin.com/se0RexpH

Do you have any advice for how I should go about trying to solve this?

Thanks for reading!

I haven't managed to solve this problem, but for anyone else who is dealing with this device, I've done a more detailed writeup on this device here.