Skip to content

netdev/of/phy: MDIO bus multiplexer support.

David Daney linux-devicetree linux-mips linuxppc-dev lkml netdev 4 versions – Applied

Status from this message: Applied.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest3 patches 11 repliesApplied
  2. v53 patches 4 repliesSuperseded
  3. v43 patches 3 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v33 patches1 replySuperseded

Patches in v6 Applied

#Subject and filesSizeRepliesApplied
1/3netdev/of/phy: New function: of_mdio_find_bus().drivers/net/phy/mdio_bus.c drivers/of/of_mdio.c include/linux/of_mdio.h+36 -01 reply
2/3netdev/of/phy: Add MDIO bus multiplexer support.Documentation/devicetree/bindings/net/mdio-mux.txt drivers/net/phy/Kconfig drivers/net/phy/Makefile +2 more+359 -01 reply
3/3netdev/of/phy: Add MDIO bus multiplexer driven by GPIO lines.Documentation/devicetree/bindings/net/mdio-mux-gpio.txt drivers/net/phy/Kconfig drivers/net/phy/Makefile +1 more+280 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v6 yet.

Read the v6 thread

Cover letter [PATCH v6 0/3] netdev/of/phy: MDIO bus multiplexer support.

From: David Daney <david.daney-YGCgFSpz5w/[email protected]>

This code has been working well for about six months on a couple of different configurations (boards), so I thought it would be a good time to send it out again, and I hope get it on the path towards merging.

v6: Correct Kconfig depends in 2/3 as noticed by David Miller. Test
against net-next.

v5: Correct Kconfig depends in 3/3 as noticed by David Miller.

v4: Correct some comment text and rename a couple of variables to
better reflect their purpose.

v3: Update binding to use "mdio-mux-gpio" compatible property.
Cleanups suggested by Grant Likely. Now uses the driver probe deferral mechanism if GPIOs or parent bus not available.

v2: Update bindings to use "reg" and "mdio-parent-bus" instead of
"cell-index" and "parent-bus"

v1:

We have several different boards with a multiplexer in the MDIO bus. There is an MDIO bus controller connected to a switching device with several child MDIO busses.

Everything is wired up using device tree bindings.

1/3 - New of_mdio_find_bus() function used to help configuring the
driver topology.

2/3 - MDIO bus multiplexer framework.

3/3 - A driver for a GPIO controlled multiplexer.

David Daney (3):
netdev/of/phy: New function: of_mdio_find_bus(). netdev/of/phy: Add MDIO bus multiplexer support. netdev/of/phy: Add MDIO bus multiplexer driven by GPIO lines.

 .../devicetree/bindings/net/mdio-mux-gpio.txt      |  127 +++++++++++++
 Documentation/devicetree/bindings/net/mdio-mux.txt |  136 ++++++++++++++
 drivers/net/phy/Kconfig                            |   19 ++
 drivers/net/phy/Makefile                           |    2 +
 drivers/net/phy/mdio-mux-gpio.c                    |  142 +++++++++++++++
 drivers/net/phy/mdio-mux.c                         |  192 ++++++++++++++++++++
 drivers/net/phy/mdio_bus.c                         |   32 ++++
 drivers/of/of_mdio.c                               |    2 +
 include/linux/mdio-mux.h                           |   21 ++
 include/linux/of_mdio.h                            |    2 +
 10 files changed, 675 insertions(+), 0 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/net/mdio-mux-gpio.txt
 create mode 100644 Documentation/devicetree/bindings/net/mdio-mux.txt
 create mode 100644 drivers/net/phy/mdio-mux-gpio.c
 create mode 100644 drivers/net/phy/mdio-mux.c
 create mode 100644 include/linux/mdio-mux.h
Signature · 1 line
1.7.2.3