Skip to content

PCI:Add SPEAr13xx PCie support

Pratyush Anand linux-arm-kernel linux-devicetree linux-ide linux-pci lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v4 Latest8 patches 12 repliesIn review

Changes in v4 from the cover letter

- Phy driver renamed to phy-miphy40lp
- ahci phy hook patch used as suggested by Arnd
- Incorporated other minor comments from v3

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8clk: SPEAr13xx: Fix pcie clock namedrivers/clk/spear/spear1310_clock.c drivers/clk/spear/spear1340_clock.c+4 -40 replies
2/8SPEAr13xx: Fix static mapping tablearch/arm/mach-spear/include/mach/spear.h arch/arm/mach-spear/spear13xx.c+3 -30 replies
3/8SPEAr13xx: defconfig: Updatearch/arm/configs/spear13xx_defconfig+13 -00 replies
4/8phy: st-miphy-40lp: Add skeleton driverDocumentation/devicetree/bindings/phy/st-miphy40lp.txt drivers/phy/Kconfig drivers/phy/Makefile +1 more+193 -04 replies
5/8SPEAr13xx: Fixup: Move SPEAr1340 SATA platform code to phy driverDocumentation/devicetree/bindings/arm/spear-misc.txt arch/arm/boot/dts/spear1310-evb.dts arch/arm/boot/dts/spear1310.dtsi +6 more+266 -1364 replies
6/8phy: st-miphy-40lp: Add SPEAr1310 and SPEAr1340 PCIe phy supportdrivers/phy/phy-miphy40lp.c+178 -03 replies
7/8pcie: SPEAr13xx: Add designware pcie supportDocumentation/devicetree/bindings/pci/spear13xx-pcie.txt arch/arm/boot/dts/spear1310.dtsi arch/arm/boot/dts/spear1340.dtsi +6 more+509 -20 replies
8/8MAINTAINERS: Add ST SPEAr13xx PCIe driver maintainerMAINTAINERS+6 -00 replies

Reviews trailers per patch

4 of 8 patches have a Reviewed-by or Acked-by.

PatchViresh KumarArnd BergmannMohit KumarJingoo Han
1/8A-b
2/8A-b A-b
3/8A-b
4/8T-b
5/8T-b
6/8T-b
7/8
8/8A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v4 thread

Cover letter [PATCH V4 0/8]PCI:Add SPEAr13xx PCie support

First three patches are improvement and fixes for SPEAr13xx support. Patches 4-6 add miphy40lp skelten driver and support for spear1310/40 miphy wrapper. Patch 7 add support for SPEAr13xx PCIe.

These pathes are tested with linux-3.14-rc1 with following patch on the top of it:

Author: Balaji T K <[email protected]>
Date:   Mon Jan 20 16:41:27 2014 +0200

ata: ahci_platform: Manage SATA PHY

Tested with SPEAr1310 evaluation board:
- INTEL PRO 100/100 EP card
- USB xhci gen2 card
- Above cards connected through LeCROY PTC switch

Modifications for SATA are tested with SPEAr1340-evb board

Changes since v3:
- Phy driver renamed to phy-miphy40lp
- ahci phy hook patch used as suggested by Arnd
- Incorporated other minor comments from v3

Changes since v2:
- Incorporated comments to move SPEAr13xx PCIe and SATA phy specific routines to the phy framework
- Modify ahci driver to include phy hooks
- phy-core driver modifications for subsys_initcall()

Changes since v1:
- Few patches of the series are already accepted and applied to mainline e.g. pcie designware driver improvements,fixes for IO translation bug, PCIe dw driver maintainer. So dropped these from v2.
- Incorporated comment to move the common/reset PCIe code to the seperate driver
- PCIe and SATA share common PHY configuration registers, so move SATA platform code to the system config driver
Fourth patch is improves pcie designware driver and fixes the IO translation bug. IO translation bug fix leads to the working of PCIe EP devices connected to RC through switch.

PCIe driver support for SPEAr1310/40 platform board is added.

These patches are tested with SPEAr1310 evaluation board:
- INTEL PRO 100/100 EP card
- USB xhci gen2 card
- Above cards connected through LeCROY PTC switch

Cc linux-arm-kernel at lists.infradead.org
Cc devicetree at vger.kernel.org
Cc linux-ide at vger.kernel.org
Cc linux-pci at vger.kernel.org
Cc spear-devel at list.st.com
Cc linux-kernel at vger.kernel.org

Mohit Kumar (2):
SPEAr13xx: defconfig: Update
MAINTAINERS: Add ST SPEAr13xx PCIe driver maintainer

Pratyush Anand (6):
clk: SPEAr13xx: Fix pcie clock name
SPEAr13xx: Fix static mapping table
phy: st-miphy-40lp: Add skeleton driver
SPEAr13xx: Fixup: Move SPEAr1340 SATA platform code to phy driver
phy: st-miphy-40lp: Add SPEAr1310 and SPEAr1340 PCIe phy support
pcie: SPEAr13xx: Add designware pcie support

 .../devicetree/bindings/arm/spear-misc.txt         |   4 +
 .../devicetree/bindings/pci/spear13xx-pcie.txt     |   7 +
 .../devicetree/bindings/phy/st-miphy40lp.txt       |  12 +
 MAINTAINERS                                        |   6 +
 arch/arm/boot/dts/spear1310-evb.dts                |   4 +
 arch/arm/boot/dts/spear1310.dtsi                   |  96 +++-
 arch/arm/boot/dts/spear1340-evb.dts                |   4 +
 arch/arm/boot/dts/spear1340.dtsi                   |  32 +-
 arch/arm/boot/dts/spear13xx.dtsi                   |  10 +-
 arch/arm/configs/spear13xx_defconfig               |  15 +
 arch/arm/mach-spear/Kconfig                        |   3 +
 arch/arm/mach-spear/include/mach/spear.h           |   4 +-
 arch/arm/mach-spear/spear1340.c                    | 127 +----
 arch/arm/mach-spear/spear13xx.c                    |   2 +-
 drivers/clk/spear/spear1310_clock.c                |   6 +-
 drivers/clk/spear/spear1340_clock.c                |   2 +-
 drivers/pci/host/Kconfig                           |   5 +
 drivers/pci/host/Makefile                          |   1 +
 drivers/pci/host/pcie-spear13xx.c                  | 414 ++++++++++++++++
 drivers/phy/Kconfig                                |   6 +
 drivers/phy/Makefile                               |   1 +
 drivers/phy/phy-miphy40lp.c                        | 544 +++++++++++++++++++++
 22 files changed, 1166 insertions(+), 139 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/arm/spear-misc.txt
 create mode 100644 Documentation/devicetree/bindings/pci/spear13xx-pcie.txt
 create mode 100644 Documentation/devicetree/bindings/phy/st-miphy40lp.txt
 create mode 100644 drivers/pci/host/pcie-spear13xx.c
 create mode 100644 drivers/phy/phy-miphy40lp.c
Signature · 1 line
1.8.1.2