From: mpa@pengutronix.de (Markus Pargmann)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 1/3] staging: drm/imx: parallel-display: Add 24-bit BGR support
Date: Mon, 3 Nov 2014 15:54:46 +0100 [thread overview]
Message-ID: <1415026488-25309-2-git-send-email-mpa@pengutronix.de> (raw)
In-Reply-To: <1415026488-25309-1-git-send-email-mpa@pengutronix.de>
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(-)
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);
--
2.1.1
next prev parent reply other threads:[~2014-11-03 14:54 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-03 14:54 [PATCH v2 0/3] staging: drm/imx: parallel-display fixes Markus Pargmann
2014-11-03 14:54 ` Markus Pargmann [this message]
2014-11-04 0:15 ` [PATCH v2 1/3] staging: drm/imx: parallel-display: Add 24-bit BGR support Greg Kroah-Hartman
2014-11-03 14:54 ` [PATCH v2 2/3] imx-drm: parallel-display: Fix drm_panel support Markus Pargmann
2014-11-03 14:54 ` [PATCH v2 3/3] imx-drm: parallel-display: Fix dpms mode handling Markus Pargmann
2014-11-03 15:19 ` Lucas Stach
2014-11-03 15:28 ` Markus Pargmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1415026488-25309-2-git-send-email-mpa@pengutronix.de \
--to=mpa@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).