Skip to content

dm: net: Conversion patches for sunxi driver model Ethernet

Simon Glass u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest11 patches 0 repliesNew

Changes in v2 from the cover letter

- Add Ethernet for Orangepi, galileo
- Add Ethernet for Orangepi_mini, Wits_Pro_A20_DKT, Mele_I7
- Drop bugfix patches that were incorporated in the Ethernet dm conversion
- Drop the CONFIG_BOOTP_VCI_STRING patch
- Rebase on dm/next
- Remove unwanted printf()
- Use the new recv() method and the free_pkt() method

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11sunxi: Replace the pcDuino3 config with FDT versionconfigs/Linksprite_pcDuino3_defconfig configs/Linksprite_pcDuino3_fdt_defconfig+7 -150 replies
1/11sunxi: Replace the pcDuino3 config with FDT version+0 -00 replies
2/11Kconfig: Move CONFIG_DESIGNWARE_ETH to Kconfigarch/arm/cpu/arm926ejs/spear/cpu.c arch/arm/cpu/armv7/socfpga/misc.c board/bf609-ezkit/bf609-ezkit.c +64 more+164 -180 replies
2/11Kconfig: Move CONFIG_DESIGNWARE_ETH to Kconfig+0 -00 replies
3/11dts: sunxi: Bring in Ethernet device tree bindingsdoc/device-tree-bindings/net/allwinner,sun4i-emac.txt doc/device-tree-bindings/net/allwinner,sun4i-mdio.txt doc/device-tree-bindings/net/allwinner,sun7i-a20-gmac.txt +2 more+161 -00 replies
3/11dts: sunxi: Bring in Ethernet device tree bindings+0 -00 replies
4/11dm: core: Support allocating driver-private data for DMAdrivers/core/device.c include/dm/device.h+13 -10 replies
5/11dm: net: Use existing Ethernet init for driver modelnet/eth.c+42 -360 replies
5/11dm: net: Use existing Ethernet init for driver model+0 -00 replies
6/11Avoid calling print_eths() with driver modelcommon/cmd_bdinfo.c+1 -10 replies
6/11Avoid calling print_eths() with driver model+0 -00 replies
7/11dm: net: Adjust PHY interface to work with CONFIG_DM_ETHcommon/miiphyutil.c drivers/net/phy/phy.c include/net.h +1 more+47 -10 replies
7/11dm: net: Adjust PHY interface to work with CONFIG_DM_ETH+0 -00 replies
8/11dm: net: Tidy up designware driver ready for driver modeldrivers/net/designware.c+53 -340 replies
8/11dm: net: Tidy up designware driver ready for driver model+0 -00 replies
9/11dm: net: Adjust designware driver to support driver modeldrivers/net/designware.c drivers/net/designware.h+153 -171 reply
9/11dm: net: Adjust designware driver to support driver model+0 -00 replies
10/11dm: sunxi: Support driver model for Ethernetboard/sunxi/gmac.c+7 -30 replies
10/11dm: sunxi: Support driver model for Ethernet+0 -00 replies
11/11dm: sunxi: Use driver model for Ethernet on Linksprite pcDuino3configs/Linksprite_pcDuino3_defconfig+1 -00 replies
11/11dm: sunxi: Use driver model for Ethernet on Linksprite pcDuino3+0 -00 replies

Reviews trailers per patch

16 of 21 patches have a Reviewed-by or Acked-by.

PatchHans de GoedeIan CampbellJoe Hershberger
1/11A-b A-b
1/11A-b A-b
2/11A-b
2/11A-b
3/11A-b
3/11A-b
4/11
5/11A-b
5/11A-b
6/11A-b
6/11A-b
7/11A-b
7/11A-b
8/11A-b
8/11A-b
9/11A-b
9/11A-b
10/11
10/11
11/11
11/11

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [U-Boot] [PATCH v2 0/11] dm: net: Conversion patches for sunxi driver model Ethernet

This series enables driver model Ethernet for the pcDuino3, converting the designware Ethernet MAC in the process. It also moves all sunxi board to use Kconfig for their basic Ethernet settings.

This series is based on u-boot-dm/next and requires Joe's patch here:

http://patchwork.ozlabs.org/patch/458111/

It is available at u-boot-dm in branch net-working.

Changes in v2:
- Add Ethernet for Orangepi, galileo
- Add Ethernet for Orangepi_mini, Wits_Pro_A20_DKT, Mele_I7
- Drop bugfix patches that were incorporated in the Ethernet dm conversion
- Drop the CONFIG_BOOTP_VCI_STRING patch
- Rebase on dm/next
- Remove unwanted printf()
- Use the new recv() method and the free_pkt() method

Simon Glass (11):
sunxi: Replace the pcDuino3 config with FDT version
Kconfig: Move CONFIG_DESIGNWARE_ETH to Kconfig
dts: sunxi: Bring in Ethernet device tree bindings
dm: core: Support allocating driver-private data for DMA
dm: net: Use existing Ethernet init for driver model Avoid calling print_eths() with driver model
dm: net: Adjust PHY interface to work with CONFIG_DM_ETH
dm: net: Tidy up designware driver ready for driver model
dm: net: Adjust designware driver to support driver model
dm: sunxi: Support driver model for Ethernet
dm: sunxi: Use driver model for Ethernet on Linksprite pcDuino3

 arch/arm/cpu/arm926ejs/spear/cpu.c                 |   2 +-
 arch/arm/cpu/armv7/socfpga/misc.c                  |   2 +-
 board/bf609-ezkit/bf609-ezkit.c                    |   2 +-
 board/spear/spear300/spear300.c                    |   2 +-
 board/spear/spear310/spear310.c                    |   2 +-
 board/spear/spear320/spear320.c                    |   2 +-
 board/spear/spear600/spear600.c                    |   2 +-
 board/st/stv0991/stv0991.c                         |   2 +-
 board/sunxi/gmac.c                                 |  10 +-
 common/cmd_bdinfo.c                                |   2 +-
 common/miiphyutil.c                                |   1 +
 configs/A20-OLinuXino-Lime2_defconfig              |   3 +
 configs/A20-OLinuXino-Lime_defconfig               |   3 +
 configs/A20-OLinuXino_MICRO_defconfig              |   3 +
 configs/Bananapi_defconfig                         |   3 +
 configs/Bananapro_defconfig                        |   3 +
 configs/CSQ_CS908_defconfig                        |   3 +
 configs/Colombus_defconfig                         |   3 +
 configs/Cubieboard2_defconfig                      |   3 +
 configs/Cubietruck_defconfig                       |   3 +
 configs/Hummingbird_A31_defconfig                  |   3 +
 configs/Linksprite_pcDuino3_Nano_defconfig         |   3 +
 configs/Linksprite_pcDuino3_defconfig              |  11 +
 configs/Linksprite_pcDuino3_fdt_defconfig          |  15 --
 configs/Mele_I7_defconfig                          |   3 +
 configs/Mele_M3_defconfig                          |   3 +
 configs/Mele_M5_defconfig                          |   3 +
 configs/Mele_M9_defconfig                          |   3 +
 configs/Orangepi_defconfig                         |   3 +
 configs/Orangepi_mini_defconfig                    |   3 +
 configs/Wits_Pro_A20_DKT_defconfig                 |   3 +
 configs/axs101_defconfig                           |   5 +-
 configs/axs103_defconfig                           |   3 +
 configs/bf609-ezkit_defconfig                      |   3 +
 configs/galileo_defconfig                          |   3 +
 configs/i12-tvbox_defconfig                        |   3 +
 configs/socfpga_cyclone5_defconfig                 |   3 +
 configs/socfpga_socrates_defconfig                 |   3 +
 configs/spear300_defconfig                         |   3 +
 configs/spear300_nand_defconfig                    |   3 +
 configs/spear300_usbtty_defconfig                  |   3 +
 configs/spear300_usbtty_nand_defconfig             |   3 +
 configs/spear310_defconfig                         |   3 +
 configs/spear310_nand_defconfig                    |   3 +
 configs/spear310_pnor_defconfig                    |   3 +
 configs/spear310_usbtty_defconfig                  |   3 +
 configs/spear310_usbtty_nand_defconfig             |   3 +
 configs/spear310_usbtty_pnor_defconfig             |   3 +
 configs/spear320_defconfig                         |   3 +
 configs/spear320_nand_defconfig                    |   3 +
 configs/spear320_pnor_defconfig                    |   3 +
 configs/spear320_usbtty_defconfig                  |   3 +
 configs/spear320_usbtty_nand_defconfig             |   3 +
 configs/spear320_usbtty_pnor_defconfig             |   3 +
 configs/spear600_defconfig                         |   3 +
 configs/spear600_nand_defconfig                    |   3 +
 configs/spear600_usbtty_defconfig                  |   3 +
 configs/spear600_usbtty_nand_defconfig             |   3 +
 configs/stv0991_defconfig                          |   3 +
 configs/tb100_defconfig                            |   3 +
 configs/x600_defconfig                             |   3 +
 .../net/allwinner,sun4i-emac.txt                   |  19 ++
 .../net/allwinner,sun4i-mdio.txt                   |  27 +++
 .../net/allwinner,sun7i-a20-gmac.txt               |  27 +++
 doc/device-tree-bindings/net/ethernet.txt          |  25 +++
 doc/device-tree-bindings/net/stmmac.txt            |  63 ++++++
 drivers/core/device.c                              |  11 +-
 drivers/net/Kconfig                                |   7 +
 drivers/net/Makefile                               |   2 +-
 drivers/net/designware.c                           | 250 +++++++++++++++++----
 drivers/net/designware.h                           |   3 +-
 drivers/net/phy/phy.c                              |  22 ++
 include/configs/axs101.h                           |   1 -
 include/configs/bf609-ezkit.h                      |   1 -
 include/configs/socfpga_common.h                   |   1 -
 include/configs/spear-common.h                     |   1 -
 include/configs/stv0991.h                          |   1 -
 include/configs/sunxi-common.h                     |   1 -
 include/configs/tb100.h                            |   1 -
 include/configs/x600.h                             |   1 -
 include/dm/device.h                                |   3 +
 include/net.h                                      |   2 +
 include/phy.h                                      |  23 +-
 net/eth.c                                          |  78 ++++---
 84 files changed, 647 insertions(+), 124 deletions(-)
 delete mode 100644 configs/Linksprite_pcDuino3_fdt_defconfig
 create mode 100644 doc/device-tree-bindings/net/allwinner,sun4i-emac.txt
 create mode 100644 doc/device-tree-bindings/net/allwinner,sun4i-mdio.txt
 create mode 100644 doc/device-tree-bindings/net/allwinner,sun7i-a20-gmac.txt
 create mode 100644 doc/device-tree-bindings/net/ethernet.txt
 create mode 100644 doc/device-tree-bindings/net/stmmac.txt
Signature · 1 line
2.2.0.rc0.207.ga3a616c