DRA76 EVM has a 4-lane PCIe connector and DRA76 can support x2 lanes.
Enable both the PCIe lanes here.

Signed-off-by: Kishon Vijay Abraham I <[email protected]>
Signed-off-by: Sekhar Nori <[email protected]>
---
 arch/arm/boot/dts/dra76-evm.dts | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/arch/arm/boot/dts/dra76-evm.dts b/arch/arm/boot/dts/dra76-evm.dts
index b024a65c6e27..244e553f2247 100644
--- a/arch/arm/boot/dts/dra76-evm.dts
+++ b/arch/arm/boot/dts/dra76-evm.dts
@@ -421,3 +421,19 @@
                spi-max-frequency = <96000000>;
        };
 };
+
+&pcie2_phy {
+       status = "okay";
+};
+
+&pcie1_rc {
+       num-lanes = <2>;
+       phys = <&pcie1_phy>, <&pcie2_phy>;
+       phy-names = "pcie-phy0", "pcie-phy1";
+};
+
+&pcie1_ep {
+       num-lanes = <2>;
+       phys = <&pcie1_phy>, <&pcie2_phy>;
+       phy-names = "pcie-phy0", "pcie-phy1";
+};
-- 
2.11.0

Reply via email to