From patchwork Wed Apr 22 17:09:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ioana Ciornei X-Patchwork-Id: 238335 List-Id: U-Boot discussion From: ioana.ciornei at nxp.com (Ioana Ciornei) Date: Wed, 22 Apr 2020 20:09:02 +0300 Subject: [PATCH 0/6] boards: lx2160aqds: transition to CONFIG_DM_ETH Message-ID: <20200422170908.19435-1-ioana.ciornei@nxp.com> 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