Skip to contentSkip to conversation

powerpc/t2080qds: fixup dtb for 10g-kr

PATCH New Shaohui Xie 2 participants 2 messages Oct 20, 2014 – Nov 25, 2014

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/2 powerpc/t2080qds: fixup dtb for 10g-kr

XFI ports on t2080qds can work with fiber cable and direct attach cable(copper). We use hwconfig to define cable type for XFI, and fixup dtb based on the cable type.

For copper cable, set below env in hwconfig:

fsl_10gkr_copper:<10g_mac_name>

the <10g_mac_name> can be fm1_10g1, fm1_10g2, fm1_10g3, fm1_10g4. fm1_10g1 stands for FM1-MAC9, fm1_10g2 stands for FM1-MAC10, fm1_10g3 stands for FM1-MAC1, fm1_10g4 stands for FM1-MAC2. The four <10g_mac_name>s do not have to be coexist in hwconfig. For XFI ports, if a given 10G port will use the copper cable for 10GBASE-KR, set the <10g_mac_name> of the port in hwconfig, otherwise, fiber cable will be assumed to be used for the port.

For ex. if four XFI ports will both use copper cable, the hwconfig should contain:

fsl_10gkr_copper:fm1_10g1,fm1_10g2,fm1_10g3,fm1_10g4

---
changes for V2:
add XFI description in t208xqds README.

 board/freescale/t208xqds/README         | 23 ++++++++-
 board/freescale/t208xqds/eth_t208xqds.c | 86 +++++++++++++++++++++++++++++----
 2 files changed, 98 insertions(+), 11 deletions(-)
board/freescale/t208xqds/README +21 -2
index e05a10f..e3eb5ba 100755
@@ -85,10 +85,29 @@ System Logic:
  - QIXIS-II FPGA system controll
 Debug Features:
  - Support Legacy, COP/JTAG, Aurora, Event and EVT
-
+XFI:
+ - XFI is supported on T2080QDS through Lane A/B/C/D on Serdes 1 routed to
+ a on-board SFP+ cages, which to house optical module (fiber cable) or
+ direct attach cable(copper), the copper cable is used to emulate
+ 10GBASE-KR scenario.
+ So, for XFI usage, there are two scenarios, one will use fiber cable,
+ another will use copper cable. An hwconfig env "fsl_10gkr_copper" is
+ introduced to indicate a XFI port will use copper cable, and U-boot
+ will fixup the dtb accordingly.
+ It's used as: fsl_10gkr_copper:<10g_mac_name>
+ The <10g_mac_name> can be fm1_10g1, fm1_10g2, fm1_10g3, fm1_10g4, they
+ do not have to be coexist in hwconfig. If a MAC is listed in the env
+ "fsl_10gkr_copper", it will use copper cable, otherwise, fiber cable
+ will be used by default.
+ for ex. set "fsl_10gkr_copper:fm1_10g1,fm1_10g2,fm1_10g3,fm1_10g4" in
+ hwconfig, then both four XFI ports will use copper cable.
+ set "fsl_10gkr_copper:fm1_10g1,fm1_10g2" in hwconfig, then first two
+ XFI ports will use copper cable, the other two XFI ports will use fiber
+ cable.
 
 System Memory map
------------------
+----------------
+
 Start Address  End Address      Description			Size
 0xF_FFDF_0000  0xF_FFDF_0FFF    IFC - CPLD			4KB
 0xF_FF80_0000  0xF_FF80_FFFF    IFC - NAND Flash		64KB
board/freescale/t208xqds/eth_t208xqds.c +77 -9

105 lines not on this page · raw message

Signature · 1 line
1.8.0
#1 lore raw

PATCH v2 1/2 powerpc/t2080qds: fixup dtb for 10g-kr

Quoted 21 lines · Shaohui Xie

XFI ports on t2080qds can work with fiber cable and direct attach cable(copper). We use hwconfig to define cable type for XFI, and fixup dtb based on the cable type.

For copper cable, set below env in hwconfig:

fsl_10gkr_copper:<10g_mac_name>

the <10g_mac_name> can be fm1_10g1, fm1_10g2, fm1_10g3, fm1_10g4. fm1_10g1 stands for FM1-MAC9, fm1_10g2 stands for FM1-MAC10, fm1_10g3 stands for FM1-MAC1, fm1_10g4 stands for FM1-MAC2. The four <10g_mac_name>s do not have to be coexist in hwconfig. For XFI ports, if a given 10G port will use the copper cable for 10GBASE-KR, set the <10g_mac_name> of the port in hwconfig, otherwise, fiber cable will be assumed to be used for the port.

For ex. if four XFI ports will both use copper cable, the hwconfig should contain:

fsl_10gkr_copper:fm1_10g1,fm1_10g2,fm1_10g3,fm1_10g4

Quoted 8 lines

---
changes for V2:
add XFI description in t208xqds README.

 board/freescale/t208xqds/README         | 23 ++++++++-
 board/freescale/t208xqds/eth_t208xqds.c | 86 +++++++++++++++++++++++++++++----
 2 files changed, 98 insertions(+), 11 deletions(-)

Applied to u-boot-mpc85xx master. Awaiting upstream. Thanks.

York