Enabling PCIE C9 Port in Jetson Orin NX L4T 35.2.1
Mar 04, 2024
We are working on Jetson Orin NX based custom board.
We want to enable following PCIE Port. (C7 x1 / C9 x1)
[nvidia/soc/t23x/kernel-dts/tegra234-soc/tegra234-soc-pcie.dtsi]
/* C7 X8*/
pcie_c7_rp: pcie@141e0000 {
compatible = "nvidia,tegra234-pcie", "snps,dw-pcie";
/* C9 X4 */
pcie_c9_rp: pcie@140c0000 {
compatible = "nvidia,tegra234-pcie", "snps,dw-pcie";
So, we added dtb definition as below.
pcie@141e0000 {/* C7 */
status = "okay";
phys = <&p2u_gbe_0>;
phy-names = "p2u-0";
};
pcie@140c0000 {/* C9 */
status = "okay";
phys = <&p2u_gbe_1>;
phy-names = "p2u-0";
};
After applied changes to the Board, it worked fine for C7.
[ 10.421053] tegra194-pcie 141e0000.pcie: Using GICv2m MSI allocator
[ 10.421841] tegra194-pcie 141e0000.pcie: host bridge /pcie@141e0000 ranges:
[ 10.421849] tegra194-pcie 141e0000.pcie: IO 0x003e100000..0x003e1fffff -> 0x003e100000
[ 10.421853] tegra194-pcie 141e0000.pcie: MEM 0x3228000000..0x322fffffff -> 0x0040000000
[ 10.421856] tegra194-pcie 141e0000.pcie: MEM 0x2e40000000..0x3227ffffff -> 0x2e40000000
[ 10.527438] tegra194-pcie 141e0000.pcie: Link up
[ 10.537358] tegra194-pcie 141e0000.pcie: PCI host bridge to bus 0007:00
On the other hand, the following error occurred for C9.
[ 11.028792] tegra194-pcie 140c0000.pcie: Using GICv2m MSI allocator
[ 11.036104] tegra194-pcie 140c0000.pcie: host bridge /pcie@140c0000 ranges:
[ 11.043287] tegra194-pcie 140c0000.pcie: IO 0x002c100000..0x002c1fffff -> 0x002c100000
[ 11.051993] tegra194-pcie 140c0000.pcie: MEM 0x3828000000..0x382fffffff -> 0x0040000000
[ 11.060682] tegra194-pcie 140c0000.pcie: MEM 0x3540000000..0x3827ffffff -> 0x3540000000
[ 12.176922] tegra194-pcie 140c0000.pcie: Phy link never came up
[ 12.183083] tegra194-pcie 140c0000.pcie: PCI host bridge to bus 0009:00
Could you tell me how we should define C9 to be valid?