From: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
To: Rob Herring <robh@kernel.org>
Cc: svarbanov@mm-sol.com, linux-pci@vger.kernel.org,
bhelgaas@google.com, linux-arm-msm@vger.kernel.org,
devicetree@vger.kernel.org
Subject: Re: [PATCH v5] PCI: qcom: add support to msm8996 PCIE controller
Date: Wed, 16 Nov 2016 16:29:41 +0000 [thread overview]
Message-ID: <50449970-74f5-1d73-4c78-323741b8a705@linaro.org> (raw)
In-Reply-To: <20161116150858.343voujjg4p2zdhn@rob-hp-laptop>
On 16/11/16 15:08, Rob Herring wrote:
> On Tue, Nov 15, 2016 at 02:23:57PM +0000, Srinivas Kandagatla wrote:
>> This patch adds support to msm8996/apq8096 pcie, MSM8996 supports
>
> s/pcie/PCIe/
Will fix two instances this and spin a next version.
>
>> Gen 1/2, One lane, 3 pcie root-complex with support to MSI and
>> legacy interrupts and it conforms to PCI Express Base 2.1 specification.
>>
>> This patch adds post_init callback to qcom_pcie_ops, as this is pcie
>
> s/pcie/PCIe/
>
>> pipe clocks are only setup after the phy is powered on.
>> It also adds ltssm_enable callback as it is very much different to other
>> supported SOCs in the driver.
>>
>> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
>> Acked-by: Stanimir Varbanov <svarbanov@mm-sol.com>
>> ---
>>
>> Changes since v4:
>> - removed duplicate define spotted by Stan.
>> - renamed halt register to remove msm8996 suggested by Stan.
>> - dropped simple-pm-bus and runtime pm patches as these can
>> potentially go into pm domain provider.
>>
>> .../devicetree/bindings/pci/qcom,pcie.txt | 67 +++++++-
>> drivers/pci/host/pcie-qcom.c | 175 ++++++++++++++++++++-
>> 2 files changed, 236 insertions(+), 6 deletions(-)
>>
>> diff --git a/Documentation/devicetree/bindings/pci/qcom,pcie.txt b/Documentation/devicetree/bindings/pci/qcom,pcie.txt
>> index 4059a6f..141d8c3 100644
>> --- a/Documentation/devicetree/bindings/pci/qcom,pcie.txt
>> +++ b/Documentation/devicetree/bindings/pci/qcom,pcie.txt
>> @@ -7,6 +7,7 @@
>> - "qcom,pcie-ipq8064" for ipq8064
>> - "qcom,pcie-apq8064" for apq8064
>> - "qcom,pcie-apq8084" for apq8084
>> + - "qcom,pcie-msm8996" for msm8996 or apq8096
>>
>> - reg:
>> Usage: required
>> @@ -92,6 +93,17 @@
>> - "aux" Auxiliary (AUX) clock
>> - "bus_master" Master AXI clock
>> - "bus_slave" Slave AXI clock
>> +
>> +- clock-names:
>> + Usage: required for msm8996/apq8096
>> + Value type: <stringlist>
>> + Definition: Should contain the following entries
>> + - "pipe" Pipe Clock driving internal logic.
>> + - "aux" Auxiliary (AUX) clock.
>> + - "cfg" Configuration clk.
>> + - "bus_master" Master AXI clock.
>> + - "bus_slave" Slave AXI clock.
>> +
>> - resets:
>> Usage: required
>> Value type: <prop-encoded-array>
>> @@ -115,7 +127,7 @@
>> - "core" Core reset
>>
>> - power-domains:
>> - Usage: required for apq8084
>> + Usage: required for apq8084 and msm8996/apq8096
>> Value type: <prop-encoded-array>
>> Definition: A phandle and power domain specifier pair to the
>> power domain which is responsible for collapsing
>> @@ -231,3 +243,56 @@
>> pinctrl-0 = <&pcie0_pins_default>;
>> pinctrl-names = "default";
>> };
>> +
>> +* Example for apq8096:
>
> Do you really need an example for every chip?
Yes, for consistency reasons, as there are two examples already in this
document. Also having an example does not harm anyway.
thanks,
srini
>
>> +
>> + pcie@608000{
>> + compatible = "qcom,pcie-msm8996", "snps,dw-pcie";
>> + power-domains = <&gcc PCIE1_GDSC>;
>> + bus-range = <0x00 0xff>;
>> + num-lanes = <1>;
>> +
>> + reg = <0x00608000 0x2000>,
>> + <0x0d000000 0xf1d>,
>> + <0x0d000f20 0xa8>,
>> + <0x0d100000 0x100000>;
>> +
>> + reg-names = "parf", "dbi", "elbi", "config";
>> +
>> + phys = <&pcie_phy 1>;
>> + phy-names = "pciephy";
>> +
>> + #address-cells = <3>;
>> + #size-cells = <2>;
>> + ranges = <0x01000000 0x0 0x0d200000 0x0d200000 0x0 0x100000>,
>> + <0x02000000 0x0 0x0d300000 0x0d300000 0x0 0xd00000>;
>> +
>> + interrupts = <GIC_SPI 413 IRQ_TYPE_NONE>;
>> + interrupt-names = "msi";
>> + #interrupt-cells = <1>;
>> + interrupt-map-mask = <0 0 0 0x7>;
>> + interrupt-map = <0 0 0 1 &intc 0 272 IRQ_TYPE_LEVEL_HIGH>, /* int_a */
>> + <0 0 0 2 &intc 0 273 IRQ_TYPE_LEVEL_HIGH>, /* int_b */
>> + <0 0 0 3 &intc 0 274 IRQ_TYPE_LEVEL_HIGH>, /* int_c */
>> + <0 0 0 4 &intc 0 275 IRQ_TYPE_LEVEL_HIGH>; /* int_d */
>> +
>> + pinctrl-names = "default", "sleep";
>> + pinctrl-0 = <&pcie1_clkreq_default &pcie1_perst_default &pcie1_wake_default>;
>> + pinctrl-1 = <&pcie1_clkreq_sleep &pcie1_perst_default &pcie1_wake_sleep>;
>> +
>> + vdda-1p8-supply = <&pm8994_l12>;
>> + vdda-supply = <&pm8994_l28>;
>> + linux,pci-domain = <1>;
>> +
>> + 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>;
>> +
>> + clock-names = "pipe",
>> + "aux",
>> + "cfg",
>> + "bus_master",
>> + "bus_slave";
>> + };
next prev parent reply other threads:[~2016-11-16 16:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-15 14:23 [PATCH v5] PCI: qcom: add support to msm8996 PCIE controller Srinivas Kandagatla
[not found] ` <1479219837-7868-1-git-send-email-srinivas.kandagatla-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2016-11-16 15:08 ` Rob Herring
2016-11-16 16:29 ` Srinivas Kandagatla [this message]
[not found] ` <50449970-74f5-1d73-4c78-323741b8a705-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2016-11-18 14:35 ` Rob Herring
-- strict thread matches above, loose matches on Subject: below --
2016-11-17 11:12 [PATCH v5] PCI: qcom: add support to msm8996 PCIe controller Srinivas Kandagatla
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=50449970-74f5-1d73-4c78-323741b8a705@linaro.org \
--to=srinivas.kandagatla@linaro.org \
--cc=bhelgaas@google.com \
--cc=devicetree@vger.kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=robh@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).