public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH 0/7] imx8mp: Enable PCIe/NVMe support
@ 2024-02-20 13:10 Sumit Garg
  2024-02-20 13:10 ` [PATCH 1/7] clk: imx8mp: Add support for PCIe clocks Sumit Garg
                   ` (7 more replies)
  0 siblings, 8 replies; 44+ messages in thread
From: Sumit Garg @ 2024-02-20 13:10 UTC (permalink / raw)
  To: u-boot
  Cc: marcel.ziswiler, trini, lukma, seanga2, jh80.chung, festevam,
	andrejs.cainikovs, sjg, peng.fan, aford173, marex,
	ilias.apalodimas, sahaj.sarup, fathi.boudra, remi.duraffort,
	daniel.thompson, Sumit Garg

pcie_imx doesn't seem to share any useful code for iMX8MP SoC and it is
rather tied to quite old port of pcie_designware driver from Linux which
suffices only iMX6 specific needs.

But currently we have the common DWC specific bits which alligns pretty
well with DW PCIe controller on iMX8MP SoC. So lets reuse those common
bits instead as a new driver for iMX8 SoCs. It should be fairly easy to
add support for other iMX8 variants to this driver.

iMX8MP SoC also comes up with standalone PCIe PHY support, so hence we
can reuse the generic PHY infrastructure to power on PCIe PHY.

Patch #1: Adds PCIe clocks support.
Patch #2: Adds i.MX8MP reset controller support.
Patch #3: Extend i.MX8MP power domain driver with PCIe support
Patch #4: Expose high performance PLL clock required for PCIe PHY
          on verdin board.
Patch #5: Adds standalone PCIe PHY support for i.MX8MP SoC.
Patch #6: Adds DW PCIe controller support for iMX8MP SoC.
Patch #7: Enable PCIe/NVMe support for verdin board.

Testing with this patch-set included:

Verdin iMX8MP # pci enum
PCIE-0: Link up (Gen1-x1, Bus0)
Verdin iMX8MP # 
Verdin iMX8MP # nvme scan
Verdin iMX8MP # 
Verdin iMX8MP # nvme info
Device 0: Vendor: 0x126f Rev: T0828A0  Prod: AA000000000000000720
            Type: Hard Disk
            Capacity: 122104.3 MB = 119.2 GB (250069680 x 512)
Verdin iMX8MP # 
Verdin iMX8MP # load nvme 0 $loadaddr <file-name>

Sumit Garg (7):
  clk: imx8mp: Add support for PCIe clocks
  reset: imx: Add support for i.MX8MP reset controller
  imx8mp: power-domain: Add PCIe support
  imx8mp: power-domain: Expose high performance PLL clock
  phy: phy-imx8m-pcie: Add support for i.MX8M{M/P} PCIe PHY
  pci: Add DW PCIe controller support for iMX8MP SoC
  verdin-imx8mp_defconfig: Enable PCIe/NVMe support

 configs/verdin-imx8mp_defconfig       |   9 +
 drivers/clk/imx/clk-imx8mp.c          |   6 +
 drivers/pci/Kconfig                   |   8 +
 drivers/pci/Makefile                  |   1 +
 drivers/pci/pcie_dw_imx8.c            | 348 ++++++++++++++++++++++++++
 drivers/phy/Kconfig                   |   9 +
 drivers/phy/Makefile                  |   1 +
 drivers/phy/phy-imx8m-pcie.c          | 246 ++++++++++++++++++
 drivers/power/domain/imx8mp-hsiomix.c | 121 ++++++++-
 drivers/reset/reset-imx7.c            | 114 +++++++++
 10 files changed, 859 insertions(+), 4 deletions(-)
 create mode 100644 drivers/pci/pcie_dw_imx8.c
 create mode 100644 drivers/phy/phy-imx8m-pcie.c

-- 
2.34.1


^ permalink raw reply	[flat|nested] 44+ messages in thread

end of thread, other threads:[~2024-02-23  7:52 UTC | newest]

Thread overview: 44+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-20 13:10 [PATCH 0/7] imx8mp: Enable PCIe/NVMe support Sumit Garg
2024-02-20 13:10 ` [PATCH 1/7] clk: imx8mp: Add support for PCIe clocks Sumit Garg
2024-02-20 13:10 ` [PATCH 2/7] reset: imx: Add support for i.MX8MP reset controller Sumit Garg
2024-02-20 15:12   ` Marek Vasut
2024-02-21  5:40     ` Sumit Garg
2024-02-21  9:28       ` Marek Vasut
2024-02-20 13:10 ` [PATCH 3/7] imx8mp: power-domain: Add PCIe support Sumit Garg
2024-02-20 15:14   ` Marek Vasut
2024-02-21  6:01     ` Sumit Garg
2024-02-21  9:32       ` Marek Vasut
2024-02-20 13:10 ` [PATCH 4/7] imx8mp: power-domain: Expose high performance PLL clock Sumit Garg
2024-02-20 15:16   ` Marek Vasut
2024-02-21  6:14     ` Sumit Garg
2024-02-21  9:37       ` Marek Vasut
2024-02-20 13:10 ` [PATCH 5/7] phy: phy-imx8m-pcie: Add support for i.MX8M{M/P} PCIe PHY Sumit Garg
2024-02-20 15:17   ` Marek Vasut
2024-02-21  6:17     ` Sumit Garg
2024-02-21  9:42       ` Marek Vasut
2024-02-20 13:10 ` [PATCH 6/7] pci: Add DW PCIe controller support for iMX8MP SoC Sumit Garg
2024-02-20 15:22   ` Marek Vasut
2024-02-21  6:25     ` Sumit Garg
2024-02-21  9:44       ` Marek Vasut
2024-02-20 13:10 ` [PATCH 7/7] verdin-imx8mp_defconfig: Enable PCIe/NVMe support Sumit Garg
2024-02-20 15:22   ` Marek Vasut
2024-02-21  6:27     ` Sumit Garg
2024-02-23  7:52       ` Francesco Dolcini
2024-02-20 16:04   ` Fabio Estevam
2024-02-21  6:29     ` Sumit Garg
2024-02-21  7:55   ` Francesco Dolcini
2024-02-21  9:18     ` Marcel Ziswiler
2024-02-21  9:36       ` Fathi Boudra
2024-02-21 10:04         ` Sumit Garg
2024-02-21  9:41       ` Marek Vasut
2024-02-21 12:12         ` Sumit Garg
2024-02-21 12:27           ` Marek Vasut
2024-02-21 13:15             ` Adam Ford
2024-02-21 13:22               ` Marek Vasut
2024-02-21 14:31       ` Francesco Dolcini
2024-02-22 12:47         ` Marcel Ziswiler
2024-02-21  9:39     ` Marek Vasut
2024-02-21 12:14       ` Sumit Garg
2024-02-20 15:04 ` [PATCH 0/7] imx8mp: " Marek Vasut
2024-02-21  5:25   ` Sumit Garg
2024-02-21  9:42     ` Marek Vasut

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox