Devicetree
 help / color / mirror / Atom feed
* [PATCH net-next v4 0/5] net: mdio: realtek-rtl9300: add bus frequency handling
@ 2026-09-12 13:04 Markus Stockhausen
  2026-09-12 13:04 ` [PATCH net-next v4 1/5] dt-bindings: net: realtek,rtl9301-mdio: restrict MDIO buses by family Markus Stockhausen
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Markus Stockhausen @ 2026-09-12 13:04 UTC (permalink / raw)
  To: andrew, hkallweit1, linux, davem, edumazet, kuba, pabeni, netdev,
	chris.packham, robh, krzk+dt, conor+dt, devicetree
  Cc: Markus Stockhausen

The Realtek Otto switch platform consists of four different series

- RTL838x aka maple   : 28 port 1G Switches
- RTL839x aka cypress : 52 port 1G Switches
- RTL930x aka longan  : 28 port 1G/2.5G/10G Switches
- RTL931x aka mango   : 56 port 1G/2.5G/10G Switches

All of them support changing the bus frequency of their one to four
Ethernet MDIO buses, although the available settings differ between
the series. Extend the driver to support this feature.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
---
v3 -> v4:
  - Add new devicetree patch to clearly describe the number of
    MDIO buses. (Sashiko)
  - Harden devicetree clock-frequency properties to match the
    driver. (Sashiko)
  - Therefore drop Acked-by for devicetree patch. (Markus)
  - Improve fwnode to of conversion. E.g. drop dev_fwnode or usage
    of unneeded includes. (Sashiko)
  - Reword commit message of frequency commit to better reflect how
    the setup logic works. (Sashiko)
  - Refactor RTL839x frequency setup and comment to be consistent
    with the commit message. (Sashiko)
v3: https://lore.kernel.org/netdev/20260909150107.3602067-1-markus.stockhausen@gmx.de/
v3 Sashiko 1: https://sashiko.dev/#/patchset/20260909150107.3602067-1-markus.stockhausen%40gmx.de
v3 Sashiko 2: https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20260909150107.3602067-1-markus.stockhausen%40gmx.de

v2 -> v3:
  - Add Acked-by for devicetree patch. (Conor)
  - Andrews Reviewed-by not added because of Sashiko findings. (Markus)
  - Add patch "Reject duplicate MDIO bus" to harden the bus detection
    and as preparation for the RTL839x frequency setup. (Markus)
  - Rework RTL839x frequency setup to better handle missing/default
    frequencies. (Sashiko)
  - Use for_each_available_child_of_node_scoped(). (Sashiko)
v2: https://lore.kernel.org/netdev/20260906081946.3499898-1-markus.stockhausen@gmx.de/
v2 Sashiko 1: https://sashiko.dev/#/patchset/20260906081946.3499898-1-markus.stockhausen%40gmx.de
v2 Sashiko 2: https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20260906081946.3499898-1-markus.stockhausen%40gmx.de

v1 -> v2:
  - Describe per-device frequencies in devicetree. (Andrew)
  - Add proper per-device frequency checks. (Andrew)
  - Use the initialized parent device for dev_warn(). (Sashiko)
  - Make clear that otto_emdio_probe_one() currently has an
    indentation issue that will be fixed by this series. (Andrew)
  - Throw error if RTL839x devicetree has different speeds set
    for first and second bus.

v1: https://lore.kernel.org/netdev/20260903122119.2638354-1-markus.stockhausen@gmx.de/
v1 Sashiko: https://sashiko.dev/#/patchset/20260903122119.2638354-1-markus.stockhausen%40gmx.de



Markus Stockhausen (5):
  dt-bindings: net: realtek,rtl9301-mdio: restrict MDIO buses by family
  dt-bindings: net: realtek,rtl9301-mdio: add clock-frequency
  net: mdio: realtek-rtl9300: convert "fwnode" left-overs to "of"
  net: mdio: realtek-rtl9300: reject duplicate MDIO bus IDs
  net: mdio: realtek-rtl9300: support non-default clock frequencies

 .../bindings/net/realtek,rtl9301-mdio.yaml    |  65 ++++++++++
 drivers/net/mdio/mdio-realtek-rtl9300.c       | 120 ++++++++++++++++--
 2 files changed, 176 insertions(+), 9 deletions(-)

-- 
2.55.0


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

end of thread, other threads:[~2026-09-12 13:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-12 13:04 [PATCH net-next v4 0/5] net: mdio: realtek-rtl9300: add bus frequency handling Markus Stockhausen
2026-09-12 13:04 ` [PATCH net-next v4 1/5] dt-bindings: net: realtek,rtl9301-mdio: restrict MDIO buses by family Markus Stockhausen
2026-09-12 13:04 ` [PATCH net-next v4 2/5] dt-bindings: net: realtek,rtl9301-mdio: add clock-frequency Markus Stockhausen
2026-09-12 13:04 ` [PATCH net-next v4 3/5] net: mdio: realtek-rtl9300: convert "fwnode" left-overs to "of" Markus Stockhausen
2026-09-12 13:04 ` [PATCH net-next v4 4/5] net: mdio: realtek-rtl9300: reject duplicate MDIO bus IDs Markus Stockhausen
2026-09-12 13:04 ` [PATCH net-next v4 5/5] net: mdio: realtek-rtl9300: support non-default clock frequencies Markus Stockhausen

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