linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Bhupesh Sharma <bhupesh.sharma@linaro.org>
To: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Cc: linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org,
	devicetree@vger.kernel.org, bhupesh.linux@gmail.com,
	lorenzo.pieralisi@arm.com, agross@kernel.org,
	bjorn.andersson@linaro.org, svarbanov@mm-sol.com,
	bhelgaas@google.com, linux-kernel@vger.kernel.org,
	robh+dt@kernel.org, sboyd@kernel.org, mturquette@baylibre.com,
	linux-clk@vger.kernel.org
Subject: Re: [PATCH v2 6/7] arm64: dts: qcom: sm8150: Add pcie nodes for SM8150
Date: Wed, 2 Mar 2022 17:45:08 +0530	[thread overview]
Message-ID: <CAH=2NtxEvKmq-8ABiozmiizunXQSsUeTrD=+UzsaAeh9hmRfow@mail.gmail.com> (raw)
In-Reply-To: <ce32cafe-8dd9-526d-5413-ad81df7b78eb@linaro.org>

Hi Dmitry,

Thanks for the review.

On Tue, 1 Mar 2022 at 17:29, Dmitry Baryshkov
<dmitry.baryshkov@linaro.org> wrote:
>
> On 01/03/2022 10:25, Bhupesh Sharma wrote:
> > Add nodes for the two PCIe controllers founds on the
> > SM8150 SoC.
> >
> > Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
> > Cc: Rob Herring <robh+dt@kernel.org>
> > Signed-off-by: Bhupesh Sharma <bhupesh.sharma@linaro.org>
> > ---
> >   arch/arm64/boot/dts/qcom/sm8150.dtsi | 243 +++++++++++++++++++++++++++
> >   1 file changed, 243 insertions(+)
> >
> > diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi
> > index 6012322a5984..b97f04ec9c6b 100644
> > --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi
> > +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi
> > @@ -1626,6 +1626,203 @@ system-cache-controller@9200000 {
> >                       interrupts = <GIC_SPI 582 IRQ_TYPE_LEVEL_HIGH>;
> >               };
> >
> > +             pcie0: pci@1c00000 {
> > +                     compatible = "qcom,pcie-sm8150", "snps,dw-pcie";
> > +                     reg = <0 0x01c00000 0 0x3000>,
> > +                           <0 0x60000000 0 0xf1d>,
> > +                           <0 0x60000f20 0 0xa8>,
> > +                           <0 0x60001000 0 0x1000>,
> > +                           <0 0x60100000 0 0x100000>;
> > +                     reg-names = "parf", "dbi", "elbi", "atu", "config";
> > +                     device_type = "pci";
> > +                     linux,pci-domain = <0>;
> > +                     bus-range = <0x00 0xff>;
> > +                     num-lanes = <1>;
> > +
> > +                     #address-cells = <3>;
> > +                     #size-cells = <2>;
> > +
> > +                     ranges = <0x01000000 0x0 0x60200000 0 0x60200000 0x0 0x100000>,
> > +                              <0x02000000 0x0 0x60300000 0 0x60300000 0x0 0x3d00000>;
> > +
> > +                     interrupts = <GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>;
> > +                     interrupt-names = "msi";
> > +                     #interrupt-cells = <1>;
> > +                     interrupt-map-mask = <0 0 0 0x7>;
> > +                     interrupt-map = <0 0 0 1 &intc 0 149 IRQ_TYPE_LEVEL_HIGH>, /* int_a */
> > +                                     <0 0 0 2 &intc 0 150 IRQ_TYPE_LEVEL_HIGH>, /* int_b */
> > +                                     <0 0 0 3 &intc 0 151 IRQ_TYPE_LEVEL_HIGH>, /* int_c */
> > +                                     <0 0 0 4 &intc 0 152 IRQ_TYPE_LEVEL_HIGH>; /* int_d */
> > +
> > +                     clocks = <&gcc GCC_PCIE_0_PIPE_CLK>,
> > +                              <&gcc GCC_PCIE_0_AUX_CLK>,
> > +                              <&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_TBU_CLK>;
> > +                     clock-names = "pipe",
> > +                                   "aux",
> > +                                   "cfg",
> > +                                   "bus_master",
> > +                                   "bus_slave",
> > +                                   "slave_q2a",
> > +                                   "tbu";
> > +
> > +                     iommus = <&apps_smmu 0x1d80 0x7f>;
> > +                     iommu-map = <0x0   &apps_smmu 0x1d80 0x1>,
> > +                                 <0x100 &apps_smmu 0x1d81 0x1>;
> > +
> > +                     resets = <&gcc GCC_PCIE_0_BCR>;
> > +                     reset-names = "pci";
> > +
> > +                     power-domains = <&gcc PCIE_0_GDSC>;
> > +
> > +                     phys = <&pcie0_lane>;
> > +                     phy-names = "pciephy";
> > +
> > +                     perst-gpio = <&tlmm 35 GPIO_ACTIVE_HIGH>;
> > +                     enable-gpio = <&tlmm 37 GPIO_ACTIVE_HIGH>;
> > +
> > +                     pinctrl-names = "default";
> > +                     pinctrl-0 = <&pcie0_default_state>;
> > +
> > +                     status = "disabled";
> > +             };
> > +
> > +             pcie0_phy: phy@1c06000 {
> > +                     compatible = "qcom,sm8150-qmp-gen3x1-pcie-phy";
> > +                     reg = <0 0x01c06000 0 0x1c0>;
> > +                     #address-cells = <2>;
> > +                     #size-cells = <2>;
> > +                     ranges;
> > +                     clocks = <&gcc GCC_PCIE_PHY_AUX_CLK>,
> > +                              <&gcc GCC_PCIE_0_CFG_AHB_CLK>,
> > +                              <&gcc GCC_PCIE0_PHY_REFGEN_CLK>;
> > +                     clock-names = "aux", "cfg_ahb", "refgen";
> > +
> > +                     resets = <&gcc GCC_PCIE_0_PHY_BCR>;
> > +                     reset-names = "phy";
> > +
> > +                     assigned-clocks = <&gcc GCC_PCIE0_PHY_REFGEN_CLK>;
> > +                     assigned-clock-rates = <100000000>;
> > +
> > +                     status = "disabled";
> > +
> > +                     pcie0_lane: phy@1c06200 {
> > +                             reg = <0 0x1c06200 0 0x170>, /* tx */
> > +                                   <0 0x1c06400 0 0x200>, /* rx */
> > +                                   <0 0x1c06800 0 0x1f0>, /* pcs */
> > +                                   <0 0x1c06c00 0 0xf4>; /* "pcs_lane" same as pcs_misc? */
> > +                             clocks = <&gcc GCC_PCIE_0_PIPE_CLK>;
> > +                             clock-names = "pipe0";
> > +
> > +                             #phy-cells = <0>;
> > +                             clock-output-names = "pcie_0_pipe_clk";
> > +                     };
> > +             };
> > +
> > +             pcie1: pci@1c08000 {
> > +                     compatible = "qcom,pcie-sm8150", "snps,dw-pcie";
> > +                     reg = <0 0x01c08000 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";
> > +                     device_type = "pci";
> > +                     linux,pci-domain = <1>;
> > +                     bus-range = <0x00 0xff>;
> > +                     num-lanes = <2>;
> > +
> > +                     #address-cells = <3>;
> > +                     #size-cells = <2>;
> > +
> > +                     ranges = <0x01000000 0x0 0x40200000 0x0 0x40200000 0x0 0x100000>,
> > +                              <0x02000000 0x0 0x40300000 0x0 0x40300000 0x0 0x1fd00000>;
> > +
> > +                     interrupts = <GIC_SPI 306 IRQ_TYPE_EDGE_RISING>;
>
> This should be 307

Oops. Yes, I will fix it in v3.

Thanks,
Bhupesh

> > +                     interrupt-names = "msi";
> > +                     #interrupt-cells = <1>;
> > +                     interrupt-map-mask = <0 0 0 0x7>;
> > +                     interrupt-map = <0 0 0 1 &intc 0 434 IRQ_TYPE_LEVEL_HIGH>, /* int_a */
> > +                                     <0 0 0 2 &intc 0 435 IRQ_TYPE_LEVEL_HIGH>, /* int_b */
> > +                                     <0 0 0 3 &intc 0 438 IRQ_TYPE_LEVEL_HIGH>, /* int_c */
> > +                                     <0 0 0 4 &intc 0 439 IRQ_TYPE_LEVEL_HIGH>; /* int_d */
> > +
> > +                     clocks = <&gcc GCC_PCIE_1_PIPE_CLK>,
> > +                              <&gcc GCC_PCIE_1_AUX_CLK>,
> > +                              <&gcc GCC_PCIE_1_CFG_AHB_CLK>,
> > +                              <&gcc GCC_PCIE_1_MSTR_AXI_CLK>,
> > +                              <&gcc GCC_PCIE_1_SLV_AXI_CLK>,
> > +                              <&gcc GCC_PCIE_1_SLV_Q2A_AXI_CLK>,
> > +                              <&gcc GCC_AGGRE_NOC_PCIE_TBU_CLK>;
> > +                     clock-names = "pipe",
> > +                                   "aux",
> > +                                   "cfg",
> > +                                   "bus_master",
> > +                                   "bus_slave",
> > +                                   "slave_q2a",
> > +                                   "tbu";
> > +
> > +                     assigned-clocks = <&gcc GCC_PCIE_1_AUX_CLK>;
> > +                     assigned-clock-rates = <19200000>;
> > +
> > +                     iommus = <&apps_smmu 0x1e00 0x7f>;
> > +                     iommu-map = <0x0   &apps_smmu 0x1e00 0x1>,
> > +                                 <0x100 &apps_smmu 0x1e01 0x1>;
> > +
> > +                     resets = <&gcc GCC_PCIE_1_BCR>;
> > +                     reset-names = "pci";
> > +
> > +                     power-domains = <&gcc PCIE_1_GDSC>;
> > +
> > +                     phys = <&pcie1_lane>;
> > +                     phy-names = "pciephy";
> > +
> > +                     perst-gpio = <&tlmm 102 GPIO_ACTIVE_HIGH>;
> > +                     enable-gpio = <&tlmm 104 GPIO_ACTIVE_HIGH>;
> > +
> > +                     pinctrl-names = "default";
> > +                     pinctrl-0 = <&pcie1_default_state>;
> > +
> > +                     status = "disabled";
> > +             };
> > +
> > +             pcie1_phy: phy@1c0e000 {
> > +                     compatible = "qcom,sm8150-qmp-gen3x2-pcie-phy";
> > +                     reg = <0 0x01c0e000 0 0x1c0>;
> > +                     #address-cells = <2>;
> > +                     #size-cells = <2>;
> > +                     ranges;
> > +                     clocks = <&gcc GCC_PCIE_PHY_AUX_CLK>,
> > +                              <&gcc GCC_PCIE_1_CFG_AHB_CLK>,
> > +                              <&gcc GCC_PCIE1_PHY_REFGEN_CLK>;
> > +                     clock-names = "aux", "cfg_ahb", "refgen";
> > +
> > +                     resets = <&gcc GCC_PCIE_1_PHY_BCR>;
> > +                     reset-names = "phy";
> > +
> > +                     assigned-clocks = <&gcc GCC_PCIE1_PHY_REFGEN_CLK>;
> > +                     assigned-clock-rates = <100000000>;
> > +
> > +                     status = "disabled";
> > +
> > +                     pcie1_lane: phy@1c0e200 {
> > +                             reg = <0 0x1c0e200 0 0x170>, /* tx0 */
> > +                                   <0 0x1c0e400 0 0x200>, /* rx0 */
> > +                                   <0 0x1c0ea00 0 0x1f0>, /* pcs */
> > +                                   <0 0x1c0e600 0 0x170>, /* tx1 */
> > +                                   <0 0x1c0e800 0 0x200>, /* rx1 */
> > +                                   <0 0x1c0ee00 0 0xf4>; /* "pcs_com" same as pcs_misc? */
> > +                             clocks = <&gcc GCC_PCIE_1_PIPE_CLK>;
> > +                             clock-names = "pipe0";
> > +
> > +                             #phy-cells = <0>;
> > +                             clock-output-names = "pcie_1_pipe_clk";
> > +                     };
> > +             };
> > +
> >               ufs_mem_hc: ufshc@1d84000 {
> >                       compatible = "qcom,sm8150-ufshc", "qcom,ufshc",
> >                                    "jedec,ufs-2.0";
> > @@ -2327,6 +2524,52 @@ qup_spi19_default: qup-spi19-default {
> >                               drive-strength = <6>;
> >                               bias-disable;
> >                       };
> > +
> > +                     pcie0_default_state: pcie0-default {
> > +                             perst {
> > +                                     pins = "gpio35";
> > +                                     function = "gpio";
> > +                                     drive-strength = <2>;
> > +                                     bias-pull-down;
> > +                             };
> > +
> > +                             clkreq {
> > +                                     pins = "gpio36";
> > +                                     function = "pci_e0";
> > +                                     drive-strength = <2>;
> > +                                     bias-pull-up;
> > +                             };
> > +
> > +                             wake {
> > +                                     pins = "gpio37";
> > +                                     function = "gpio";
> > +                                     drive-strength = <2>;
> > +                                     bias-pull-up;
> > +                             };
> > +                     };
> > +
> > +                     pcie1_default_state: pcie1-default {
> > +                             perst {
> > +                                     pins = "gpio102";
> > +                                     function = "gpio";
> > +                                     drive-strength = <2>;
> > +                                     bias-pull-down;
> > +                             };
> > +
> > +                             clkreq {
> > +                                     pins = "gpio103";
> > +                                     function = "pci_e1";
> > +                                     drive-strength = <2>;
> > +                                     bias-pull-up;
> > +                             };
> > +
> > +                             wake {
> > +                                     pins = "gpio104";
> > +                                     function = "gpio";
> > +                                     drive-strength = <2>;
> > +                                     bias-pull-up;
> > +                             };
> > +                     };
> >               };
> >
> >               remoteproc_mpss: remoteproc@4080000 {
>
>
> --
> With best wishes
> Dmitry

  reply	other threads:[~2022-03-02 12:15 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-01  7:25 [PATCH v2 0/7] Add PCIe support for SM8150 SoC Bhupesh Sharma
2022-03-01  7:25 ` [PATCH v2 1/7] dt-bindings: pci: qcom: Document PCIe bindings " Bhupesh Sharma
2022-03-01  7:25 ` [PATCH v2 2/7] dt-bindings: phy: qcom,qmp: Add SM8150 PCIe PHY bindings Bhupesh Sharma
2022-03-01  7:25 ` [PATCH v2 3/7] clk: qcom: gcc: Add PCIE_0_GDSC and PCIE_1_GDSC for SM8150 Bhupesh Sharma
2022-03-01  7:25 ` [PATCH v2 4/7] phy: qcom-qmp: Add SM8150 PCIe QMP PHYs Bhupesh Sharma
2022-03-01  7:25 ` [PATCH v2 5/7] PCI: qcom: Add SM8150 SoC support Bhupesh Sharma
2022-03-01 11:43   ` Dmitry Baryshkov
2022-03-02 12:19     ` Bhupesh Sharma
2022-03-01  7:25 ` [PATCH v2 6/7] arm64: dts: qcom: sm8150: Add pcie nodes for SM8150 Bhupesh Sharma
2022-03-01 11:59   ` Dmitry Baryshkov
2022-03-02 12:15     ` Bhupesh Sharma [this message]
2022-03-02  0:07   ` Bjorn Helgaas
2022-03-02 12:17     ` Bhupesh Sharma
2022-03-01  7:25 ` [PATCH v2 7/7] arm64: dts: qcom: sa8155: Enable pcie nodes Bhupesh Sharma

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='CAH=2NtxEvKmq-8ABiozmiizunXQSsUeTrD=+UzsaAeh9hmRfow@mail.gmail.com' \
    --to=bhupesh.sharma@linaro.org \
    --cc=agross@kernel.org \
    --cc=bhelgaas@google.com \
    --cc=bhupesh.linux@gmail.com \
    --cc=bjorn.andersson@linaro.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dmitry.baryshkov@linaro.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=lorenzo.pieralisi@arm.com \
    --cc=mturquette@baylibre.com \
    --cc=robh+dt@kernel.org \
    --cc=sboyd@kernel.org \
    --cc=svarbanov@mm-sol.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 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).