This is a big one that I am not sure where to start.
-
From hardware aspect, you can check if your lane/pin in use are same as the design of devkit. The design guide document will tell.
The “same” here means the usb2 and usb3 in use is still the same. If you add some pins we are not using on devkit, then device tree should be modified. Also, if you remove something, you need to modify the device tree too.
And if your hardware design has some gpio to control the vbus, then you need to modify the device tree too. What to modify is listed in the adaptation guide. -
For the device tree, you can check the kernel log by “dmesg” and grep the keyword “dts” after you boot up. And you can know the dts file you need to check inside the open source tarball. And the rest of work is tracing the code, follow the guidance from adaptation guide, build the dtb, flash the dtb to the board.