devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/4] net: stmmac: Detect PHY location with phy-is-integrated
@ 2017-08-18 12:21 Corentin Labbe
  2017-08-18 12:21 ` [PATCH v3 1/4] ARM: dts: sunxi: h3/h5: represent the mdio switch used by sun8i-h3-emac Corentin Labbe
                   ` (3 more replies)
  0 siblings, 4 replies; 36+ messages in thread
From: Corentin Labbe @ 2017-08-18 12:21 UTC (permalink / raw)
  To: robh+dt, mark.rutland, linux, maxime.ripard, wens,
	peppe.cavallaro, alexandre.torgue
  Cc: devicetree, linux-arm-kernel, linux-kernel, netdev,
	Corentin Labbe

Hello

The current way to find if the PHY is internal is to compare DT phy-mode
and emac_variant/internal_phy.
But it will negate a possible future SoC where an external PHY use the
same phy mode than the integrated one.

This patchs series adds a new way to find if the PHY is integrated, via
the phy-is-integrated DT property.

Since it exists both integrated and external ethernet-phy@1, they are merged in
the final DTB and so share all properties.
For avoiding this, and better represent the reality, we use a MDIO mux.

Note that sun8i-v3s-emac have also an integrated PHY, but since it lacks
any external PHY support, it is not necessary to add MDIO mux to it.

The first patch should go via the sunxi tree.
Note that this serie will need backporting the patch
"Documentation: net: phy: Add phy-is-integrated binding" which is in net-next

Thanks
Regards

Changes since v2:
- Add a MDIO mux for creating distinction between integrated and external MDIO.
- phy-is-integrated is not set in dtsi.

Changes since v1:
- Dropped phy-is-integrated documentation patch since another same patch was already merged
- Moved phy-is-integrated from SoC dtsi to final board DT.

Corentin Labbe (4):
  ARM: dts: sunxi: h3/h5: represent the mdio switch used by
    sun8i-h3-emac
  net: stmmac: dwmac-sun8i: choose internal PHY via phy-is-integrated
  net: stmmac: register parent MDIO node for sun8i-h3-emac
  dt-bindings: net: dwmac-sun8i: update documentation about integrated
    PHY

 .../devicetree/bindings/net/dwmac-sun8i.txt        | 112 +++++++++++++++++++--
 arch/arm/boot/dts/sunxi-h3-h5.dtsi                 |  28 +++++-
 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c  |  16 +--
 .../net/ethernet/stmicro/stmmac/stmmac_platform.c  |  12 ++-
 4 files changed, 146 insertions(+), 22 deletions(-)

-- 
2.13.0

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

end of thread, other threads:[~2017-08-25 13:26 UTC | newest]

Thread overview: 36+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-18 12:21 [PATCH v3 0/4] net: stmmac: Detect PHY location with phy-is-integrated Corentin Labbe
2017-08-18 12:21 ` [PATCH v3 1/4] ARM: dts: sunxi: h3/h5: represent the mdio switch used by sun8i-h3-emac Corentin Labbe
2017-08-18 12:21 ` [PATCH v3 2/4] net: stmmac: dwmac-sun8i: choose internal PHY via phy-is-integrated Corentin Labbe
2017-08-18 16:58   ` Chen-Yu Tsai
2017-08-22 16:40   ` Florian Fainelli
2017-08-18 12:21 ` [PATCH v3 3/4] net: stmmac: register parent MDIO node for sun8i-h3-emac Corentin Labbe
2017-08-18 17:05   ` Chen-Yu Tsai
2017-08-19 18:50     ` Corentin Labbe
2017-08-19 20:38       ` Andrew Lunn
     [not found]         ` <20170819203836.GA21567-g2DYL2Zd6BY@public.gmane.org>
2017-08-20  6:57           ` Corentin Labbe
2017-08-20 14:25             ` Andrew Lunn
2017-08-21  8:10               ` Chen-Yu Tsai
2017-08-21 13:20                 ` Andrew Lunn
2017-08-21 13:31                   ` Maxime Ripard
     [not found]                     ` <20170821133104.qvrhvwin2rdg4aqo-ZC1Zs529Oq4@public.gmane.org>
2017-08-21 14:23                       ` Andrew Lunn
2017-08-22  7:59                         ` Corentin Labbe
     [not found]                         ` <20170821142321.GE1703-g2DYL2Zd6BY@public.gmane.org>
2017-08-22 15:39                           ` Chen-Yu Tsai
     [not found]                             ` <CAGb2v64E4T=1ff3POGuXZA=MvjGAnKQ6OF6A3sT_cU-=jh6zNw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-08-22 16:40                               ` Florian Fainelli
2017-08-22 18:11                                 ` Corentin Labbe
2017-08-22 18:35                                   ` Florian Fainelli
2017-08-22 19:37                                     ` Corentin Labbe
2017-08-23  7:49                                     ` Maxime Ripard
2017-08-23 16:31                                       ` Florian Fainelli
2017-08-24  8:12                                         ` Maxime Ripard
2017-08-24  8:21                                         ` Corentin Labbe
2017-08-24 19:44                                           ` Corentin Labbe
2017-08-24 19:59                                           ` Florian Fainelli
2017-08-25  2:54                                             ` Chen-Yu Tsai
     [not found]                                               ` <CAGb2v64jrDPSff+QL_PQBMaQJ+CcTVbskjuOUd1OqR4smbu+ig-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-08-25  3:05                                                 ` Florian Fainelli
     [not found]                                                   ` <77ff97c1-9d0a-8b3f-d0b9-25c951f86fec-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-08-25  3:41                                                     ` Chen-Yu Tsai
2017-08-25  3:59                                                       ` Florian Fainelli
2017-08-25 13:26                                                         ` Andrew Lunn
2017-08-22 16:50                               ` Maxime Ripard
2017-08-18 12:21 ` [PATCH v3 4/4] dt-bindings: net: dwmac-sun8i: update documentation about integrated PHY Corentin Labbe
2017-08-18 16:57   ` Chen-Yu Tsai
2017-08-19 18:33     ` Corentin Labbe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).