We trying to get our board which is using a Microchip Lan9662 chip connected to
the Jetson ORIN EQOS MAC. The connection between them is a rgmii phy-less design. Using a
6.18.3 Linux kernel we are able to use this design with a few modifications to the nvethernet driver
to accommodate the lack of a phy.
The probblem is when I make the same changes to the R36.5 nvethernet driver the EQOS MAC
never appears to come out of reset. The function call hw_poll_for_swr which polls BIT(0) in
the EQOS_DMA_BMR register and it never goes to 0. It does correctly go to 0 in the 6.18.3 implementation.
I have tried tracing the differences between what is being done in the R36.5 and the 6.18.3 implementations
and they appear to be doing the same initialization steps and the relevant section of the DTB’s appear to
be the same. So my question is what conditions should I be checking for that would keep the EQOS MAC from
coming out of its reset state?
Well, it seemed appropriate since we use Orin AGX and IGX and the nvethernet is tied to the orin module, but I am happy to revisit it some place else. Although, the contacts I have shared this with at Nvidia didn’t seem to question this.
We are talking about the 2310000. Sorry, we were attempting to show all the changes we had made including disabling the 6800000. Yes I believe we configured the pinmux as the developer guide mentioned. Below is an extraction from the dtsi file and I can provide the output of busybox of the PADCTL_A21 registers relating to these pins from the running system, if that helps
We have a custom board using the Jetson Orin AGX and a PHY-less Microchip lan9662 in rgmii mode. The board is flashed with a Jetpack 6.2.2 R36.5 image. Everything else works in this configuration but the EQOS <= rgmii => Lan9662 interface.
Another group here took the Linux 6.13.8 kernel (which contains a lan9662 driver) and took an upstream Nvidia OOT source tree and created a working system for the EQOS <= rgmii => Lan9662. This required a few mods to the Device Tree (which we have posted) and a few mods to the lan9662 driver and the nvethernet driver to allow for operation without a phy.
So this was a 6.13.8 kernel, upstream oot drivers. A new extlinux.conf entry was added to boot this new kernel, modified dtb and /lib/modules/6.13.8. Everything else was still from the Jetpack 6.2.2 R36.5 flashed system.
The other group then back ported the lan9662 driver, made the same mods to the r36.5 nvethernet driver and was unable to get past the described “EQOS unable to get out of reset” with the native R36.5 kernel.
Again, same hardware, same DTB, different kernel, essentially same drivers. One works and one doesn’t.
I was asked to continue the effort and I examined and tried many things all to no avail. If I could get a description of what conditions and/or what signals can keep the EQOS from getting out of reset maybe I will have some luck in getting out of this rut.
If this is still not clear, either what we have tried or were we are maybe a quick phone call can help with the understanding.
I’ve checked and the same group that tried to back port to R36.5 did get the Jetpack 7.2 release to work recently as well with the phy-less mods. But we need to be working with the 5.15 as per our customers requirements.
I can send dmesg logs but honestly there are no errors or warning until the nvethernet reports the timing out on the reset perform through the DMA register. The log files will be heavy with messages because I added tons of tracing messages to verify what the flow through the drivers was on both systems, but if you want them I can add them.
There are no mods that were done that “fixed” the reset problem. It just doesn’t occur with the 6.13.8 kernel. There are mods to allow the nvethernet driver to not error out because of the lack of a PHY that were happening much later in the nvethernet driver. That said I will provide a diff of what was done to the nvethernet driver.
The nvethernet does this reset as one of it’s early early steps. It pretty much starts a number of clocks, then tries the reset and timesout.