Microchip-Ethernet / EVB-KSZ9477

Repository for using Microchip EVB-KSZ9477 board. Product Supported: KSZ9477, KSZ9567, KSZ9897, KSZ9896, KSZ8567, KSZ8565, KSZ9893, KSZ9563, KSZ8563, LAN9646, Phys(KSZ9031/9131, LAN8770
76 stars 78 forks source link

KSZ9897S with SGMII #42

Open iuncuim opened 4 years ago

iuncuim commented 4 years ago

Hello,

I plan to use the KSZ9897S switch to connect to the CPU through the SGMII port. The host processor is qualcomm arm with modificated linux kernel 3.18. SGMII provided by qcom_emac.
I don't need advanced switch functions right now, only vlan and tagging.

Is it possible? What drivers should I use?

triha2work commented 4 years ago

I do not have direct experience of using SGMII port as a host port but there are customers doing that before. The current driver supports using SGMII port in 3 modes: copper module, fiber module, and direct connect. The driver can detect whether copper or fiber module is being used, if not it has to be set manually. For direct connect you have to tell the driver by specifying driver parameter "sgmii=0." Inside the driver the variable sgmii_mode specifies how to setup the SGMII port. 0 means direct, 1 means fiber, and 2 means copper. You may want to double-check the driver can recognize the SGMII port in KSZ9897S.