This patch set targets to add support for CONFIG_DM_ETH for the NXP
LX2160AQDS board.
The main focus is on changing the DTS based on the SERDES protocol used.
In order to accomplish this, the MULTI_DTB_FIT feature is employed and
the appropriate DTS is chosed on boot from a list of predefined files.
The possible DTS filenames for the board have a standard format that
describes for which SERDES protocol combinations it can be used. For
example, the 'fsl-lx2160a-qds-19-11-x.dtb' can be used for a LX2160AQDS
board which is configured as follows:
* SERDES block #1 - protocol 19
* SERDES block #2 - protocol 11
* SERDES block #3 - any protocol
Any unnecessary configurations made for the DPAA2 ethernet devices in
the board files are compiled out when CONFIG_DM_ETH is enabled. This is
because any information necessary is available in its associated DTS
node.
This patch set depends on another series that adds support for DM_ETH in
the ldpaa_eth driver and the RDB boards:
https://patchwork.ozlabs.org/project/uboot/list/?series=165158
Ioana Ciornei (6):
arm: dts: lx2160a: add any missing dpmac nodes
arm: dts: lx2160aqds: add MDIO slots
arm: dts: lx2160aqds: add nodes describing possible mezzanine cards
board: lx2160aqds: transition to DM_ETH
board: lx2160aqds: implement board_fit_config_name_match
configs: lx2160aqds_tfa_defconfig: enable DM_ETH and related
arch/arm/dts/Makefile | 10 +-
arch/arm/dts/fsl-lx2160a-qds-19-11-x.dts | 19 +++
arch/arm/dts/fsl-lx2160a-qds-19-x-x.dts | 17 ++
arch/arm/dts/fsl-lx2160a-qds-20-11-x.dts | 19 +++
arch/arm/dts/fsl-lx2160a-qds-20-x-x.dts | 17 ++
arch/arm/dts/fsl-lx2160a-qds-3-11-x.dts | 19 +++
arch/arm/dts/fsl-lx2160a-qds-3-x-x.dts | 17 ++
arch/arm/dts/fsl-lx2160a-qds-7-11-x.dts | 19 +++
arch/arm/dts/fsl-lx2160a-qds-7-x-x.dts | 17 ++
arch/arm/dts/fsl-lx2160a-qds-sd1-19.dtsi | 75 ++++++++
arch/arm/dts/fsl-lx2160a-qds-sd1-20.dtsi | 39 +++++
arch/arm/dts/fsl-lx2160a-qds-sd1-3.dtsi | 55 ++++++
arch/arm/dts/fsl-lx2160a-qds-sd1-7.dtsi | 100 +++++++++++
arch/arm/dts/fsl-lx2160a-qds-sd2-11.dtsi | 76 +++++++++
arch/arm/dts/fsl-lx2160a-qds.dts | 67 +-------
arch/arm/dts/fsl-lx2160a-qds.dtsi | 169 +++++++++++++++++++
arch/arm/dts/fsl-lx2160a.dtsi | 86 +++++++++-
board/freescale/lx2160a/eth_lx2160aqds.c | 119 +++++++++++++
board/freescale/lx2160a/lx2160a.c | 5 +
configs/lx2160aqds_tfa_SECURE_BOOT_defconfig | 8 +
configs/lx2160aqds_tfa_defconfig | 8 +
21 files changed, 895 insertions(+), 66 deletions(-)
create mode 100644 arch/arm/dts/fsl-lx2160a-qds-19-11-x.dts
create mode 100644 arch/arm/dts/fsl-lx2160a-qds-19-x-x.dts
create mode 100644 arch/arm/dts/fsl-lx2160a-qds-20-11-x.dts
create mode 100644 arch/arm/dts/fsl-lx2160a-qds-20-x-x.dts
create mode 100644 arch/arm/dts/fsl-lx2160a-qds-3-11-x.dts
create mode 100644 arch/arm/dts/fsl-lx2160a-qds-3-x-x.dts
create mode 100644 arch/arm/dts/fsl-lx2160a-qds-7-11-x.dts
create mode 100644 arch/arm/dts/fsl-lx2160a-qds-7-x-x.dts
create mode 100644 arch/arm/dts/fsl-lx2160a-qds-sd1-19.dtsi
create mode 100644 arch/arm/dts/fsl-lx2160a-qds-sd1-20.dtsi
create mode 100644 arch/arm/dts/fsl-lx2160a-qds-sd1-3.dtsi
create mode 100644 arch/arm/dts/fsl-lx2160a-qds-sd1-7.dtsi
create mode 100644 arch/arm/dts/fsl-lx2160a-qds-sd2-11.dtsi
create mode 100644 arch/arm/dts/fsl-lx2160a-qds.dtsi