Skip to content

net: altera: tse: phylink conversion

Maxime Chevallier linux-arm-kernel linux-devicetree lkml netdev 4 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (master)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest5 patches 1 replyApplied 5/5
  2. v35 patches 6 repliesSuperseded
  3. v25 patches 5 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v15 patches3 repliesSuperseded

Changes in v4 from the cover letter

- Add missing MODULE_* macros to the TSE PCS driver

Patches in v4 All 5 applied

#Subject and filesSizeRepliesApplied
1/5dt-bindings: net: Convert Altera TSE bindings to yamlDocumentation/devicetree/bindings/net/altera_tse.txt Documentation/devicetree/bindings/net/altr,tse.yaml+141 -1131 replyApplied
2/5net: altera: tse: cosmetic change to use reverse xmas tree orderingdrivers/net/ethernet/altera/altera_tse_ethtool.c drivers/net/ethernet/altera/altera_tse_main.c+23 -220 repliesApplied
3/5net: pcs: add new PCS driver for altera TSE PCSMAINTAINERS drivers/net/pcs/Kconfig drivers/net/pcs/Makefile +2 more+206 -00 repliesApplied
4/5net: altera: tse: convert to phylinkdrivers/net/ethernet/altera/Kconfig drivers/net/ethernet/altera/altera_tse.h drivers/net/ethernet/altera/altera_tse_ethtool.c +1 more+141 -3140 repliesApplied
5/5dt-bindings: net: altera: tse: add an optional pcs register rangeDocumentation/devicetree/bindings/net/altr,tse.yaml+27 -00 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH net-next v4 0/5] net: altera: tse: phylink conversion

This is V4 of a series converting the Altera TSE driver to phylink, introducing a new PCS driver along the way.

The Altera TSE can be built with a SGMII/1000BaseX PCS, allowing to use SFP ports with this MAC, which is the end goal of adding phylink support and a proper PCS driver.

The PCS itself can either be mapped in the MAC's register space, in that case, it's accessed through 32 bits registers, with the higher 16 bits always 0. Alternatively, it can sit on its own register space, exposing 16 bits registers, some of which ressemble the standard PHY registers.

To tackle that rework, several things needs updating, starting by the DT binding, since we add support for a new register range for the PCS.

Hence, the first patch of the series is a conversion to YAML of the existing binding.

Then, patch 2 does a bit of simple cleanup to the TSE driver, using nice reverse xmas tree definitions.

Patch 3 adds the actual PCS driver, as a standalone driver. Some future series will then reuse that PCS driver from the dwmac-socfpga driver, which implements support for this exact PCS too, allowing to share the code nicely.

Patch 4 is then a phylink conversion of the altera_tse driver, to use this new PCS driver.

Finally, patch 5 updates the newly converted DT binding to support the pcs register range.

This series contains bits and pieces for this conversion, please tell me if you want me to send it as individual patches.

Thanks,

Maxime

V4 Changes:
- Add missing MODULE_* macros to the TSE PCS driver

V3 Changes:
- YAML binding conversion changes and PCS addition changes thanks to Krzysztof's reviews

V2 Changes :
- Fixed the binding after the YAML conversion
- Added a pcs_validate() callback
- Introduced a comment to justify a soft reset for the PCS

Maxime Chevallier (5):
dt-bindings: net: Convert Altera TSE bindings to yaml
net: altera: tse: cosmetic change to use reverse xmas tree ordering
net: pcs: add new PCS driver for altera TSE PCS
net: altera: tse: convert to phylink
dt-bindings: net: altera: tse: add an optional pcs register range

 .../devicetree/bindings/net/altera_tse.txt    | 113 -----
 .../devicetree/bindings/net/altr,tse.yaml     | 168 +++++++
 MAINTAINERS                                   |   7 +
 drivers/net/ethernet/altera/Kconfig           |   2 +
 drivers/net/ethernet/altera/altera_tse.h      |  19 +-
 .../net/ethernet/altera/altera_tse_ethtool.c  |  22 +-
 drivers/net/ethernet/altera/altera_tse_main.c | 453 +++++-------------
 drivers/net/pcs/Kconfig                       |   6 +
 drivers/net/pcs/Makefile                      |   1 +
 drivers/net/pcs/pcs-altera-tse.c              | 175 +++++++
 include/linux/pcs-altera-tse.h                |  17 +
 11 files changed, 536 insertions(+), 447 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/net/altera_tse.txt
 create mode 100644 Documentation/devicetree/bindings/net/altr,tse.yaml
 create mode 100644 drivers/net/pcs/pcs-altera-tse.c
 create mode 100644 include/linux/pcs-altera-tse.h
Signature · 1 line
2.37.2