NXP Layerscape Support for ath11k and QCN9074

Hi everyone!

Details:
SOC: NXP LS1046AFRWY
Kernel: 5.15.102
OS: OpenWrt

I am trying to interface the QNC9074 WiFi6 driver to the NXP LS1046AFRWY platform, during the booting process ath11K PCI driver was detected properly and loaded with the correct firmware.

Booting logs:

[    7.742924] ath11k_pci 0001:01:00.0: BAR 0: assigned [mem 0x5040000000-0x50401fffff 64bit]
[    7.751374] ath11k_pci 0001:01:00.0: MSI vectors: 1
[    7.756259] ath11k_pci 0001:01:00.0: qcn9074 hw1.0
[    7.761047] ath11k_pci 0001:01:00.0: FW memory mode: 2
[    7.923097] mhi mhi0: Requested to power ON
[    7.927347] mhi mhi0: Power on setup success
[    8.195490] mhi mhi0: Wait for device to enter SBL or Mission mode
[    8.317690] kmodloader: done loading kernel modules from /etc/modules.d/*
[    8.329994] ath11k_pci 0001:01:00.0: chip_id 0x0 chip_family 0x0 board_id 0xff soc_id 0xffffffff
[    8.338818] ath11k_pci 0001:01:00.0: fw_version 0x250a04b8 fw_build_timestamp 2021-12-20 06:41 fw_build_id 
[    9.622084] br-lan: port 1(eth0) entered blocking state
[    9.627318] br-lan: port 1(eth0) entered disabled state
[    9.633892] device eth0 entered promiscuous mode
[    9.689962] ath11k_pci 0001:01:00.0: leaving PCI ASPM disabled to avoid MHI M2 problems
[   11.741639] br-lan: port 1(eth0) entered blocking state
[   11.746883] br-lan: port 1(eth0) entered forwarding state
[   11.753068] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready

after booting

ifconfig output

br-lan    Link encap:Ethernet  HWaddr 00:04:9F:06:49:C8  
          inet addr:10.10.1.89  Bcast:10.10.1.255  Mask:255.255.255.0
          inet6 addr: fdc8:d913:9fc::1/60 Scope:Global
          inet6 addr: fe80::204:9fff:fe06:49c8/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:423 errors:0 dropped:0 overruns:0 frame:0
          TX packets:153 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:69868 (68.2 KiB)  TX bytes:18453 (18.0 KiB)

eth0      Link encap:Ethernet  HWaddr 00:04:9F:06:49:C8  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:429 errors:0 dropped:9 overruns:0 frame:0
          TX packets:154 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:70266 (68.6 KiB)  TX bytes:18543 (18.1 KiB)
          Memory:1ae0000-1ae0fff 

eth1      Link encap:Ethernet  HWaddr 00:04:9F:06:49:C9  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Memory:1ae8000-1ae8fff 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:35 errors:0 dropped:0 overruns:0 frame:0
          TX packets:35 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:4328 (4.2 KiB)  TX bytes:4328 (4.2 KiB)

ifconfig -a
output

br-lan    Link encap:Ethernet  HWaddr 00:04:9F:06:49:C8  
          inet addr:10.10.1.89  Bcast:10.10.1.255  Mask:255.255.255.0
          inet6 addr: fdc8:d913:9fc::1/60 Scope:Global
          inet6 addr: fe80::204:9fff:fe06:49c8/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:26 errors:0 dropped:0 overruns:0 frame:0
          TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:4886 (4.7 KiB)  TX bytes:2150 (2.0 KiB)

eth0      Link encap:Ethernet  HWaddr 00:04:9F:06:49:C8  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:32 errors:0 dropped:3 overruns:0 frame:0
          TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:5284 (5.1 KiB)  TX bytes:2240 (2.1 KiB)
          Memory:1ae0000-1ae0fff 

eth1      Link encap:Ethernet  HWaddr 00:04:9F:06:49:C9  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Memory:1ae8000-1ae8fff 

eth2      Link encap:Ethernet  HWaddr 00:04:9F:06:49:CA  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Memory:1aea000-1aeafff 

eth3      Link encap:Ethernet  HWaddr 00:04:9F:06:49:CB  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Memory:1af2000-1af2fff 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wlan0     Link encap:Ethernet  HWaddr 04:F0:21:A1:7C:2F  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wlan0 interface in the hidden interface and interface not properly up.

after entering the WiFi command we observed the following error.

root@OpenWrt:/# [   17.750353] ath11k_pci 0001:01:00.0: failed to vdev 0 create peer for AP: -110
[   22.818760] ath11k_pci 0001:01:00.0: Timeout in receiving vdev delete response

and interface name changed from wlan0 to phy0-ap0 and is still in the hidden interface.