Hi,
Thank you for your interest in NXP Semiconductor products,
What features of PTP L2 do you need? I would strongly recommend you to check NXP BSP, either Linux Factory or Real Time Edge.
i.MX 8M Plus EQOS IP includes L2 (filtering) support through MAC DA/SA and VLAN filtering, RTEdge supports:

Regards