mirror of
https://github.com/torvalds/linux.git
synced 2026-05-13 00:28:54 +02:00
Convert the driver to use the DRM_BRIDGE_ATTACH_NO_CONNECTOR flag when attaching bridges. This modernizes the driver by delegating connector creation to the bridge subsystem through drm_bridge_connector_init() instead of manually searching for connectors created by the bridge. The custom tilcdc_encoder_find_connector() function is removed and replaced with the standard drm_bridge_connector infrastructure, which simplifies the code and aligns with current DRM bridge best practices. This change is safe as there are now no in-tree devicetrees that connect tilcdc to bridges which do not support the DRM_BRIDGE_ATTACH_NO_CONNECTOR flag. Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Kory Maincent (TI.com) <kory.maincent@bootlin.com> Link: https://patch.msgid.link/20260123-feature_tilcdc-v5-25-5a44d2aa3f6f@bootlin.com Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
35 lines
1.1 KiB
Plaintext
35 lines
1.1 KiB
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
config DRM_TILCDC
|
|
tristate "DRM Support for TI LCDC Display Controller"
|
|
depends on DRM && OF && ARM
|
|
select DRM_CLIENT_SELECTION
|
|
select DRM_KMS_HELPER
|
|
select DRM_GEM_DMA_HELPER
|
|
select DRM_BRIDGE
|
|
select DRM_DISPLAY_HELPER
|
|
select DRM_BRIDGE_CONNECTOR
|
|
select DRM_PANEL_BRIDGE
|
|
select VIDEOMODE_HELPERS
|
|
select BACKLIGHT_CLASS_DEVICE
|
|
help
|
|
Choose this option if you have an TI SoC with LCDC display
|
|
controller, for example AM33xx in beagle-bone, DA8xx, or
|
|
OMAP-L1xx. This driver replaces the FB_DA8XX fbdev driver.
|
|
|
|
config DRM_TILCDC_PANEL_LEGACY
|
|
bool "Support device tree blobs using TI LCDC Panel binding"
|
|
default y
|
|
depends on DRM_TILCDC
|
|
depends on OF
|
|
depends on BACKLIGHT_CLASS_DEVICE
|
|
depends on PM
|
|
select OF_OVERLAY
|
|
select DRM_PANEL_SIMPLE
|
|
help
|
|
Modifies the live device tree at early boot to convert the legacy
|
|
"ti,tilcdc,panel" devicetree node to the standard panel-dpi node.
|
|
This allows to maintain backward compatibility for boards which
|
|
were using the deprecated tilcdc_panel driver.
|
|
If you find "ti,tilcdc,panel"-string from your DTB, you probably
|
|
need this. Otherwise you do not.
|