forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'pci-v4.21-changes' of git://git.kernel.org/pub/scm/linux/k…
…ernel/git/helgaas/pci Pull PCI updates from Bjorn Helgaas: - Remove unused lists from ASPM pcie_link_state (Frederick Lawler) - Fix Broadcom CNB20LE host bridge unintended sign extension (Colin Ian King) - Expand Kconfig "PF" acronyms (Randy Dunlap) - Update MAINTAINERS for arch/x86/kernel/early-quirks.c (Bjorn Helgaas) - Add missing include to drivers/pci.h (Alexandru Gagniuc) - Override Synopsys USB 3.x HAPS device class so dwc3-haps can claim it instead of xhci (Thinh Nguyen) - Clean up P2PDMA documentation (Randy Dunlap) - Allow runtime PM even if driver doesn't supply callbacks (Jarkko Nikula) - Remove status check after submitting Switchtec MRPC Firmware Download commands to avoid Completion Timeouts (Kelvin Cao) - Set Switchtec coherent DMA mask to allow 64-bit DMA (Boris Glimcher) - Fix Switchtec SWITCHTEC_IOCTL_EVENT_IDX_ALL flag overwrite issue (Joey Zhang) - Enable write combining for Switchtec MRPC Input buffers (Kelvin Cao) - Add Switchtec MRPC DMA mode support (Wesley Sheng) - Skip VF scanning on powerpc, which does this in firmware (Sebastian Ott) - Add Amlogic Meson PCIe controller driver and DT bindings (Yue Wang) - Constify histb dw_pcie_host_ops structure (Julia Lawall) - Support multiple power domains for imx6 (Leonard Crestez) - Constify layerscape driver data (Stefan Agner) - Update imx6 Kconfig to allow imx6 PCIe in imx7 kernel (Trent Piepho) - Support armada8k GPIO reset (Baruch Siach) - Support suspend/resume support on imx6 (Leonard Crestez) - Don't hard-code DesignWare DBI/ATU offst (Stephen Warren) - Skip i.MX6 PHY setup on i.MX7D (Andrey Smirnov) - Remove Jianguo Sun from HiSilicon STB maintainers (Lorenzo Pieralisi) - Mask DesignWare interrupts instead of disabling them to avoid lost interrupts (Marc Zyngier) - Add locking when acking DesignWare interrupts (Marc Zyngier) - Ack DesignWare interrupts in the proper callbacks (Marc Zyngier) - Use devm resource parser in mediatek (Honghui Zhang) - Remove unused mediatek "num-lanes" DT property (Honghui Zhang) - Add UniPhier PCIe controller driver and DT bindings (Kunihiko Hayashi) - Enable MSI for imx6 downstream components (Richard Zhu) * tag 'pci-v4.21-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci: (40 commits) PCI: imx: Enable MSI from downstream components s390/pci: skip VF scanning PCI/IOV: Add flag so platforms can skip VF scanning PCI/IOV: Factor out sriov_add_vfs() PCI: uniphier: Add UniPhier PCIe host controller support dt-bindings: PCI: Add UniPhier PCIe host controller description PCI: amlogic: Add the Amlogic Meson PCIe controller driver dt-bindings: PCI: meson: add DT bindings for Amlogic Meson PCIe controller arm64: dts: mt7622: Remove un-used property for PCIe arm: dts: mt7623: Remove un-used property for PCIe dt-bindings: PCI: MediaTek: Remove un-used property PCI: mediatek: Remove un-used variant in struct mtk_pcie_port MAINTAINERS: Remove Jianguo Sun from HiSilicon STB DWC entry PCI: dwc: Don't hard-code DBI/ATU offset PCI: imx: Add imx6sx suspend/resume support PCI: armada8k: Add support for gpio controlled reset signal PCI: dwc: Adjust Kconfig to allow IMX6 PCIe host on IMX7 PCI: dwc: layerscape: Constify driver data PCI: imx: Add multi-pd support PCI: Override Synopsys USB 3.x HAPS device class ...
- Loading branch information
Showing
37 changed files
with
1,721 additions
and
210 deletions.
There are no files selected for viewing
70 changes: 70 additions & 0 deletions
70
Documentation/devicetree/bindings/pci/amlogic,meson-pcie.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
Amlogic Meson AXG DWC PCIE SoC controller | ||
|
||
Amlogic Meson PCIe host controller is based on the Synopsys DesignWare PCI core. | ||
It shares common functions with the PCIe DesignWare core driver and | ||
inherits common properties defined in | ||
Documentation/devicetree/bindings/pci/designware-pci.txt. | ||
|
||
Additional properties are described here: | ||
|
||
Required properties: | ||
- compatible: | ||
should contain "amlogic,axg-pcie" to identify the core. | ||
- reg: | ||
should contain the configuration address space. | ||
- reg-names: Must be | ||
- "elbi" External local bus interface registers | ||
- "cfg" Meson specific registers | ||
- "phy" Meson PCIE PHY registers | ||
- "config" PCIe configuration space | ||
- reset-gpios: The GPIO to generate PCIe PERST# assert and deassert signal. | ||
- clocks: Must contain an entry for each entry in clock-names. | ||
- clock-names: Must include the following entries: | ||
- "pclk" PCIe GEN 100M PLL clock | ||
- "port" PCIe_x(A or B) RC clock gate | ||
- "general" PCIe Phy clock | ||
- "mipi" PCIe_x(A or B) 100M ref clock gate | ||
- resets: phandle to the reset lines. | ||
- reset-names: must contain "phy" "port" and "apb" | ||
- "phy" Share PHY reset | ||
- "port" Port A or B reset | ||
- "apb" Share APB reset | ||
- device_type: | ||
should be "pci". As specified in designware-pcie.txt | ||
|
||
|
||
Example configuration: | ||
|
||
pcie: pcie@f9800000 { | ||
compatible = "amlogic,axg-pcie", "snps,dw-pcie"; | ||
reg = <0x0 0xf9800000 0x0 0x400000 | ||
0x0 0xff646000 0x0 0x2000 | ||
0x0 0xff644000 0x0 0x2000 | ||
0x0 0xf9f00000 0x0 0x100000>; | ||
reg-names = "elbi", "cfg", "phy", "config"; | ||
reset-gpios = <&gpio GPIOX_19 GPIO_ACTIVE_HIGH>; | ||
interrupts = <GIC_SPI 177 IRQ_TYPE_EDGE_RISING>; | ||
#interrupt-cells = <1>; | ||
interrupt-map-mask = <0 0 0 0>; | ||
interrupt-map = <0 0 0 0 &gic GIC_SPI 179 IRQ_TYPE_EDGE_RISING>; | ||
bus-range = <0x0 0xff>; | ||
#address-cells = <3>; | ||
#size-cells = <2>; | ||
device_type = "pci"; | ||
ranges = <0x82000000 0 0 0x0 0xf9c00000 0 0x00300000>; | ||
|
||
clocks = <&clkc CLKID_USB | ||
&clkc CLKID_MIPI_ENABLE | ||
&clkc CLKID_PCIE_A | ||
&clkc CLKID_PCIE_CML_EN0>; | ||
clock-names = "general", | ||
"mipi", | ||
"pclk", | ||
"port"; | ||
resets = <&reset RESET_PCIE_PHY>, | ||
<&reset RESET_PCIE_A>, | ||
<&reset RESET_PCIE_APB>; | ||
reset-names = "phy", | ||
"port", | ||
"apb"; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
Socionext UniPhier PCIe host controller bindings | ||
|
||
This describes the devicetree bindings for PCIe host controller implemented | ||
on Socionext UniPhier SoCs. | ||
|
||
UniPhier PCIe host controller is based on the Synopsys DesignWare PCI core. | ||
It shares common functions with the PCIe DesignWare core driver and inherits | ||
common properties defined in | ||
Documentation/devicetree/bindings/pci/designware-pcie.txt. | ||
|
||
Required properties: | ||
- compatible: Should be "socionext,uniphier-pcie". | ||
- reg: Specifies offset and length of the register set for the device. | ||
According to the reg-names, appropriate register sets are required. | ||
- reg-names: Must include the following entries: | ||
"dbi" - controller configuration registers | ||
"link" - SoC-specific glue layer registers | ||
"config" - PCIe configuration space | ||
- clocks: A phandle to the clock gate for PCIe glue layer including | ||
the host controller. | ||
- resets: A phandle to the reset line for PCIe glue layer including | ||
the host controller. | ||
- interrupts: A list of interrupt specifiers. According to the | ||
interrupt-names, appropriate interrupts are required. | ||
- interrupt-names: Must include the following entries: | ||
"dma" - DMA interrupt | ||
"msi" - MSI interrupt | ||
|
||
Optional properties: | ||
- phys: A phandle to generic PCIe PHY. According to the phy-names, appropriate | ||
phys are required. | ||
- phy-names: Must be "pcie-phy". | ||
|
||
Required sub-node: | ||
- legacy-interrupt-controller: Specifies interrupt controller for legacy PCI | ||
interrupts. | ||
|
||
Required properties for legacy-interrupt-controller: | ||
- interrupt-controller: identifies the node as an interrupt controller. | ||
- #interrupt-cells: specifies the number of cells needed to encode an | ||
interrupt source. The value must be 1. | ||
- interrupt-parent: Phandle to the parent interrupt controller. | ||
- interrupts: An interrupt specifier for legacy interrupt. | ||
|
||
Example: | ||
|
||
pcie: pcie@66000000 { | ||
compatible = "socionext,uniphier-pcie", "snps,dw-pcie"; | ||
status = "disabled"; | ||
reg-names = "dbi", "link", "config"; | ||
reg = <0x66000000 0x1000>, <0x66010000 0x10000>, | ||
<0x2fff0000 0x10000>; | ||
#address-cells = <3>; | ||
#size-cells = <2>; | ||
clocks = <&sys_clk 24>; | ||
resets = <&sys_rst 24>; | ||
num-lanes = <1>; | ||
num-viewport = <1>; | ||
bus-range = <0x0 0xff>; | ||
device_type = "pci"; | ||
ranges = | ||
/* downstream I/O */ | ||
<0x81000000 0 0x00000000 0x2ffe0000 0 0x00010000 | ||
/* non-prefetchable memory */ | ||
0x82000000 0 0x00000000 0x20000000 0 0x0ffe0000>; | ||
#interrupt-cells = <1>; | ||
interrupt-names = "dma", "msi"; | ||
interrupts = <0 224 4>, <0 225 4>; | ||
interrupt-map-mask = <0 0 0 7>; | ||
interrupt-map = <0 0 0 1 &pcie_intc 0>, /* INTA */ | ||
<0 0 0 2 &pcie_intc 1>, /* INTB */ | ||
<0 0 0 3 &pcie_intc 2>, /* INTC */ | ||
<0 0 0 4 &pcie_intc 3>; /* INTD */ | ||
|
||
pcie_intc: legacy-interrupt-controller { | ||
interrupt-controller; | ||
#interrupt-cells = <1>; | ||
interrupt-parent = <&gic>; | ||
interrupts = <0 226 4>; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11750,6 +11750,7 @@ F: include/uapi/linux/pci* | |
F: lib/pci* | ||
F: arch/x86/pci/ | ||
F: arch/x86/kernel/quirks.c | ||
F: arch/x86/kernel/early-quirks.c | ||
|
||
PCI NATIVE HOST BRIDGE AND ENDPOINT DRIVERS | ||
M: Lorenzo Pieralisi <[email protected]> | ||
|
@@ -11759,6 +11760,13 @@ T: git git://git.kernel.org/pub/scm/linux/kernel/git/lpieralisi/pci.git/ | |
S: Supported | ||
F: drivers/pci/controller/ | ||
|
||
PCIE DRIVER FOR AMLOGIC MESON | ||
M: Yue Wang <[email protected]> | ||
L: [email protected] | ||
L: [email protected] | ||
S: Maintained | ||
F: drivers/pci/controller/dwc/pci-meson.c | ||
|
||
PCIE DRIVER FOR AXIS ARTPEC | ||
M: Jesper Nilsson <[email protected]> | ||
L: [email protected] | ||
|
@@ -11791,7 +11799,6 @@ F: Documentation/devicetree/bindings/pci/kirin-pcie.txt | |
F: drivers/pci/controller/dwc/pcie-kirin.c | ||
|
||
PCIE DRIVER FOR HISILICON STB | ||
M: Jianguo Sun <[email protected]> | ||
M: Shawn Guo <[email protected]> | ||
L: [email protected] | ||
S: Maintained | ||
|
@@ -11828,6 +11835,13 @@ S: Maintained | |
F: Documentation/devicetree/bindings/pci/v3-v360epc-pci.txt | ||
F: drivers/pci/controller/pci-v3-semi.c | ||
|
||
PCIE DRIVER FOR SOCIONEXT UNIPHIER | ||
M: Kunihiko Hayashi <[email protected]> | ||
L: [email protected] | ||
S: Maintained | ||
F: Documentation/devicetree/bindings/pci/uniphier-pcie.txt | ||
F: drivers/pci/controller/dwc/pcie-uniphier.c | ||
|
||
PCIE DRIVER FOR ST SPEAR13XX | ||
M: Pratyush Anand <[email protected]> | ||
L: [email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.