mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH net-next v3 0/2] Support unaligned RTL8224 PHY packages
@ 2026-10-13 18:56 Oskari Lemmela
  2026-10-13 18:56 ` [PATCH net-next v3 1/2] dt-bindings: net: realtek: add RTL8224 package binding Oskari Lemmela
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Oskari Lemmela @ 2026-10-13 18:56 UTC (permalink / raw)
  To: Andrew Lunn, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Heiner Kallweit, Daniel Golle, Vladimir Oltean,
	Maxime Chevallier, Aleksander Jan Bajkowski, Javen Xu,
	Marek Vasut, Issam Hamdi, Chukun Pan, Jan Hoffmann,
	Florian Fainelli
  Cc: Russell King, Andrew Lunn, netdev, devicetree, linux-kernel,
	Manuel Stocker, Oskari Lemmela, dam.dejean

RTL8224 packages contain four PHYs at consecutive MDIO addresses, but
their first address need not be a multiple of four. The Hasivo
S1100WP-8GT-2S+ uses two such packages at addresses 1-4 and 5-8.

This series adds a dedicated realtek,rtl8224-package binding and extends
the driver to use the explicit package base when provided. The
package-relative port index selects the MDI pair order and polarity
fields. Existing configurations without a package node retain the
aligned-address assumption.

The package-addressing change was tested on a Hasivo S1100WP-8GT-2S+
using an OpenWrt kernel. The rebased net-next version has not been
runtime-tested.

Changes since v2:
- Replace the additions to the shared RTL82xx PHY binding with a
  dedicated RTL8224 package binding. The example selects the package
  schema while the child PHYs retain their Clause 45 compatible.
- Clarify that unaligned layouts require a package node and that
  unused ports, including the first port, may be omitted.
- Limit the package base to 28 and each child address to the four-port
  range starting at that base.
- Use devm_phy_package_join() for both DT-described and legacy packages,
  avoiding mixed OF/non-OF package-node reference accounting.
- Share base-address parsing between probe and MDI configuration and
  derive the port offset without allocating per-PHY private state.

Changes since v1:
- Target net-next, as suggested by Andrew Lunn.
- Remove the Fixes tag and describe the change as extending support
  rather than fixing a regression.
- Rebase on net-next/main.
- Add a separate DT binding documentation patch with an unaligned
  four-port package example, placed before the driver patch.

v2:
https://lore.kernel.org/netdev/20261005201540.913977-1-oskari@lemmela.net/

v1:
https://lore.kernel.org/netdev/20261004204637.721148-1-oskari@lemmela.net/

Manuel Stocker (1):
  net: phy: realtek: support unaligned RTL8224 PHY packages

Oskari Lemmela (1):
  dt-bindings: net: realtek: add RTL8224 package binding

 .../bindings/net/realtek,rtl8224-package.yaml | 332 ++++++++++++++++++
 drivers/net/phy/realtek/realtek_main.c        |  56 ++-
 2 files changed, 379 insertions(+), 9 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/net/realtek,rtl8224-package.yaml


base-commit: 8b4e7209c842d8cb9516f1f5ef0a88aa2d8831a6
-- 
2.55.0

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

end of thread, other threads:[~2026-10-20 14:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-13 18:56 [PATCH net-next v3 0/2] Support unaligned RTL8224 PHY packages Oskari Lemmela
2026-10-13 18:56 ` [PATCH net-next v3 1/2] dt-bindings: net: realtek: add RTL8224 package binding Oskari Lemmela
2026-10-15 20:34   ` Rob Herring (Arm)
2026-10-13 18:56 ` [PATCH net-next v3 2/2] net: phy: realtek: support unaligned RTL8224 PHY packages Oskari Lemmela
2026-10-20 14:00 ` [PATCH net-next v3 0/2] Support " patchwork-bot+netdevbpf

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

all inboxes | Powered by JetHome®