Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Joseph Telaak" <joseph@telaak.dev>
Cc: intel-wired-lan@lists.osuosl.org, devicetree@vger.kernel.org,
	robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH iwl-next 1/4] dt-bindings: net: add the Intel CE4100 GbE
Date: Wed, 02 Dec 2026 07:21:50 +0000	[thread overview]
Message-ID: <sashiko-outbox-245053@kernel.org> (raw)
In-Reply-To: <20261201-e1000-phylink-v1-1-21e6f1c816a0@telaak.dev>

Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Low] dt-bindings: net: intel,ce4100-gbe: missing rmii in phy-mode
  enum
- [Low] dt-bindings: net: intel,ce4100-gbe: overly restrictive mdio
  dependencies
--

commit 1c33a2ff8d643479894578bf432560e0535edc2b
Author: Joseph Telaak <joseph@telaak.dev>

dt-bindings: net: add the Intel CE4100 GbE

This commit adds a Device Tree binding schema for the Intel CE4100 family
Gigabit Ethernet PCI function (pci8086,2e6e).

> 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 0000000000000..98b56e9bb516f
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/net/intel,ce4100-gbe.yaml
> @@ -0,0 +1,90 @@

[ ... ]

> +properties:
> +  compatible:
> +    const: pci8086,2e6e
> +
> +  reg:
> +    maxItems: 1
> +
> +  phy-mode:
> +    enum:
> +      - rgmii
> +      - rgmii-id
> +      - rgmii-rxid
> +      - rgmii-txid

[Severity: Low]
Should phy-mode also allow rmii?

The CE4100 MAC supports switching between RGMII and RMII via the
CE4100-specific E1000_CTL_AUX register, and the e1000 driver configures
E1000_CTL_AUX_RMII for the RTL8201N RMII PHY on CE4100 in
gbe_dhg_phy_setup():

drivers/net/ethernet/intel/e1000/e1000_hw.c:gbe_dhg_phy_setup() {
	...
	case e1000_phy_8201:
		/* Set RMII mode */
		ctrl_aux = er32(CTL_AUX);
		ctrl_aux |= E1000_CTL_AUX_RMII;
		ew32(CTL_AUX, ctrl_aux);
	...
}

Omitting rmii from the enum will cause dtbs_check failures on CE4100 boards
wired to an RMII PHY.

> +
> +  managed: false
> +
> +  mdio:
> +    $ref: mdio.yaml#
> +    unevaluatedProperties: false
> +
> +required:
> +  - compatible
> +  - reg
> +
> +dependencies:
> +  fixed-link: [ phy-mode ]
> +  phy-handle: [ phy-mode, mdio ]
> +  mdio: [ phy-handle ]

[Severity: Low]
Are the mutual dependencies between phy-handle and mdio too restrictive for
valid board topologies?

Requiring phy-handle and mdio to always appear together rejects boards where
the MAC uses fixed-link to a switch port while the switch itself sits on the
MAC's MDIO bus, or where phy-handle references a PHY on a separate MDIO
controller.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261201-e1000-phylink-v1-0-21e6f1c816a0@telaak.dev?part=1

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

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01  7:21 [PATCH iwl-next 0/4] e1000: phylink for the Intel CE4100 GbE Joseph Telaak
2026-12-01  7:21 ` [PATCH iwl-next 1/4] dt-bindings: net: add " Joseph Telaak
2026-12-01 13:16   ` Andrew Lunn
2026-12-01 21:27     ` Joseph Telaak
2026-12-02  7:21   ` sashiko-bot [this message]
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-02  7:21   ` sashiko-bot
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 22:16       ` Andrew Lunn
2026-12-02  7:21   ` sashiko-bot
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=sashiko-outbox-245053@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=intel-wired-lan@lists.osuosl.org \
    --cc=joseph@telaak.dev \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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