[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Zv7ubCFWz2ykztcR@hu-bjorande-lv.qualcomm.com>
Date: Thu, 3 Oct 2024 12:20:12 -0700
From: Bjorn Andersson <quic_bjorande@...cinc.com>
To: Kiran Kumar C.S.K <quic_kkumarcs@...cinc.com>
CC: Andrew Lunn <andrew@...n.ch>, <netdev@...r.kernel.org>,
Andy Gross
<agross@...nel.org>,
Bjorn Andersson <andersson@...nel.org>,
Konrad Dybcio
<konrad.dybcio@...aro.org>,
"David S. Miller" <davem@...emloft.net>,
"Eric
Dumazet" <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>, Paolo Abeni
<pabeni@...hat.com>,
Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski
<krzysztof.kozlowski+dt@...aro.org>,
Conor Dooley <conor+dt@...nel.org>,
Philipp Zabel <p.zabel@...gutronix.de>,
Russell King <linux@...linux.org.uk>,
Jacob Keller <jacob.e.keller@...el.com>,
Bhupesh Sharma
<bhupesh.sharma@...aro.org>,
<linux-arm-msm@...r.kernel.org>, <devicetree@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, <vsmuthu@....qualcomm.com>,
<arastogi@....qualcomm.com>, <linchen@....qualcomm.com>,
<john@...ozen.org>, Luo Jie
<quic_luoj@...cinc.com>,
Pavithra R <quic_pavir@...cinc.com>,
"Suruchi
Agarwal (QUIC)" <quic_suruchia@...cinc.com>,
"Lei Wei (QUIC)"
<quic_leiwei@...cinc.com>
Subject: Re: RFC: Advice on adding support for Qualcomm IPQ9574 SoC Ethernet
On Thu, Oct 03, 2024 at 11:20:03PM +0530, Kiran Kumar C.S.K wrote:
> On 10/3/2024 2:58 AM, Andrew Lunn wrote:
> > On Thu, Oct 03, 2024 at 02:07:10AM +0530, Kiran Kumar C.S.K wrote:
[..]
> >> 2. List of patch series and dependencies
> >> ========================================
> >>
> >> Clock drivers (currently in review)
> >> ===================================
> >> 1) CMN PLL driver patch series:
> >> Currently in review with community.
> >> https://lore.kernel.org/linux-arm-msm/20240827-qcom_ipq_cmnpll-v3-0-8e009cece8b2@quicinc.com/
> >>
> >>
> >> 2) NSS clock controller (NSSCC) driver patch series
> >> Currently in review with community.
> >> https://lore.kernel.org/linux-arm-msm/20240626143302.810632-1-quic_devipriy@quicinc.com/
> >>
> >>
> >> Networking drivers (to be posted for review next week)
> >> ======================================================
> >>
> >> The following patch series are planned to be pushed for the PPE and PCS
> >> drivers, to support ethernet function. These patch series are listed
> >> below in dependency order.
> >>
> >> 3) PCS driver patch series:
> >> Driver for the PCS block in IPQ9574. New IPQ PCS driver will
> >> be enabled in drivers/net/pcs/
> >> Dependent on NSS CC patch series (2).
> >
> > I assume this dependency is pure at runtime? So the code will build
> > without the NSS CC patch series?
>
> The MII Rx/Tx clocks are supplied from the NSS clock controller to the
> PCS's MII channels. To represent this in the DTS, the PCS node in the
> DTS is configured with the MII Rx/Tx clock that it consumes, using
> macros for clocks which are exported from the NSS CC driver in a header
> file. So, there will be a compile-time dependency for the dtbindings/DTS
> on the NSS CC patch series. We will clearly call out this dependency in
> the cover letter of the PCS driver. Hope that this approach is ok.
>
So you're not going to expose these clocks through the common clock
framework and use standard DeviceTree properties for consuming the
clocks?
I expect the bindings for these things to go through respective tree
(clock and netdev) and then the DeviceTree source (dts) addition to go
through the qcom tree.
The only remaining dependency I was expecting is the qcom tree depending
on the clock and netdev trees to have picked up the bindings, and for
new bindings I do accept dts changes in the same cycle (I validate dts
against bindings in linux-next).
Regards,
Bjorn
> >
> > This should be a good way to start, PCS drivers are typically nice and
> > simple.
> >
>
> Sure, thanks for the inputs.
>
> > Andrew
>
>
Powered by blists - more mailing lists