Get and enable the vddp-supply along with VDD and IOVCC.

The Startek KD070FHFID078 panel has a VDDP power input, which the
MediaTek Genio 520 and 720 EVKs switch with a regulator of its own, so
the driver has to enable it for the panel to be powered on those boards.

On boards that do not describe vddp-supply, the regulator core provides
a dummy regulator, so they only see a "using dummy regulator" message.

Signed-off-by: David Lechner <[email protected]>
---
 drivers/gpu/drm/panel/panel-himax-hx8279.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/panel/panel-himax-hx8279.c 
b/drivers/gpu/drm/panel/panel-himax-hx8279.c
index 9e443c719843..fe665cd3a3d2 100644
--- a/drivers/gpu/drm/panel/panel-himax-hx8279.c
+++ b/drivers/gpu/drm/panel/panel-himax-hx8279.c
@@ -112,7 +112,7 @@
 struct hx8279 {
        struct drm_panel panel;
        struct mipi_dsi_device *dsi[2];
-       struct regulator_bulk_data vregs[2];
+       struct regulator_bulk_data vregs[3];
        struct gpio_desc *enable_gpio;
        struct gpio_desc *reset_gpio;
        const struct hx8279_panel_desc *desc;
@@ -769,6 +769,7 @@ static int hx8279_init_vregs(struct hx8279 *hx, struct 
device *dev)
 
        hx->vregs[0].supply = "vdd";
        hx->vregs[1].supply = "iovcc";
+       hx->vregs[2].supply = "vddp";
        ret = devm_regulator_bulk_get(dev, ARRAY_SIZE(hx->vregs),
                                      hx->vregs);
        if (ret < 0)

-- 
2.53.0

Reply via email to