[PATCH v3 1/2] dt-bindings: net: Add bindings for mdio mux consumers

2019-02-24 Thread Pankaj Bansal
When we use the bindings defined in Documentation/devicetree/bindings/mux to define mdio mux in producer and consumer terms, it results in two devices. one is mux producer and other is mux consumer. Add the bindings needed for Mdio mux consumer devices. Signed-off-by: Pankaj Bansal --- Notes

[PATCH v3 2/2] drivers: net: phy: mdio-mux: Add support for Generic Mux controls

2019-02-24 Thread Pankaj Bansal
Add support for Generic Mux controls, when Mdio mux node is a consumer of mux produced by some other device. Signed-off-by: Pankaj Bansal --- Notes: V3: - Avoid recast from platform_get_drvdata - Check mux_control_deselect output in switch_fn - rearrange swithc_fn code to reduce

[PATCH v2 2/2] drivers: net: phy: mdio-mux: Add support for Generic Mux controls

2019-02-24 Thread Pankaj Bansal
Add support for Generic Mux controls, when Mdio mux node is a consumer of mux produced by some other device. Signed-off-by: Pankaj Bansal --- Notes: V2: - Moved the changes from mdio-mux module to new module mdio-mux-multiplexer - defined new CONFIG - using new compatible "

[PATCH v2 1/2] dt-bindings: net: Add bindings for mdio mux consumers

2019-02-24 Thread Pankaj Bansal
When we use the bindings defined in Documentation/devicetree/bindings/mux to define mdio mux in producer and consumer terms, it results in two devices. one is mux producer and other is mux consumer. Add the bindings needed for Mdio mux consumer devices. Signed-off-by: Pankaj Bansal --- Notes

RE: [PATCH] drivers: net: phy: mdio-mux: Add support for Generic Mux controls

2019-02-21 Thread Pankaj Bansal
> -Original Message- > From: Andrew Lunn [mailto:and...@lunn.ch] > Sent: Thursday, 21 February, 2019 07:12 PM > To: Pankaj Bansal > Cc: Leo Li ; Peter Rosin ; Florian > Fainelli ; Heiner Kallweit ; > netdev@vger.kernel.org > Subject: Re: [PATCH] drivers: net: ph

RE: [PATCH] dt-bindings: Add bindings for mdio mux consumers

2019-02-21 Thread Pankaj Bansal
> -Original Message- > From: Andrew Lunn [mailto:and...@lunn.ch] > Sent: Thursday, 21 February, 2019 07:15 PM > To: Pankaj Bansal > Cc: Leo Li ; Peter Rosin ; Florian > Fainelli ; Heiner Kallweit ; Rob > Herring ; Mark Rutland ; > devicet...@vger.kernel.org

[PATCH] drivers: net: phy: mdio-mux: Add support for Generic Mux controls

2019-02-21 Thread Pankaj Bansal
Add support for Generic Mux controls, when Mdio mux node is a consumer of mux produced by some other device. Signed-off-by: Pankaj Bansal --- drivers/net/phy/Kconfig| 1 + drivers/net/phy/mdio-mux.c | 81 2 files changed, 82 insertions(+) diff --git a

[PATCH] dt-bindings: Add bindings for mdio mux consumers

2019-02-21 Thread Pankaj Bansal
When we use the bindings defined in Documentation/devicetree/bindings/mux to define mdio mux in producer and consumer terms, it results in two devices. one is mux producer and other is mux consumer. Add the bindings needed for Mdio mux consumer devices. Signed-off-by: Pankaj Bansal

RE: [PATCH v3] arm64: dts: lx2160aqds: Add mdio mux nodes

2019-02-17 Thread Pankaj Bansal
> -Original Message- > From: Li Yang [mailto:leoyang...@nxp.com] > Sent: Friday, 15 February, 2019 04:03 AM > To: Pankaj Bansal ; Rob Herring > Cc: Shawn Guo ; Andrew Lunn ; > Florian Fainelli ; netdev@vger.kernel.org; linux-arm- > ker...@lists.infradead.org >

RE: [PATCH v3] arm64: dts: lx2160aqds: Add mdio mux nodes

2019-02-11 Thread Pankaj Bansal
> -Original Message- > From: Leo Li > Sent: Tuesday, 12 February, 2019 02:14 AM > To: Shawn Guo ; Pankaj Bansal > > Cc: Andrew Lunn ; Florian Fainelli ; > netdev@vger.kernel.org; linux-arm-ker...@lists.infradead.org > Subject: RE: [PATCH v3] arm64: dts: lx2160

RE: [PATCH v2] arm64: dts: lx2160aqds: Add mdio mux nodes

2019-02-06 Thread Pankaj Bansal
> -Original Message- > From: Li Yang [mailto:leoyang...@nxp.com] > Sent: Thursday, 7 February, 2019 05:09 AM > To: Andrew Lunn > Cc: Pankaj Bansal ; Shawn Guo > ; Florian Fainelli ; > netdev@vger.kernel.org; linux-arm-ker...@lists.infradead.org; Rob Herring >

[PATCH v3] arm64: dts: lx2160aqds: Add mdio mux nodes

2019-02-06 Thread Pankaj Bansal
to the onboard RGMII phy devices. The mdio1 is controlled by bits 4-7 of fpga register and mdio2 is controlled by bits 0-3 of fpga register. Signed-off-by: Pankaj Bansal --- Notes: V3: - Add status = disabled in soc file and status = okay in board file for external MDIO nodes

[PATCH v4 1/2] dt-bindings: net: add MDIO bus multiplexer driven by a regmap device

2019-02-05 Thread Pankaj Bansal
Add support for an MDIO bus multiplexer controlled by a regmap device, like an FPGA. Tested on a NXP LX2160AQDS board which uses the "QIXIS" FPGA attached to the i2c bus. Signed-off-by: Pankaj Bansal --- Notes: V4: - No change V3: - No change V2: - New file

[PATCH v4 2/2] netdev/phy: add MDIO bus multiplexer driven by a regmap

2019-02-05 Thread Pankaj Bansal
Add support for an MDIO bus multiplexer controlled by a regmap device, like an FPGA. Tested on a NXP LX2160AQDS board which uses the "QIXIS" FPGA attached to the i2c bus. Signed-off-by: Pankaj Bansal --- Notes: V4: - Use IS_ENABLED macro in mdio-mux.h V3: - make the r

[PATCH v4 0/2] add MDIO bus multiplexer driven by a regmap device

2019-02-05 Thread Pankaj Bansal
2380.html V2: - https://www.mail-archive.com/netdev@vger.kernel.org/msg282176.html 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 multiplexe

RE: [PATCH v2] arm64: dts: lx2160aqds: Add mdio mux nodes

2019-02-05 Thread Pankaj Bansal
> -Original Message- > From: Li Yang [mailto:leoyang...@nxp.com] > Sent: Wednesday, 6 February, 2019 12:07 AM > To: Pankaj Bansal > Cc: Shawn Guo ; Andrew Lunn ; > Florian Fainelli ; netdev@vger.kernel.org; linux-arm- > ker...@lists.infradead.org > Subject: R

RE: [PATCH v2] arm64: dts: lx2160aqds: Add mdio mux nodes

2019-02-05 Thread Pankaj Bansal
Hi Shawn/Leo, If you have no more comments, can you please merge this path in your branch? in same branch in which you have accepted LX2160AQDS board patches. Regards, Pankaj Bansal > -Original Message- > From: David Miller [mailto:da...@davemloft.net] > Sent: Monday, 4 Febru

[PATCH v3 2/2] netdev/phy: add MDIO bus multiplexer driven by a regmap

2019-02-05 Thread Pankaj Bansal
Add support for an MDIO bus multiplexer controlled by a regmap device, like an FPGA. Tested on a NXP LX2160AQDS board which uses the "QIXIS" FPGA attached to the i2c bus. Signed-off-by: Pankaj Bansal --- Notes: V3: - make the return type of uninit function to void - r

[PATCH v3 1/2] dt-bindings: net: add MDIO bus multiplexer driven by a regmap device

2019-02-05 Thread Pankaj Bansal
Add support for an MDIO bus multiplexer controlled by a regmap device, like an FPGA. Tested on a NXP LX2160AQDS board which uses the "QIXIS" FPGA attached to the i2c bus. Signed-off-by: Pankaj Bansal --- Notes: V3: - No change V2: - New file describing the device tre

[PATCH v3 0/2] add MDIO bus multiplexer driven by a regmap device

2019-02-05 Thread Pankaj Bansal
2176.html 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 + dri

RE: [PATCH v2 2/2] netdev/phy: add MDIO bus multiplexer driven by a regmap

2019-02-04 Thread Pankaj Bansal
defined if CONFIG_MDIO_BUS_MUX_REGMAP Is NOT defined. BUT it is defined as " CONFIG_MDIO_BUS_MUX_REGMAP = m" Can you please help me to solve this? Regards, Pankaj Bansal > -Original Message- > From: kbuild test robot [mailto:l...@intel.com] > Sent: Monday, 4 February, 2019 08:22

[PATCH v2 2/2] netdev/phy: add MDIO bus multiplexer driven by a regmap

2019-02-04 Thread Pankaj Bansal
Add support for an MDIO bus multiplexer controlled by a regmap device, like an FPGA. Tested on a NXP LX2160AQDS board which uses the "QIXIS" FPGA attached to the i2c bus. Signed-off-by: Pankaj Bansal --- Notes: V2: - Added Kconfig entry for regmap based mdio mux - re

[PATCH v2 1/2] dt-bindings: net: add MDIO bus multiplexer driven by a regmap device

2019-02-04 Thread Pankaj Bansal
Add support for an MDIO bus multiplexer controlled by a regmap device, like an FPGA. Tested on a NXP LX2160AQDS board which uses the "QIXIS" FPGA attached to the i2c bus. Signed-off-by: Pankaj Bansal --- Notes: V2: - New file describing the device tree bindings for regmap

[PATCH v2 0/2] add MDIO bus multiplexer driven by a regmap device

2019-02-04 Thread Pankaj Bansal
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 --- Notes: V1: - https://www.spinics.net/lists/netdev/msg548027.html Pankaj Bansal (2): d

[PATCH v2] arm64: dts: lx2160aqds: Add mdio mux nodes

2019-02-04 Thread Pankaj Bansal
to the onboard RGMII phy devices. The mdio1 is controlled by bits 4-7 of fpga register and mdio2 is controlled by bits 0-3 of fpga register. Signed-off-by: Pankaj Bansal --- Notes: V2: - removed unnecassary TODO statements - removed device_type from mdio nodes - change the case

RE: [PATCH 0/1] add MDIO bus multiplexer driven by a regmap device

2019-02-01 Thread Pankaj Bansal
> -Original Message- > From: Andrew Lunn [mailto:and...@lunn.ch] > Sent: Wednesday, 30 January, 2019 08:53 PM > To: Pankaj Bansal > Cc: Florian Fainelli ; netdev@vger.kernel.org; Varun > Sethi > > Subject: Re: [PATCH 0/1] add MDIO bus multiplexer driven by a r

[PATCH 0/1] add MDIO bus multiplexer driven by a regmap device

2019-01-30 Thread Pankaj Bansal
operty 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 Pankaj Bansal (1): netdev/phy: add MDIO bus multiplexer driven by a regmap drivers/net/phy/Mak

[PATCH 1/1] netdev/phy: add MDIO bus multiplexer driven by a regmap

2019-01-30 Thread Pankaj Bansal
Add support for an MDIO bus multiplexer controlled by a regmap device, like an FPGA. Tested on a NXP LX2160AQDS board which uses the "QIXIS" FPGA attached to the i2c bus. Signed-off-by: Pankaj Bansal --- drivers/net/phy/Makefile | 2 +- drivers/net/phy/mdio-mux-regm

RE: [PATCH] arm64: dts: lx2160aqds: Add mdio mux nodes

2019-01-30 Thread Pankaj Bansal
HI Shawn/Leo, Can you please review this patch and include it in your tree ? Regards, Pankaj Bansal -Original Message- From: Pankaj Bansal [mailto:pankaj.ban...@nxp.com] Sent: Thursday, 15 November, 2018 05:42 PM To: Shawn Guo ; Leo Li ; Andrew Lunn ; Florian Fainelli Cc: netdev

[PATCH] arm64: dts: lx2160aqds: Add mdio mux nodes

2018-11-15 Thread Pankaj Bansal
to the onboard RGMII phy devices. The mdio1 is controlled by bits 4-7 of fpga register and mdio2 is controlled by bits 0-3 of fpga register. Signed-off-by: Pankaj Bansal --- Notes: This patch depends on following patches: [1]https://patchwork.kernel.org/cover/10658863/ [2]https

RE: [RFC] arm64: dts: lx2160aqds: Add mdio mux nodes

2018-10-24 Thread Pankaj Bansal
es the bit mask that is used to select the bits from that register for a bus. Any better alternatives? Regards, Pankaj Bansal -Original Message----- From: Pankaj Bansal Sent: Wednesday, October 24, 2018 6:35 PM To: Pankaj Bansal Subject: [RFC] arm64: dts: lx2160aqds: Add mdio mux nodes The tw

RE: [PATCH v2 1/2] dt-bindings: net: add MDIO bus multiplexer driven by a regmap device

2018-10-21 Thread Pankaj Bansal
> -Original Message- > From: Pankaj Bansal > Sent: Thursday, October 18, 2018 10:00 AM > To: Florian Fainelli ; Andrew Lunn > Cc: netdev@vger.kernel.org > Subject: RE: [PATCH v2 1/2] dt-bindings: net: add MDIO bus multiplexer driven > by > a regma

RE: [PATCH v2 2/2] netdev/phy: add MDIO bus multiplexer driven by a regmap

2018-10-17 Thread Pankaj Bansal
> -Original Message- > From: Florian Fainelli [mailto:f.faine...@gmail.com] > Sent: Sunday, October 7, 2018 11:39 PM > To: Pankaj Bansal ; Andrew Lunn > Cc: netdev@vger.kernel.org > Subject: Re: [PATCH v2 2/2] netdev/phy: add MDIO bus multiplexer driven by a > regma

RE: [PATCH v2 1/2] dt-bindings: net: add MDIO bus multiplexer driven by a regmap device

2018-10-17 Thread Pankaj Bansal
Hi Florian > -Original Message- > From: Florian Fainelli [mailto:f.faine...@gmail.com] > Sent: Sunday, October 7, 2018 11:32 PM > To: Pankaj Bansal ; Andrew Lunn > Cc: netdev@vger.kernel.org > Subject: Re: [PATCH v2 1/2] dt-bindings: net: add MDIO bus multiplexer drive

[PATCH v2 2/2] netdev/phy: add MDIO bus multiplexer driven by a regmap

2018-10-07 Thread Pankaj Bansal
Add support for an MDIO bus multiplexer controlled by a regmap device, like an FPGA. Tested on a NXP LX2160AQDS board which uses the "QIXIS" FPGA attached to the i2c bus. Signed-off-by: Pankaj Bansal --- Notes: V2: - replaced be32_to_cpup with of_property_read_u32 - in

[PATCH v2 1/2] dt-bindings: net: add MDIO bus multiplexer driven by a regmap device

2018-10-07 Thread Pankaj Bansal
Add support for an MDIO bus multiplexer controlled by a regmap device, like an FPGA. Tested on a NXP LX2160AQDS board which uses the "QIXIS" FPGA attached to the i2c bus. Signed-off-by: Pankaj Bansal --- Notes: V2: - Fixed formatting error caused by using space inst

[PATCH v2 0/2] add MDIO bus multiplexer driven by a regmap device

2018-10-07 Thread Pankaj Bansal
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): d

RE: [PATCH 2/2] netdev/phy: add MDIO bus multiplexer driven by a regmap

2018-10-04 Thread Pankaj Bansal
Hi Andrew > -Original Message- > From: Andrew Lunn [mailto:and...@lunn.ch] > Sent: Friday, October 5, 2018 9:22 AM > To: Pankaj Bansal > Cc: Florian Fainelli ; netdev@vger.kernel.org; > Alexandru Marginean > Subject: Re: [PATCH 2/2] netdev/phy: add MDIO bus mu

RE: [PATCH 1/2] dt-bindings: net: add MDIO bus multiplexer driven by a regmap device

2018-10-04 Thread Pankaj Bansal
Hi Andrew > -Original Message- > From: Andrew Lunn [mailto:and...@lunn.ch] > Sent: Friday, October 5, 2018 8:38 AM > To: Pankaj Bansal > Cc: Florian Fainelli ; netdev@vger.kernel.org; > Alexandru Marginean > Subject: Re: [PATCH 1/2] dt-bindings: net: add MDIO bus mu