View on GitHub

Raspberry Pi PCIe Database

Raspberry Pi PCI Express device compatibility database

Microchip LAN9662-NIC PCIe

Microchip LAN9662-NIC PCIe
CM4 Functionality Pi 5 Functionality Driver Required? More Info
Full Untested Yes GitHub Issue

Videos Related to this Card

There are no videos for this card yet.

Description and Notes

The Microchip LAN9662 is 4-Port TSN Gigabit Ethernet Switch with End-Point.

  • Copper Support:10/100/1000 (2)
  • DownstreamPorts:4
  • Port Speed:10/100/1000/2500Mbps
  • Fiber Support:1000X 2500X (2)

The official RPi OS doesn’t natively support LAN966x PCIe, so a build is needed to bridge that gap by compiling Microchip’s Linux kernel fork with the necessary drivers and configurations, allowing users to run a full-featured Raspberry Pi OS alongside the LAN966x switch hardware.

While Microchip provides a basic Board Support Package (BSP), it lacks the full richness of the standard Raspberry Pi OS ecosystem, things like package management, and familiar tooling.

Integration guide: gpmanly/rpi-cm4-lan966x

After booting the custom kernel (tested with 6.12.48-v8+), lspci -vv should show the microchip_lan966x_pci driver in use:

01:00.0 Ethernet controller: Microchip Technology / SMSC Device 9660
        Subsystem: Microchip Technology / SMSC Device 9660
        Device tree node: /sys/firmware/devicetree/base/scb/pcie@7d500000/pci@0,0/switch@0,0
        ...
        Kernel driver in use: microchip_lan966x_pci

The four switch ports show up as eth1 through eth4, using the lan966x-switch driver.

With an IP address assigned to eth1 and a link partner connected, iperf measured 619 Mbits/sec:

$ iperf -c 10.0.1.3
[ ID] Interval       Transfer     Bandwidth
[  1] 0.0000-10.0168 sec   740 MBytes   619 Mbits/sec

Test setup:

LAN9662-NIC connected to a Compute Module 4 IO Board