-
Notifications
You must be signed in to change notification settings - Fork 1
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
ethernet interface regression #3
Comments
The first observation is the introduction of HDMI-supply, and how that re-orders the rest of the handles:
|
The above seems to have made it work, except that there are still alot of differences in the resulting .dts |
the above still seems to work |
So it would seem that the offending line was:
I'll bet what is happening is that at startup while the ethernet is communicating the above supply is cycled causing the KSZ9893R switch to reset, and spoils its communication. |
But more testing shows that all this .dtb file manipulation was a red herring in that there are times in which even the "apparently working" file fails. Failure is defined as the KSZ9897 driver attempts to identify the device ID register, gets back 0x0 and bails out of loading. Since in the Iris 2, the RGMII ingress delay (see: uvdl/meta-ornl#3 (comment)) is required on the switch side, this effectively prevents ethernet operations from the CPU to the switch. |
I have determined that using this kernel: 5ff1e5c results in a kernel that loads the KSZ9897 driver ok but when accessing the SPI bus (to set the needed RGMII ingress delay) it hangs the process. |
However, if the .dts is extracted from the .dtb, and this text is added:
Then, writing the KSZ9893 register via the SPI bus does not hang, and the ethernet interface works as desired. |
I confirm that an overnight test of 365 power on cycles produced 365 successful programs of the KSZ9893 switch to set the RGMII ingress delay. The question now remains as to why this gpio-keys setting on this particular GPIO line (gpio5[10]) has this effect on the spi-ksz9897 driver. |
I confirm that the yocto image built from uvdl/yocto-ornl@5d1f2b8 has the same behavior. Both bad and good (following the applied workaround). |
on 07/30/2019, Bogdan Vacaliuc wrote:
on 01/08/2019, Aviad Hadad/Variscite, LTD. wrote:
|
confirm this remains a problem without the gpio-keys entry |
As of f58523c, the KSZ9893R switch was recognized and working. As of 395540b, it is not (NOTE: this is not the first change, but rather a change). It appears the SPI bus no longer operates. The differences between a working and not-working configuration is confined to the .dtb file as shown:
imx6q-iris2-R1-good-vs-bad.txt
The text was updated successfully, but these errors were encountered: