In the Adaptation guide for TX2,
PCIe#0_2 comes under PEX2, and as I have come to understand , is not pcie port 2( Do validate this opinion if correct).
What would represent PCIe#0_2 at config1 ie ODMDATA=0x90000 in the device tree? Because nothing is getting detected on the same.
The PCIe on the custom board is connected via a single lane ie (rx,tx) to PEX2.
Now depending on config n it would either be PCIe#0_2(for config1-2) and PCIe#1_0(for config 3-6).
At the moment I’m on config 1. So I want to know if I have to make any device tree changes wrt to PCIe#0_2(and where if required).
In terms of previous experience on device tree configuration,
I have made device tree changes to accomodate IMX cameras via ov5693 drivers and external emmc via sdmmc3, on custom boards for nano, TX2 and Xavier NX.
Sorry that your reply indicates you still do not fully understand this table means…
PCIe#0_X means pcie controller 1. And the follow up number means it is which lane.
And PCIe#1_X means pcie controller 2… and so on.
Config 1 and 2 mean below mapping…
PCIe controller 1 owns 4 lane. Start from PEX0 to PEX_RFU.
PCIe controller 2 owns nothing.
PCIe controller 3 owns 1 lane on lane 0/PEX1 or could be own by usb3.
You cannot use just 1 lane in such configuration. Thus, you need to pick up one config from config #3,4,5,6.
It means it is the 3rd lane of PCIe controller 1 and this controller is a 4 lane slot. What you are doing is you try to use the 3rd lane only in a 4 lane design. This is not allowed…
How do you form the bits for ODMDATA (let’s say for config 4)
Why ask me this question when you already had a document? You can just search ODMDATA in the document and find the answer. I also don’t “memorize” these as this info is not worth to memorizing… I also check the same document as what you just shared…
If you still don’t know how to configure that, then I can tell. But at least try to do it by yourself first. Just start from using config #1 and then try to change it to other configuration… that would be easier…
Sorry If it came off as I have not attempted. I checked the adaptation guide and saw the config values for odmdata 1-3.
I think the forming part is based off on ODMDATA bis for UPHY lane assignment table 2. but had trouble understanding how to form the bits in the first place.
I have also tried reforming existing odmdata bits for given examples ie config 1,2,3 had no luck for the same.
In the meantime I’ll try what you have suggested and get back to you.
Thanks.