From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pankaj Bansal Subject: [PATCH v2 0/2] add MDIO bus multiplexer driven by a regmap device Date: Sun, 7 Oct 2018 23:54:21 +0530 Message-ID: <20181007182423.7342-1-pankaj.bansal@nxp.com> References: <20181005082926.27845-1-pankaj.bansal@nxp.com> Mime-Version: 1.0 Content-Type: text/plain Cc: netdev@vger.kernel.org, Pankaj Bansal , Varun Sethi To: Andrew Lunn , Florian Fainelli Return-path: Received: from mail-eopbgr10080.outbound.protection.outlook.com ([40.107.1.80]:4384 "EHLO EUR02-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726519AbeJGT7z (ORCPT ); Sun, 7 Oct 2018 15:59:55 -0400 In-Reply-To: <20181005082926.27845-1-pankaj.bansal@nxp.com> Sender: netdev-owner@vger.kernel.org List-ID: Add support for an MDIO bus multiplexer controlled by a regmap device, like an FPGA. This driver is an extension of the existing driver drivers/net/phy/mdio-mux-mmioreg.c. The problem with mmioreg driver is that it can operate only on memory mapped devices. but if we have a device that controls mdio muxing and that device is controlled using i2c or spi, then it will not work. Therefore, added a driver that uses regmap device to control mdio mux. Tested on a NXP LX2160AQDS board which uses the "QIXIS" FPGA attached to the i2c bus. Cc: Varun Sethi Pankaj Bansal (2): dt-bindings: net: add MDIO bus multiplexer driven by a regmap device netdev/phy: add MDIO bus multiplexer driven by a regmap .../bindings/net/mdio-mux-regmap.txt | 95 ++++++++++ drivers/net/phy/Kconfig | 13 ++ drivers/net/phy/Makefile | 1 + drivers/net/phy/mdio-mux-regmap.c | 171 ++++++++++++++++++ 4 files changed, 280 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/mdio-mux-regmap.txt create mode 100644 drivers/net/phy/mdio-mux-regmap.c -- 2.17.1