From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753933Ab1I0X1s (ORCPT ); Tue, 27 Sep 2011 19:27:48 -0400 Received: from mail3.caviumnetworks.com ([12.108.191.235]:16258 "EHLO mail3.caviumnetworks.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753249Ab1I0X1J (ORCPT ); Tue, 27 Sep 2011 19:27:09 -0400 From: David Daney To: devicetree-discuss@lists.ozlabs.org, grant.likely@secretlab.ca, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, davem@davemloft.net Cc: David Daney Subject: [PATCH v2 0/3] netdev/of/phy: MDIO bus multiplexer support. Date: Tue, 27 Sep 2011 16:26:52 -0700 Message-Id: <1317166015-20714-1-git-send-email-david.daney@cavium.com> X-Mailer: git-send-email 1.7.2.3 X-OriginalArrivalTime: 27 Sep 2011 23:27:08.0749 (UTC) FILETIME=[F9C837D0:01CC7D6C] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org v2: Update bindings to use "reg" and "mdio-parent-bus" insutead 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 | 129 ++++++++++++++ Documentation/devicetree/bindings/net/mdio-mux.txt | 136 +++++++++++++++ drivers/net/phy/Kconfig | 17 ++ drivers/net/phy/Makefile | 2 + drivers/net/phy/mdio-mux-gpio.c | 143 +++++++++++++++ drivers/net/phy/mdio-mux.c | 182 ++++++++++++++++++++ drivers/net/phy/mdio_bus.c | 3 +- drivers/of/of_mdio.c | 26 +++ include/linux/mdio-mux.h | 18 ++ include/linux/of_mdio.h | 2 + include/linux/phy.h | 1 + 11 files changed, 658 insertions(+), 1 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 -- 1.7.2.3