matiamic opened a new pull request, #16936: URL: https://github.com/apache/nuttx/pull/16936
## Summary This patch adds a network driver for 10BASE-T1x SPI MAC-PHYs that follow [OPEN Alliance 10BASE-T1x MAC-PHY Serial Interface](https://opensig.org/wp-content/uploads/2023/12/OPEN_Alliance_10BASET1x_MAC-PHY_Serial_Interface_V1.1.pdf) specification. The driver is composed of an upper-half driver and lower-half drivers. The upper-half part implements the protocol logic and communication of frames between the driver and the network stack. The upper-half driver is a lower-half driver to the `netdev_upperhalf` driver. Lower-half drivers are tied to a specific chip. They implement functionality that is needed for the correct functioning of the interface but is not specified by the OPEN Alliance specification. This includes MAC controller configuration and MAC address filtering. Although not implemented at this stage, it should not take much effort to enable use of some device-specific or proprietary functions, such as topology discovery, by customizing a lower-half driver. Lower-half drivers for the Onsemi NCV7410 (NCN26010) and Microchip LAN865x MAC-PHYs are included. Auto-detection of the MAC-PHY chip is implemented. The MAC-PHYs can act as a drop-in replacement between each other without recompiling or changing configuration. But it is also possible to directly call initializing function of the specific MAC-PHY. 10BASE-T1S MAC-PHYs can support PLCA reconciliation sublayer. This is supported by MMD register access through ioctl using mechanism from PR https://github.com/apache/nuttx/pull/16926. The mapping of the registers is specified by other OPEN Alliance [specification](https://opensig.org/wp-content/uploads/2025/03/2024-12-10BASE-T1S-PLCA-Management-Registers-v1.4.pdf). A PR will be published to the nuttx-apps with the `plcatool` application that mirrors PLCA configuration options of the `ethtool` utility. ## Impact 10BASE-T1x SPI MAC-PHY driver is introduced. ## Testing The driver was ported on esp32c6-devkit[mc] and samv71-xult boards. Testing was performed between these devices. EVBUM2876 10BASE-T1S USB-C dongle was also used. Performance was measured with `iperf -u` between Linux PC with the EVBUM dongle and the NCV7410 at 25 MHz SPI connected to samv71-xult with enabled DMA SPI transfers. No other load was present in the system. Measured throughput 9.17 Mbit/s. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
