All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] PCI: amlogic: Make PCIe working reliably on AXG platforms
@ 2019-12-08 21:03 ` Remi Pommarel
  0 siblings, 0 replies; 30+ messages in thread
From: Remi Pommarel @ 2019-12-08 21:03 UTC (permalink / raw)
  To: Neil Armstrong, Jerome Brunet, Kevin Hilman, Yue Wang
  Cc: Michael Turquette, Stephen Boyd, Lorenzo Pieralisi,
	linux-amlogic, linux-clk, linux-arm-kernel, linux-kernel,
	linux-pci, Remi Pommarel

PCIe device probing failures have been seen on some AXG platforms and were
due to unreliable clock signal output. Setting HHI_MIPI_CNTL0[26] bit
solved the problem. After being contacted about this, vendor reported that
this bit was linked to PCIe PLL CML output.

This serie adds a way to set this bit through AXG clock gating logic.
Platforms having this kind of issue could make use of this gating by
applying a patch to their devicetree similar to:

                clocks = <&clkc CLKID_USB
                        &clkc CLKID_MIPI_ENABLE
                        &clkc CLKID_PCIE_A
-                       &clkc CLKID_PCIE_CML_EN0>;
+                       &clkc CLKID_PCIE_CML_EN0
+                       &clkc CLKID_PCIE_PLL_CML_ENABLE>;
                clock-names = "pcie_general",
                                "pcie_mipi_en",
                                "pcie",
-                               "port";
+                               "port",
+                               "pll_cml_en";
                resets = <&reset RESET_PCIE_PHY>,
                        <&reset RESET_PCIE_A>,
                        <&reset RESET_PCIE_APB>;


Remi Pommarel (2):
  clk: meson: axg: add pcie pll cml gating
  PCI: amlogic: Use PCIe pll gate when available

 drivers/clk/meson/axg.c                | 3 +++
 drivers/clk/meson/axg.h                | 2 +-
 drivers/pci/controller/dwc/pci-meson.c | 5 +++++
 include/dt-bindings/clock/axg-clkc.h   | 1 +
 4 files changed, 10 insertions(+), 1 deletion(-)

-- 
2.24.0


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

end of thread, other threads:[~2019-12-16  8:48 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-08 21:03 [PATCH 0/2] PCI: amlogic: Make PCIe working reliably on AXG platforms Remi Pommarel
2019-12-08 21:03 ` Remi Pommarel
2019-12-08 21:03 ` Remi Pommarel
2019-12-08 21:03 ` [PATCH 1/2] clk: meson: axg: add pcie pll cml gating Remi Pommarel
2019-12-08 21:03   ` Remi Pommarel
2019-12-08 21:03   ` Remi Pommarel
2019-12-08 22:07   ` Martin Blumenstingl
2019-12-08 22:07     ` Martin Blumenstingl
2019-12-08 22:07     ` Martin Blumenstingl
2019-12-08 21:03 ` [PATCH 2/2] PCI: amlogic: Use PCIe pll gate when available Remi Pommarel
2019-12-08 21:03   ` Remi Pommarel
2019-12-08 21:03   ` Remi Pommarel
2019-12-09 11:03   ` Andrew Murray
2019-12-09 11:03     ` Andrew Murray
2019-12-09 11:03     ` Andrew Murray
2019-12-15 11:38     ` Remi Pommarel
2019-12-15 11:38       ` Remi Pommarel
2019-12-15 11:38       ` Remi Pommarel
2019-12-09  8:32 ` [PATCH 0/2] PCI: amlogic: Make PCIe working reliably on AXG platforms Jerome Brunet
2019-12-09  8:32   ` Jerome Brunet
2019-12-09  8:32   ` Jerome Brunet
2019-12-15 11:36   ` Remi Pommarel
2019-12-15 11:36     ` Remi Pommarel
2019-12-15 11:36     ` Remi Pommarel
2019-12-15 20:44     ` Martin Blumenstingl
2019-12-15 20:44       ` Martin Blumenstingl
2019-12-15 20:44       ` Martin Blumenstingl
2019-12-16  8:47     ` Jerome Brunet
2019-12-16  8:47       ` Jerome Brunet
2019-12-16  8:47       ` Jerome Brunet

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.