Devicetree
 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 1/2] dt-bindings: net: Add Realtek STB SoC r8169soc Ethernet controller
Date: Fri, 4 Dec 2026 18:07:44 +0800	[thread overview]
Message-ID: <20261204100746.1165612-2-ericwang@realtek.com> (raw)
In-Reply-To: <20261204100746.1165612-1-ericwang@realtek.com>

Add Devicetree binding documentation for the embedded r8169soc Ethernet
controller found on Realtek STB SoCs, starting with the RTD1625 SoC
("realtek,rtd1625-r8169soc").

The schema is named realtek,r8169soc.yaml so additional Realtek STB SoC
variants sharing this controller architecture can be documented in the
same binding.

Signed-off-by: Eric Wang <ericwang@realtek.com>
---
 .../bindings/net/realtek,r8169soc.yaml        | 102 ++++++++++++++++++
 MAINTAINERS                                   |   6 ++
 2 files changed, 108 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/net/realtek,r8169soc.yaml

diff --git a/Documentation/devicetree/bindings/net/realtek,r8169soc.yaml b/Documentation/devicetree/bindings/net/realtek,r8169soc.yaml
new file mode 100644
index 000000000000..604ff1ddfb0a
--- /dev/null
+++ b/Documentation/devicetree/bindings/net/realtek,r8169soc.yaml
@@ -0,0 +1,102 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/net/realtek,r8169soc.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Realtek STB SoC r8169soc Ethernet Controller
+
+maintainers:
+  - Eric Wang <ericwang@realtek.com>
+
+description:
+  The embedded Realtek STB SoC r8169soc Ethernet controller integrates a
+  Fast Ethernet MAC with an internal Fast Ethernet PHY, using ISO and
+  MAIN2 system controller regmaps for SoC-specific PHY and bus control.
+  Since the controller connects directly to the internal PHY, external
+  phy-mode and phy-handle properties are not required.
+
+allOf:
+  - $ref: ethernet-controller.yaml#
+
+properties:
+  compatible:
+    const: realtek,rtd1625-r8169soc
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+  clocks:
+    items:
+      - description: 250MHz reference clock
+      - description: Ethernet system clock
+      - description: ISO misc clock
+
+  clock-names:
+    items:
+      - const: etn_250m
+      - const: etn_sys
+      - const: misc
+
+  resets:
+    items:
+      - description: GMAC reset
+      - description: GPHY reset
+      - description: Misc reset
+
+  reset-names:
+    items:
+      - const: gmac
+      - const: gphy
+      - const: misc
+
+  power-domains:
+    maxItems: 1
+
+  realtek,iso:
+    $ref: /schemas/types.yaml#/definitions/phandle
+    description:
+      Phandle to the ISO system controller syscon node used for Ethernet
+      PHY interrupt clearing, bypass mode control, and autoload status.
+
+  realtek,m2tmx:
+    $ref: /schemas/types.yaml#/definitions/phandle
+    description:
+      Phandle to the MAIN2 misc syscon node used for Ethernet DBUS clock
+      gating and power-cut configuration.
+
+required:
+  - compatible
+  - reg
+  - interrupts
+  - clocks
+  - clock-names
+  - resets
+  - reset-names
+  - realtek,iso
+  - realtek,m2tmx
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/interrupt-controller/arm-gic.h>
+
+    ethernet@16000 {
+        compatible = "realtek,rtd1625-r8169soc";
+        reg = <0x16000 0x1000>;
+        interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>;
+        clocks = <&ic 11>, <&ic 12>, <&cc 5>;
+        clock-names = "etn_250m", "etn_sys", "misc";
+        resets = <&ic 7>, <&ic 8>, <&cc 0>;
+        reset-names = "gmac", "gphy", "misc";
+        pinctrl-names = "default";
+        pinctrl-0 = <&etn_led_loc0_pins>;
+        power-domains = <&pd>;
+        local-mac-address = [00 10 20 30 40 50];
+        realtek,iso = <&iso>;
+        realtek,m2tmx = <&m2tmx>;
+    };
diff --git a/MAINTAINERS b/MAINTAINERS
index 05b2d9e36b6d..319ec17b5ce6 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -23693,6 +23693,12 @@ S:	Maintained
 F:	Documentation/devicetree/bindings/net/pse-pd/realtek,pse-mcu-gen1.yaml
 F:	drivers/net/pse-pd/realtek-pse-mcu*
 
+REALTEK R8169SOC ETHERNET DRIVER
+M:	Eric Wang <ericwang@realtek.com>
+L:	netdev@vger.kernel.org
+S:	Maintained
+F:	Documentation/devicetree/bindings/net/realtek,r8169soc.yaml
+
 REALTEK RTL83xx SMI DSA ROUTER CHIPS
 M:	Linus Walleij <linusw@kernel.org>
 M:	Luiz Angelo Daros de Luca <luizluca@gmail.com>
-- 
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 [PATCH net-next 0/2] net: ethernet: realtek: Add r8169soc Ethernet driver for Realtek STB SoCs Eric Wang
2026-12-04 10:07 ` Eric Wang [this message]
2026-12-04 10:07 ` [PATCH net-next 2/2] " 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-2-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