All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v5 00/13] Support for the Faraday ftgmac100 controller
@ 2018-10-29  6:06 Cédric Le Goater
  2018-10-29  6:06 ` [U-Boot] [PATCH v5 01/13] net: ftgmac100: use the BIT() macro Cédric Le Goater
                   ` (12 more replies)
  0 siblings, 13 replies; 28+ messages in thread
From: Cédric Le Goater @ 2018-10-29  6:06 UTC (permalink / raw)
  To: u-boot

Hello,

This series re-enables the Faraday ftgmac100 controller driver and its
Aspeed variant as as one can find on the OpenPOWER platforms. The
driver is largely reworked to support the driver model and also adds
the MDIO bus and phylib support. It was tested on the AST2500 evb.

Git tree available here:

  https://github.com/legoater/u-boot/commits/aspeed

Thanks,

C.

Changes since v4 :

 - introduced a wait_for_bit macro to handle timeouts when
   transmitting
 
Changes since v3 :

 It didn't seem necessary to remove the 'dev' argument from the
 ftgmac100_phy_init() and ftgmac100_phy_reset() function prototypes as
 the code is completely reworked in patch 5.

 - improved ftgmac100_mdio_init() and ftgmac100_phy_init() prototypes
 - introduced a ftgmac100_wait_for_txdone() function similar to the
   wait_for_bit_*() macros.

Changes since v2 :

 - split changes in multiple patches to preserve git history, but the
   code has not changed since the reviewed v2 patchset.
 - included a couple more changes to sync the DTS file with Linux.

Changes since v1 :

 - improved comments in the code
 - changed the type of 'iobase' to 'struct ftgmac100 *' to remove the
   casts in other routines.
 - replaced the loop in the mdio methods by a call to readl_poll_timeout()
   and fixed the returned value.
 - added a flush cache on the arrays of TX and RX descriptors in
   ftgmac100_start()
 - fixed returned value of 
 - added a timer loop to catch transmit timeouts
 - introduced a clk_bulk
 - improved Kconfig description
 - introduced a udevice_id .data model
 - dropped is_aspeed bool
 - dropped MDIO interface setting for Aspeed SoC. The default is
   correct.
 - removed the clcoks which are now handled automatically in the
   ftgmac100 driver
 - introduced a fix for the D2-PLL clock setting

Cédric Le Goater (13):
  net: ftgmac100: use the BIT() macro
  net: ftgmac100: use the aligned() macro
  net: ftgmac100: convert to driver model
  net: ftgmac100: use setbits_le32() in the reset method
  net: ftgmac100: add MDIO bus and phylib support
  net: ftgmac100: convert the RX/TX descriptor arrays
  net: ftgmac100: handle timeouts when transmitting
  net: ftgmac100: add clock support
  aspeed: ast2500: fix missing break in D2PLL clock enablement
  net: ftgmac100: Add support for the Aspeed SoC
  aspeed: Update ast2500 SoC DTS file to Linux v4.17-rc6 level
  aspeed: Activate ethernet devices on the ast2500 Eval Board
  aspeed: ast2500: fix D2-PLL clock setting in RGMII mode

 drivers/net/ftgmac100.h          |  158 +--
 include/netdev.h                 |    1 -
 drivers/clk/aspeed/clk_ast2500.c |   39 +
 drivers/net/ftgmac100.c          |  732 +++++------
 arch/arm/dts/ast2500-evb.dts     |   23 +
 arch/arm/dts/ast2500.dtsi        | 1949 ++++++++++++++++++------------
 configs/evb-ast2500_defconfig    |    8 +
 drivers/net/Kconfig              |   26 +
 8 files changed, 1707 insertions(+), 1229 deletions(-)

-- 
2.17.2

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

end of thread, other threads:[~2018-11-05 17:54 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-29  6:06 [U-Boot] [PATCH v5 00/13] Support for the Faraday ftgmac100 controller Cédric Le Goater
2018-10-29  6:06 ` [U-Boot] [PATCH v5 01/13] net: ftgmac100: use the BIT() macro Cédric Le Goater
2018-11-05 17:53   ` [U-Boot] " Joe Hershberger
2018-10-29  6:06 ` [U-Boot] [PATCH v5 02/13] net: ftgmac100: use the aligned() macro Cédric Le Goater
2018-11-05 17:53   ` [U-Boot] " Joe Hershberger
2018-10-29  6:06 ` [U-Boot] [PATCH v5 03/13] net: ftgmac100: convert to driver model Cédric Le Goater
2018-11-05 17:53   ` [U-Boot] " Joe Hershberger
2018-10-29  6:06 ` [U-Boot] [PATCH v5 04/13] net: ftgmac100: use setbits_le32() in the reset method Cédric Le Goater
2018-11-05 17:53   ` [U-Boot] " Joe Hershberger
2018-10-29  6:06 ` [U-Boot] [PATCH v5 05/13] net: ftgmac100: add MDIO bus and phylib support Cédric Le Goater
2018-11-05 17:53   ` [U-Boot] " Joe Hershberger
2018-10-29  6:06 ` [U-Boot] [PATCH v5 06/13] net: ftgmac100: convert the RX/TX descriptor arrays Cédric Le Goater
2018-11-05 17:53   ` [U-Boot] " Joe Hershberger
2018-10-29  6:06 ` [U-Boot] [PATCH v5 07/13] net: ftgmac100: handle timeouts when transmitting Cédric Le Goater
2018-10-29 19:23   ` Joe Hershberger
2018-11-05 17:53   ` [U-Boot] " Joe Hershberger
2018-10-29  6:06 ` [U-Boot] [PATCH v5 08/13] net: ftgmac100: add clock support Cédric Le Goater
2018-11-05 17:53   ` [U-Boot] " Joe Hershberger
2018-10-29  6:06 ` [U-Boot] [PATCH v5 09/13] aspeed: ast2500: fix missing break in D2PLL clock enablement Cédric Le Goater
2018-11-05 17:53   ` [U-Boot] " Joe Hershberger
2018-10-29  6:06 ` [U-Boot] [PATCH v5 10/13] net: ftgmac100: Add support for the Aspeed SoC Cédric Le Goater
2018-11-05 17:54   ` [U-Boot] " Joe Hershberger
2018-10-29  6:06 ` [U-Boot] [PATCH v5 11/13] aspeed: Update ast2500 SoC DTS file to Linux v4.17-rc6 level Cédric Le Goater
2018-11-05 17:54   ` [U-Boot] " Joe Hershberger
2018-10-29  6:06 ` [U-Boot] [PATCH v5 12/13] aspeed: Activate ethernet devices on the ast2500 Eval Board Cédric Le Goater
2018-11-05 17:54   ` [U-Boot] " Joe Hershberger
2018-10-29  6:06 ` [U-Boot] [PATCH v5 13/13] aspeed: ast2500: fix D2-PLL clock setting in RGMII mode Cédric Le Goater
2018-11-05 17:54   ` [U-Boot] " Joe Hershberger

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.