Hello,
We have our custom board and the SerDes ports are mapped as below -
PORT 0 - SGMII1 and SGMII2
PORT 1 - SGMII3 and SGMII4
PORT 2 - PCIE0
PORT 3 - PCIE1
PORT 4 - SGMII5, SGMII6, SGMII7, SGMII8
Could you please let me know what Changes I have to make for following nodes?
&serdes_ln_ctrl { idle-states = <SERDES0_LANE0_PCIE0_LANE0>, <SERDES0_LANE1_PCIE0_LANE1>, <SERDES1_LANE0_PCIE1_LANE0>, <SERDES1_LANE1_PCIE1_LANE1>, <SERDES2_LANE0_PCIE2_LANE0>, <SERDES2_LANE1_PCIE2_LANE1>, <SERDES3_LANE0_USB3_0_SWAP>, <SERDES3_LANE1_USB3_0>, <SERDES4_LANE0_EDP_LANE0>, <SERDES4_LANE1_EDP_LANE1>, <SERDES4_LANE2_EDP_LANE2>, <SERDES4_LANE3_EDP_LANE3>; }; &serdes_wiz3 { typec-dir-gpios = <&main_gpio1 3 GPIO_ACTIVE_HIGH>; typec-dir-debounce-ms = <700>; /* TUSB321, tCCB_DEFAULT 133 ms */ };
Also Could you please let me know where I can find the macro (#define) for SGMII. For example in following node I can find "PHY_TYPE_PCIE" in "/include/dt-bindings/phy/phy.h" but I did not find anything related to SGMII.
&serdes2 { serdes2_pcie_link: link@0 { reg = <0>; cdns,num-lanes = <2>; #phy-cells = <0>; cdns,phy-type = <PHY_TYPE_PCIE>; resets = <&serdes_wiz2 1>, <&serdes_wiz2 2>; }; };
Thank you,
Satish