From: Alex Marginean <alexandru.marginean@nxp.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v4 0/5] Add helper function for linking a DM Eth device to a PHY
Date: Thu, 14 Nov 2019 17:04:42 +0200 [thread overview]
Message-ID: <20191114150447.29804-1-alexandru.marginean@nxp.com> (raw)
The patch set introduces dm_eth_phy_connect which takes in an ethernet device
and uses DT information to find the associated PHY and connect the Ethernet
interface to it. This should simplify similar code in ethernet drivers.
A new binding is introduced for scanning an MDIO bus, useful if the bus is
private to the Ethernet interface. We're going to try to get this binding
accepted in Linux too.
Finally the patch set updates fsl_enetc driver to use the new helper function.
This patch set supersedes v2 series:
https://patchwork.ozlabs.org/project/uboot/list/?series=124537
and v3 series:
https://patchwork.ozlabs.org/project/uboot/list/?series=140114
Changes in v4:
- rebased on current head
Changes in v3:
- added cover letter
- check for null PHY pointer before using it in dm_eth_connect_phy_handle
- moved the code dealing with MDIO scanning into a separate patch
- renames several arguments and variables for a bit more clarity and
consistency
Changes in v2:
- Moved MDIO scan code into dm_mdio_phy_scan which is also exported
- Use interface instead of if_type for consistency
- don't use phy pointer if NULL in fsl_enetc code
Alex Marginean (5):
net: mdio-uclass: rename arguments of dm_mdio_phy_connect for
consistency
net: mdio-uclass: add dm_eth_phy_connect helper function
net: mdio-uclass: Add helper functions for scanning the MDIO bus
doc: bindings: add mdio-handle property to ethernet nodes
drivers: net: fsl_enetc: use the new MDIO DM helper functions
doc/device-tree-bindings/net/ethernet.txt | 2 +
drivers/net/fsl_enetc.c | 52 ++------
drivers/net/fsl_enetc.h | 1 +
include/miiphy.h | 32 ++++-
net/mdio-uclass.c | 139 +++++++++++++++++++++-
5 files changed, 175 insertions(+), 51 deletions(-)
--
2.17.1
next reply other threads:[~2019-11-14 15:04 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-14 15:04 Alex Marginean [this message]
2019-11-14 15:04 ` [U-Boot] [PATCH v4 1/5] net: mdio-uclass: rename arguments of dm_mdio_phy_connect for clarity Alex Marginean
2019-11-14 15:04 ` [U-Boot] [PATCH v4 2/5] net: mdio-uclass: add dm_eth_phy_connect helper function Alex Marginean
2019-11-14 15:04 ` [U-Boot] [PATCH v4 3/5] net: mdio-uclass: Add helper functions for scanning the MDIO bus Alex Marginean
2019-11-14 15:04 ` [U-Boot] [PATCH v4 4/5] doc: bindings: add mdio-handle property to ethernet nodes Alex Marginean
2019-11-18 19:11 ` Grygorii Strashko
2019-11-18 23:31 ` Alexandru Marginean
2019-11-19 18:58 ` Grygorii Strashko
2019-11-20 9:51 ` Grygorii Strashko
2019-11-21 10:36 ` Alexandru Marginean
2019-11-21 12:30 ` Grygorii Strashko
2019-11-22 9:49 ` Alexandru Marginean
2019-11-14 15:04 ` [U-Boot] [PATCH v4 5/5] drivers: net: fsl_enetc: use the new MDIO DM helper functions Alex Marginean
2019-11-14 17:41 ` [U-Boot] [PATCH v4 0/5] Add helper function for linking a DM Eth device to a PHY Michael Walle
2019-11-14 18:19 ` Alexandru Marginean
2019-11-14 19:10 ` Alexandru Marginean
2019-11-24 0:02 ` Michael Walle
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191114150447.29804-1-alexandru.marginean@nxp.com \
--to=alexandru.marginean@nxp.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.