From: Andrew Lunn <andrew@lunn.ch>
To: Wei Fang <wei.fang@nxp.com>
Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
pabeni@redhat.com, robh@kernel.org, krzk+dt@kernel.org,
conor+dt@kernel.org, f.fainelli@gmail.com, hkallweit1@gmail.com,
linux@armlinux.org.uk, andrei.botila@oss.nxp.com,
netdev@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH net-next 1/3] dt-bindings: net: tja11xx: use reverse-mode to instead of rmii-refclk-in
Date: Thu, 15 Aug 2024 16:33:00 +0200 [thread overview]
Message-ID: <7aabe196-6d5a-4207-ba75-20187f767cf9@lunn.ch> (raw)
In-Reply-To: <20240815055126.137437-2-wei.fang@nxp.com>
On Thu, Aug 15, 2024 at 01:51:24PM +0800, Wei Fang wrote:
> Per the MII and RMII specifications, for the standard RMII mode,
> the REF_CLK is sourced from MAC to PHY or from an external source.
> For the standard MII mode, the RX_CLK and TX_CLK are both sourced
> by the PHY. But for TJA11xx PHYs, they support reverse mode, that
> is, for revRMII mode, the REF_CLK is output, and for revMII mode,
> the TX_CLK and RX_CLK are inputs to the PHY.
> Previously the "nxp,rmii-refclk-in" was added to indicate that in
> RMII mode, if this property present, REF_CLK is input to the PHY,
> otherwise it is output. This seems inappropriate now. Firstly, for
> the standard RMII mode, REF_CLK is originally input, and there is
> no need to add the "nxp,rmii-refclk-in" property to indicate that
> REF_CLK is input. Secondly, this property is not generic for TJA
> PHYs, because it cannot cover the settings of TX_CLK and RX_CLK in
> MII mode. Therefore, add new property "nxp,reverse-mode" to instead
> of the "nxp,rmii-refclk-in" property.
Please could you add some justification why using
PHY_INTERFACE_MODE_REVRMII is not possible.
Andrew
next prev parent reply other threads:[~2024-08-15 14:33 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-15 5:51 [PATCH net-next 0/3] add "nxp,reverse-mode" to instead of "nxp,rmii-refclk-in" Wei Fang
2024-08-15 5:51 ` [PATCH net-next 1/3] dt-bindings: net: tja11xx: use reverse-mode to instead of rmii-refclk-in Wei Fang
2024-08-15 14:33 ` Andrew Lunn [this message]
2024-08-16 1:39 ` Wei Fang
2024-08-16 2:32 ` Andrew Lunn
2024-08-16 2:57 ` Wei Fang
2024-08-16 3:28 ` Andrew Lunn
2024-08-16 5:01 ` Wei Fang
2024-08-20 5:13 ` Wei Fang
2024-08-20 13:25 ` Andrew Lunn
2024-08-21 1:40 ` Wei Fang
2024-08-15 5:51 ` [PATCH net-next 2/3] net: phy: tja11xx: replace "nxp,rmii-refclk-in" with "nxp,reverse-mode" Wei Fang
2024-08-15 13:37 ` Simon Horman
2024-08-15 5:51 ` [PATCH net-next 3/3] net: phy: c45-tja11xx: add revRMII mode support Wei Fang
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=7aabe196-6d5a-4207-ba75-20187f767cf9@lunn.ch \
--to=andrew@lunn.ch \
--cc=andrei.botila@oss.nxp.com \
--cc=conor+dt@kernel.org \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--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 \
--cc=wei.fang@nxp.com \
/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®