mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/9] phy: sparx5-serdes: add support for lan969x serdes driver
@ 2024-09-06 12:52 Daniel Machon
  2024-09-06 12:52 ` [PATCH 1/9] phy: sparx5-serdes: add support for private match data Daniel Machon
                   ` (8 more replies)
  0 siblings, 9 replies; 15+ messages in thread
From: Daniel Machon @ 2024-09-06 12:52 UTC (permalink / raw)
  To: Vinod Koul, Kishon Vijay Abraham I, Lars Povlsen, Steen Hegelund,
	UNGLinuxDriver, Rob Herring, Krzysztof Kozlowski, Conor Dooley
  Cc: linux-phy, linux-arm-kernel, linux-kernel, devicetree

The lan969x switch chip (upstreaming efforts beginning soon) has ten 10G
SERDES'es which share the same features and data rates as the Sparx5 10G
SERDES'es. Lets take advantage of this and reuse the existing SERDES
driver for lan969x.

In order to do this, we add a new indirection layer to the register
macros, that takes register differences into account. Additionally, we
add driver match data for other differences that we need to handle.
These other differences are handled by a combination of constants (eg.
the number of SERDES'es), ops and if's

Patch #1 adds support for match data.

Patch #2 adds a struct to handle constants and adds a constant for the
number of SERDES'es.

Patch #3 adds a constant for the number of CMU's

Patch #4 adds a struct for ops and adds a function for setting SERDES
type.

Patch #5 adds a function for getting the number of CMU's.

Patch #6 adds register macro indirection layer.

Patch #7 adds SERDES target types (eg. Sparx5, lan969x) to be used for
branching out based on the target.

Patch #8 adds support for lan969x in the Sparx5 dt-bindings.

Patch #9 introduces the new lan969x SERDES driver.

Signed-off-by: Daniel Machon <daniel.machon@microchip.com>
---
Daniel Machon (9):
      phy: sparx5-serdes: add support for private match data
      phy: sparx5-serdes: add constants to match data
      phy: sparx5-serdes: add constant for the number of CMU's
      phy: sparx5-serdes: add ops to match data
      phy: sparx5-serdes: add function for getting the CMU index
      phy: sparx5-serdes: add indirection layer to register macros
      phy: sparx5-serdes: add support for branching on chip type
      dt-bindings: phy: sparx5: document lan969x in sparx5 dt-bindings
      phy: lan969x-serdes: add support for lan969x serdes driver

 .../bindings/phy/microchip,sparx5-serdes.yaml      |  18 +-
 drivers/phy/microchip/sparx5_serdes.c              | 195 +++++-
 drivers/phy/microchip/sparx5_serdes.h              |  44 +-
 drivers/phy/microchip/sparx5_serdes_regs.h         | 746 ++++++++++++++-------
 4 files changed, 706 insertions(+), 297 deletions(-)
---
base-commit: 221f9cce949ac8042f65b71ed1fde13b99073256
change-id: 20240822-sparx5-lan969x-serdes-driver-8389dbdd9a89

Best regards,
-- 
Daniel Machon <daniel.machon@microchip.com>


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

end of thread, other threads:[~2024-09-09 10:42 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-06 12:52 [PATCH 0/9] phy: sparx5-serdes: add support for lan969x serdes driver Daniel Machon
2024-09-06 12:52 ` [PATCH 1/9] phy: sparx5-serdes: add support for private match data Daniel Machon
2024-09-06 12:52 ` [PATCH 2/9] phy: sparx5-serdes: add constants to " Daniel Machon
2024-09-06 12:52 ` [PATCH 3/9] phy: sparx5-serdes: add constant for the number of CMU's Daniel Machon
2024-09-06 12:52 ` [PATCH 4/9] phy: sparx5-serdes: add ops to match data Daniel Machon
2024-09-06 12:52 ` [PATCH 5/9] phy: sparx5-serdes: add function for getting the CMU index Daniel Machon
2024-09-06 12:52 ` [PATCH 6/9] phy: sparx5-serdes: add indirection layer to register macros Daniel Machon
2024-09-06 12:52 ` [PATCH 7/9] phy: sparx5-serdes: add support for branching on chip type Daniel Machon
2024-09-06 12:52 ` [PATCH 8/9] dt-bindings: phy: sparx5: document lan969x in sparx5 dt-bindings Daniel Machon
2024-09-06 12:59   ` Krzysztof Kozlowski
2024-09-09  8:22     ` Daniel Machon
2024-09-09  8:35       ` Krzysztof Kozlowski
2024-09-09  9:43         ` Daniel Machon
2024-09-09 10:42           ` Krzysztof Kozlowski
2024-09-06 12:52 ` [PATCH 9/9] phy: lan969x-serdes: add support for lan969x serdes driver Daniel Machon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome