🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #26853

[PATCH net-next 0/2] net: ethernet: realtek: Add r8169soc Ethernet driver for Realtek STB SoCs

#26853
From: Eric Wang
Date: Fri, 04 Dec 2026 10:07
51 lines
11748 bytes
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
Technical Details
Message-ID: <20261204100746.1165612-1-ericwang@realtek.com>
Path: mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-377231-linux-kernel-netdev=dewy.ru

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-377231-linux-kernel-netdev=dewy.ru
From: ericwang@realtek.com (Eric Wang)
Newsgroups: linux.kernel.netdev
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
Organization: Usenet Network
Message-ID: <20261204100746.1165612-1-ericwang@realtek.com>
MIME-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="2733616"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:Beblfq/8kxncZGbJkpkdO0RuMF8= sha256:TnApolIH4IKyaXNaPb0OmtXlmYhlmk+wTRiVlOYvz+8=
	sha1:YKlpptW7VnPdpWU/aSV9jx/fW/0= sha256:d5hGrjgtafCldI824xTzqUa5wP+58zT7UxStEF4CVr0=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 221D2117B8F; Fri,  4 Dec 2026 13:08:43 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.298
X-Spam-Status: No, score=-3.298 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=realtek.com
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id qLw5XXQVmsDE;
	Fri,  4 Dec 2026 13:08:36 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-377231-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=realtek.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 6D960117B46; Fri,  4 Dec 2026 13:08:27 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id 60469262DE; Fri,  4 Dec 2026 10:08:25 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1796378905;
	b=hQw4xaqgueYOayL2ZE5hxSE9QYLjW8R2zIF9JvBOygG0IyT/0jz3u9sDihck28u3qL/I
	 qM+Zm2+VFED1NYSYVe80NIhv2hN42dm5UgeA661VTSUP9FE/oyAS/Zzq11Q1069AOEcoo
	 i7D4u4BG+8pBRMoBp7o+zlujxQya2VgDCdlyUrrF3gbBZ+iIpzPyWxbw59lVMYRrStDyX
	 ds16Ca0srJXgNtCuDjDGj3Amur7YWuU01pOP2+af1BAY4A6srGaSXfucvNu3XWjxxcUgG
	 BdfYr4xTfdBrwuDtCECoW9SLJjpw4KP6SKLSlFERsOuDpzFcT9rsAnuFIBPaYK44C4w==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796378905;
	h=X-Original-To:Received:DMARC-Filter:X-SpamFilter-By:DKIM-Signature:
	 Received:Received:Received:Received:From:To:CC:Subject:Date:
	 Message-ID:X-Mailer:X-Mailing-List:List-Id:List-Post:List-Help:
	 List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 Content-Transfer-Encoding:Content-Type;
	bh=Cs45FUmLpwOpJx1quvp68fru+M6lbeIPy2EmiONeleE=;
	b=CeZNNWW2YH+zr5LvhMKdg98O9+noevV8hPW4DXuVNwUM8b4fdxZq/nZ+0Ocgh3+j/Tvq
	 2SjDrdBIgd4lxguUcqUsauoa3Lgw+IDdna6/5RW1+2+b8sRgXTqHPGeMG1eVgOemi1v43
	 gNI/X8BbeOYTO9iII6tTyDpeGNTNGRExTPZXxGcbPBtVeGXsNASVYYuqPoshs/LdB46Mp
	 Q11TexQJYeFHYp+adhoABsw2Hxu/rfLiHANimX5JcqAFy17VMowt+laCWAsCtwx+41y0r
	 U+UKYQS4IPeoUWM5XJJyWkVsoO488va2k5Li8vC0vfkyvLVr8X/liTIw1vdMBcur4mg==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=realtek.com header.i=@realtek.com header.a=rsa-sha256 header.s=dkim header.b="CrXB/Bfv";
	dmarc=pass header.from=realtek.com;
	spf=pass smtp.mailfrom=realtek.com;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 1673D606A337;
	Fri,  4 Dec 2026 10:08:25 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=realtek.com header.i=@realtek.com header.a=rsa-sha256 header.s=dkim header.b=CrXB/Bfv
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=211.75.126.72
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1796378904;
	b=WrSJjOz5AQ7+bdKE4xym4Lq6Wr1QC8tB6W7OCbOflKaAcnCRg2kgqWAZfKGjXXBmgNbi
	 KMDNabHYMMFTLix5YbF1yry6fS6YjGenhyNOs6c3THuCnSZcRK3SmmVnLoz0ROGdZhrcR
	 VpWaUeFUrsB8PWsoJ9kD9b7qWeRXFJIpVujZh9Q+Md+vsI1rn6wrtdyT47LfVDQ85kvNS
	 5VB92RY++ja7XNo3gZByL6aPojhOBpA156sabBAphtAdFndR/dY1X2lcx5oN+rFq6IMW9
	 zHjSRTw+yCLptYarPxHnI5U+wVMqislSOrsyTL2pnFhspZsVHv8EunFMELONv42h2yg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796378904;
	h=DMARC-Filter:X-SpamFilter-By:DKIM-Signature:Received:Received:
	 Received:Received:From:To:CC:Subject:Date:Message-ID:X-Mailer:
	 MIME-Version:Content-Transfer-Encoding:Content-Type;
	bh=Cs45FUmLpwOpJx1quvp68fru+M6lbeIPy2EmiONeleE=;
	b=xPPrrDVOHTFTpcYwr6zTvMritmrdTwboQRhTwdCpjAHbZR0CzmTRoKnM4hw/WP3+FtKO
	 vbrQUYXZXFFngv5F5EOuvVYHIX0Z7zBRVqYyKWr3gWVaY8lv8U1aCM/kZ32uyqzPBiUWr
	 cRGy5KvYWUG63RqZUVdKOiHWXm97GGejzoEZywwzbigmPBChaV5kNzXYr253lCI6FMc7Y
	 8ETJBRwv7h1mfgQ3lnrP+vv9ltyLNntI724cmSlSXxWfGb7W/GcNebyMAY8NZ6kVJGnwe
	 kLUrE3f+TZqlOty3JcFCkMnU4jn+LzwgMgUVGTftS1O3jKE9n/c+CjKAt9fxbGQ477A==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=realtek.com;
	spf=pass smtp.mailfrom=realtek.com;
	dkim=pass header.d=realtek.com header.i=@realtek.com header.a=rsa-sha256 header.s=dkim header.b="CrXB/Bfv";
	arc=none smtp.remote-ip=211.75.126.72
X-Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3CC73606A322;
	Fri,  4 Dec 2026 10:08:22 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 3CC73606A322
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=realtek.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=realtek.com
X-SpamFilter-By: ArmorX SpamTrap 5.80 with qID 6B4A7jSlA2715590, This message is accepted by code: ctloc85258
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=realtek.com; s=dkim;
	t=1796378865; bh=Cs45FUmLpwOpJx1quvp68fru+M6lbeIPy2EmiONeleE=;
	h=From:To:CC:Subject:Date:Message-ID:MIME-Version:
	 Content-Transfer-Encoding:Content-Type;
	b=CrXB/BfvlFzGiZSKrnwgXrDGdgvIuClUoiyNkALF9hV6GpULzWCWxY7KOTofDX+wL
	 ogYPZ6+h73x3arcFxVJGNJi61qvKN6fnW8DJGkfQs4lKUxHe9Y3ISLxtkoOkkFULIi
	 ThxCMgbK1Y3rfXxt6SBvAW8nGFk9eB1oa7a8IHcL36/r06hDXVSAzUBuoYN8KFmfA3
	 nU7hdEe2DgNyGFnw5oHN3LF7y+4Qe843BEf9CLcKHhrf3MOZ3+Q5nQvoa9JvSjIkJL
	 lpLRTrHZz1/xA07FAF11MOz6tga/LvliOaHJz9lhCTdunaHitbw6wVvz/d6zFKNkxB
	 mAlcRM+ztYZHw==
X-Received: from mail.realtek.com (rtkexhmbs03.realtek.com.tw[10.21.1.53])
	by rtits2.realtek.com.tw (8.15.2/3.29/5.94) with ESMTPS id 6B4A7jSlA2715590
	(version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL);
	Fri, 4 Dec 2026 18:07:45 +0800
X-Received: from RTKEXHMBS05.realtek.com.tw (10.21.1.55) by
 RTKEXHMBS03.realtek.com.tw (10.21.1.53) with Microsoft SMTP Server
 (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id
 15.2.2562.56; Fri, 4 Dec 2026 18:07:46 +0800
X-Received: from RTKEXHMBS05.realtek.com.tw (10.21.1.55) by
 RTKEXHMBS05.realtek.com.tw (10.21.1.55) with Microsoft SMTP Server
 (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id
 15.2.2562.56; Fri, 4 Dec 2026 18:07:46 +0800
X-Received: from cn1dhc-k02 (172.21.252.101) by RTKEXHMBS05.realtek.com.tw
 (10.21.1.55) with Microsoft SMTP Server id 15.2.2562.56 via Frontend
 Transport; Fri, 4 Dec 2026 18:07:46 +0800
X-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>
X-Mailer: git-send-email 2.50.1
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list