From: Andrew Lunn <andrew@lunn.ch>
To: Rob Herring <robh@kernel.org>
Cc: Dimitri Fedrau <dimitri.fedrau@liebherr.com>,
Heiner Kallweit <hkallweit1@gmail.com>,
Russell King <linux@armlinux.org.uk>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Florian Fainelli <f.fainelli@gmail.com>,
netdev@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
Dimitri Fedrau <dima.fedrau@gmail.com>
Subject: Re: [PATCH net-next 1/3] dt-bindings: net: ethernet-phy: add property mac-series-termination-ohms
Date: Tue, 11 Mar 2025 19:06:09 +0100 [thread overview]
Message-ID: <de68ea7e-1ca5-4983-9824-3fb432b00e82@lunn.ch> (raw)
In-Reply-To: <20250311173344.GA3802548-robh@kernel.org>
On Tue, Mar 11, 2025 at 12:33:44PM -0500, Rob Herring wrote:
> On Fri, Mar 07, 2025 at 11:30:01AM +0100, Dimitri Fedrau wrote:
> > Add property mac-series-termination-ohms in the device tree bindings for
> > selecting the resistance value of the builtin series termination resistors
> > of the PHY. Changing the resistance to an appropriate value can reduce
> > signal reflections and therefore improve signal quality.
> >
> > Signed-off-by: Dimitri Fedrau <dimitri.fedrau@liebherr.com>
> > ---
> > Documentation/devicetree/bindings/net/ethernet-phy.yaml | 5 +++++
> > 1 file changed, 5 insertions(+)
> >
> > diff --git a/Documentation/devicetree/bindings/net/ethernet-phy.yaml b/Documentation/devicetree/bindings/net/ethernet-phy.yaml
> > index 824bbe4333b7ed95cc39737d3c334a20aa890f01..4a710315a83ccf15bfc210ae432ae988cf31e04c 100644
> > --- a/Documentation/devicetree/bindings/net/ethernet-phy.yaml
> > +++ b/Documentation/devicetree/bindings/net/ethernet-phy.yaml
> > @@ -238,6 +238,11 @@ properties:
> > peak-to-peak specified in ANSI X3.263. When omitted, the PHYs default
> > will be left as is.
> >
> > + mac-series-termination-ohms:
>
> A property of the MAC (or associated with it) should be in the MAC's
> node.
But it is the PHY which uses the property, and the PHY which is
implementing the resistor.
Also, a PHY has two sides, one towards the MAC and a second media side
to the network peer via the Ethernet cable. Both sides need
termination resistors. So we need something in the name to make it
clear which side of the PHY we are talking about. So we might end up
with something like mac-termination-ohms and media-termination-ohms,
in the PHY node.
> Also, sounds like either either end could have a property.
True, the MAC could also need a similar property, since the outputs
from the MAC to the PHY needs termination resistors. For the MAC,
termination-ohms is probably sufficient, or phy-termination-ohms to
indicate it is towards the PHY?
Andrew
next prev parent reply other threads:[~2025-03-11 18:06 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-07 10:30 [PATCH net-next 0/3] net: phy: dp83822: Add support for changing the MAC series termination Dimitri Fedrau via B4 Relay
2025-03-07 10:30 ` [PATCH net-next 1/3] dt-bindings: net: ethernet-phy: add property mac-series-termination-ohms Dimitri Fedrau via B4 Relay
2025-03-11 17:33 ` Rob Herring
2025-03-11 18:06 ` Andrew Lunn [this message]
2025-03-07 10:30 ` [PATCH net-next 2/3] net: phy: Add helper for getting MAC series termination resistance Dimitri Fedrau via B4 Relay
2025-03-07 10:30 ` [PATCH net-next 3/3] net: phy: dp83822: Add support for changing the MAC series termination Dimitri Fedrau via B4 Relay
2025-03-07 13:39 ` [PATCH net-next 0/3] " Andrew Lunn
2025-03-07 14:22 ` Dimitri Fedrau
2025-03-07 15:34 ` Andrew Lunn
2025-03-07 19:23 ` Dimitri Fedrau
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=de68ea7e-1ca5-4983-9824-3fb432b00e82@lunn.ch \
--to=andrew@lunn.ch \
--cc=conor+dt@kernel.org \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=dima.fedrau@gmail.com \
--cc=dimitri.fedrau@liebherr.com \
--cc=edumazet@google.com \
--cc=f.fainelli@gmail.com \
--cc=hkallweit1@gmail.com \
--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=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®