Hi,
I am using ls1012a on my hardware, also I am using ksz9477 ethernet switch connecting to PFE

Figure 1: KSZ9897S
Because ksz9897 doesn't support MDIO (it supports actually, but we chose SPI interface for better performance), so I am using the SPI instead of MDIO. see below.

I can see eth0 and eth1 when the board is powered on. Also, I can configure eth0 with static ip. But I cannot ping external devices at all. I assume the problem happens on the connection of MAC and PHY. The driver spi-fsl-dspi.ko is not used by any other modules. I think the problem is caused by my device tree configuration.
I configured my device tree as below:

Figure 3: PFE node

Figure 4: SPI node
port@6 (i.eGMAC7) in the device tree is used as the MAC port connecting to PFE via SGMII.
Also, I can see both eth0 and eth1, but I am only using eth0 and I can configure the eth0 with static ip.

But I cannot ping external devices at all. Is there any problem with my device tree?
Anyone who can help? Thank you