From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=211.75.126.72 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== 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== 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 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) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 3CC73606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=realtek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=realtek.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=realtek.com header.i=@realtek.com header.a=rsa-sha256 header.s=dkim header.b=CrXB/Bfv X-SpamFilter-By: ArmorX SpamTrap 5.80 with qID 6B4A7jSlA2715590, This message is accepted by code: ctloc85258 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== 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 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 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 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 From: Eric Wang To: Andrew Lunn , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Philipp Zabel CC: , , , Eric Wang , Eleanor Lin 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 Message-ID: <20261204100746.1165612-1-ericwang@realtek.com> X-Mailer: git-send-email 2.50.1 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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