RGMII not working on jetson agx orin

Hi, I want to use realtek8211FS using rgmii.
However, even if i follow the guide, I cannot use ethernet.

Pinmux and gpio dtsi
Orin-jetson_agx_orin-pinmux.txt (65.7 KB)
Orin-jetson_agx_orin-gpio-default.txt (4.8 KB)

ethernet@6810000 disable

ethernet@2130000 enable and configuration

dmesg
dmesg.txt (68.6 KB)

/sys/kernel/debug/gpio

ifconfig
image

ifconfig eth0 up

Does “cat /proc/interrupts | grep eth” give you any interrupt increase when you up/down the interfaces?

Yes, nothing

Could you share the result of your cat /proc/interrupts first? No grep, just full result.

here is my /proc/interrupts log.
interrupts.txt (20.4 KB)

Please also dump all these registers which is for pinmux

busybox devmem 0x02434070:
busybox devmem 0x02434078:
busybox devmem 0x02445058:
busybox devmem 0x02445018:
busybox devmem 0x02445010:
busybox devmem 0x02445008:
busybox devmem 0x02445000:
busybox devmem 0x02445068:
busybox devmem 0x02445040:
busybox devmem 0x02445030:
busybox devmem 0x02445028:
busybox devmem 0x02445020:
busybox devmem 0x02445070:
busybox devmem 0x02445060:
busybox devmem 0x02445038:
busybox devmem 0x02445048:
busybox devmem 0x02445050

Here is pinmux dump log.

busybox devmem 0x02434070
0x00000040

busybox devmem 0x02434078
0x00000000

busybox devmem 0x02445058
0x00002408

busybox devmem 0x02445018
0x00002408

busybox devmem 0x02445010
0x00002408

busybox devmem 0x02445008
0x00002408

busybox devmem 0x02445000
0x00002408

busybox devmem 0x02445068
0x00002408

busybox devmem 0x02445040
0x00002458

busybox devmem 0x02445030
0x00002458

busybox devmem 0x02445028
0x00002458

busybox devmem 0x02445020
0x00002458

busybox devmem 0x02445070
0x00002458

busybox devmem 0x02445060
0x00002458

busybox devmem 0x02445038
0x00002440

busybox devmem 0x02445048
0x00002408

busybox devmem 0x02445050
0x00002000

please remove TEGRA234_MAIN_GPIO(G, 5) from gpio-output-low in your gpio dtsi.

Are you talking about gpio-default dtsi?

Correct.

here is my gpio-output-low
image

but, The busybox devmem value is the same as before.

I didn’t share the GPIO register, only the pinctrl reg.

GPIO reg:

0x022140a0 for GPIO G,5
0x02214080 for GPIO G,4

Is this the reason why gpio-output-low appears?

image

I don’t know what does your question mean. PInmux file won’t look into to your kernel dts file and create different results…

The reason gpio-output-low is there is because your configuration in pinmux spreadsheet.

Ah, I thought the devmem value was changed by pinmux settings.
What should I do now?

Pinmux register will be affected by pinmux setting… And GPIO register will be affected by pinmux and also driver during runtime…

I shared you the GPIO register address… please read…

I’m sorry.
Here is my busybox devmem.

image

The value is correct.
Please ask your hardware engineer to help check the PHY comes out of reset mode and is in a ready state when the PHY reset GPIO is toggled.

Is it true that the jetson agx orin devkit board is compatible with RTL8211FS?

No, I don’t know whether it is compatible with it or not. This was not validated.