mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Joseph Telaak <joseph@telaak.dev>
To: Tony Nguyen <anthony.l.nguyen@intel.com>,
	 Przemek Kitszel <przemyslaw.kitszel@intel.com>,
	 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>,
	Russell King <linux@armlinux.org.uk>
Cc: intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org,
	 devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	 Joseph Telaak <joseph@telaak.dev>
Subject: [PATCH iwl-next 1/4] dt-bindings: net: add the Intel CE4100 GbE
Date: Tue, 01 Dec 2026 02:21:17 -0500	[thread overview]
Message-ID: <20261201-e1000-phylink-v1-1-21e6f1c816a0@telaak.dev> (raw)
In-Reply-To: <20261201-e1000-phylink-v1-0-21e6f1c816a0@telaak.dev>

The Gigabit Ethernet MAC of the Intel CE4100 family (CE4100, CE4200,
CE5300) is a PCI function, 8086:2e6e, driven by e1000. It has an RGMII
interface and its own MDIO controller. Boards put a PHY on that bus or
wire the MAC straight to a switch port, which the device tree describes
on the PCI device's node with phy-mode and a phy-handle with an mdio
node, or a fixed-link. Document the node so those properties have a
schema.

The existing falconfalls CE4100 tree lists the full PCI bus binding set
in compatible ("pci8086,2e6e.2", "pci8086,2e6e", "pciclass020000",
"pciclass0200"); only the vendor/device form is documented here, and its
IOAPIC interrupts do not fit the INTx pin pci-device.yaml allows either.

Signed-off-by: Joseph Telaak <joseph@telaak.dev>
---
 .../devicetree/bindings/net/intel,ce4100-gbe.yaml  | 90 ++++++++++++++++++++++
 MAINTAINERS                                        |  1 +
 2 files changed, 91 insertions(+)

diff --git a/Documentation/devicetree/bindings/net/intel,ce4100-gbe.yaml b/Documentation/devicetree/bindings/net/intel,ce4100-gbe.yaml
new file mode 100644
index 000000000000..98b56e9bb516
--- /dev/null
+++ b/Documentation/devicetree/bindings/net/intel,ce4100-gbe.yaml
@@ -0,0 +1,90 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/net/intel,ce4100-gbe.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Intel CE4100 family Gigabit Ethernet MAC
+
+maintainers:
+  - Joseph Telaak <joseph@telaak.dev>
+
+description:
+  The Gigabit Ethernet MAC built into the Intel CE4100 family of media SoCs
+  (CE4100, CE4200, CE5300), a PCI function on the SoC's internal bus. It has
+  an RGMII interface and its own MDIO controller. A board either puts a PHY
+  on that MDIO bus or wires the MAC straight to a switch port.
+
+allOf:
+  - $ref: /schemas/pci/pci-device.yaml#
+  - $ref: ethernet-controller.yaml#
+
+properties:
+  compatible:
+    const: pci8086,2e6e
+
+  reg:
+    maxItems: 1
+
+  phy-mode:
+    enum:
+      - rgmii
+      - rgmii-id
+      - rgmii-rxid
+      - rgmii-txid
+
+  managed: false
+
+  mdio:
+    $ref: mdio.yaml#
+    unevaluatedProperties: false
+
+required:
+  - compatible
+  - reg
+
+dependencies:
+  fixed-link: [ phy-mode ]
+  phy-handle: [ phy-mode, mdio ]
+  mdio: [ phy-handle ]
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    pci {
+        #address-cells = <3>;
+        #size-cells = <2>;
+
+        ethernet@c,0 {
+            compatible = "pci8086,2e6e";
+            reg = <0x6000 0 0 0 0>;
+            phy-mode = "rgmii-id";
+            phy-handle = <&phy1>;
+
+            mdio {
+                #address-cells = <1>;
+                #size-cells = <0>;
+
+                phy1: ethernet-phy@1 {
+                    reg = <1>;
+                };
+            };
+        };
+    };
+  - |
+    pci {
+        #address-cells = <3>;
+        #size-cells = <2>;
+
+        ethernet@c,0 {
+            compatible = "pci8086,2e6e";
+            reg = <0x6000 0 0 0 0>;
+            phy-mode = "rgmii";
+
+            fixed-link {
+                speed = <1000>;
+                full-duplex;
+            };
+        };
+    };
diff --git a/MAINTAINERS b/MAINTAINERS
index 9336fa93ce38..5573e4204746 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -13424,6 +13424,7 @@ W:	https://www.intel.com/content/www/us/en/support.html
 Q:	https://patchwork.ozlabs.org/project/intel-wired-lan/list/
 T:	git git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/net-queue.git
 T:	git git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue.git
+F:	Documentation/devicetree/bindings/net/intel,ce4100-gbe.yaml
 F:	Documentation/networking/device_drivers/ethernet/intel/
 F:	drivers/net/ethernet/intel/
 F:	drivers/net/ethernet/intel/*/

-- 
Git-155)


  reply	other threads:[~2026-12-01  7:21 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01  7:21 [PATCH iwl-next 0/4] e1000: phylink for " Joseph Telaak
2026-12-01  7:21 ` Joseph Telaak [this message]
2026-12-01 13:16   ` [PATCH iwl-next 1/4] dt-bindings: net: add " Andrew Lunn
2026-12-01  7:21 ` [PATCH iwl-next 2/4] e1000: use phylink for a CE4100 fixed link Joseph Telaak
2026-12-01  8:58   ` Maxime Chevallier
2026-12-01  9:20     ` Joseph Telaak
2026-12-01  7:21 ` [PATCH iwl-next 3/4] e1000: attach a CE4100 PHY through phylink Joseph Telaak
2026-12-01  9:02   ` Maxime Chevallier
2026-12-01  9:32     ` Joseph Telaak
2026-12-01  7:21 ` [PATCH iwl-next 4/4] e1000: disable EEE on a CE4100 PHY under phylink Joseph Telaak
2026-12-01  9:04   ` Maxime Chevallier
2026-12-01  9:24     ` Joseph Telaak
2026-12-01  9:42       ` Maxime Chevallier

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=20261201-e1000-phylink-v1-1-21e6f1c816a0@telaak.dev \
    --to=joseph@telaak.dev \
    --cc=andrew+netdev@lunn.ch \
    --cc=anthony.l.nguyen@intel.com \
    --cc=conor+dt@kernel.org \
    --cc=davem@davemloft.net \
    --cc=devicetree@vger.kernel.org \
    --cc=edumazet@kernel.org \
    --cc=intel-wired-lan@lists.osuosl.org \
    --cc=krzk+dt@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=przemyslaw.kitszel@intel.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

all inboxes | Powered by JetHome®