arm64: dts: ti: k3-j7200-common-proc-board: Configure the SERDES lane function
authorKishon Vijay Abraham I <kishon@ti.com>
Wed, 30 Sep 2020 12:20:31 +0000 (15:20 +0300)
committerNishanth Menon <nm@ti.com>
Wed, 30 Sep 2020 12:34:03 +0000 (07:34 -0500)
First two lanes of SERDES is connected to PCIe, third lane is
connected to QSGMII and the last lane is connected to USB. However,
Cadence torrent SERDES doesn't support more than 2 protocols
at the same time. Configure it only for PCIe and QSGMII.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
Reviewed-by: Vignesh Raghavendra <vigneshr@ti.com>
Link: https://lore.kernel.org/r/20200930122032.23481-6-rogerq@ti.com
arch/arm64/boot/dts/ti/k3-j7200-common-proc-board.dts

index 1541311cecb4cbe7712e7b9dfa1e121f858cea91..ddbc2163e698128a9af69568039f766159c74074 100644 (file)
@@ -7,6 +7,7 @@
 
 #include "k3-j7200-som-p0.dtsi"
 #include <dt-bindings/net/ti-dp83867.h>
+#include <dt-bindings/mux/ti-serdes.h>
 
 / {
        chosen {
        ti,driver-strength-ohm = <50>;
        disable-wp;
 };
+
+&serdes_ln_ctrl {
+       idle-states = <J7200_SERDES0_LANE0_PCIE1_LANE0>, <J7200_SERDES0_LANE1_PCIE1_LANE1>,
+                     <J7200_SERDES0_LANE2_QSGMII_LANE1>, <J7200_SERDES0_LANE3_IP4_UNUSED>;
+};