Workaround for IMX7d PCI-e PLL lock failure
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest0 of 2 patches 0 repliesNew
Patches in v1 No applies recorded yet
None of the 2 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/2] Workaround for IMX7d PCI-e PLL lock failure
Quoted 25 lines · Trent Piepho
This is the workaround for the IMX7d Erratum e10728, failure of initialize PCIe PLL VCO oscillation resulting in PLL lock failure and failure of the PCI-e link to come up.
The registers used in the workaround are based on the latest patch in the NXP kernel, but many things around that have been changed.
This uses a new node of type fsl,imx-pcie-phy to get the PHY's registers. The node is found via a phandle added to the PCI-e controller's node, rather than the incorrect way done in the NXP kernel.
There is no error if the phandle is not preset (since it's needed except for the imx7d workaround and no existing dtses have it), but if preset it is an error if something relating to it does not work.
** Should the node be fsl,imx7d-pcie-phy? snps,dw-pcie-phy?
There is little to no documenation from NXP and Synopsis about this, so I'm unsure of the PHY's lineage.
The imx6 PCI-e driver does not use the generic phy layer to interact with the PHY. It appears PHY related hardware, like clocks, regulators, and resets, are part of the fsl,imx6q-pcie node. But again, the topology of this hardware is not documented very well.
Quoted 8 lines
Another approach would be to add the PHY registers as another bank in the PCI-e node. This would match how the PHY reset, clock, etc. are done. However, the PHY is attached to a different AXI master than the PCI-e controller, so the register range really does not belong there.
Trent Piepho (2):
ARM: dts: imx7d: Add node for PCIe PHY
PCI: imx: Add workaround for e10728, IMX7d PCIe PLL failure
Marked as "changes requested", following Lucas' review, please respin as appropriate.
Lorenzo
Quoted 15 lines
.../devicetree/bindings/pci/fsl,imx6q-pcie.txt | 11 ++++ arch/arm/boot/dts/imx7d.dtsi | 9 ++++ drivers/pci/dwc/pci-imx6.c | 59 ++++++++++++++++++++++ 3 files changed, 79 insertions(+)Cc Shawn Guo <[email protected]>Cc Sascha Hauer <[email protected]>Cc Fabio Estevam <[email protected]>Cc Richard Zhu <[email protected]>Cc Lucas Stach <[email protected]>Signature · 1 line
2.14.4