[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <718ad27e-ae17-4cb6-bb86-51d00a1b72df@lunn.ch>
Date: Fri, 16 Aug 2024 05:28:06 +0200
From: Andrew Lunn <andrew@...n.ch>
To: Wei Fang <wei.fang@....com>
Cc: "davem@...emloft.net" <davem@...emloft.net>,
"edumazet@...gle.com" <edumazet@...gle.com>,
"kuba@...nel.org" <kuba@...nel.org>,
"pabeni@...hat.com" <pabeni@...hat.com>,
"robh@...nel.org" <robh@...nel.org>,
"krzk+dt@...nel.org" <krzk+dt@...nel.org>,
"conor+dt@...nel.org" <conor+dt@...nel.org>,
"f.fainelli@...il.com" <f.fainelli@...il.com>,
"hkallweit1@...il.com" <hkallweit1@...il.com>,
"linux@...linux.org.uk" <linux@...linux.org.uk>,
"Andrei Botila (OSS)" <andrei.botila@....nxp.com>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH net-next 1/3] dt-bindings: net: tja11xx: use reverse-mode
to instead of rmii-refclk-in
> Based on the TJA data sheet, like TJA1103/TJA1104, if the reverse mode
> is set. If XMII_MODE is set to MII, the device operates in revMII mode
> (TXCLK and RXCLK are input). If XMII_MODE is set to RMII, the device
> operates in revRMII mode (REF_CLK is output). So it's just that the input
> and output directions of xx_CLK are reversed.
> we don't need to tell the MAC to play the role of the PHY, in our case, we
> just need the PHY to provide the reference clock in RMII mode.
If this is purely about providing a reference clock, normally 25Mhz,
there are a few PHY drivers which support this. Find one and copy
it. There is no need to invent something new.
Andrew
Powered by blists - more mailing lists