public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Camelia Groza <camelia.groza@oss.nxp.com>
To: trini@konsulko.com, wd@denx.de, Shengzhou.Liu@nxp.com,
	priyanka.jain@nxp.com, Zhiqiang.Hou@nxp.com,
	u-boot@lists.denx.de
Cc: Camelia Groza <camelia.groza@nxp.com>
Subject: [PATCH 0/4] board: freescale: T2080RDB: rev D support and
Date: Fri, 11 Jun 2021 15:28:04 +0300	[thread overview]
Message-ID: <cover.1623412519.git.camelia.groza@nxp.com> (raw)

From: Camelia Groza <camelia.groza@nxp.com>

The T2080RDB boards revision D and up have updated Aquantia PHYs on the
two 10Gbps copper ports connected to MAC1 and MAC2 (from AQ1202 to
AQR113C). The second PHY connected to MAC2 is located at a different
address on the MDIO bus compared to revision C boards. Device tree
fixups are required for both Linux and u-boot to set the correct PHY
address for the new board revisions.

While we are here, the first patch cleans up the T2080RDB board files
and removes legacy non-DM_ETH code paths. DM_ETH and DM_PCI are enabled,
so board_eth_init() isn't required anymore.

The second patch in the series implements a callback that detects the
board revision based on the CPLD registers.

The third patch adds the PHY address fix-up for Linux's device tree.

The last patch corrects u-boot's device tree under DM based on a newly
introduced CONFIG_T2080RDB_REV_D build option. We are unable to use the
board_fix_fdt callback to update the device tree before relocation because
the dts is stored in flash at that point and isn't writable. Instead,
this config option is used until a more robust solution is implemented.
Defconfig targets with the config option enabled by default are added for
convenience.

Changes in v2:
- remove legacy non-DM_ETH code paths at Tom's recommendation in 1/4
- patch title and description rewordings in 2/4 and 3/4
- drop "board: freescale: t208xrdb: add rev D support for the non-DM_ETH
  mode"
- move the AQR113C_PHY_ADDR define from the dropped patch to 3/4

Camelia Groza (4):
  board: freescale: t208xrdb: remove the legacy non-DM_ETH code
  board: freescale: t208xrdb: detect the board revision version
  board: freescale: t208xrdb: add Linux fdt fix-ups for rev D
  board: freescale: t208xrdb: add a config option for rev D dts fixups

 arch/powerpc/dts/t2080rdb.dts            |   7 ++
 board/freescale/t208xrdb/Kconfig         |   4 +
 board/freescale/t208xrdb/eth_t208xrdb.c  | 112 +++++++----------------
 board/freescale/t208xrdb/t208xrdb.c      |  24 +++--
 board/freescale/t208xrdb/t208xrdb.h      |   1 +
 configs/T2080RDB_revD_NAND_defconfig     |  93 +++++++++++++++++++
 configs/T2080RDB_revD_SDCARD_defconfig   |  90 ++++++++++++++++++
 configs/T2080RDB_revD_SPIFLASH_defconfig |  92 +++++++++++++++++++
 configs/T2080RDB_revD_defconfig          |  77 ++++++++++++++++
 include/configs/T208xRDB.h               |   8 +-
 10 files changed, 422 insertions(+), 86 deletions(-)
 create mode 100644 configs/T2080RDB_revD_NAND_defconfig
 create mode 100644 configs/T2080RDB_revD_SDCARD_defconfig
 create mode 100644 configs/T2080RDB_revD_SPIFLASH_defconfig
 create mode 100644 configs/T2080RDB_revD_defconfig

--
2.17.1


             reply	other threads:[~2021-06-11 12:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-11 12:28 Camelia Groza [this message]
2021-06-11 12:28 ` [PATCH v2 1/4] board: freescale: t208xrdb: remove the legacy non-DM_ETH code Camelia Groza
2021-06-11 12:30   ` Tom Rini
2021-06-11 12:28 ` [PATCH v2 2/4] board: freescale: t208xrdb: detect the board revision version Camelia Groza
2021-06-11 12:28 ` [PATCH v2 3/4] board: freescale: t208xrdb: add Linux fdt fix-ups for rev D Camelia Groza
2021-06-11 12:28 ` [PATCH v2 4/4] board: freescale: t208xrdb: add a config option for rev D dts fixups Camelia Groza

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1623412519.git.camelia.groza@nxp.com \
    --to=camelia.groza@oss.nxp.com \
    --cc=Shengzhou.Liu@nxp.com \
    --cc=Zhiqiang.Hou@nxp.com \
    --cc=camelia.groza@nxp.com \
    --cc=priyanka.jain@nxp.com \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=wd@denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox