Netdev List
 help / color / mirror / Atom feed
From: Eric Wang <ericwang@realtek.com>
To: Andrew Lunn <andrew+netdev@lunn.ch>,
	"David S . Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Philipp Zabel <p.zabel@pengutronix.de>
Cc: <netdev@vger.kernel.org>, <devicetree@vger.kernel.org>,
	<linux-kernel@vger.kernel.org>, Eric Wang <ericwang@realtek.com>,
	Eleanor Lin <eleanor.lin@realtek.com>
Subject: [PATCH net-next 0/2] net: ethernet: realtek: Add r8169soc Ethernet driver for Realtek STB SoCs
Date: Fri, 4 Dec 2026 18:07:43 +0800	[thread overview]
Message-ID: <20261204100746.1165612-1-ericwang@realtek.com> (raw)

This series adds the Devicetree binding and Ethernet driver for the
embedded r8169soc Ethernet controller on Realtek STB SoCs, starting
with the RTD1625 SoC ("realtek,rtd1625-r8169soc").

Why a separate r8169soc driver instead of extending r8169:
Although the r8169soc MAC originally evolved from the RTL8168 descriptor
ring architecture, the hardware IP and software driver are developed and
maintained by a separate SoC division within Realtek, and the hardware
integration differs fundamentally from the PCIe r8169 NICs:
- Bus interface: r8169 is a PCIe driver relying on PCI configuration
  space, BAR mapping, MSI/MSI-X, and PCIE ASPM, whereas r8169soc is an
  on-chip platform device integrated into the SoC internal bus (RBUS/DBUS)
  with no PCIe interface or PCI configuration registers.
- SoC clocks, resets, and syscon integration: r8169soc requires coordinating
  multiple SoC clocks (etn_250m, etn_sys, misc), reset lines (gmac, gphy,
  misc), and SoC system controller regmaps (realtek,iso and realtek,m2tmx)
  for PHY bypass mode, DBUS clock gating, power-cut, and hardware autoload
  handshaking.
- Register and feature divergence: SoC generations introduce custom MMIO
  and OCP register layouts (such as dedicated OCP MDIO access at
  0xde08..0xde0c and remapped TX no-close descriptor tail/close index
  registers at 0x20/0x22). Keeping r8169soc as a dedicated platform driver
  avoids polluting the PCIe-centric r8169 driver with SoC-specific
  platform, clock, reset, and syscon logic.

Patch 1 adds the DT binding schema (realtek,r8169soc.yaml) and MAINTAINERS
entry.
Patch 2 adds the r8169soc driver supporting RTD1625 and its internal Fast
Ethernet PHY (via CONFIG_REALTEK_PHY).

Eric Wang (2):
  dt-bindings: net: Add Realtek STB SoC r8169soc Ethernet controller
  net: ethernet: realtek: Add r8169soc Ethernet driver for Realtek STB
    SoCs

 .../bindings/net/realtek,r8169soc.yaml        |  102 +
 MAINTAINERS                                   |    8 +
 drivers/net/ethernet/realtek/Kconfig          |   19 +-
 drivers/net/ethernet/realtek/Makefile         |    1 +
 .../net/ethernet/realtek/r8169soc/Makefile    |    3 +
 .../ethernet/realtek/r8169soc/rtl8169soc.c    | 2375 +++++++++++++++++
 .../ethernet/realtek/r8169soc/rtl8169soc.h    |  513 ++++
 7 files changed, 3020 insertions(+), 1 deletion(-)
 create mode 100644 Documentation/devicetree/bindings/net/realtek,r8169soc.yaml
 create mode 100644 drivers/net/ethernet/realtek/r8169soc/Makefile
 create mode 100644 drivers/net/ethernet/realtek/r8169soc/rtl8169soc.c
 create mode 100644 drivers/net/ethernet/realtek/r8169soc/rtl8169soc.h

--
2.49.0

             reply	other threads:[~2026-12-04 10:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04 10:07 Eric Wang [this message]
2026-12-04 10:07 ` [PATCH net-next 1/2] dt-bindings: net: Add Realtek STB SoC r8169soc Ethernet controller Eric Wang
2026-12-04 10:07 ` [PATCH net-next 2/2] net: ethernet: realtek: Add r8169soc Ethernet driver for Realtek STB SoCs Eric Wang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261204100746.1165612-1-ericwang@realtek.com \
    --to=ericwang@realtek.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=conor+dt@kernel.org \
    --cc=davem@davemloft.net \
    --cc=devicetree@vger.kernel.org \
    --cc=edumazet@kernel.org \
    --cc=eleanor.lin@realtek.com \
    --cc=krzk+dt@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=p.zabel@pengutronix.de \
    --cc=pabeni@redhat.com \
    --cc=robh@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox