devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC net-next 0/2] DSA driver draft for MaxLinear's gsw1xx series switch
@ 2022-10-25 13:52 Camel Guo
  2022-10-25 13:52 ` [RFC net-next 1/2] dt-bindings: net: dsa: add bindings for GSW Series switches Camel Guo
  2022-10-25 13:52 ` [RFC net-next 2/2] net: dsa: Add driver for Maxlinear GSW1XX switch Camel Guo
  0 siblings, 2 replies; 21+ messages in thread
From: Camel Guo @ 2022-10-25 13:52 UTC (permalink / raw)
  To: Andrew Lunn, Camel Guo, David S. Miller, Eric Dumazet,
	Florian Fainelli, Jakub Kicinski, Krzysztof Kozlowski,
	Paolo Abeni, Rob Herring, Russell King, Vivien Didelot,
	Vladimir Oltean
  Cc: devicetree, linux-kernel, netdev, Rob Herring, kernel

Hi netdev,

Recently I had been working on implementing DSA driver for MaxLinear GSW145
switch. Here is my initial draft. Before proceeding futher, I am hoping to
get comments and cooperation as early/many as possible.

On my hand, I have an arm64 board with one GSW145 chip being connected via
MDIO management interface. According to the public datasheet of GSW145, the
chip itself on my board is in self-start (PS_NOWAIT=1b), managed switch
(PS_OP_MD=11) mode. On this board, only two slave ethernet ports (port0,
port1) of this chip are enabled.

As its datasheet says, this chip supports MDIO, SPI, UART management
interfaces in many operation modes (self-start/non-self-start,
managed/standalone). Unfortunately it is impossible for me to run this
draft on all of these combinations. It will be very helpful if anyone can
help to run it on different hardware setups and send the feedback back to
me.

I also noticed that lantiq_gswip.c looks similar as gsw145. I have no
access to the datasheet of the chip this file supports. Maybe they can be
merged together.

Best Regards
Camel Guo

Camel Guo (2):
  dt-bindings: net: dsa: add bindings for GSW Series switches
  net: dsa: Add driver for Maxlinear GSW1XX switch

 .../devicetree/bindings/net/dsa/mxl,gsw.yaml  | 140 +++
 .../devicetree/bindings/vendor-prefixes.yaml  |   2 +
 MAINTAINERS                                   |   9 +
 drivers/net/dsa/Kconfig                       |  16 +
 drivers/net/dsa/Makefile                      |   2 +
 drivers/net/dsa/gsw1xx.h                      |  27 +
 drivers/net/dsa/gsw1xx_core.c                 | 823 ++++++++++++++++++
 drivers/net/dsa/gsw1xx_mdio.c                 | 128 +++
 8 files changed, 1147 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/net/dsa/mxl,gsw.yaml
 create mode 100644 drivers/net/dsa/gsw1xx.h
 create mode 100644 drivers/net/dsa/gsw1xx_core.c
 create mode 100644 drivers/net/dsa/gsw1xx_mdio.c


base-commit: 6143eca3578f486e4d58fe6fb5e96a5699c86fbc
-- 
2.30.2


^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2022-10-28  4:41 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-25 13:52 [RFC net-next 0/2] DSA driver draft for MaxLinear's gsw1xx series switch Camel Guo
2022-10-25 13:52 ` [RFC net-next 1/2] dt-bindings: net: dsa: add bindings for GSW Series switches Camel Guo
2022-10-25 14:27   ` Krzysztof Kozlowski
2022-10-25 15:01     ` Andrew Lunn
2022-10-25 19:00       ` Krzysztof Kozlowski
     [not found]     ` <d0179725-0730-5826-caa4-228469d3bad4@axis.com>
2022-10-27 12:46       ` Krzysztof Kozlowski
2022-10-27 13:57         ` Vladimir Oltean
2022-10-27 16:08           ` Krzysztof Kozlowski
2022-10-27 16:12             ` Vladimir Oltean
2022-10-25 20:05   ` Rob Herring
2022-10-27 15:41   ` Vladimir Oltean
2022-10-25 13:52 ` [RFC net-next 2/2] net: dsa: Add driver for Maxlinear GSW1XX switch Camel Guo
2022-10-25 14:23   ` Krzysztof Kozlowski
2022-10-25 14:56     ` Andrew Lunn
2022-10-27  6:35       ` Camel Guo
2022-10-27 12:09         ` Andrew Lunn
     [not found]     ` <55da4718-4422-745a-8880-95adc8e0abd9@axis.com>
2022-10-27 12:48       ` Krzysztof Kozlowski
2022-10-25 14:53   ` Andrew Lunn
     [not found]     ` <a04fc8bd-e18e-c300-8300-7cba8fe33557@axis.com>
2022-10-27 12:20       ` Andrew Lunn
2022-10-27 16:00   ` Vladimir Oltean
2022-10-28  4:41   ` Arun.Ramadoss

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