Set orin nano PCIE2 as x1 (C7) RP

Hi,

We are working on orin nano r36.4.3 with our carrier board, and would like to configure PCIE2 as x1 (C7) for connecting microchip lan7431.

Could you help confirm if these changes are correct and sufficient?
1.change ODMDATA from

ODMDATA=“gbe-uphy-config-8,hsstp-lane-map-3,hsio-uphy-config-0”;

to

ODMDATA=“gbe-uphy-config-9,hsstp-lane-map-3,hsio-uphy-config-0”;

2.change dts

diff --git a/sources/hardware/nvidia/t23x/nv-public/tegra234-p3768-0000.dtsi b/sources/hardware/nvidia/t23x/nv-public/tegra234-p3768-0000.dtsi
index 6a7db1fbd..f35885383 100644
--- a/sources/hardware/nvidia/t23x/nv-public/tegra234-p3768-0000.dtsi
+++ b/sources/hardware/nvidia/t23x/nv-public/tegra234-p3768-0000.dtsi
@@ -178,11 +178,12 @@
                /* C7 - M.2 Key-M */
                pcie@141e0000 {
                        status = "okay";
+                       num-lanes = <0x1>;

                        vddio-pex-ctl-supply = <&vdd_1v8_ao>;

-                       phys = <&p2u_gbe_0>, <&p2u_gbe_1>;
-                       phy-names = "p2u-0", "p2u-1";
+                       phys = <&p2u_gbe_0>;
+                       phy-names = "p2u-0";

                };
        };

full dts
dts.txt (322.2 KB)

Is there anything I missed?

Thx
Yen

Actually “hardware/nvidia/t23x/nv-public/overlay/tegra234-p3767-sku-handling.dtsi” already handled this part so if you update the ODMDATA, then device tree will have C7 and C9 enabled.

If you don’t need C9, please disable it in above file.