Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/8] soc: cortina: Add CS7542 PCIe control, SerDes and host support
@ 2026-11-23 20:32 Fil Dunsky via B4 Relay
  2026-11-23 20:32 ` [PATCH v2 1/8] PCI: dwc: Export the multiplexed MSI interrupt handler Fil Dunsky via B4 Relay
                   ` (8 more replies)
  0 siblings, 9 replies; 11+ messages in thread
From: Fil Dunsky via B4 Relay @ 2026-11-23 20:32 UTC (permalink / raw)
  To: Manivannan Sadhasivam, Stephen Boyd, Vinod Koul
  Cc: Jingoo Han, Lorenzo Pieralisi, Krzysztof Wilczynski, Rob Herring,
	Bjorn Helgaas, Brian Masney, Jerome Brunet, Neil Armstrong,
	Krzysztof Kozlowski, Conor Dooley, Philipp Zabel, linux-pci,
	linux-arm-kernel, linux-clk, linux-phy, devicetree, linux-kernel

Add CS7542 PCIe support with global gate/reset controls, a Snow Bush
SerDes PHY and DesignWare host glue. The global syscon already provides
the APB/CPU/AXI clocks; extend that same provider with three PCIe gates
and controller resets. No resource-less pcie-control child is created.
The existing clock indices remain unchanged; PCIe gets named specifiers.

This series depends on the posted global clock/pinctrl v2:
https://lore.kernel.org/all/20261123-cs7542-syscon-v2-0-1cd74b2522f9@gmail.com/
The complete prerequisite and this series apply to Linux v7.4-rc4.
Board DTS changes are prepared separately.

The host protects its 512-byte root configuration limit, owns the
combined INTx/MSI interrupt lifecycle and reads link status from the
application wrapper. Unused SATA mode, hotplug and suspend are outside
this initial support. Gate source rates are not assumed.

Validation of v2:
- Full independent ARM GCC14.2 vmlinux/modules builds with PHY/host=y
  and=m, COMPILE_TEST=n and no Cortina platform series. The early global
  provider is built in because the APB timer clock must be available early.
- Updated schemas/examples and strict global-driver checkpatch pass.
- Actual parent-provider source: 461 cases and 23309 assertions under
  ASan/UBSan, including all strap modes, six clock outputs, unrelated
  bits and every allocation/registration failure path.
- Combined ARM multi_v7 vmlinux/modules and board DT build pass.

The revised parent provider and PCIe host booted Linux 7.4 on Almond+
in RAM. Enumeration, all 3 root ports' post-enumeration MSI enable bits,
MSI-X/INTx xHCI completions and host unload/reload passed. The INTx
mapping count returned to its pre-probe baseline after unload. Final
result: failures=0, followed by automatic return to installed OpenWrt.
No flash writes were performed. Actual config/DBI tests cover 49298
cases, including zero hardware accesses after link loss; lifecycle tests
check locked masking, IRQ draining and sparse mapping disposal.

---
Changes in v2:
- Expose PCIe gates/resets on the existing global syscon provider.
- Remove the virtual child binding and separate gate/reset driver.
- Preserve early strap clocks and unwind partial registration failures.
- Put clocks before interrupts in the host binding and example.
- Enable root-port MSI after enumeration; dispose INTx mappings on teardown.
- Return 0 for lost-link DBI reads to fail iATU polling; serialize quiesce,
  config/DBI access and IRQ draining before reset.
- Link to v1: https://patch.msgid.link/20261123-b4-cs7542-pcie-v1-0-4cde5201d404@gmail.com

To: Jingoo Han <jingoohan1@gmail.com>
To: Manivannan Sadhasivam <mani@kernel.org>
To: Lorenzo Pieralisi <lpieralisi@kernel.org>
To: Krzysztof Wilczyński <kwilczynski@kernel.org>
To: Rob Herring <robh@kernel.org>
To: Bjorn Helgaas <bhelgaas@google.com>
To: Fil Dunsky <filipp.dunsky@gmail.com>
To: Krzysztof Kozlowski <krzk+dt@kernel.org>
To: Conor Dooley <conor+dt@kernel.org>
To: Stephen Boyd <sboyd@kernel.org>
To: Brian Masney <bmasney+clk@redhat.com>
To: Jerome Brunet <jbrunet+clk@baylibre.com>
To: Philipp Zabel <p.zabel@pengutronix.de>
To: Vinod Koul <vkoul@kernel.org>
To: Neil Armstrong <neil.armstrong@linaro.org>
Cc: linux-pci@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org
Cc: devicetree@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: linux-clk@vger.kernel.org
Cc: linux-phy@lists.infradead.org

---
Fil Dunsky (8):
      PCI: dwc: Export the multiplexed MSI interrupt handler
      dt-bindings: soc: Describe CS7542 PCIe clocks and resets
      clk: cs7542: Add PCIe gates and resets to the global provider
      dt-bindings: phy: Describe CS7542 PCIe SerDes
      phy: Add CS7542 PCIe SerDes support
      dt-bindings: PCI: Describe the CS7542 host controller
      PCI: cs7542: Add CS7542 PCIe host support
      MAINTAINERS: Add CS7542 PCIe support

 .../bindings/pci/cortina,cs7542-pcie.yaml          | 129 +++++
 .../bindings/phy/cortina,cs7542-pcie-phy.yaml      |  67 +++
 .../soc/cortina/cortina,cs7542-syscon.yaml         |  10 +-
 MAINTAINERS                                        |   7 +-
 drivers/clk/Kconfig                                |   6 +-
 drivers/clk/clk-cs7542.c                           | 183 ++++++-
 drivers/pci/controller/dwc/Kconfig                 |  12 +
 drivers/pci/controller/dwc/Makefile                |   2 +
 drivers/pci/controller/dwc/pcie-cs7542.c           | 551 +++++++++++++++++++++
 drivers/pci/controller/dwc/pcie-designware-host.c  |   1 +
 drivers/phy/Kconfig                                |  11 +
 drivers/phy/Makefile                               |   2 +
 drivers/phy/phy-cs7542-pcie.c                      | 232 +++++++++
 include/dt-bindings/clock/cortina,cs7542-clock.h   |   4 +
 include/dt-bindings/reset/cortina,cs7542-reset.h   |   9 +
 15 files changed, 1200 insertions(+), 26 deletions(-)
---
base-commit: b6a9fa34ce4187cb69d3c588a4bbffc31ce5db8f
change-id: 20261123-b4-cs7542-pcie-224e359c8698
prerequisite-message-id: 20261123-cs7542-syscon-v2-0-1cd74b2522f9@gmail.com
prerequisite-patch-id: 4b568d742095f1a61312c911d2b6e81c8e754312
prerequisite-patch-id: a4bba26a3aac57e4e4229a727fdf94677373493a
prerequisite-patch-id: f8a2ba71717f71ca2bedda986f8b861995cdc586
prerequisite-patch-id: 7fbe9405265ef3d1ec62811415a46c0061afd7c8
prerequisite-patch-id: 25220835f5d2506a01ba652d86f9b9ac3ad5121a

Best regards,
--  
Fil Dunsky <filipp.dunsky@gmail.com>




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

end of thread, other threads:[~2026-11-23 23:16 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-23 20:32 [PATCH v2 0/8] soc: cortina: Add CS7542 PCIe control, SerDes and host support Fil Dunsky via B4 Relay
2026-11-23 20:32 ` [PATCH v2 1/8] PCI: dwc: Export the multiplexed MSI interrupt handler Fil Dunsky via B4 Relay
2026-11-23 20:32 ` [PATCH v2 2/8] dt-bindings: soc: Describe CS7542 PCIe clocks and resets Fil Dunsky via B4 Relay
2026-11-23 20:32 ` [PATCH v2 3/8] clk: cs7542: Add PCIe gates and resets to the global provider Fil Dunsky via B4 Relay
2026-11-23 20:32 ` [PATCH v2 4/8] dt-bindings: phy: Describe CS7542 PCIe SerDes Fil Dunsky via B4 Relay
2026-11-23 20:32 ` [PATCH v2 5/8] phy: Add CS7542 PCIe SerDes support Fil Dunsky via B4 Relay
2026-11-23 20:32 ` [PATCH v2 6/8] dt-bindings: PCI: Describe the CS7542 host controller Fil Dunsky via B4 Relay
2026-11-23 20:32 ` [PATCH v2 7/8] PCI: cs7542: Add CS7542 PCIe host support Fil Dunsky via B4 Relay
2026-11-23 20:32 ` [PATCH v2 8/8] MAINTAINERS: Add CS7542 PCIe support Fil Dunsky via B4 Relay
2026-11-23 22:54 ` [PATCH v2 0/8] soc: cortina: Add CS7542 PCIe control, SerDes and host support Bjorn Helgaas
2026-11-23 23:15   ` Fil Dunsky

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