[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240906-sparx5-lan969x-serdes-driver-v1-0-8d630614c58a@microchip.com>
Date: Fri, 6 Sep 2024 14:52:37 +0200
From: Daniel Machon <daniel.machon@...rochip.com>
To: Vinod Koul <vkoul@...nel.org>, Kishon Vijay Abraham I <kishon@...nel.org>,
Lars Povlsen <lars.povlsen@...rochip.com>, Steen Hegelund
<Steen.Hegelund@...rochip.com>, <UNGLinuxDriver@...rochip.com>, Rob Herring
<robh@...nel.org>, Krzysztof Kozlowski <krzk+dt@...nel.org>, Conor Dooley
<conor+dt@...nel.org>
CC: <linux-phy@...ts.infradead.org>, <linux-arm-kernel@...ts.infradead.org>,
<linux-kernel@...r.kernel.org>, <devicetree@...r.kernel.org>
Subject: [PATCH 0/9] phy: sparx5-serdes: add support for lan969x serdes
driver
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@...rochip.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@...rochip.com>
Powered by blists - more mailing lists