PCI: imx6: Add regulator support
authorQuentin Schulz <quentin.schulz@free-electrons.com>
Thu, 8 Jun 2017 08:07:42 +0000 (10:07 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Sun, 2 Jul 2017 23:43:39 +0000 (18:43 -0500)
commitc26ebe98a103479dae9284fe0a86a95af4a5cd46
tree5af5b1c5aa475d9d3c7f35e86c210c4940bc5f18
parent769b461fc0c0451bacf75826d5830fc07c5a57e4
PCI: imx6: Add regulator support

Some boards might require to control a regulator to power the PCIe port.

Add support for an optional regulator defined in Device Tree linked in the
PCIe controller under `vpcie-supply`.  If present, the regulator will be
disabled and then enabled as part of the PCIe host initialization process
and will be disabled when shutting down.

Signed-off-by: Quentin Schulz <quentin.schulz@free-electrons.com>
[bhelgaas: use dev_err() instead of pr_err() in
imx6_pcie_assert_core_reset()]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Rob Herring <robh@kernel.org>
Acked-by: Richard Zhu <hongxing.zhu@nxp.com>
Documentation/devicetree/bindings/pci/fsl,imx6q-pcie.txt
drivers/pci/dwc/pci-imx6.c