Skip to content

Commit

Permalink
board: lx2160aqds: add support for SERDES #1 protocol 13
Browse files Browse the repository at this point in the history
Add support for the SERDES #1 protocol 13 which enables 2 100G MACs
(dpmac.1 and dpmac.2). For this to work, a new DTS file which describes
how 2 mezzanine M8 cards can be connected on the LX2160AQDS board.

Signed-off-by: Ioana Ciornei <[email protected]>
  • Loading branch information
IoanaCiornei authored and p-priyanka-jain committed Jun 30, 2021
1 parent f923ded commit c789aaa
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 2 deletions.
1 change: 1 addition & 0 deletions arch/arm/dts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,7 @@ dtb-$(CONFIG_FSL_LSCH3) += fsl-ls2080a-qds.dtb \
fsl-lx2160a-qds-19-11-x.dtb \
fsl-lx2160a-qds-20-x-x.dtb \
fsl-lx2160a-qds-20-11-x.dtb \
fsl-lx2160a-qds-13-x-x.dtb \
fsl-lx2162a-qds.dtb\
fsl-lx2162a-qds-17-x.dtb\
fsl-lx2162a-qds-18-x.dtb\
Expand Down
17 changes: 17 additions & 0 deletions arch/arm/dts/fsl-lx2160a-qds-13-x-x.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// SPDX-License-Identifier: GPL-2.0+ OR X11
/*
* NXP LX2160AQDS device tree source for SERDES protocol 13.x.x
*
* Copyright 2021 NXP
*
*/

/dts-v1/;

#include "fsl-lx2160a-qds-sd1-13.dtsi"

/ {
model = "NXP Layerscape LX2160AQDS Board (DTS 13.x.x)";
compatible = "fsl,lx2160aqds", "fsl,lx2160a";

};
49 changes: 49 additions & 0 deletions arch/arm/dts/fsl-lx2160a-qds-sd1-13.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
// SPDX-License-Identifier: GPL-2.0+ OR X11
/*
* NXP LX2160AQDS device tree source for the SERDES block #1 - protocol 13
*
* Some assumptions are made:
* * mezzanine card M8 (100G) #1 is connected to IO SLOT 1 - DPMAC 1
* * mezzanine card M8 (100G) #2 is connected to IO SLOT 2 - DPMAC 2
*
* Copyright 2021 NXP
*
*/

#include "fsl-lx2160a-qds.dtsi"

&dpmac1 {
status = "okay";
phy-handle = <&inphi1_phy0 &inphi1_phy1>;
phy-connection-type = "caui4";
};

&dpmac2 {
status = "okay";
phy-handle = <&inphi2_phy0 &inphi2_phy1>;
phy-connection-type = "caui4";
};

&emdio1_slot1 {
inphi1_phy0: ethernet-phy@0 {
compatible = "ethernet-phy-id0210.7440";
reg = <0x0>;
};

inphi1_phy1: ethernet-phy@1 {
compatible = "ethernet-phy-id0210.7440";
reg = <0x1>;
};
};

&emdio1_slot2 {
inphi2_phy0: ethernet-phy@0 {
compatible = "ethernet-phy-id0210.7440";
reg = <0x0>;
};

inphi2_phy1: ethernet-phy@1 {
compatible = "ethernet-phy-id0210.7440";
reg = <0x1>;
};
};
3 changes: 2 additions & 1 deletion board/freescale/lx2160a/eth_lx2160aqds.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0+
/*
* Copyright 2018-2020 NXP
* Copyright 2018-2021 NXP
*
*/

Expand Down Expand Up @@ -874,6 +874,7 @@ static struct serdes_configuration {
/* Serdes block #1 */
{1, 3, true},
{1, 7, true},
{1, 13, true},
{1, 19, true},
{1, 20, true},

Expand Down
2 changes: 1 addition & 1 deletion configs/lx2160aqds_tfa_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ CONFIG_CMD_WDT=y
CONFIG_CMD_CACHE=y
CONFIG_MP=y
CONFIG_OF_CONTROL=y
CONFIG_OF_LIST="fsl-lx2160a-qds-3-x-x fsl-lx2160a-qds-7-x-x fsl-lx2160a-qds-19-x-x fsl-lx2160a-qds-20-x-x fsl-lx2160a-qds-3-11-x fsl-lx2160a-qds-7-11-x fsl-lx2160a-qds-7-11-x fsl-lx2160a-qds-19-11-x fsl-lx2160a-qds-20-11-x"
CONFIG_OF_LIST="fsl-lx2160a-qds-3-x-x fsl-lx2160a-qds-7-x-x fsl-lx2160a-qds-19-x-x fsl-lx2160a-qds-20-x-x fsl-lx2160a-qds-3-11-x fsl-lx2160a-qds-7-11-x fsl-lx2160a-qds-7-11-x fsl-lx2160a-qds-19-11-x fsl-lx2160a-qds-20-11-x fsl-lx2160a-qds-13-x-x"
CONFIG_MULTI_DTB_FIT=y
CONFIG_ENV_OVERWRITE=y
CONFIG_ENV_IS_IN_MMC=y
Expand Down

0 comments on commit c789aaa

Please sign in to comment.