]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: imx6: Enable PHY internal regulator when supplied >3V
authorRichard Zhu <hongxing.zhu@nxp.com>
Fri, 4 Jun 2021 01:47:49 +0000 (09:47 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 24 Jun 2021 19:50:34 +0000 (14:50 -0500)
commit0f0b0c34aeedfe8fa00a0846ee06c2ddb28a0749
tree6aad2dbe8bf0cc5688f30bc4f836780af57a7e8a
parent3c059b5487bdf601536016a45b91e88dc9078880
PCI: imx6: Enable PHY internal regulator when supplied >3V

The i.MX8MQ PCIe PHY needs 1.8V in default but can be supplied by either a
1.8V or a 3.3V regulator.

The "vph-supply" DT property tells us which external regulator supplies the
PHY. If that regulator supplies anything over 3V, enable the PHY's internal
3.3V-to-1.8V regulator.

Link: https://lore.kernel.org/r/1622771269-13844-3-git-send-email-hongxing.zhu@nxp.com
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
drivers/pci/controller/dwc/pci-imx6.c