Jetson Thor: How to configure UPHY?

How to configure UPHY0 to use configuration #6 and UPHY1 to use configuration #8? In the NVIDIA Jetson Linux Developer Guide, it seems that only the following operation is performed:

-UPHY_CONFIG="tegra264-mb1-bct-uphy-lanes-p4071-0000.dts"; +UPHY_CONFIG=""

Use dtc tool to convert your bpmp dtb back to dts. Check the “uphy” setting inside of it.

I converted tegra264-bpmp-3834-0008-4071-xxxx.dtb to dts, which contains the following content:

uphy {
	status = "okay";
	uphy0-config = <0x07>;
	uphy1-config = <0x07>;
	mgbe0-speed = <0x02>;
	mgbe1-speed = <0x02>;
	mgbe2-speed = <0x02>;
	mgbe3-speed = <0x02>;
};

However, in the NVIDIA Jetson Linux Developer Guide, UPHY0 only has configurations 6 and 7, and UPHY1 only has 0 and 8. Why is it that uphy0-config = <0x07>; and uphy1-config = <0x07>; here? Additionally, I’m not quite sure about the meaning of mgbe0-speed = <0x02>;.

Just change to what you need there. No need to care about the default alue.

And mgbe is for the ethernet setting.

Okay, thank you very much for your help.

I want to follow up a bit on this as I find the documentation a bit confusing and in contradiction what this solutions talks about.

Jetson Thor Adaptation and Bring-Up — NVIDIA Jetson Linux Developer Guide the chapter “Configure the UPHY Lane“ gives you the instruction to remove a dts file when you are planning to use UPHY1 config #6.

For previous Orin board I did have to tweak ODMDATA before flashing, now looking in to configurations for Thor boards in JP7 I can find this:

p3834-0008-p3971-0000-nvme.conf:ODMDATA=“uphy0-config-6,pcie@3_status=okay”;
p3834-0005-p3971-0000.conf:ODMDATA=“uphy0-config-6,pcie@3_status=okay”;

and also a snippet in the script `bootloader/tegraflash_impl_t264.py` handling this and changing a dtb file. This makes me feel that I also should set ODMDATA for t264 but can not find any documentation around it. Can you please fill in this gap?

I can neither find any information about how to configure UPHY1, only UPHY0 is mentioned in the Adaption and Bring-Up guide. Also please add this information how I can configure UPHY1.