[PATCH v2 12/20] drm/panel: td043mtea1: Attach DT backlight

Neil Armstrong neil.armstrong at linaro.org
Thu Dec 3 02:39:29 PST 2026


On 11/24/26 08:25, H. Nikolaus Schaller wrote:
> Connect the TPO TD043MTEA1 DRM panel to its backlight described in
> Device Tree by calling drm_panel_of_backlight() during probe. Without
> this association, the panel does not control the DT backlight.
> 
> Signed-off-by: H. Nikolaus Schaller <hns at goldelico.com>
> ---
> 
> Notes:
>      Changes against V1:
>      - Explain the DT backlight lookup performed by drm_panel_of_backlight().
>        Commit-message review assisted by ChatGPT; code unchanged.
> 
>   drivers/gpu/drm/panel/panel-tpo-td043mtea1.c | 4 ++++
>   1 file changed, 4 insertions(+)
> 
> diff --git a/drivers/gpu/drm/panel/panel-tpo-td043mtea1.c b/drivers/gpu/drm/panel/panel-tpo-td043mtea1.c
> index b18af526b54c5..cb2fa393591c8 100644
> --- a/drivers/gpu/drm/panel/panel-tpo-td043mtea1.c
> +++ b/drivers/gpu/drm/panel/panel-tpo-td043mtea1.c
> @@ -450,6 +450,10 @@ static int td043mtea1_probe(struct spi_device *spi)
>   		return ret;
>   	}
>   
> +	ret = drm_panel_of_backlight(&lcd->panel);
> +	if (ret)
> +		return ret;
> +
>   	ret = sysfs_create_group(&spi->dev.kobj, &td043mtea1_attr_group);
>   	if (ret < 0) {
>   		dev_err(&spi->dev, "failed to create sysfs files\n");

Reviewed-by: Neil Armstrong <neil.armstrong at linaro.org>

Thanks,
Neil



More information about the linux-arm-kernel mailing list