From: Varadarajan Narayanan <varadarajan.narayanan@oss.qualcomm.com>
To: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Cc: "Bjorn Helgaas" <bhelgaas@google.com>,
"Lorenzo Pieralisi" <lpieralisi@kernel.org>,
"Krzysztof Wilczyński" <kwilczynski@kernel.org>,
"Manivannan Sadhasivam" <mani@kernel.org>,
"Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Bjorn Andersson" <andersson@kernel.org>,
"Konrad Dybcio" <konradybcio@kernel.org>,
linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/2] arm64: dts: qcom: ipq5210: Enable PCIe support
Date: Thu, 4 Jun 2026 16:58:38 +0530 [thread overview]
Message-ID: <aiFhZsaZJoXzuMSk@hu-varada-blr.qualcomm.com> (raw)
In-Reply-To: <dc7cb371-e94e-4f42-87d6-70f0f94d0d49@oss.qualcomm.com>
On Fri, May 22, 2026 at 02:24:45PM +0200, Konrad Dybcio wrote:
> On 5/14/26 6:13 AM, Varadarajan Narayanan wrote:
> > Add DT entries to enable the PCIe controllers found in ipq5210.
> >
> > Signed-off-by: Varadarajan Narayanan <varadarajan.narayanan@oss.qualcomm.com>
> > ---
>
> [...]
>
> > &tlmm {
> > + pcie0_default_state: pcie0-default-state {
> > + pins = "gpio32";
> > + function = "gpio";
> > + drive-strength = <6>;
> > + bias-pull-down;
> > + output-low;
> > + };
> > +
> > + pcie1_default_state: pcie1-default-state {
> > + pins = "gpio29";
> > + function = "gpio";
> > + drive-strength = <6>;
> > + bias-pull-down;
> > + output-low;
>
> You shouldn't need output-low in either of these definitions (+ sorting
> by GPIO idx would be extra neat)
Ok.
> [...]
>
> > clocks {
> > + pcie30_phy0_pipe_clk: pcie30_phy0_pipe_clk {
> > + compatible = "fixed-clock";
> > + clock-frequency = <250000000>;
> > + #clock-cells = <0>;
> > + };
> > +
> > + pcie30_phy1_pipe_clk: pcie30_phy1_pipe_clk {
> > + compatible = "fixed-clock";
> > + clock-frequency = <250000000>;
> > + #clock-cells = <0>;
> > + };
>
> Why do these exist? Just pass the QMPPHY reference straight to GCC
Ok.
> [...]
>
> > + pcie0_phy: phy@84000 {
> > + compatible = "qcom,ipq5210-qmp-gen3x1-pcie-phy",
> > + "qcom,ipq9574-qmp-gen3x1-pcie-phy";
> > + reg = <0x0 0x00084000 0x0 0x1000>;
> > +
> > + clocks = <&gcc GCC_PCIE0_AUX_CLK>,
> > + <&gcc GCC_PCIE0_AHB_CLK>,
> > + <&gcc GCC_PCIE0_PIPE_CLK>;
> > + clock-names = "aux", "cfg_ahb", "pipe";
> > +
> > + assigned-clocks = <&gcc GCC_PCIE0_AUX_CLK>;
> > + assigned-clock-rates = <20000000>;
>
> Is this clock supposed to be fixed at that rate, regardless of the link
> speed? And is the default rate incorrect?
Will drop this.
> > +
> > + resets = <&gcc GCC_PCIE0_PHY_BCR>,
> > + <&gcc GCC_PCIE0PHY_PHY_BCR>;
> > + reset-names = "phy", "common";
> > +
> > + #clock-cells = <0>;
> > + clock-output-names = "gcc_pcie0_pipe_clk_src";
>
> Having a gcc_ prefix here smells fishy..
Followed what was used in ipq9574, ipq5424 etc. Will remove gcc_ & _src.
> [...]
>
> > + clocks = <&gcc GCC_PCIE1_AXI_M_CLK>,
> > + <&gcc GCC_PCIE1_AXI_S_CLK>,
> > + <&gcc GCC_PCIE1_AXI_S_BRIDGE_CLK>,
> > + <&gcc GCC_PCIE1_RCHNG_CLK>,
> > + <&gcc GCC_PCIE1_AHB_CLK>,
> > + <&gcc GCC_PCIE1_AUX_CLK>;
> > +
> > + clock-names = "axi_m",
>
> stray \n above, also in resets
Ok.
> [...]
>
> > + pcie1_rp: pcie@0 {
>
> pcie1_port0 for consistency with other DTs, please
>
> Same comments for the other port
Ok.
Thanks
Varada
next prev parent reply other threads:[~2026-06-04 11:28 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-14 4:13 [PATCH 0/2] Enable PCIe controllers present in Qualcomm ipq5210 Varadarajan Narayanan
2026-05-14 4:13 ` [PATCH 1/2] dt-bindings: PCI: qcom,pcie-ipq9574: Document the ipq5210 pcie controller Varadarajan Narayanan
2026-05-15 10:55 ` Krzysztof Kozlowski
2026-05-14 4:13 ` [PATCH 2/2] arm64: dts: qcom: ipq5210: Enable PCIe support Varadarajan Narayanan
2026-05-14 12:33 ` sashiko-bot
2026-05-19 16:57 ` Manivannan Sadhasivam
2026-05-22 12:24 ` Konrad Dybcio
2026-06-04 11:28 ` Varadarajan Narayanan [this message]
2026-06-08 9:44 ` Konrad Dybcio
2026-06-09 7:52 ` Varadarajan Narayanan
2026-06-17 10:47 ` 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=aiFhZsaZJoXzuMSk@hu-varada-blr.qualcomm.com \
--to=varadarajan.narayanan@oss.qualcomm.com \
--cc=andersson@kernel.org \
--cc=bhelgaas@google.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=konrad.dybcio@oss.qualcomm.com \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=kwilczynski@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=lpieralisi@kernel.org \
--cc=mani@kernel.org \
--cc=robh@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