SPI to Ethernet Communication on Forlinx OK-MX9352-C Board: W5500 Driver Setup & Debug Guide
SPI to Ethernet Communication on Forlinx OK-MX9352-C Board: W5500 Driver Setup & Debug Guide

This article explains how to implement Ethernet communication using the W5500 SPI-to-Ethernet module on the Forlinx OK-MX9352-C development board. The W5500 is an SPI-based Ethernet controller that supports 100Mbps Ethernet and up to 80Mbps SPI data rates.
The content includes:
Hardware Connection: Pin mapping between W5500 and OK-MX9352-C (LPSPI3 and GPIO).
Kernel Configuration: Enabling WIZnet SPI Ethernet drivers in the kernel menuconfig.
Device Tree Settings: Adding W5500 configuration under the SPI3 node, including GPIO for chip-select, interrupt, and reset.
Driver Build and Deployment: Compiling w5100.ko
and w5100-spi.ko
, updating the device tree, and copying files to the board.
Driver Loading: Inserting modules and checking for a new network interface (eth2).
Network Test: Assigning IP address and verifying Ethernet communication with ping
.
The article provides the necessary steps to enable and verify SPI-based Ethernet using the W5500 on this board.