Skip to content

phy: zynqmp: Perform complete initialization, including ILL calibration

Sean Anderson linux-arm-kernel linux-devicetree linux-pci linux-phy lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8dt-bindings: pci: xilinx-nwl: Add resetsDocumentation/devicetree/bindings/pci/xlnx,nwl-pcie.yaml+17 -04 replies
2/8phy: zynqmp: Refactor bus width configuration into helperdrivers/phy/xilinx/phy-zynqmp.c+12 -81 reply
3/8phy: zynqmp: Refactor common phy initialization into a helperdrivers/phy/xilinx/phy-zynqmp.c+16 -61 reply
4/8phy: zynqmp: Calibrate ILL if necessarydrivers/phy/xilinx/phy-zynqmp.c+420 -12 replies
5/8phy: zynqmp: Initialize chicken bitsdrivers/phy/xilinx/phy-zynqmp.c+24 -00 replies
6/8PCI: xilinx-nwl: Split phy_init from phy_power_ondrivers/pci/controller/pcie-xilinx-nwl.c+43 -350 replies
7/8PCI: xilinx-nwl: Reset the core during probedrivers/pci/controller/pcie-xilinx-nwl.c+177 -01 reply
8/8arm64: zynqmp: Add PCIe resetsarch/arm64/boot/dts/xilinx/zynqmp.dtsi+4 -00 replies

Reviews trailers per patch

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

PatchRob Herring (Arm)Radhey Shyam Pandey
1/8R-b
2/8R-b
3/8R-b
4/8
5/8
6/8
7/8
8/8

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

Read the v1 thread

Cover letter [PATCH 0/8] phy: zynqmp: Perform complete initialization, including ILL calibration

This series completely initializes the GTRs in Linux, making all bootloader initialization (as performed by init_serdes() in psu_init_gpl.c) optional. This gives the following advantages:

- On some boards (mine) the reference clocks may not be configured in SPL/FSBL. So ILL calibration will fail (and take a long time to do so) unless we defer initialization to U-Boot/Linux where the phy driver can request the clocks.
- If PCIe/SATA are not used in U-Boot, ILL calibration can be deferred until Linux when it can be done it parallel with other initialization.
- We will have flexibility to switch between different configurations at runtime. For example, this could allow supporting both SATA and PCIe M.2 cards with [1].

I have tested this series with DP, PCIe, SGMII, and SATA. USB3 is broken on my dev board at the moment (independent of this series; need to investigate) so I have not tested that. I have an equivalent set of patches for U-Boot that I will try to post soon.

[1] https://lore.kernel.org/linux-pci/[email protected]/

Sean Anderson (8):
dt-bindings: pci: xilinx-nwl: Add resets
phy: zynqmp: Refactor bus width configuration into helper
phy: zynqmp: Refactor common phy initialization into a helper
phy: zynqmp: Calibrate ILL if necessary
phy: zynqmp: Initialize chicken bits
PCI: xilinx-nwl: Split phy_init from phy_power_on
PCI: xilinx-nwl: Reset the core during probe
arm64: zynqmp: Add PCIe resets

 .../bindings/pci/xlnx,nwl-pcie.yaml           |  17 +
 arch/arm64/boot/dts/xilinx/zynqmp.dtsi        |   4 +
 drivers/pci/controller/pcie-xilinx-nwl.c      | 255 +++++++--
 drivers/phy/xilinx/phy-zynqmp.c               | 487 +++++++++++++++++-
 4 files changed, 713 insertions(+), 50 deletions(-)
Signature · 1 line
2.35.1.1320.gc452695387.dirty