From: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
To: Bjorn Andersson <andersson@kernel.org>
Cc: Konrad Dybcio <konrad.dybcio@linaro.org>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Conor Dooley <conor+dt@kernel.org>,
cros-qcom-dts-watchers@chromium.org,
linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 09/21] arm64: dts: qcom: sc8280xp: Add PCIe bridge node
Date: Mon, 18 Mar 2024 10:54:45 +0530 [thread overview]
Message-ID: <20240318052445.GC2748@thinkpad> (raw)
In-Reply-To: <26mic7smm2aez3enydiiuul2c5yru4kmx26n4mo63nvy4bscuv@jql4hhe3gia6>
On Sun, Mar 17, 2024 at 10:37:15PM -0500, Bjorn Andersson wrote:
> On Thu, Feb 22, 2024 at 11:09:58AM +0530, Manivannan Sadhasivam wrote:
> > On Wed, Feb 21, 2024 at 01:39:01PM +0100, Konrad Dybcio wrote:
> > > On 21.02.2024 04:41, Manivannan Sadhasivam wrote:
> > > > On Qcom SoCs, the PCIe host bridge is connected to a single PCIe bridge
> > > > for each controller instance. Hence, add a node to represent the bridge.
> > > >
> > > > While at it, let's remove the bridge properties from board dts as they are
> > > > now redundant.
> > > >
> > > > Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
> > > > ---
> > > > .../dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts | 8 -----
> > > > arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 40 ++++++++++++++++++++++
> > > > 2 files changed, 40 insertions(+), 8 deletions(-)
> > > >
> > > > diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts b/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts
> > > > index def3976bd5bb..f0a0115e08fa 100644
> > > > --- a/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts
> > > > +++ b/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts
> > > > @@ -733,14 +733,6 @@ &pcie4 {
> > > > status = "okay";
> > > >
> > > > pcie@0 {
> > > > - device_type = "pci";
> > > > - reg = <0x0 0x0 0x0 0x0 0x0>;
> > > > - #address-cells = <3>;
> > > > - #size-cells = <2>;
> > > > - ranges;
> > > > -
> > > > - bus-range = <0x01 0xff>;
> > > > -
> > > > wifi@0 {
> > >
> > > This doesn't seem right, pleas use a label
> > >
> >
> > Why? A node label is useful if we want to reference it at the root level in
> > board dts, but here it is not.
> >
>
> Giving the bridge a label and then adding wifi@0 as a child using that
> label in the dts is pretty much how we do for everything else.
>
> I find this over-flattening hard to follow, but relying on child node
> names when extending the structure or adding properties have bitten us
> many times in the past.
>
> As such, I think the desired result in the dts should be:
>
> &pcie4 {
> status = "okay";
> };
>
> &pcie4_bridge {
> wifi@0 {
> ...
> };
> };
>
Ok. Will change it in next version. I'm also waiting to conclude on representing
the PERST# and WAKE# properties properly in the schema [1]. Once that gets
finalized, I'll respin v2.
- Mani
[1] https://github.com/devicetree-org/dt-schema/pull/126
> Regards,
> Bjorn
>
> > - Mani
> >
> > --
> > மணிவண்ணன் சதாசிவம்
--
மணிவண்ணன் சதாசிவம்
next prev parent reply other threads:[~2024-03-18 5:24 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-21 3:41 [PATCH 00/21] Add PCIe bridge node in DT for Qcom SoCs Manivannan Sadhasivam
2024-02-21 3:41 ` [PATCH 01/21] arm64: dts: qcom: sm8250: Add PCIe bridge node Manivannan Sadhasivam
2024-02-21 3:41 ` [PATCH 02/21] arm64: dts: qcom: sdm845: " Manivannan Sadhasivam
2024-02-21 3:41 ` [PATCH 03/21] arm64: dts: qcom: sm8150: " Manivannan Sadhasivam
2024-02-21 3:41 ` [PATCH 04/21] arm64: dts: qcom: sm8350: " Manivannan Sadhasivam
2024-02-21 3:41 ` [PATCH 05/21] arm64: dts: qcom: sm8450: " Manivannan Sadhasivam
2024-02-21 12:46 ` neil.armstrong
2024-02-21 3:41 ` [PATCH 06/21] arm64: dts: qcom: sm8550: " Manivannan Sadhasivam
2024-02-21 12:46 ` neil.armstrong
2024-02-21 3:41 ` [PATCH 07/21] arm64: dts: qcom: sm8650: " Manivannan Sadhasivam
2024-02-21 12:46 ` neil.armstrong
2024-02-21 3:41 ` [PATCH 08/21] arm64: dts: qcom: sa8775p: " Manivannan Sadhasivam
2024-02-21 3:41 ` [PATCH 09/21] arm64: dts: qcom: sc8280xp: " Manivannan Sadhasivam
2024-02-21 12:39 ` Konrad Dybcio
2024-02-22 5:39 ` Manivannan Sadhasivam
2024-03-18 3:37 ` Bjorn Andersson
2024-03-18 5:24 ` Manivannan Sadhasivam [this message]
2024-02-21 3:41 ` [PATCH 10/21] arm64: dts: qcom: msm8998: " Manivannan Sadhasivam
2024-02-21 3:41 ` [PATCH 11/21] arm64: dts: qcom: sc7280: " Manivannan Sadhasivam
2024-02-21 3:41 ` [PATCH 12/21] arm64: dts: qcom: qcs404: " Manivannan Sadhasivam
2024-02-21 3:41 ` [PATCH 13/21] arm64: dts: qcom: sc8180x: " Manivannan Sadhasivam
2024-02-21 3:42 ` [PATCH 14/21] arm64: dts: qcom: msm8996: " Manivannan Sadhasivam
2024-02-21 3:42 ` [PATCH 15/21] arm64: dts: qcom: ipq8074: " Manivannan Sadhasivam
2024-02-21 3:42 ` [PATCH 16/21] arm64: dts: qcom: ipq6018: " Manivannan Sadhasivam
2024-02-21 3:42 ` [PATCH 17/21] ARM: dts: qcom: ipq8064: " Manivannan Sadhasivam
2024-02-21 3:42 ` [PATCH 18/21] ARM: dts: qcom: ipq4019: " Manivannan Sadhasivam
2024-02-21 3:42 ` [PATCH 19/21] ARM: dts: qcom: apq8064: " Manivannan Sadhasivam
2024-02-21 3:42 ` [PATCH 20/21] ARM: dts: qcom: sdx55: " Manivannan Sadhasivam
2024-02-21 3:42 ` [PATCH 21/21] arm64: dts: qcom: sm8650: Use "pcie" as the node name instead of "pci" Manivannan Sadhasivam
2024-02-21 12:39 ` Konrad Dybcio
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=20240318052445.GC2748@thinkpad \
--to=manivannan.sadhasivam@linaro.org \
--cc=andersson@kernel.org \
--cc=conor+dt@kernel.org \
--cc=cros-qcom-dts-watchers@chromium.org \
--cc=devicetree@vger.kernel.org \
--cc=konrad.dybcio@linaro.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh+dt@kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).