[PATCH 8/8] drm/tilcdc: panel: Add support for enable GPIO

Fabio Estevam festevam at gmail.com
Fri Jul 11 08:08:58 PDT 2014


On Fri, Jul 11, 2014 at 11:18 AM, Ezequiel Garcia
<ezequiel at vanguardiasur.com.ar> wrote:
> In order to support the "enable GPIO" available in many panel devices,
> this commit adds a proper devicetree binding.
>
> By providing an enable GPIO in the devicetree, the driver can now turn
> off and on the panel device, and/or the backlight device. Both the
> backlight and the GPIO are optional properties.
> +       panel_mod->enable_gpio = devm_gpiod_get(&pdev->dev, "enable");
> +       if (IS_ERR(panel_mod->enable_gpio)) {
> +               ret = PTR_ERR(panel_mod->enable_gpio);
> +               if (ret != -ENOENT) {

Shouldn't this be controlled by a regulator instead? What if the panel
is powered from a PMIC output?


More information about the dri-devel mailing list