Seeing as the .dts for the APM82181 has been recently overhauled, I was wondering if it's possible to initialize devices that (as far as I can tell) require MSI in order to initialize.
I installed a BCM43465 (a.k.a. bcm4366c0), and installed the 4366c0 firmware and brcmfmac. Sadly, wireless does not come up:
root@OpenWrt:/# dmesg | grep -i pcie [ 0.067073] PCIE0: Checking link... [ 0.076222] PCIE0: Device detected, waiting for link... [ 0.076236] PCIE0: link is up ! [ 0.185158] PCI host bridge /plb/pciex@d00000000 (primary) ranges: [ 0.185283] PCIE0: successfully set as root-complex [ 0.187714] pci 0000:41:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s x1 link at 0000:40:00.0 (capable of 4.000 Gb/s with 5 GT/s x1 link) [ 3.937562] pcie_pme: probe of 0000:40:00.0:pcie001 failed with error -22 [ 3.937670] pcieport 0000:40:00.0: AER: request AER IRQ 0 failed [ 3.937688] aer: probe of 0000:40:00.0:pcie002 failed with error -22 [ 156.491491] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac4366c-pcie for chip BCM43465/4 [ 156.605174] brcmfmac 0000:41:00.0: Direct firmware load for brcm/brcmfmac4366c-pcie.meraki,mx60.txt failed with error -2 [ 156.735148] brcmfmac 0000:41:00.0: Falling back to sysfs fallback for: brcm/brcmfmac4366c-pcie.meraki,mx60.txt [ 156.896508] brcmfmac 0000:41:00.0: Direct firmware load for brcm/brcmfmac4366c-pcie.txt failed with error -2 [ 157.013912] brcmfmac 0000:41:00.0: Falling back to sysfs fallback for: brcm/brcmfmac4366c-pcie.txt [ 158.000644] brcmfmac 0000:41:00.0: brcmf_pcie_request_irq: Failed to request IRQ 19
I tested to confirm that snapshot x86 OpenWrt does work with this card --
/proc/interrupts shows that the card is actually using MSI line, and I seem to recall that this is a requirement for the card, but I can't find my source for that.
I do see that
target/linux/apm821xx/dts/meraki-mx60.dts have been recently changed to discuss the MSI capabilities of the SoC.
How can I change the .dts so the board accepts the IRQ request from the Broadcom card / driver?