[PATCH v2 12/20] drm/panel: td043mtea1: Attach DT backlight
From: H. Nikolaus Schaller
Date: Tue Nov 24 2026 - 02:28:03 EST
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@xxxxxxxxxxxxx>
---
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");
--
2.56.0