Hi expert.
We haved found PDK PCIe drv haved provide example code run on R5F,The example code can work normally on PCIe0 and PCIe1 controller。However,when we try to using the example code on PCIe 2 controller,it can't work.Because the address of the PCIe 2 controller "cfg" register is at 0x4400000000。normally ,R5F can't access address longer than 32bit. We found R5F can use RAT( Region-based Address Translation) to access address 32bit - 48bit, but we only can find RAT config code on c66 core.
Our questios is :How do we use RTA on R5F, do you have example code for configuring R5F RAT, if you have, please provide us。
another question:Have you used pcie2 control in the PDK code? Can we use pcie2 directly with the PDK PCIe drv example code?
pcie2_rc: pcie@2920000 {
compatible = "ti,j721e-pcie-host";
reg = <0x00 0x02920000 0x00 0x1000>,
<0x00 0x02927000 0x00 0x400>,
<0x00 0x0e000000 0x00 0x00800000>,
<0x44 0x00000000 0x00 0x00001000>;
reg-names = "intd_cfg", "user_cfg", "reg", "cfg";
ti,syscon-pcie-ctrl = <&pcie2_ctrl>;
max-link-speed = <3>;
num-lanes = <2>;
..............
thank