netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
  • [parent not found: <20181005082926.27845-2-pankaj.bansal@nxp.com>]
  • * [PATCH v2 0/2] add MDIO bus multiplexer driven by a regmap device
           [not found] <20181005082926.27845-1-pankaj.bansal@nxp.com>
           [not found] ` <20181005082926.27845-3-pankaj.bansal@nxp.com>
           [not found] ` <20181005082926.27845-2-pankaj.bansal@nxp.com>
    @ 2018-10-07 18:24 ` Pankaj Bansal
      2018-10-07 18:24   ` [PATCH v2 1/2] dt-bindings: net: " Pankaj Bansal
      2018-10-07 18:24   ` [PATCH v2 2/2] netdev/phy: add MDIO bus multiplexer driven by a regmap Pankaj Bansal
      2 siblings, 2 replies; 16+ messages in thread
    From: Pankaj Bansal @ 2018-10-07 18:24 UTC (permalink / raw)
      To: Andrew Lunn, Florian Fainelli; +Cc: netdev, Pankaj Bansal, Varun Sethi
    
    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 <V.Sethi@nxp.com>
    
    
    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
    
    ^ permalink raw reply	[flat|nested] 16+ messages in thread
  • * [PATCH v2 0/2] add MDIO bus multiplexer driven by a regmap device
    @ 2019-02-04  8:59 Pankaj Bansal
      2019-02-04  8:59 ` [PATCH v2 2/2] netdev/phy: add MDIO bus multiplexer driven by a regmap Pankaj Bansal
      0 siblings, 1 reply; 16+ messages in thread
    From: Pankaj Bansal @ 2019-02-04  8:59 UTC (permalink / raw)
      To: Andrew Lunn, Florian Fainelli
      Cc: netdev@vger.kernel.org, Pankaj Bansal, Varun Sethi
    
    Add support for an MDIO bus multiplexer controlled by a regmap device,
    like an FPGA.
    
    These apis 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 apis that can be used by regmap device to control mdio mux.
    
    Tested on a NXP LX2160AQDS board which uses the "QIXIS" FPGA attached to the
    i2c bus.
    
    This is my second attempt at this.
    In my previous approach i wrote a separate driver for regmap apis.
    But then i realized that it is not meant to control a specific device.
    It is meant to control some registers of parent device.
    Therefore, IMO this should not be a Platform driver and there should not
    be any "compatible" property to which this driver is associated.
    
    The previous approach patches and discussion can be accessed here:
    https://www.mail-archive.com/netdev@vger.kernel.org/msg252744.html
    
    Cc: Varun Sethi <V.Sethi@nxp.com>
    ---
    
    Notes:
    	V1:
    	- https://www.spinics.net/lists/netdev/msg548027.html
    
    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          | 167 +++++++++++++++++
     drivers/net/phy/Kconfig                       |  14 ++
     drivers/net/phy/Makefile                      |   1 +
     drivers/net/phy/mdio-mux-regmap.c             | 171 ++++++++++++++++++
     include/linux/mdio-mux.h                      |  34 ++++
     5 files changed, 387 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
    
    
    ^ permalink raw reply	[flat|nested] 16+ messages in thread

    end of thread, other threads:[~2019-02-05  3:52 UTC | newest]
    
    Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
    -- links below jump to the message on this page --
         [not found] <20181005082926.27845-1-pankaj.bansal@nxp.com>
         [not found] ` <20181005082926.27845-3-pankaj.bansal@nxp.com>
         [not found]   ` <20181005035142.GC7715@lunn.ch>
    2018-10-05  4:31     ` [PATCH 2/2] netdev/phy: add MDIO bus multiplexer driven by a regmap Pankaj Bansal
    2018-10-05 13:53       ` Andrew Lunn
         [not found] ` <20181005082926.27845-2-pankaj.bansal@nxp.com>
         [not found]   ` <20181005030818.GB7715@lunn.ch>
    2018-10-05  4:32     ` [PATCH 1/2] dt-bindings: net: add MDIO bus multiplexer driven by a regmap device Pankaj Bansal
    2018-10-07 18:24 ` [PATCH v2 0/2] " Pankaj Bansal
    2018-10-07 18:24   ` [PATCH v2 1/2] dt-bindings: net: " Pankaj Bansal
    2018-10-07 18:01     ` Florian Fainelli
    2018-10-18  4:30       ` Pankaj Bansal
    2018-10-22  4:22         ` Pankaj Bansal
    2018-10-22 17:08           ` Florian Fainelli
    2018-10-07 18:24   ` [PATCH v2 2/2] netdev/phy: add MDIO bus multiplexer driven by a regmap Pankaj Bansal
    2018-10-07 18:08     ` Florian Fainelli
    2018-10-18  4:35       ` Pankaj Bansal
    2019-02-04  8:59 [PATCH v2 0/2] add MDIO bus multiplexer driven by a regmap device Pankaj Bansal
    2019-02-04  8:59 ` [PATCH v2 2/2] netdev/phy: add MDIO bus multiplexer driven by a regmap Pankaj Bansal
    2019-02-04 13:46   ` Andrew Lunn
    2019-02-04 14:51   ` kbuild test robot
    2019-02-05  3:52     ` Pankaj Bansal
    

    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).