imx-drm: parallel-display: Add drm_panel support
authorPhilipp Zabel <p.zabel@pengutronix.de>
Tue, 25 Feb 2014 10:55:04 +0000 (11:55 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Feb 2014 20:43:36 +0000 (12:43 -0800)
commit628f435be4359e6ae8ecfdda9b492053be76a057
tree286896b3fb1449fc6e34b115cc9b4745e7296071
parent1f15b69b597087937f370179661cc468f46ce545
imx-drm: parallel-display: Add drm_panel support

This patch allows to optionally attach the parallel-display to a panel
supported by a drm_panel driver instead of supplying the modes via
device tree.

Before:
parallel-display {
compatible = "fsl,imx-parallel-display";
...

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:
parallel-display {
compatible = "fsl,imx-parallel-display";
fsl,panel = <&panel>;
...
};

panel: panel {
compatible = "edt,etm0700g0dh6", "simple-panel";
};

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/imx-drm/Kconfig
drivers/staging/imx-drm/parallel-display.c