Skip to content

Add PCIe host driver support for Mediatek SoCs

Ryder Lee linux-arm-kernel linux-devicetree linux-mediatek linux-pci lkml 7 versions – Applied

Status from this message: Applied to pci/host-mediatek for v4.13, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 posting 2/22 patches 0 repliesNew
  2. v2 posting 2/22 patches 1 replySuperseded
  3. v5 Latest2 patches 3 repliesApplied
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v42 patches0 repliesSuperseded
v3 posting 1/22 patches12 repliesSuperseded
v2 posting 1/22 patches1 replySuperseded
v12 patches1 replySuperseded

Changes in v5 from the cover letter

- move the per-port registers to the parent node.
- use a valid compatible for hifsys controller.
- use the 'sysirq' instead of 'gic' as a correct 'interrupt-parent' of the interrupt-map properties.

Patches in v5 Applied

#Subject and filesSizeRepliesApplied
1/2PCI: mediatek: Add Mediatek PCIe host controller supportdrivers/pci/host/Kconfig drivers/pci/host/Makefile drivers/pci/host/pcie-mediatek.c+565 -02 replies
2/2dt-bindings: pcie: Add documentation for Mediatek PCIeDocumentation/devicetree/bindings/pci/mediatek,mt7623-pcie.txt+130 -00 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchRob Herring
1/2
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [PATCH v5 0/2] Add PCIe host driver support for Mediatek SoCs

Hi,

This patch series add Mediatek Gen2 PCIe host controller driver and dt-binding document. It can be found on MT7623 series SoCs.

This driver was validated using Broadcom Tigon3 and Intel(R) 82575/82576 gigabit ethernet card.

Changes since v5:
- rebase to Linux 4.12-rc1.
- remove redundant module.h header and MODULE macros.

Changes since v4:
- move the per-port registers to the parent node.
- use a valid compatible for hifsys controller.
- use the 'sysirq' instead of 'gic' as a correct 'interrupt-parent' of the interrupt-map properties.

'sysirq' is an interrupt-controller that could help us to reverse GIC SPIs polarity so that we could properly set irq type to level low without any extra properties. It was a mistake to select wrong interrupt-parent on the previous versions. Now, we could remove unnecessary interrupt properties entirely from binding.

Changes since v3:
- correct sub-nodes unit addresses.

Changes since v2:
- modify Kconfig to avoid kbuild test error on some architecture.
- change compatible string.
- revise binding document:
add missing interrupt-names.
remove the board dts example and drop 'status' properties. remove unnecessary descriptions bout standard PCI bus binding.

Changes since v1:
- add .suppress_bind_attrs.
- remove unnecessary *_valid_device() pattern.
- remove PCI_PROBE_ONLY.
- use the regular readl() instead of readl_relaxed().
- add .map_bus() and change to use pci_generic_config_read/pci_generic_config_write.
- revise dt-binding document and move nonstandard properties to root node.
- change compatible string.
- use interrupt-map property and replace mtk_pcie_map_irq() with of_irq_parse_and_map_pci().
- use the new pci_register_host_bridge() method instead of pci_scan_root_bus()*

Ryder Lee (2):
PCI: mediatek: Add Mediatek PCIe host controller support
dt-bindings: pcie: Add documentation for Mediatek PCIe

 .../bindings/pci/mediatek,mt7623-pcie.txt          | 130 +++++
 drivers/pci/host/Kconfig                           |  11 +
 drivers/pci/host/Makefile                          |   1 +
 drivers/pci/host/pcie-mediatek.c                   | 553 +++++++++++++++++++++
 4 files changed, 695 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/pci/mediatek,mt7623-pcie.txt
 create mode 100644 drivers/pci/host/pcie-mediatek.c
Signature · 1 line
1.9.1