From patchwork Wed Apr 29 10:32:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ioana Ciornei X-Patchwork-Id: 238860 List-Id: U-Boot discussion From: ioana.ciornei at nxp.com (Ioana Ciornei) Date: Wed, 29 Apr 2020 13:32:45 +0300 Subject: [PATCH 0/3] boards: ls2080aqds: transition to CONFIG_DM_ETH Message-ID: <20200429103248.15029-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). 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 | 73 +-------------- arch/arm/dts/fsl-ls2080a-qds.dtsi | 78 ++++++++++++++++ board/freescale/ls2080aqds/eth.c | 110 ++++++++++++++++++++++- board/freescale/ls2080aqds/ls2080aqds.c | 4 + configs/ls2088aqds_tfa_defconfig | 10 ++- 8 files changed, 266 insertions(+), 74 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