mbox series

[v1,0/4] microchip: add support for ksz88x3 driver family

Message ID 20191107110030.25199-1-m.grzeschik@pengutronix.de
Headers show
Series microchip: add support for ksz88x3 driver family | expand

Message

Michael Grzeschik Nov. 7, 2019, 11 a.m. UTC
This series adds support for the ksz88x3 driver family to the 
dsa based ksz drivers. For now the ksz8863 and ksz8873 are compatible.

The driver is based on the ksz8895 RFC patch from Tristam Ha: 

https://patchwork.ozlabs.org/patch/822712/

And the latest version of the ksz8863.h from Microchip:

https://raw.githubusercontent.com/Microchip-Ethernet/UNG8071_old_1.10/master/KSZ/linux-drivers/ksz8863/linux-3.14/drivers/net/ethernet/micrel/ksz8863.h

Michael Grzeschik (4):
  mdio-bitbang: add SMI0 mode support
  net: tag: ksz: Add KSZ8863 tag code
  ksz: Add Microchip KSZ8863 SMI-DSA driver
  dt-bindings: net: dsa: document additional Microchip KSZ8863/8873
    switch

 .../devicetree/bindings/net/dsa/ksz.txt       |    2 +
 drivers/net/dsa/microchip/Kconfig             |   16 +
 drivers/net/dsa/microchip/Makefile            |    2 +
 drivers/net/dsa/microchip/ksz8863.c           | 1038 +++++++++++++++++
 drivers/net/dsa/microchip/ksz8863_reg.h       |  605 ++++++++++
 drivers/net/dsa/microchip/ksz8863_smi.c       |  166 +++
 drivers/net/dsa/microchip/ksz_common.h        |    1 +
 drivers/net/phy/mdio-bitbang.c                |   21 +
 include/linux/phy.h                           |    2 +
 include/net/dsa.h                             |    2 +
 net/dsa/tag_ksz.c                             |   60 +
 11 files changed, 1915 insertions(+)
 create mode 100644 drivers/net/dsa/microchip/ksz8863.c
 create mode 100644 drivers/net/dsa/microchip/ksz8863_reg.h
 create mode 100644 drivers/net/dsa/microchip/ksz8863_smi.c

Comments

Michael Grzeschik Nov. 7, 2019, 3:36 p.m. UTC | #1
On Thu, Nov 07, 2019 at 12:00:26PM +0100, Michael Grzeschik wrote:
> This series adds support for the ksz88x3 driver family to the 
> dsa based ksz drivers. For now the ksz8863 and ksz8873 are compatible.
> 
> The driver is based on the ksz8895 RFC patch from Tristam Ha: 
> 
> https://patchwork.ozlabs.org/patch/822712/
> 
> And the latest version of the ksz8863.h from Microchip:
> 
> https://raw.githubusercontent.com/Microchip-Ethernet/UNG8071_old_1.10/master/KSZ/linux-drivers/ksz8863/linux-3.14/drivers/net/ethernet/micrel/ksz8863.h

After reviewing the code with my colleague, we found out this core is
not very different to the already mainlined ksz8795. So it will be
easier to port the ksz8863 specific changes into that driver.

I will give it a try.

> Michael Grzeschik (4):
>   mdio-bitbang: add SMI0 mode support
>   net: tag: ksz: Add KSZ8863 tag code
>   ksz: Add Microchip KSZ8863 SMI-DSA driver
>   dt-bindings: net: dsa: document additional Microchip KSZ8863/8873
>     switch
> 
>  .../devicetree/bindings/net/dsa/ksz.txt       |    2 +
>  drivers/net/dsa/microchip/Kconfig             |   16 +
>  drivers/net/dsa/microchip/Makefile            |    2 +
>  drivers/net/dsa/microchip/ksz8863.c           | 1038 +++++++++++++++++
>  drivers/net/dsa/microchip/ksz8863_reg.h       |  605 ++++++++++
>  drivers/net/dsa/microchip/ksz8863_smi.c       |  166 +++
>  drivers/net/dsa/microchip/ksz_common.h        |    1 +
>  drivers/net/phy/mdio-bitbang.c                |   21 +
>  include/linux/phy.h                           |    2 +
>  include/net/dsa.h                             |    2 +
>  net/dsa/tag_ksz.c                             |   60 +
>  11 files changed, 1915 insertions(+)
>  create mode 100644 drivers/net/dsa/microchip/ksz8863.c
>  create mode 100644 drivers/net/dsa/microchip/ksz8863_reg.h
>  create mode 100644 drivers/net/dsa/microchip/ksz8863_smi.c
> 
> -- 
> 2.24.0.rc1
> 
> 
>