Official support for TP-Link xx530v

When will stable official support for xx530v of tplink produce, i have heared that someone alredy testing it, are there any hope for official support for it soon?

"When it's ready."

Depends on your definition of "soon".

If is v1, I already have the support in my repository

If not (v2) is an7551, And we don't have support for that SoC yet

For fix my comment, v2 is an7552 and is supported, sorry

Is it reliable to use my modem is 1.8v Indian version

Try initramfs, but edit dts partions of vendor base

My version requires replacing the stock u-boot with the Openwrt u-boot, and for that, it also needs to migrate the partitioning style to the new partition mapping

I haven’t use openwrt ever before, do i need to use ttl converor?

Yes, you need to access the UART through the pins near the xPON bob

When do you think the official support of openwrt available in xx530v release? Is the project successful as you wished, what is the status?

I'm working with over 8 Airoha devices, all of which have been tested on GPON and are functional to a certain extent. I'm working with over 8 Airoha devices; all of them have been tested on GPON and are functional to a certain extent. Packet acceleration is also working fine; the only thing missing is wireless acceleration it's not complete in some parts, but otherwise it's very good

What we have now just needs to be sent to the kernel and then backported to openwrt

If anybody has version v2 (an7563 family), I have done a lot of work commited here lukasz1992/openwrt at tp-link-xx530v-v2.

Working: GPON (laser & phy/mac) driver, GPON userspace daemon, WED, full offload support, bufferbloat fixes for WED, QDMA and NPU. Phone support is not planned. Changing u-boot settings is not needed, just flash is enough.

@sirherobrine23 Your project helped me to take the decision of buying the device. After connecting serial I noticed that "V2" is a different hardware, that's how I started to do the work :slight_smile:

I'm simply not working with the npu because my files are too old to be used with the new driver

NPU part was easy to start the engine, but difficult to plan:

  • in an7563 it only controls offload of RX WiFi (so traffic sent by AP-clients), nothing more
  • depsite handler is defined in airoha-eth, NPU is not related to ethernet here
  • it is not possible to stop firmware by any command, I needed to implement special patches to reset cores and protect memory

WED was the actual challenge, because it is a new driver, maybe could be reused for mt7623 and mt7615 offload, as it never existed before. But I only focused on my hardware

From what I've seen of the old and new SDKs, wed has become very limited to a few chips, but mainly to the mt79xx

I know, the en7523 npu has a different setup, so I had to modify the npu a lot

Same for en7523, only wireless offload, and in one direction.

I just added support for wed on the en7523 and it's working, @merbanan started it but it's not working, I fixed it recently, now I'm just waiting to see what we'll do, I want send patchers this year for kernel for en7523 and my ethernet driver for econet mips SoCs

When they requested xPON support for the an7552, it was much faster because it's quite similar to the en7523, so I only had to activate a few flags in some parts and it was already working, the xPON is same, one needs add flags and add in compatible

2nd version of WED is supported by mt76. 1st version is not (it only offloads TX path) - that is what I ported.

In AN7563 NPU supports only RX path offload. I was not really interested in it, but it is needed for the rest components (PPE and GPON) to offload traffic - otherwise it stops working and packets go through CPU.

Imho an7523 and 7563 differ a little, except some components (like more similarities to supported en7583: ethernet, cpufreq).

Yes, they differ a lot, but they share many resources and regs/mmio regions

All Econet/Airoha chips are v1 only, just like the mt7621. the v2 version is reserved for Mediatek chips. The v1 NPU is responsible for supplementing part of the offload for the wireless chips, and v2 extended offload do support tx/rx, but have 3 variants of v2 (v2, v2_p, v2_s), This still includes the part that has an NPU implementation that doesn't have wireless, which serves to accelerate some packets, like Wireguard/IPSeC

Well it worked for me :winking_face_with_tongue:

Anyway this was unexpected I thought that the EN7523 was the only device with WED. But the AN7563 only have 2 NPU cores so it makes sense as Airoha uses 1 core per WiFi DMA direction.

With it not being used by the AN7581/AN7583 I am guessing the WED is not as performant as a NPU core. But that means AN7581 and AN7583 probably can use WED if their interrupts are wired correctly to the pcie lanes. And thus freeing two NPU cores, so if we can think of some fun stuff to do on the NPU cores of the AN7581 and AN7583 then we could get the cores for it.

For devices without wireless, it's used to accelerate VPN packets (Wireguard/IPSeC) according to some documentation I saw on the web archive and my server. Seriously, I think they're probably not using WED because of the limitation of version 1, which is only one-way, while the NPU can accelerate in both directions. I don't see it as a limitation of WED, but more likely some new implementation for the new MT79xx Wi-Fi 7 chips, since the WED limit would be more tied to the PCIe link, so it gets a bit confusing. And the SDK doesn't help much either.

As i mentioned, i tested it on 3 devices and it didn't work, but as i said on my server, i have the old blobs, while you have the news one

Not wireguard but vxlan, map-t and something ipv6-srv. In theory wireguard could be imoplemented but the CPUs would be faster. The AN7563/52 has the SOE so it can probably be used for IPSEC but that is untested.

I think the reason they went with the NPUs is because you can do more with them compared to the WED.

this seems to be something more related to MediaTek. it appears their next SoCs will likely come without the WED, as they are starting to add the NPU to their new ARM SoCs, so that's probably it. I think the WED served its purpose very well during the MIPS era