The 1x100GE + 4x25G split of SerDes 1 is in next since v1, commit
035d68fc36b5 ("lx2160: add lx2160_serdes split and management").v4 builds on it with incremental patches to ease reviews, but with many reworks: - No more command that re-groups the lanes at the prompt: the MC has already started. Use hwconfig - hwconfig values are named based on needed cases: serdes1:split becomes serdes1:100g4x25g (patch 2) - Use a table - One patch per new mode: 2x40GE, 1x40GE + 4x10G and 1x100GE + 4x10G - Rewrite documentation - Add and apply to nbxv3 It is now mainly tested on a Nodebox v3 setenv hwconfig serdes1:<mode> saveenv reset - print checks using lx2160_serdes status 1 - in Linux, with the matching MC DPC, DPL: each case has its netdevices v3: https://lore.kernel.org/u-boot/[email protected]/ v2: https://lore.kernel.org/u-boot/[email protected]/ Changes in v4: - rebased on next, incremental over v1 instead of replacing it - 1/10 (new): drop `lx2160_serdes split` - 2/10 (new): rename serdes1:split to serdes1:100g4x25g - 3/10 (new): use a table to set SD1 - 4/10 (new): report invalid serdes1 names - 5/10 (new): refuse once the MC runs - 6/10, 7/10, 8/10: resp. v3 2/5, 3/5, 4/5: add other modes - 9/10: v3 5/5, rewritten doc - 10/10 (new): apply sd1 for the nbxv3 Vincent Jardin (10): board: lx2160a: serdes: drop the split subcommand board: lx2160a: serdes: rename serdes1:split to serdes1:100g4x25g board: lx2160a: serdes: set SD1 with a table board: lx2160a: serdes: report unknown SD1 cases board: lx2160a: serdes: no SD1 config once MC runs board: lx2160a: serdes: add serdes1:2x40g board: lx2160a: serdes: add serdes1:40g4x10g board: lx2160a: serdes: add serdes1:100g4x10g doc: lx2160a: document the sd1 hwconfig option board: nbxv3: apply sd1 hwconfig before MC starts .../cpu/armv8/fsl-layerscape/doc/README.soc | 7 + board/nxp/lx2160a/eth_lx2160aqds.c | 4 +- board/nxp/lx2160a/nbxv3/eth_nbxv3.c | 3 + board/nxp/lx2160a/serdes_split.c | 588 ++++++++++++++---- board/nxp/lx2160a/serdes_split.h | 16 +- doc/README.fsl-hwconfig | 61 ++ 6 files changed, 556 insertions(+), 123 deletions(-) --- base-commit: 2b8902913c19eb581fb0d567201c09b8fa46ac74 branch: for-upstream/lx2160a-serdes1-v4 -- 2.43.0
