Tool/software: Linux
Hi,
We are developing a custom board based on AM5728 EVM. we want to utilize 2x lanes from PCIe_SS1 in RC mode.
we have modified the device tree as below
Changes in dra7.dtsi =====================>
axi@0 {
compatible = "simple-bus";
#size-cells = <1>;
#address-cells = <1>;
ranges = <0x51000000 0x51000000 0x3000
0x0 0x20000000 0x10000000>;
/**
* To enable PCI endpoint mode, disable the pcie1_rc
* node and enable pcie1_ep mode.
*/
pcie1_rc: pcie_rc@51000000 {
compatible = "ti,dra7-pcie";
reg = <0x51000000 0x2000>, <0x51002000 0x14c>, <0x1000 0x2000>;
reg-names = "rc_dbics", "ti_conf", "config";
interrupts = <0 232 0x4>, <0 233 0x4>;
#address-cells = <3>;
#size-cells = <2>;
device_type = "pci";
ranges = <0x81000000 0 0 0x03000 0 0x00010000
0x82000000 0 0x20013000 0x13000 0 0xffed000>;
#interrupt-cells = <1>;
num-lanes = <2>;
linux,pci-domain = <0>;
ti,hwmods = "pcie1";
phys = <&pcie1_phy>,<&pcie2_phy>;
phy-names = "pcie-phy0","pcie-phy1";
interrupt-map-mask = <0 0 0 7>;
interrupt-map = <0 0 0 1 &pcie1_intc 1>,
<0 0 0 2 &pcie1_intc 2>,
<0 0 0 3 &pcie1_intc 3>,
<0 0 0 4 &pcie1_intc 4>;
/*status = "disabled";*/
pcie1_intc: interrupt-controller {
interrupt-controller;
#address-cells = <0>;
#interrupt-cells = <1>;
};
};
changes in am57xx-evm-common.dts =======>
&pcie1_rc {
status = "okay";
/*gpios = <&gpio2 8 GPIO_ACTIVE_LOW>;*/
};
Please suggest if any additional changes are required. Also, help us on how to test the RC with pci_endpoint_test.c
Best regards,
Marka