public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
From: niklas.cassel@linaro.org (Niklas Cassel)
To: linux-arm-kernel@lists.infradead.org
Subject: PCIe support in APQ8098-based board
Date: Mon, 12 Nov 2018 21:26:02 +0100	[thread overview]
Message-ID: <20181112202602.GA7649@centauri.lan> (raw)
In-Reply-To: <44260aa9-d01a-f9a5-a2e6-31f06de48d34@free.fr>

On Sun, Nov 11, 2018 at 11:26:29PM +0100, Marc Gonzalez wrote:
> Hello,

Hello Marc

> 
> I'm playing with an APQ8098-based board, which I got to boot an upstream
> v4.20-rc1 kernel to the command line, by reusing the msm8998-mtp.dts
> (IIUC apq8098 is the msm8998's "little brother", in that they are
> almost the same SoC, with some HW blocks missing in the apq8098).

That is correct.

> 
> I'm trying to get PCIe working on my eval board. I'm wondering if
> someone from qcom, codeaurora, or linaro has perhaps already done
> this work, and it's just not upstream yet?

Linaro will most likely look at this at some undefined time in the future.

Here are some hints in case you need this urgently:

msm8998 uses QCOM PCIe v2.3.3, which is supported by
drivers/pci/controller/dwc/pcie-qcom.c

I suggest that you look at:
arch/arm64/boot/dts/qcom/ipq8074.dtsi

However, note that the PCI ranges are different for this SoC compared to
ipq8074.

The correct ranges can be found here:
https://source.codeaurora.org/quic/la/kernel/msm-4.4/tree/arch/arm/boot/dts/qcom/msm8998.dtsi?h=msm-4.4#n2538

It also appears that drivers/clk/qcom/gcc-msm8998.c is missing some PCIe
resets.
The correct addresses for these clocks can be found here:
https://source.codeaurora.org/quic/la/kernel/msm-4.4/tree/drivers/clk/msm/clock-gcc-8998.c?h=msm-4.4

Note that the qcom_pcie_get_resources_2_3_3() will have to be modified
slightly for msm8998, since msm8998 only has 3 PCIe resets.


Kind regards,
Niklas

> 
> There seem to be proper drivers for the RC and the PHY, but some
> low-level stuff are missing (clocks, regulator, power domain).
> 
> drivers/pci/controller/dwc/pcie-qcom.c
> drivers/phy/qualcomm/phy-qcom-qmp.c
> 
> Regards.

  reply	other threads:[~2018-11-12 20:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-11 22:26 PCIe support in APQ8098-based board Marc Gonzalez
2018-11-12 20:26 ` Niklas Cassel [this message]
2018-11-12 22:20   ` Marc Gonzalez

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=20181112202602.GA7649@centauri.lan \
    --to=niklas.cassel@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.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