[U-Boot] [PATCH v4 1/2] dm: mdio: add a uclass for MDIO
Bin Meng
bmeng.cn at gmail.com
Wed Jul 25 12:34:45 UTC 2018
Hello,
On Tue, Jul 10, 2018 at 5:05 AM, Joe Hershberger <joe.hershberger at ni.com> wrote:
> On Thu, Jul 5, 2018 at 2:34 AM, <make at marvell.com> wrote:
>> From: Ken Ma <make at 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 <make at marvell.com>
>> Reviewed-by: sjg at chromium.org, joe.hershberger at 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
>>
It looks this only supports mdio device via device tree. How about PCI NICs?
Regards,
Bin
More information about the U-Boot
mailing list