From patchwork Fri May 15 06:57:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ioana Ciornei X-Patchwork-Id: 245845 List-Id: U-Boot discussion From: ioana.ciornei at nxp.com (Ioana Ciornei) Date: Fri, 15 May 2020 09:57:13 +0300 Subject: [PATCH v2 0/3] boards: ls2080aqds: transition to CONFIG_DM_ETH Message-ID: <20200515065716.26965-1-ioana.ciornei@nxp.com> This patch set targets to add support for CONFIG_DM_ETH for the NXP LS2080AQDS 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. 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&state=* For the moment, when CONFIG_DM_ETH is enabled DPAA2 networking is supported only for the SERDES block #1 protocol 42 (0x2a). Changes in v2: - rebased on top of u-boot-fsl-qoriq/next Ioana Ciornei (3): board: ls2080aqds: transition to DM_ETH arm: dts: ls2080aqds: add CONFIG_MULTI_DTB_FIT support configs: ls2080aqds_tfa_defconfig: enable DM_ETH and related arch/arm/dts/Makefile | 1 + arch/arm/dts/fsl-ls2080a-qds-42-x.dts | 16 ++++ arch/arm/dts/fsl-ls2080a-qds-sd1-42.dtsi | 48 ++++++++++ arch/arm/dts/fsl-ls2080a-qds.dts | 72 +-------------- arch/arm/dts/fsl-ls2080a-qds.dtsi | 77 ++++++++++++++++ board/freescale/ls2080aqds/eth.c | 110 ++++++++++++++++++++++- board/freescale/ls2080aqds/ls2080aqds.c | 4 + configs/ls2088aqds_tfa_defconfig | 8 ++ 8 files changed, 264 insertions(+), 72 deletions(-) create mode 100644 arch/arm/dts/fsl-ls2080a-qds-42-x.dts create mode 100644 arch/arm/dts/fsl-ls2080a-qds-sd1-42.dtsi create mode 100644 arch/arm/dts/fsl-ls2080a-qds.dtsi