[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <f5c5cbce-c36e-498a-97e2-35f06d927d74@lunn.ch>
Date: Fri, 15 Dec 2023 14:31:13 +0100
From: Andrew Lunn <andrew@...n.ch>
To: Jie Luo <quic_luoj@...cinc.com>
Cc: davem@...emloft.net, edumazet@...gle.com, kuba@...nel.org,
pabeni@...hat.com, robh+dt@...nel.org,
krzysztof.kozlowski+dt@...aro.org, conor+dt@...nel.org,
hkallweit1@...il.com, linux@...linux.org.uk, corbet@....net,
p.zabel@...gutronix.de, f.fainelli@...il.com,
netdev@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-doc@...r.kernel.org
Subject: Re: [PATCH v8 14/14] dt-bindings: net: ar803x: add qca8084 PHY
properties
On Fri, Dec 15, 2023 at 08:33:00PM +0800, Jie Luo wrote:
>
>
> On 12/15/2023 8:12 PM, Andrew Lunn wrote:
> > > + clocks:
> > > + items:
> > > + - description: APB bridge clock
> > > + - description: AHB clock
> > > + - description: Security control clock
> > > + - description: TLMM clock
> > > + - description: TLMM AHB clock
> > > + - description: CNOC AHB clock
> > > + - description: MDIO AHB clock
> > > + - description: MDIO master AHB clock
> > > + - description: PCS0 system clock
> > > + - description: PCS1 system clock
> > > + - description: EPHY0 system clock
> > > + - description: EPHY1 system clock
> > > + - description: EPHY2 system clock
> > > + - description: EPHY3 system clock
> Hi Andrew,
> These clocks are for the whole PHY package including quad PHYs, since
> these clocks & resets need to be initialized at one point, i put it
> the previous MDIO driver code, these clocks & resets are configured
> after GPIO hardware reset, after these clocks and resets sequences
> configured, each PHY capabilities can be acquired correctly in the PHY
> probe function.
I really expect the hardware is hierarchical. Its unlikely that EPHY0
is connected to all four PHYs in the package. Its specific to one
PHY. So it should be in the DT properties for that one specific PHY. I
expect the resets are the same. It seems there is a soft and hard
reset per PHY, so i would expect these to be in the node for one PHY.
Do the two PCS instances take up two MDIO address? They can be
considered devices on the bus, so could have a DT node, and hence you
can place the PCS clocks on that node?
What exactly do the two MDIO clocks do? I assume these are not for the
MDIO bus master, but the MDIO slave block within the PHY package?
There is one MDIO slave block shared by the four PHYs. So these are
package properties and should be in the package node in DT.
Look at all the other clocks and decide, are they package clocks, or
specific to one block on the MDIO bus? Do the properties go in the
package node, or the per PHY node?
Andrew
Powered by blists - more mailing lists