On 05.07.2018 09:34, m...@marvell.com wrote:
From: Ken Ma <m...@marvell.com>

Add a uclass which provides access to MDIO busses and includes
operations required by MDIO.
The implementation is based on the existing mii/phy/mdio data
structures and APIs.
This patch also adds device tree binding for MDIO bus.

Signed-off-by: Ken Ma <m...@marvell.com>
Reviewed-by: s...@chromium.org, joe.hershber...@ni.com
---

Changes in v4:
- Minor updates for comments and Maintainer.

Changes in v3:
- Move mdio uclass implementation to driver/net folder;
- Replace flat-tree functions with livetree functions and update codes
   and comments to be consistent with driver-model codes style;
- Put struct mii_dev to uclass platdata to avoid the mdio alloc and
   let driver model framework to alloc the memroy automatically,
   meanwhile the mii bus link initialization is added.

Changes in v2:
- Fix error printing:
- Change some debug to pr_err;
- mii bus has no parent member and it is not a udevice, so dev_err
   is changed to pr_err for mii bus error printings.

  MAINTAINERS                               |   1 +
  doc/device-tree-bindings/net/mdio-bus.txt |  54 ++++++++++++++
  drivers/Kconfig                           |   2 +
  drivers/net/Makefile                      |   1 +
  drivers/net/mdio/Kconfig                  |  18 +++++
  drivers/net/mdio/Makefile                 |   6 ++
  drivers/net/mdio/mdio-uclass.c            | 112 ++++++++++++++++++++++++++++++
  include/dm/uclass-id.h                    |   1 +
  include/net/mdio.h                        |  62 +++++++++++++++++
  9 files changed, 257 insertions(+)
  create mode 100644 doc/device-tree-bindings/net/mdio-bus.txt
  create mode 100644 drivers/net/mdio/Kconfig
  create mode 100644 drivers/net/mdio/Makefile
  create mode 100644 drivers/net/mdio/mdio-uclass.c
  create mode 100644 include/net/mdio.h

Reviewed-by: Stefan Roese <s...@denx.de>

Thanks,
Stefan
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

Reply via email to