All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] board: freescale: add T2080RDB rev D support
@ 2021-06-10 12:39 Camelia Groza
  2021-06-10 12:39 ` [PATCH 1/4] board: freescale: t208xrdb: detect the board revision letter Camelia Groza
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Camelia Groza @ 2021-06-10 12:39 UTC (permalink / raw)
  To: wd, Shengzhou.Liu, priyanka.jain, Zhiqiang.Hou, u-boot; +Cc: Camelia Groza

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.

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

The second patch updates the PHY addresses in u-boot for the legacy,
non-DM, driver implementation.

The third patch adds a fixup for Linux's device tree that is called from
both DM and non-DM code paths.

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,
the config option is used until a more robust solution is implemented.
Defconfig targets with the config option enabled by default are added for
convenience.

Camelia Groza (4):
  board: freescale: t208xrdb: detect the board revision letter
  board: freescale: t208xrdb: add rev D support for the non-DM_ETH mode
  board: freescale: t208xrdb: add Linux fdt fixups 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  | 49 ++++++++++++-
 board/freescale/t208xrdb/t208xrdb.c      | 20 ++++-
 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, 434 insertions(+), 7 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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-06-10 19:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-10 12:39 [PATCH 0/4] board: freescale: add T2080RDB rev D support Camelia Groza
2021-06-10 12:39 ` [PATCH 1/4] board: freescale: t208xrdb: detect the board revision letter Camelia Groza
2021-06-10 12:39 ` [PATCH 2/4] board: freescale: t208xrdb: add rev D support for the non-DM_ETH mode Camelia Groza
2021-06-10 12:39 ` [PATCH 3/4] board: freescale: t208xrdb: add Linux fdt fixups for rev D Camelia Groza
2021-06-10 12:39 ` [PATCH 4/4] board: freescale: t208xrdb: add a config option for rev D dts fixups Camelia Groza
2021-06-10 19:19 ` [PATCH 0/4] board: freescale: add T2080RDB rev D support Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.