Message ID | 1415026488-25309-2-git-send-email-mpa@pengutronix.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Mon, Nov 03, 2014 at 03:54:46PM +0100, Markus Pargmann wrote: > From: Philipp Zabel <p.zabel@pengutronix.de> > > Add support for the BGR24 format to the IPUv3 parallel display. > > Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> > Signed-off-by: Markus Pargmann <mpa@pengutronix.de> > --- > Documentation/devicetree/bindings/staging/imx-drm/fsl-imx-drm.txt | 4 ++-- > drivers/staging/imx-drm/parallel-display.c | 2 ++ > 2 files changed, 4 insertions(+), 2 deletions(-) Please work to get this driver out of staging instead of adding new features to it :(
diff --git a/Documentation/devicetree/bindings/staging/imx-drm/fsl-imx-drm.txt b/Documentation/devicetree/bindings/staging/imx-drm/fsl-imx-drm.txt index e75f0e549fff..f3497037679e 100644 --- a/Documentation/devicetree/bindings/staging/imx-drm/fsl-imx-drm.txt +++ b/Documentation/devicetree/bindings/staging/imx-drm/fsl-imx-drm.txt @@ -60,8 +60,8 @@ Required properties: - compatible: Should be "fsl,imx-parallel-display" Optional properties: - interface_pix_fmt: How this display is connected to the - display interface. Currently supported types: "rgb24", "rgb565", "bgr666" - and "lvds666". + display interface. Currently supported types: "rgb24", "bgr24", "rgb565", + "bgr666", and "lvds666". - edid: verbatim EDID data block describing attached display. - ddc: phandle describing the i2c bus handling the display data channel diff --git a/drivers/staging/imx-drm/parallel-display.c b/drivers/staging/imx-drm/parallel-display.c index 015a454b87e1..b2719c4a0561 100644 --- a/drivers/staging/imx-drm/parallel-display.c +++ b/drivers/staging/imx-drm/parallel-display.c @@ -230,6 +230,8 @@ static int imx_pd_bind(struct device *dev, struct device *master, void *data) else if (!strcmp(fmt, "lvds666")) imxpd->interface_pix_fmt = v4l2_fourcc('L', 'V', 'D', '6'); + else if (!strcmp(fmt, "bgr24")) + imxpd->interface_pix_fmt = V4L2_PIX_FMT_BGR24; } panel_node = of_parse_phandle(np, "fsl,panel", 0);