Hello
I hope you are well.
To use lwip you might refer to the examples but you need to make modifications on the PHY to use KSZ8851SNLI.
Unfortunately, there are no examples to interface to this specific PHY from our side.
You will need to adapt this implementation, you can refer to the SPI examples as well to integrate your PHY driver.
Best regards,
Omar