mirror of
https://github.com/torvalds/linux.git
synced 2024-11-08 05:01:48 +00:00
751e2676ee
This patch allows to optionally attach the lvds-channel to a panel supported by a drm_panel driver using of-graph bindings, instead of supplying the modes via display-timings in the device tree. This depends on of_graph_get_port_by_id and uses the OF graph to link the optional DRM panel to the LDB lvds-channel. The output port number is 1 on devices without the 4-port input multiplexer (i.MX5) and 4 on devices with the mux (i.MX6). Before: ldb { ... lvds-channel@0 { ... display-timings { native-timing = <&timing1>; timing1: etm0700g0dh6 { hactive = <800>; vactive = <480>; clock-frequency = <33260000>; hsync-len = <128>; hback-porch = <88>; hfront-porch = <40>; vsync-len = <2>; vback-porch = <33>; vfront-porch = <10>; hsync-active = <0>; vsync-active = <0>; ... }; }; ... }; }; After: ldb { ... lvds-channel@0 { ... port@4 { reg = <4>; lvds_out: endpoint { remote_endpoint = <&panel_in>; }; }; }; }; panel { compatible = "edt,etm0700g0dh6", "simple-panel"; ... port { panel_in: endpoint { remote-endpoint = <&lvds_out>; }; }; }; [Fixed build error due to missing select on DRM_PANEL --rmk] Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
57 lines
1.4 KiB
Plaintext
57 lines
1.4 KiB
Plaintext
config DRM_IMX
|
|
tristate "DRM Support for Freescale i.MX"
|
|
select DRM_KMS_HELPER
|
|
select DRM_KMS_FB_HELPER
|
|
select VIDEOMODE_HELPERS
|
|
select DRM_GEM_CMA_HELPER
|
|
select DRM_KMS_CMA_HELPER
|
|
depends on DRM && (ARCH_MXC || ARCH_MULTIPLATFORM) && HAVE_DMA_ATTRS
|
|
depends on IMX_IPUV3_CORE
|
|
help
|
|
enable i.MX graphics support
|
|
|
|
config DRM_IMX_FB_HELPER
|
|
tristate "provide legacy framebuffer /dev/fb0"
|
|
select DRM_KMS_CMA_HELPER
|
|
depends on DRM_IMX
|
|
help
|
|
The DRM framework can provide a legacy /dev/fb0 framebuffer
|
|
for your device. This is necessary to get a framebuffer console
|
|
and also for applications using the legacy framebuffer API
|
|
|
|
config DRM_IMX_PARALLEL_DISPLAY
|
|
tristate "Support for parallel displays"
|
|
select DRM_PANEL
|
|
depends on DRM_IMX
|
|
select VIDEOMODE_HELPERS
|
|
|
|
config DRM_IMX_TVE
|
|
tristate "Support for TV and VGA displays"
|
|
depends on DRM_IMX
|
|
select REGMAP_MMIO
|
|
help
|
|
Choose this to enable the internal Television Encoder (TVe)
|
|
found on i.MX53 processors.
|
|
|
|
config DRM_IMX_LDB
|
|
tristate "Support for LVDS displays"
|
|
depends on DRM_IMX && MFD_SYSCON
|
|
select DRM_PANEL
|
|
help
|
|
Choose this to enable the internal LVDS Display Bridge (LDB)
|
|
found on i.MX53 and i.MX6 processors.
|
|
|
|
config DRM_IMX_IPUV3
|
|
tristate
|
|
depends on DRM_IMX
|
|
depends on IMX_IPUV3_CORE
|
|
default y if DRM_IMX=y
|
|
default m if DRM_IMX=m
|
|
|
|
config DRM_IMX_HDMI
|
|
tristate "Freescale i.MX DRM HDMI"
|
|
select DRM_DW_HDMI
|
|
depends on DRM_IMX
|
|
help
|
|
Choose this if you want to use HDMI on i.MX6.
|