Skip to contentSkip to conversation

dt-bindings: net: add Realtek RTL8125 PCIe Ethernet

PATCH Applied Ricardo Pardini 2 participants 2 messages Nov 9 – Nov 11

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dt-bindings: net: add Realtek RTL8125 PCIe Ethernet

Add a binding for fixed/soldered Realtek RTL8125 PCIe Ethernet controller. As a PCIe device, its "pci10ec,8125" compatible is the Open Firmware spelling auto-derived from its PCI-SIG vendor/device IDs and is already covered by the generic dtschema pci-device.yaml. The compatible itself therefore needs no binding to be valid.

A dedicated binding is needed because board DTs describe these soldered function nodes in order to attach ethernet-controller properties to them: a placeholder local-mac-address that the bootloader fills in today, and potentially nvmem-cells, phy-handle, etc. in the future. This binding references ethernet-controller.yaml so those properties are validated on the RTL8125 PCI function nodes.

---
Add a DT binding for the Realtek RTL8125 2.5GbE PCIe Ethernet controller, so that board DTs describing soldered RTL8125 PCI function nodes get their ethernet-controller properties (local-mac-address, nvmem-cells, ...) validated.

This was previously patch 1/7 of the series "describe RTL8125 PCIe NICs on Rockchip boards (and add DT binding)", up to v5 [1]. Per Heiko's review [2] it is now sent on its own via net-next; the board DT patches continue separately in that series (v6+). There is no build-time dependency between the two: "pci10ec,8125" is already covered by dtschema's pci-device.yaml, so the board DTs validate without this binding.

The need for the binding (and for the compatible at all, since the kernel binds these nodes by their reg) was discussed with Heiner in v3 [3] and v4 [4]; the outcome, per Krzysztof, is reflected in the commit message.

The patch is unchanged since v5 1/7, apart from the rebase onto net-next; Rob's Reviewed-by from v5 [5] is carried over.

[1] https://patch.msgid.link/20260910-rk3588-dts-rtl-eth-describe-dt-alias-v5-0-c1b9e5f10cd6@pardini.net
[2] https://lore.kernel.org/all/1971659.CQOukoFCf9@phil/
[3] https://lore.kernel.org/all/[email protected]/T/#u
[4] https://lore.kernel.org/all/[email protected]/T/#u
[5] https://lore.kernel.org/all/[email protected]/

---
 .../devicetree/bindings/net/realtek,rtl8125.yaml   | 43 ++++++++++++++++++++++
 MAINTAINERS                                        |  1 +
 2 files changed, 44 insertions(+)
Documentation/devicetree/bindings/net/realtek,rtl8125.yaml new file +43 -0
new file mode 100644
index 000000000000..eee13fbc1e6a
@@ -0,0 +1,43 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/net/realtek,rtl8125.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Realtek RTL8125 2.5 Gigabit PCIe Ethernet Controller
+
+maintainers:
+  - Heiner Kallweit <[email protected]>
+
+description:
+  The Realtek RTL8125 is a 2.5GBASE-T Ethernet controller with a PCIe host
+  interface.
+
+allOf:
+  - $ref: ethernet-controller.yaml#
+
+properties:
+  compatible:
+    const: pci10ec,8125
+
+  reg:
+    maxItems: 1
+
+required:
+  - compatible
+  - reg
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    pcie {
+        #address-cells = <3>;
+        #size-cells = <2>;
+
+        ethernet@0,0 {
+            compatible = "pci10ec,8125";
+            reg = <0x10000 0 0 0 0>;
+            local-mac-address = [00 00 00 00 00 00];
+        };
+    };
MAINTAINERS +1 -0
index fe23913b1e43..afe9bff92936 100644
@@ -134,6 +134,7 @@ M:	Heiner Kallweit <[email protected]>
 M:	[email protected]
 L:	[email protected]
 S:	Maintained
+F:	Documentation/devicetree/bindings/net/realtek,rtl8125.yaml
 F:	drivers/net/ethernet/realtek/r8169*
 
 8250/16?50 (AND CLONE UARTS) SERIAL DRIVER

---
base-commit: fa5196392691051963726787944db872420dfa75
change-id: 20261108-dt-bindings-net-realtek-rtl8125-991226c1733f

Best regards,

Signature · 1 line
Ricardo Pardini <[email protected]>
#1 lore raw
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 9 lines · On Mon, 09 Nov 2026 02:53:47 +0100 you wrote:

From: Ricardo Pardini <[email protected]>

Add a binding for fixed/soldered Realtek RTL8125 PCIe Ethernet controller. As a PCIe device, its "pci10ec,8125" compatible is the Open Firmware spelling auto-derived from its PCI-SIG vendor/device IDs and is already covered by the generic dtschema pci-device.yaml. The compatible itself therefore needs no binding to be valid.

[...]

Here is the summary with links:
- [net-next] dt-bindings: net: add Realtek RTL8125 PCIe Ethernet

    https://git.kernel.org/netdev/net-next/c/711c458f6f34

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html