New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KSZ8863 Support #13
Comments
MRP support should be turned off in kernel configuration as it was implemented in KSZ8863 driver. |
Thank you, it worked. |
The sw->mtu code is a mistake. It should only be used with a certain switch. You can remove that code for now. The smi_r and smi_w functions are also wrong. They should follow the ones implemented in spi-ksz8863.c to call smi_r8 and smi_w8. Note the KSZ8863 SMI code was never tested as the format used is not standard MDIO format. The Cadence MDIO controller supposedly can accommodate that, but it was not verified successfully. |
Hi, |
We are considering to use KSZ8563 with iMX8. iMX8 uses fec driver for Ethernet (similar to imx6). We need PTP support. Previously we used DSA architecture but that looks a bit difficult with this driver/chip? |
Is porting the fec driver is the only option to work with this chip? |
We used lan9354 based on the standard Linux lan9303 driver, which is a DSA driver (and using MDIO). Currently we investigate if we can use KSZ8563 with iMX8 without using DSA and possibly with a generic PHY driver, since we might not need anything fancy. We will probably only use the PTP delay annotation feature (Correction-field in PTP header) and use hw-timestamping in fec driver (to simplify software task). We have picked I2C because manual mention that MDIO does only provide access to PHY registers and not any switch registers (MDIO worked fine for LAN9354 though and seen same statement for that chip). |
Dear Mads-bn, I am little confused with your statements and I'm not that much expert related to ethernet switch. My current scenario is, I'm trying to make ethernet switch working on my board. Initially we connected on SMI interface, later we changed it to SPI because as per above messages the drivers are not tested on SMI. I have added the driver code available in https://github.com/Microchip-Ethernet/EVB-KSZ9477/tree/master/KSZ/linux-drivers/ksz8863/linux-4.9/drivers/net/ethernet/micrel section to my linux kernel 4.9 path and defined dts files changes to spi mode. Device is detected on spi successfully. below is my config file changes: CONFIG_NET_VENDOR_MICROCHIP=y Without doing any fec changes, my kernel log looks like as below Now what should I do to make it work? (You want me to change the fec driver correct?, if yes want the changes required?) Can we take any conference call to discuss more on this. Regards, |
I don't have any experience yet with KSZ (or with SPI/I2C - only lan9354 with MDIO and DSA). |
Hi, Can you provide the hardware connection between AT91 and KSZ8863(schematics). Have you tested with iMX6? Regards, |
From what I have read of your question we are trying to do the same thing, except with a KSZ9893 device. We have hardware, but so far our experience is very difficult. We observed the same as you without modifications to Using the linux-4.9.143 tree (same as you), we ported it into a linux-4.9.88 based kernel provided by our SOC vendor. We have tried modifications (both minimal and complete) to the Based on what I have read, I wonder if it is prudent to require these extensive modifications to the |
How did you do over the last year or so, @bvacaliuc? I am interested in using the KSZ8863 ethernet switch with Yocto Linux on the iMX family (possibly iMX 6, 7, or 8). From my reading of this thread, it sounds as if that's not going to be easy, but I'm just doing a preliminary look and certainly many of the details here are going over my head. |
There is unofficial support for KSZ8863 DSA driver if your kernel is new enough. New DSA drivers are located in drivers/net/dsa/microchip. They are also located in linux-drivers/dsa/linux-4.19 for a version closer to the version in the current Linux kernel. For KSZ8863 with 2 ports the performance drop should be acceptable if the host is not doing a lot of TCP transmit. |
Note the KSZ8563 chip is not in the KSZ8863 family. It is in the KSZ9893 family, which is similar to KSZ9897 and so can use the same KSZ9897 driver with minor changes. |
Hi Folks, We did well. We have successful working designs using the KSZ9893 and KSZ8794 on two different boards. The kernel we use is currently at this revision: varigit/linux-imx@imx_4.9.88_2.0.0_ga-var01...uvdl:feature/develop There is the need to run a script at boot to set the RGMII clock delay: We have an unresolved issue that causes the SPI bus to not function unless a gpio-keys is reserved for the kernel. See uvdl/linux-imx#3 we have not gotten the the bottom of this, but since we have a workaround, we have moved on. Best Regards, -bogdan |
Hi,
I am working on Yocto Linux for iMX6 processor. I am looking for Linux drivers for KSZ8863 switch to work with Linux kernel version 4.9. I tried the files available in https://github.com/Microchip-Ethernet/EVB-KSZ9477/tree/master/KSZ/linux-drivers/ksz8863/linux-4.9/drivers/net/ethernet/micrel path. I am facing build errors for this repo. Attached the error log files.
smiError.txt
spiError.txt
And I tried to build the kernel available for Atmel board at https://github.com/Microchip-Ethernet/EVB-KSZ9477/tree/master/KSZ/kernels/linux-4.9.143 for KSZ8863, I am getting errors listed in atmelErrorLog.txt
atmelErrorLog.txt
Kindly help in this.
Regards,
Naveen.
The text was updated successfully, but these errors were encountered: