From: Matthew Leung <matthew.leung@oss.qualcomm.com>
To: Dmitry Baryshkov <dmitry.baryshkov@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>,
linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 1/2] dt-bindings: PCI: qcom: Document the Hawi PCIe Controller
Date: Thu, 11 Jun 2026 18:17:57 -0700 [thread overview]
Message-ID: <aiteRU8cWykuhlVO@hu-mattleun-lv.qualcomm.com> (raw)
In-Reply-To: <2tenqkmwcr2gshtjwh44pvban4gtlzcgrm3iibkfrs4zh6vphb@h5losfunylr6>
On Sun, Jun 07, 2026 at 11:01:10PM +0300, Dmitry Baryshkov wrote:
> On Fri, May 29, 2026 at 01:10:08AM +0000, Matthew Leung wrote:
> > Add a dedicated schema for the PCIe controllers found on the Hawi
> > platform.
> >
> > Signed-off-by: Matthew Leung <matthew.leung@oss.qualcomm.com>
> > ---
> > .../devicetree/bindings/pci/qcom,hawi-pcie.yaml | 204 +++++++++++++++++++++
> > 1 file changed, 204 insertions(+)
> >
> > +
> > +examples:
> > + - |
> > + #include <dt-bindings/clock/qcom,hawi-gcc.h>
> > + #include <dt-bindings/gpio/gpio.h>
> > + #include <dt-bindings/interconnect/qcom,icc.h>
> > + #include <dt-bindings/interconnect/qcom,hawi-rpmh.h>
>
> Stop referencing clocks and interconnect header files. Replace used nocs
> with ephemeral values.
>
> > + #include <dt-bindings/interrupt-controller/arm-gic.h>
> > +
> > + soc {
> > + #address-cells = <2>;
> > + #size-cells = <2>;
>
> Not looking around should be a sin. Take a look at other Qualcomm PCIe
> bindings. Compare them to yours. Then fix yours to follow.
>
> Hint: the extra soc node is useless. This is just an example, so use the
> default, 1 cells for address and size.
Thank you for the feedback. This new binding follows the examples set in
the qcom,pcie-sm8x50 bindings and retains the same formatting (extra soc
node and header references).
I understand the example can be simplified with your suggestions but
want additional confirmation that these will be the convention for new
bindings going forward.
>
> > +
> > + pcie@1c00000 {
> > + compatible = "qcom,hawi-pcie";
> > + reg = <0 0x01c00000 0 0x3000>,
> > + <0 0x40000000 0 0xf1d>,
> > + <0 0x40000f20 0 0xa8>,
> > + <0 0x40001000 0 0x1000>,
> > + <0 0x40100000 0 0x100000>;
> > + reg-names = "parf", "dbi", "elbi", "atu", "config";
> > + ranges = <0x01000000 0x0 0x00000000 0x0 0x40200000 0x0 0x100000>,
> > + <0x02000000 0x0 0x40300000 0x0 0x40300000 0x0 0x3d00000>;
> > +
> > + bus-range = <0x00 0xff>;
> > + device_type = "pci";
> > + linux,pci-domain = <0>;
> > + num-lanes = <2>;
> > +
> > + #address-cells = <3>;
> > + #size-cells = <2>;
> > +
> > + clocks = <&gcc GCC_PCIE_0_AUX_CLK>,
>
> <&gcc_pcie_0_aux_clk>, etc.
>
> > + <&gcc GCC_PCIE_0_CFG_AHB_CLK>,
> > + <&gcc GCC_PCIE_0_MSTR_AXI_CLK>,
> > + <&gcc GCC_PCIE_0_SLV_AXI_CLK>,
> > + <&gcc GCC_PCIE_0_SLV_Q2A_AXI_CLK>,
> > + <&gcc GCC_AGGRE_NOC_PCIE_AXI_CLK>,
> > + <&gcc GCC_CNOC_PCIE_SF_AXI_CLK>;
>
> --
> With best wishes
> Dmitry
next prev parent reply other threads:[~2026-06-12 1:18 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-29 1:10 [PATCH v2 0/2] PCI: qcom: Add PCIe support for upcoming Hawi SoC Matthew Leung
2026-05-29 1:10 ` [PATCH v2 1/2] dt-bindings: PCI: qcom: Document the Hawi PCIe Controller Matthew Leung
2026-05-30 10:06 ` Krzysztof Kozlowski
2026-06-07 20:01 ` Dmitry Baryshkov
2026-06-12 1:17 ` Matthew Leung [this message]
2026-06-12 6:22 ` Dmitry Baryshkov
2026-06-18 4:44 ` Matthew Leung
2026-06-18 5:51 ` Manivannan Sadhasivam
2026-05-29 1:10 ` [PATCH v2 2/2] PCI: qcom: Add support for Hawi Matthew Leung
2026-05-29 1:47 ` sashiko-bot
2026-05-30 10:06 ` [PATCH v2 0/2] PCI: qcom: Add PCIe support for upcoming Hawi SoC Krzysztof Kozlowski
2026-06-02 23:26 ` Matthew Leung
2026-06-04 12:09 ` Manivannan Sadhasivam
2026-06-05 1:27 ` Matthew Leung
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=aiteRU8cWykuhlVO@hu-mattleun-lv.qualcomm.com \
--to=matthew.leung@oss.qualcomm.com \
--cc=andersson@kernel.org \
--cc=bhelgaas@google.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.baryshkov@oss.qualcomm.com \
--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