linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 1/2] ARM: dts: imx6qp-sabresd: Enable PCIe support
@ 2022-02-21  6:33 Richard Zhu
  2022-02-21  6:33 ` [PATCH v4 2/2] PCI: imx6: Enable i.MX6QP PCIe power management support Richard Zhu
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Richard Zhu @ 2022-02-21  6:33 UTC (permalink / raw)
  To: l.stach, bhelgaas, lorenzo.pieralisi, shawnguo
  Cc: hongxing.zhu, linux-pci, linux-arm-kernel, linux-kernel, kernel,
	linux-imx

In the i.MX6QP sabresd board(sch-28857) design, one external oscillator
is powered up by vgen3 and used as the PCIe reference clock source by
the endpoint device.

If RC uses this oscillator as reference clock too, PLL6(ENET PLL) would
has to be in bypass mode, and ENET clocks would be messed up.

To keep things simple, let RC use the internal PLL as reference clock
and set vgen3 always on to enable the external oscillator for endpoint
device on i.MX6QP sabresd board.

NOTE: This reference clock setup is used to pass the GEN2 TX compliance
tests, and isn't recommended as a setup in the end-user design.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
---
 arch/arm/boot/dts/imx6qp-sabresd.dts | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/imx6qp-sabresd.dts b/arch/arm/boot/dts/imx6qp-sabresd.dts
index 480e73183f6b..f69eec18d865 100644
--- a/arch/arm/boot/dts/imx6qp-sabresd.dts
+++ b/arch/arm/boot/dts/imx6qp-sabresd.dts
@@ -50,8 +50,12 @@ MX6QDL_PAD_SD3_DAT7__SD3_DATA7		0x17059
 	};
 };
 
+&vgen3_reg {
+	regulator-always-on;
+};
+
 &pcie {
-	status = "disabled";
+	status = "okay";
 };
 
 &sata {
-- 
2.25.1


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

end of thread, other threads:[~2022-03-08  1:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-21  6:33 [PATCH v4 1/2] ARM: dts: imx6qp-sabresd: Enable PCIe support Richard Zhu
2022-02-21  6:33 ` [PATCH v4 2/2] PCI: imx6: Enable i.MX6QP PCIe power management support Richard Zhu
2022-02-21  8:31 ` [PATCH v4 1/2] ARM: dts: imx6qp-sabresd: Enable PCIe support Shawn Guo
2022-03-07 11:09 ` (subset) " Lorenzo Pieralisi
2022-03-08  1:19   ` Hongxing Zhu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).