diff options
author | Kuogee Hsieh <quic_khsieh@quicinc.com> | 2022-07-05 18:29:14 +0200 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2022-07-06 18:53:58 +0200 |
commit | a4888b2005d1b226ba2ba2aa38ba302c4cdf80a6 (patch) | |
tree | 21093b794312fe36f386547403b468a58393885f /drivers/phy | |
parent | phy: amlogic: Add G12A Analog MIPI D-PHY driver (diff) | |
download | linux-a4888b2005d1b226ba2ba2aa38ba302c4cdf80a6.tar.xz linux-a4888b2005d1b226ba2ba2aa38ba302c4cdf80a6.zip |
phy: qcom-edp: add regulator_set_load to edp phy
This patch add regulator_set_load() before enable regulator at
eDP phy driver.
Signed-off-by: Kuogee Hsieh <quic_khsieh@quicinc.com>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/1657038556-2231-2-git-send-email-quic_khsieh@quicinc.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/phy')
-rw-r--r-- | drivers/phy/qualcomm/phy-qcom-edp.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/phy/qualcomm/phy-qcom-edp.c b/drivers/phy/qualcomm/phy-qcom-edp.c index cacd32f6e0cc..7e3570789845 100644 --- a/drivers/phy/qualcomm/phy-qcom-edp.c +++ b/drivers/phy/qualcomm/phy-qcom-edp.c @@ -639,6 +639,18 @@ static int qcom_edp_phy_probe(struct platform_device *pdev) if (ret) return ret; + ret = regulator_set_load(edp->supplies[0].consumer, 21800); /* 1.2 V vdda-phy */ + if (ret) { + dev_err(dev, "failed to set load at %s\n", edp->supplies[0].supply); + return ret; + } + + ret = regulator_set_load(edp->supplies[1].consumer, 36000); /* 0.9 V vdda-pll */ + if (ret) { + dev_err(dev, "failed to set load at %s\n", edp->supplies[1].supply); + return ret; + } + ret = qcom_edp_clks_register(edp, pdev->dev.of_node); if (ret) return ret; |