From: Rob Herring <robh@kernel.org>
To: Serge Semin <fancer.lancer@gmail.com>
Cc: Andrew Lunn <andrew@lunn.ch>, Tomer Maimon <tmaimon77@gmail.com>,
Alexandre Torgue <alexandre.torgue@foss.st.com>,
Eric Dumazet <edumazet@google.com>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Sagar Cheluvegowda <quic_scheluve@quicinc.com>,
Florian Fainelli <f.fainelli@gmail.com>,
openbmc@lists.ozlabs.org, Russell King <linux@armlinux.org.uk>,
Maxime Chevallier <maxime.chevallier@bootlin.com>,
Jose Abreu <joabreu@synopsys.com>,
Abhishek Chauhan <quic_abchauha@quicinc.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Andrew Halaney <ahalaney@redhat.com>,
Jose Abreu <Jose.Abreu@synopsys.com>,
devicetree@vger.kernel.org, Conor Dooley <conor+dt@kernel.org>,
Jiawen Wu <jiawenwu@trustnetic.com>,
Mengyuan Lou <mengyuanlou@net-swift.com>,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
Conor Dooley <conor@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Vladimir Oltean <olteanv@gmail.com>,
"David S. Miller" <davem@davemloft.net>,
Heiner Kallweit <hkallweit1@gmail.com>
Subject: Re: [PATCH net-next v3 06/10] dt-bindings: net: Add Synopsys DW xPCS bindings
Date: Fri, 28 Jun 2024 16:12:46 -0600 [thread overview]
Message-ID: <20240628221246.GA296233-robh@kernel.org> (raw)
In-Reply-To: <e5mqaztxz62b7jktr47mojjrz7ht5m4ou4mqsxtozpp3xba7e4@uh7v5zn2pbn2>
On Thu, Jun 27, 2024 at 08:10:48PM +0300, Serge Semin wrote:
> On Thu, Jun 27, 2024 at 04:51:22PM +0100, Conor Dooley wrote:
> > On Thu, Jun 27, 2024 at 03:41:26AM +0300, Serge Semin wrote:
> > > + clocks:
> > > + description:
> > > + Both MCI and APB3 interfaces are supposed to be equipped with a clock
> > > + source connected via the clk_csr_i line.
> > > +
> > > + PCS/PMA layer can be clocked by an internal reference clock source
> > > + (phyN_core_refclk) or by an externally connected (phyN_pad_refclk) clock
> > > + generator. Both clocks can be supplied at a time.
> > > + minItems: 1
> > > + maxItems: 3
> > > +
> > > + clock-names:
> > > + oneOf:
> > > + - minItems: 1
> > > + items:
> > > + - enum: [core, pad]
> > > + - const: pad
> > > + - minItems: 1
> > > + items:
> > > + - const: pclk
> > > + - enum: [core, pad]
> > > + - const: pad
> >
>
> > While reading this, I'm kinda struggling to map "clk_csr_i" to a clock
> > name. Is that pclk? And why pclk if it is connected to "clk_csr_i"?
>
> Right. It's "pclk". The reason of using the "pclk" name is that it has
> turned to be a de-facto standard name in the DT-bindings for the
> peripheral bus clock sources utilized for the CSR-space IO buses.
> Moreover the STMMAC driver responsible for the parental DW *MAC
> devices handling also has the "pclk" name utilized for the clk_csr_i
> signal. So using the "pclk" name in the tightly coupled devices (MAC
> and PCS) for the same signal seemed a good idea.
It is? That's really just the name of the bus clock for APB (Arm
Peripheral Bus). If there's a name that matches the docs, use that.
Though I'd drop 'clk_' part.
Rob
WARNING: multiple messages have this Message-ID (diff)
From: Rob Herring <robh@kernel.org>
To: Serge Semin <fancer.lancer@gmail.com>
Cc: Conor Dooley <conor@kernel.org>, Andrew Lunn <andrew@lunn.ch>,
Heiner Kallweit <hkallweit1@gmail.com>,
Russell King <linux@armlinux.org.uk>,
Alexandre Torgue <alexandre.torgue@foss.st.com>,
Jose Abreu <joabreu@synopsys.com>,
Jose Abreu <Jose.Abreu@synopsys.com>,
Vladimir Oltean <olteanv@gmail.com>,
Florian Fainelli <f.fainelli@gmail.com>,
Maxime Chevallier <maxime.chevallier@bootlin.com>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Conor Dooley <conor+dt@kernel.org>,
"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>,
Sagar Cheluvegowda <quic_scheluve@quicinc.com>,
Abhishek Chauhan <quic_abchauha@quicinc.com>,
Andrew Halaney <ahalaney@redhat.com>,
Jiawen Wu <jiawenwu@trustnetic.com>,
Mengyuan Lou <mengyuanlou@net-swift.com>,
Tomer Maimon <tmaimon77@gmail.com>,
openbmc@lists.ozlabs.org, netdev@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH net-next v3 06/10] dt-bindings: net: Add Synopsys DW xPCS bindings
Date: Fri, 28 Jun 2024 16:12:46 -0600 [thread overview]
Message-ID: <20240628221246.GA296233-robh@kernel.org> (raw)
In-Reply-To: <e5mqaztxz62b7jktr47mojjrz7ht5m4ou4mqsxtozpp3xba7e4@uh7v5zn2pbn2>
On Thu, Jun 27, 2024 at 08:10:48PM +0300, Serge Semin wrote:
> On Thu, Jun 27, 2024 at 04:51:22PM +0100, Conor Dooley wrote:
> > On Thu, Jun 27, 2024 at 03:41:26AM +0300, Serge Semin wrote:
> > > + clocks:
> > > + description:
> > > + Both MCI and APB3 interfaces are supposed to be equipped with a clock
> > > + source connected via the clk_csr_i line.
> > > +
> > > + PCS/PMA layer can be clocked by an internal reference clock source
> > > + (phyN_core_refclk) or by an externally connected (phyN_pad_refclk) clock
> > > + generator. Both clocks can be supplied at a time.
> > > + minItems: 1
> > > + maxItems: 3
> > > +
> > > + clock-names:
> > > + oneOf:
> > > + - minItems: 1
> > > + items:
> > > + - enum: [core, pad]
> > > + - const: pad
> > > + - minItems: 1
> > > + items:
> > > + - const: pclk
> > > + - enum: [core, pad]
> > > + - const: pad
> >
>
> > While reading this, I'm kinda struggling to map "clk_csr_i" to a clock
> > name. Is that pclk? And why pclk if it is connected to "clk_csr_i"?
>
> Right. It's "pclk". The reason of using the "pclk" name is that it has
> turned to be a de-facto standard name in the DT-bindings for the
> peripheral bus clock sources utilized for the CSR-space IO buses.
> Moreover the STMMAC driver responsible for the parental DW *MAC
> devices handling also has the "pclk" name utilized for the clk_csr_i
> signal. So using the "pclk" name in the tightly coupled devices (MAC
> and PCS) for the same signal seemed a good idea.
It is? That's really just the name of the bus clock for APB (Arm
Peripheral Bus). If there's a name that matches the docs, use that.
Though I'd drop 'clk_' part.
Rob
next prev parent reply other threads:[~2024-06-28 22:13 UTC|newest]
Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-27 0:41 [PATCH net-next v3 00/10] net: pcs: xpcs: Add memory-mapped device support Serge Semin
2024-06-27 0:41 ` Serge Semin
2024-06-27 0:41 ` [PATCH net-next v3 01/10] net: pcs: xpcs: Move native device ID macro to linux/pcs/pcs-xpcs.h Serge Semin
2024-06-27 0:41 ` Serge Semin
2024-06-27 13:01 ` Andrew Lunn
2024-06-27 13:01 ` Andrew Lunn
2024-06-27 0:41 ` [PATCH net-next v3 02/10] net: pcs: xpcs: Split up xpcs_create() body to sub-functions Serge Semin
2024-06-27 0:41 ` Serge Semin
2024-06-27 13:07 ` Andrew Lunn
2024-06-27 13:07 ` Andrew Lunn
2024-06-27 0:41 ` [PATCH net-next v3 03/10] net: pcs: xpcs: Convert xpcs_id to dw_xpcs_desc Serge Semin
2024-06-27 0:41 ` Serge Semin
2024-06-27 13:10 ` Andrew Lunn
2024-06-27 13:10 ` Andrew Lunn
2024-06-27 14:21 ` Serge Semin
2024-06-27 14:21 ` Serge Semin
2024-06-27 0:41 ` [PATCH net-next v3 04/10] net: pcs: xpcs: Convert xpcs_compat to dw_xpcs_compat Serge Semin
2024-06-27 0:41 ` Serge Semin
2024-06-27 13:11 ` Andrew Lunn
2024-06-27 13:11 ` Andrew Lunn
2024-06-27 0:41 ` [PATCH net-next v3 05/10] net: pcs: xpcs: Introduce DW XPCS info structure Serge Semin
2024-06-27 0:41 ` Serge Semin
2024-06-27 0:41 ` [PATCH net-next v3 06/10] dt-bindings: net: Add Synopsys DW xPCS bindings Serge Semin
2024-06-27 0:41 ` Serge Semin
2024-06-27 15:51 ` Conor Dooley
2024-06-27 15:51 ` Conor Dooley
2024-06-27 17:10 ` Serge Semin
2024-06-27 17:10 ` Serge Semin
2024-06-28 16:42 ` Conor Dooley
2024-06-28 16:42 ` Conor Dooley
2024-06-28 17:06 ` Serge Semin
2024-06-28 17:06 ` Serge Semin
2024-06-28 22:12 ` Rob Herring [this message]
2024-06-28 22:12 ` Rob Herring
2024-07-01 1:40 ` Serge Semin
2024-07-01 1:40 ` Serge Semin
2024-06-27 0:41 ` [PATCH net-next v3 07/10] net: pcs: xpcs: Add Synopsys DW xPCS platform device driver Serge Semin
2024-06-27 0:41 ` Serge Semin
2024-06-27 0:41 ` [PATCH net-next v3 08/10] net: pcs: xpcs: Add fwnode-based descriptor creation method Serge Semin
2024-06-27 0:41 ` Serge Semin
2024-06-27 0:41 ` [PATCH net-next v3 09/10] net: stmmac: Create DW XPCS device with particular address Serge Semin
2024-06-27 0:41 ` [PATCH net-next v3 10/10] net: stmmac: Add DW XPCS specified via "pcs-handle" support Serge Semin
2024-06-27 11:10 ` [PATCH net-next v3 00/10] net: pcs: xpcs: Add memory-mapped device support Vladimir Oltean
2024-06-27 11:10 ` Vladimir Oltean
2024-06-27 14:09 ` Serge Semin
2024-06-27 14:09 ` Serge Semin
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=20240628221246.GA296233-robh@kernel.org \
--to=robh@kernel.org \
--cc=Jose.Abreu@synopsys.com \
--cc=ahalaney@redhat.com \
--cc=alexandre.torgue@foss.st.com \
--cc=andrew@lunn.ch \
--cc=conor+dt@kernel.org \
--cc=conor@kernel.org \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=edumazet@google.com \
--cc=f.fainelli@gmail.com \
--cc=fancer.lancer@gmail.com \
--cc=hkallweit1@gmail.com \
--cc=jiawenwu@trustnetic.com \
--cc=joabreu@synopsys.com \
--cc=krzk+dt@kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=maxime.chevallier@bootlin.com \
--cc=mengyuanlou@net-swift.com \
--cc=netdev@vger.kernel.org \
--cc=olteanv@gmail.com \
--cc=openbmc@lists.ozlabs.org \
--cc=pabeni@redhat.com \
--cc=quic_abchauha@quicinc.com \
--cc=quic_scheluve@quicinc.com \
--cc=tmaimon77@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.