Orin NX ODMDATA Config

Hi there. We are bringing up an Orin NX on a custom carrier board. I’ve successfully flashed the Ubuntu 24.04 with Jetson Linux R39.2. Our carrier uses the following pins for ethernet:

We also have onboard magnetics.
We also have 3 PCIe slots, one with 4 pairs (PCIe 0), one with 2 pairs (PCIe 2) and 1 with 1 pair (PCIe 1).

We used these PCIe lanes to be as close as possible to the following ODMDATA setup from the dev kit: ODMDATA=“gbe-uphy-config-8,hsstp-lane-map-3,hsio-uphy-config-0”;

My question is, have I chosen the correct GBE, HSIO and UPHY lane mappings based on my setup.

If the PCIe you are using is totally same as NV devkit design, then your ODMDATA could just follow default value.

We are having issues with our ethernet mdio and NVMe (for the PCIe2 and PCIe1). We have a camera card which isnt being detected in PCIe2 (but works on the nano dev kit fine), and the ethernet connection isnt establishing. We have checked the Realtek PHY is getting picked up by the OrinNX, but when we check the ethernet isnt working. We’ve scoped the data lines and there is data coming through from the network to the OrinNX. Will send bootlogs now:

logs.txt (108.4 KB)

I dont see any warnings or failures for the ethernet

Did you modify anything in your device tree? It looks like PCIe C8 just got disabled by you and that is for ethernet to use…

Could you point me to where it may be in the tree and what file deals with it by default? Or the name of the port that configures it? I’m not sure what to look for

I’ve only enabled the USB pad and ports in the common.dtsi file for the NX, and then set the CVB EEPROM size 0x0.

Hello @matthew196

You can check the hardware/nvidia/t23x/nv-public/tegra234-p3768-0000+p3767.dtsi file in the source code:

		/* C8 - Ethernet */
		pcie@140a0000 {
			status = "okay";

			num-lanes = <2>;

			phys = <&p2u_gbe_2>, <&p2u_gbe_3>;
			phy-names = "p2u-0", "p2u-1";

			vddio-pex-ctl-supply = <&vdd_1v8_ao>;
			vpcie3v3-supply = <&vdd_3v3_pcie>;
		};

Make sure this controller is enabled in your final device tree and that its configuration matches your carrier board design.

You can also check its status in the running device tree:

cat /proc/device-tree/bus@0/pcie@140a0000/status

Also, can you confirm whether your Realtek Ethernet PHY is connected via RGMII/MDIO or if you are using a PCIe-based Ethernet controller? This will help determine which device tree configuration needs to be checked.

Please let us know if this helps.
Best regards!
Eduardo Salazar
Embedded SW Engineer at RidgeRun

Contact us: support@ridgerun.com
Developers wiki: https://developer.ridgerun.com/
Website: www.ridgerun.com

Hi @EduardoSalazar96, thanks for your help!

The status for pcie@140a0000 is set to okay, and the fields in the dtsi are unchanged when compared to your configuration.
Regarding the Realtek PHY, I am not sure I’m understanding you correctly. The design guide shows the Realtek GbE PHY internally connected via PCIe lanes.

No need to take care of Realtek PHY… that part is inside of the SOM which you could not change.

Please check your /proc/device-tree setting on your runtime device. I don’t see any log from “140a0000” from your log txt… thus, I really suspect what is running on your board does not match to your expectation.

Hi @WayneWWW

shrikeNX@shrikedev:~$ cat /proc/device-tree/bus@0/pcie@140a0000/status
okay

shrikeNX@shrikedevls /proc/device-tree/bus@0/pcie@140a0000/0/
‘#address-cells’ num-lanes
bus-range num-viewport
clock-names nvidia,aspm-cmrt-us
clocks nvidia,aspm-l0s-entrance-latency-us
compatible nvidia,aspm-pwr-on-t-us
device_type nvidia,bpmp
dma-coherent phy-names
interconnect-names phys
interconnects power-domains
‘#interrupt-cells’ ranges
interrupt-map reg
interrupt-map-mask reg-names
interrupt-names reset-names
interrupts resets
iommu-map ‘#size-cells’
iommu-map-mask status
iommus vddio-pex-ctl-supply
linux,pci-domain vpcie3v3-supply
name

I noticed the bootlogs from my most recent power up differ from what I sent yesterday. I will reflash and resend the logs.

Here are the updated boot logs:
I still dont see 140a0000 in the logs. But status is still okay.

logs.txt (100.7 KB)

sudo dtc -I fs -O dts /proc/device-tree 2>/dev/null | grep -n -B50 -A50 “pcie@140a0000”

…

4589: pcie@140a0000 {
4590- power-domains = <0x03 0x0d>;
4591- iommus = <0xf1 0x09>;
4592- vpcie3v3-supply = <0x110>;
4593- #address-cells = <0x03>;
4594- dma-coherent;
4595- interconnect-names = “dma-mem\0write”;
4596- phy-names = “p2u-0\0p2u-1”;
4597- nvidia,bpmp = <0x03 0x08>;
4598- bus-range = <0x00 0xff>;
4599- clock-names = “core”;
4600- interconnects = <0x57 0x32 0x58 0x57 0x3b 0x58>;
4601- reg-names = “appl\0config\0atu_dma\0dbi\0ecam”;
4602- nvidia,aspm-l0s-entrance-latency-us = <0x03>;
4603- resets = <0x03 0x1a 0x03 0x19>;
4604- interrupts = <0x00 0x164 0x04 0x00 0x165 0x04>;
4605- clocks = <0x03 0xac>;
4606- interrupt-map = <0x00 0x00 0x00 0x00 0x01 0x00 0x164 0x04>;
4607- #size-cells = <0x02>;
4608- device_type = “pci”;
4609- interrupt-map-mask = <0x00 0x00 0x00 0x00>;
4610- num-lanes = <0x02>;
4611- compatible = “nvidia,tegra234-pcie”;
4612- vddio-pex-ctl-supply = <0xf6>;
4613- ranges = <0x43000000 0x32 0x40000000 0x32 0x40000000 0x02 0xe8000000 0x2000000 0x00 0x40000000 0x35 0x28000000 0x00 0x8000000 0x1000000 0x00 0x2a100000 0x00 0x2a100000 0x00 0x100000>;
4614- iommu-map-mask = <0x00>;
4615- #interrupt-cells = <0x01>;
4616- status = “okay”;
4617- interrupt-names = “intr\0msi”;
4618- phys = <0x10e 0x10f>;
4619- num-viewport = <0x08>;
4620- reg = <0x00 0x140a0000 0x00 0x20000 0x00 0x2a000000 0x00 0x40000 0x00 0x2a040000 0x00 0x40000 0x00 0x2a080000 0x00 0x40000 0x35 0x30000000 0x00 0x10000000>;
4621- linux,pci-domain = <0x08>;
4622- iommu-map = <0x00 0xf1 0x09 0x1000>;
4623- reset-names = “apb\0core”;
4624- nvidia,aspm-pwr-on-t-us = <0x14>;
4625- nvidia,aspm-cmrt-us = <0x3c>;
4626- };

…

Do you have NV devkit ? Is this SOM able to give you that PCIe C8 when it is testing on NV devkit?

When I connected it to the Nano Dev Kit, i was able to use the ethernet connector on the dev kit (so i assume that I was able to access c8), but I flashed it using sdkmanager, so didnt see the device tree config at that time.

Are you sure you didn’t modify anything under “pcie@140a0000” when doing device tree customization?

If you are sure, please check vpcie3v3-supply and nvidia,pex-wake node under your 140a0000.

These two have GPIO dependencies. If the GPIO is in use by other items on your carrier board, then it would make driver probe failed.

I may have by accident. I’ll revert back to the default sources and try again. Will keep you updated

Its working fine now with the default device tree.
It only stopped when I changed the device tree to enable USB (and possibly edited the pcie lanes). Regarding the ODM setup, I have the following USB setup and would like clarification my device tree is correct (names as per the SODIMM signal name):
USB2_0 → USB recovery

USB2_1 and USB3_1 → USB connector

USB2_2 and USB3_2 → USB connector

Device tree:
padctl@3520000 {
status = “okay”;

	pads {
		usb2 {
			lanes {
				usb2-0 {
					nvidia,function = "xusb";
					status = "okay";
				};

				usb2-1 {
					nvidia,function = "xusb";
					status = "okay";
				};

				usb2-2 {
					nvidia,function = "xusb";
					status = "okay";
				};
			};
		};

		usb3 {
			lanes {
				usb3-0 {
					nvidia,function = "xusb";
					status = "okay";
				};

				usb3-1 {
					nvidia,function = "xusb";
					status = "okay";
				};
			};
		};
	};

	ports {
		/\* recovery port \*/
		usb2-0 {
			mode = "otg";
			vbus-supply = <&vdd_5v0_sys>;
			status = "okay";
			usb-role-switch;
		};

		/\* hub \*/
		usb2-1 {
			mode = "host";
			vbus-supply = <&vdd_1v1_hub>;
			status = "okay";
		};

		/\* M.2 Key-E \*/
		usb2-2 {
			mode = "host";
			vbus-supply = <&vdd_5v0_sys>;
			status = "okay";
		};

		/\* hub \*/
		usb3-0 {
			nvidia,usb2-companion = <1>;
			status = "disable";
		};

		/\* J5 \*/
		usb3-1 {
			nvidia,usb2-companion = <1>;
			status = "okay";
		};
	};
};

usb@3550000 {
	status = "okay";

	phys = <&{/bus@0/padctl@3520000/pads/usb2/lanes/usb2-0}>,
	       <&{/bus@0/padctl@3520000/pads/usb3/lanes/usb3-1}>;
	phy-names = "usb2-0", "usb3-0";
};

usb@3610000 {
	status = "okay";

	phys = <&{/bus@0/padctl@3520000/pads/usb2/lanes/usb2-0}>,
	       <&{/bus@0/padctl@3520000/pads/usb2/lanes/usb2-1}>,
	       <&{/bus@0/padctl@3520000/pads/usb2/lanes/usb2-2}>,
	       <&{/bus@0/padctl@3520000/pads/usb3/lanes/usb3-0}>,
	       <&{/bus@0/padctl@3520000/pads/usb3/lanes/usb3-1}>;
	phy-names = "usb2-0", "usb2-1", "usb2-2", "usb3-0",
		    "usb3-1";
};

Hi,

Want to clarify this first.

Please do not increase more unrelated problems to the original topics.

If the original topic only has PCIe, then just leave USB issue to new thread.

I don’t think above USB has anything to do with your PCIe C8. If you modify something wrong accidentally, then you need to figure it out by yourself.