From patchwork Thu Apr 23 13:25:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Madalin Bucur \(OSS\)" X-Patchwork-Id: 238382 List-Id: U-Boot discussion From: madalin.bucur at oss.nxp.com (Madalin Bucur) Date: Thu, 23 Apr 2020 16:25:10 +0300 Subject: [PATCH 00/12] Enable DM_ETH on the DPAA1 ARM platforms Message-ID: <1587648322-24795-1-git-send-email-madalin.bucur@oss.nxp.com> This patch set enables DM_ETH on the DPAA1 ARM platforms. The required changes are added to the LS104x device trees and LS104xARDB device trees. Changes to the fm driver introduce DM ETH and DM MDIO support while still preserving the legacy functionality. A compilation error related to CONFIG_NAND_BOOT revealed during validation of the changes is also addressed. Madalin Bucur (12): ARM: dts: add QorIQ DPAA 1 FMan v3 device tree nodes ARM: dts: add QorIQ DPAA 1 FMan v3 for LS1043A ARM: dts: add QorIQ DPAA 1 FMan v3 to LS1043ARDB ARM: dts: add QorIQ DPAA 1 FMan v3 for LS1046A ARM: dts: add QorIQ DPAA 1 FMan v3 to LS1046ARDB driver: net: fm: change init_phy() param driver: net: fm: separate receive buffer free code driver: net: fm: add DM MDIO support driver: net: fm: add DM ETH support net: fm: fix compilation issue configs: enable DM_ETH support for LS1043ARDB configs: enable DM_ETH support for LS1046ARDB arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 2 + arch/arm/dts/fsl-ls1043-post.dtsi | 48 +++ arch/arm/dts/fsl-ls1043a-rdb.dts | 81 +++++ arch/arm/dts/fsl-ls1043a.dtsi | 2 +- arch/arm/dts/fsl-ls1046-post.dtsi | 49 +++ arch/arm/dts/fsl-ls1046a-rdb.dts | 67 ++++ arch/arm/dts/fsl-ls1046a.dtsi | 2 +- arch/arm/dts/qoriq-fman3-0-10g-0.dtsi | 44 +++ arch/arm/dts/qoriq-fman3-0-10g-1.dtsi | 44 +++ arch/arm/dts/qoriq-fman3-0-1g-0.dtsi | 43 +++ arch/arm/dts/qoriq-fman3-0-1g-1.dtsi | 43 +++ arch/arm/dts/qoriq-fman3-0-1g-2.dtsi | 43 +++ arch/arm/dts/qoriq-fman3-0-1g-3.dtsi | 43 +++ arch/arm/dts/qoriq-fman3-0-1g-4.dtsi | 43 +++ arch/arm/dts/qoriq-fman3-0-1g-5.dtsi | 43 +++ arch/arm/dts/qoriq-fman3-0.dtsi | 82 +++++ board/freescale/ls1043ardb/ls1043ardb.c | 2 + board/freescale/ls1046afrwy/ls1046afrwy.c | 2 + board/freescale/ls1046aqds/ls1046aqds.c | 2 + board/freescale/ls1046ardb/ls1046ardb.c | 2 + configs/ls1043ardb_SECURE_BOOT_defconfig | 3 + configs/ls1043ardb_defconfig | 3 + configs/ls1043ardb_nand_SECURE_BOOT_defconfig | 3 + configs/ls1043ardb_nand_defconfig | 3 + configs/ls1043ardb_sdcard_SECURE_BOOT_defconfig | 3 + configs/ls1043ardb_sdcard_defconfig | 3 + configs/ls1043ardb_tfa_SECURE_BOOT_defconfig | 3 + configs/ls1043ardb_tfa_defconfig | 3 + configs/ls1046ardb_emmc_defconfig | 3 + configs/ls1046ardb_qspi_SECURE_BOOT_defconfig | 3 + configs/ls1046ardb_qspi_defconfig | 3 + configs/ls1046ardb_qspi_spl_defconfig | 3 + configs/ls1046ardb_sdcard_SECURE_BOOT_defconfig | 3 + configs/ls1046ardb_sdcard_defconfig | 3 + configs/ls1046ardb_tfa_SECURE_BOOT_defconfig | 3 + configs/ls1046ardb_tfa_defconfig | 3 + drivers/net/fm/eth.c | 433 +++++++++++++++++++++--- drivers/net/fm/fm.c | 82 +++++ drivers/net/fm/fm.h | 23 ++ drivers/net/fm/init.c | 2 + drivers/net/fm/memac.c | 1 + drivers/net/fm/memac_phy.c | 139 +++++++- include/fsl_mdio.h | 1 + 43 files changed, 1365 insertions(+), 51 deletions(-) create mode 100644 arch/arm/dts/fsl-ls1043-post.dtsi create mode 100644 arch/arm/dts/fsl-ls1046-post.dtsi create mode 100644 arch/arm/dts/qoriq-fman3-0-10g-0.dtsi create mode 100644 arch/arm/dts/qoriq-fman3-0-10g-1.dtsi create mode 100644 arch/arm/dts/qoriq-fman3-0-1g-0.dtsi create mode 100644 arch/arm/dts/qoriq-fman3-0-1g-1.dtsi create mode 100644 arch/arm/dts/qoriq-fman3-0-1g-2.dtsi create mode 100644 arch/arm/dts/qoriq-fman3-0-1g-3.dtsi create mode 100644 arch/arm/dts/qoriq-fman3-0-1g-4.dtsi create mode 100644 arch/arm/dts/qoriq-fman3-0-1g-5.dtsi create mode 100644 arch/arm/dts/qoriq-fman3-0.dtsi