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)
commitd2ce69ca2516906f08b0b239df9c4e9493a4c193
tree6aad2dbe8bf0cc5688f30bc4f836780af57a7e8a
parentc9d511dc84610498f370bbfff16e1c194b93c8d8
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