From patchwork Wed Jan 2 17:02:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ahmad Fatoum X-Patchwork-Id: 10747015 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7148214E2 for ; Thu, 3 Jan 2019 08:46:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 62A2C2872F for ; Thu, 3 Jan 2019 08:46:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 56F94287AD; Thu, 3 Jan 2019 08:46:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id AE9A62872F for ; Thu, 3 Jan 2019 08:46:13 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3CF986E978; Thu, 3 Jan 2019 08:45:58 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by gabe.freedesktop.org (Postfix) with ESMTPS id DA4396E875 for ; Wed, 2 Jan 2019 17:02:59 +0000 (UTC) Received: from dude.hi.pengutronix.de ([2001:67c:670:100:1d::7]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gejuy-0003sI-7n; Wed, 02 Jan 2019 18:02:56 +0100 Received: from afa by dude.hi.pengutronix.de with local (Exim 4.91) (envelope-from ) id 1gejux-0004cB-4M; Wed, 02 Jan 2019 18:02:55 +0100 From: Ahmad Fatoum To: Stefan Agner , Marek Vasut , David Airlie , Daniel Vetter Subject: [PATCH 1/3] drm/mxsfb: use bus_format to determine pixel RGB component order Date: Wed, 2 Jan 2019 18:02:45 +0100 Message-Id: <20190102170247.8208-2-a.fatoum@pengutronix.de> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190102170247.8208-1-a.fatoum@pengutronix.de> References: <20190102170247.8208-1-a.fatoum@pengutronix.de> MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::7 X-SA-Exim-Mail-From: afa@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: dri-devel@lists.freedesktop.org X-Mailman-Approved-At: Thu, 03 Jan 2019 08:45:54 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kernel@pengutronix.de, dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP The LCDIF controller v4, like the one included in the i.MX6UL, can be configured to accept other RGB pixel formats. Extend the driver to configure the controller to do so. Signed-off-by: Ahmad Fatoum --- drivers/gpu/drm/mxsfb/mxsfb_crtc.c | 41 +++++++++++++++++++++++++----- drivers/gpu/drm/mxsfb/mxsfb_drv.h | 6 +++++ drivers/gpu/drm/mxsfb/mxsfb_regs.h | 17 +++++++++++++ 3 files changed, 57 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/mxsfb/mxsfb_crtc.c b/drivers/gpu/drm/mxsfb/mxsfb_crtc.c index 24b1f0c1432e..1b5b1fddd691 100644 --- a/drivers/gpu/drm/mxsfb/mxsfb_crtc.c +++ b/drivers/gpu/drm/mxsfb/mxsfb_crtc.c @@ -97,29 +97,56 @@ static void mxsfb_set_bus_fmt(struct mxsfb_drm_private *mxsfb) struct drm_crtc *crtc = &mxsfb->pipe.crtc; struct drm_device *drm = crtc->dev; u32 bus_format = MEDIA_BUS_FMT_RGB888_1X24; - u32 reg; + u32 ctrl, pattern; - reg = readl(mxsfb->base + LCDC_CTRL); + ctrl = readl(mxsfb->base + LCDC_CTRL); if (mxsfb->connector.display_info.num_bus_formats) bus_format = mxsfb->connector.display_info.bus_formats[0]; - reg &= ~CTRL_BUS_WIDTH_MASK; + ctrl &= ~CTRL_BUS_WIDTH_MASK; switch (bus_format) { case MEDIA_BUS_FMT_RGB565_1X16: - reg |= CTRL_SET_BUS_WIDTH(STMLCDIF_16BIT); + ctrl |= CTRL_SET_BUS_WIDTH(STMLCDIF_16BIT); + pattern = CTRL2_PATTERN_RGB; break; case MEDIA_BUS_FMT_RGB666_1X18: - reg |= CTRL_SET_BUS_WIDTH(STMLCDIF_18BIT); + ctrl |= CTRL_SET_BUS_WIDTH(STMLCDIF_18BIT); + pattern = CTRL2_PATTERN_RGB; break; case MEDIA_BUS_FMT_RGB888_1X24: - reg |= CTRL_SET_BUS_WIDTH(STMLCDIF_24BIT); + ctrl |= CTRL_SET_BUS_WIDTH(STMLCDIF_24BIT); + pattern = CTRL2_PATTERN_RGB; + break; + case MEDIA_BUS_FMT_BGR888_1X24: + ctrl |= CTRL_SET_BUS_WIDTH(STMLCDIF_24BIT); + pattern = CTRL2_PATTERN_BGR; + break; + case MEDIA_BUS_FMT_RBG888_1X24: + ctrl |= CTRL_SET_BUS_WIDTH(STMLCDIF_24BIT); + pattern = CTRL2_PATTERN_RBG; + break; + case MEDIA_BUS_FMT_GBR888_1X24: + ctrl |= CTRL_SET_BUS_WIDTH(STMLCDIF_24BIT); + pattern = CTRL2_PATTERN_GBR; break; default: + pattern = CTRL2_PATTERN_RGB; dev_err(drm->dev, "Unknown media bus format %d\n", bus_format); break; } - writel(reg, mxsfb->base + LCDC_CTRL); + writel(ctrl, mxsfb->base + LCDC_CTRL); + + if (mxsfb_is_v4(mxsfb)) { + u32 ctrl2 = readl(mxsfb->base + LCDC_V4_CTRL2); + ctrl2 &= ~CTRL2_PATTERN_MASK; + ctrl2 |= CTRL2_SET_PATTERN(pattern); + writel(ctrl2, mxsfb->base + LCDC_V4_CTRL2); + } else if (pattern != CTRL2_PATTERN_RGB) { + /* RGB is default, so only warn for other patterns */ + dev_err(drm->dev, "Unsupported media bus format %d\n", + bus_format); + } } static void mxsfb_enable_controller(struct mxsfb_drm_private *mxsfb) diff --git a/drivers/gpu/drm/mxsfb/mxsfb_drv.h b/drivers/gpu/drm/mxsfb/mxsfb_drv.h index 5d0883fc805b..89fa2076acaf 100644 --- a/drivers/gpu/drm/mxsfb/mxsfb_drv.h +++ b/drivers/gpu/drm/mxsfb/mxsfb_drv.h @@ -16,6 +16,8 @@ #ifndef __MXSFB_DRV_H__ #define __MXSFB_DRV_H__ +#include + struct mxsfb_devdata { unsigned int transfer_count; unsigned int cur_buf; @@ -50,5 +52,9 @@ void mxsfb_crtc_enable(struct mxsfb_drm_private *mxsfb); void mxsfb_crtc_disable(struct mxsfb_drm_private *mxsfb); void mxsfb_plane_atomic_update(struct mxsfb_drm_private *mxsfb, struct drm_plane_state *state); +static inline bool mxsfb_is_v4(const struct mxsfb_drm_private *mxsfb) +{ + return mxsfb->devdata->ipversion == 4; +} #endif /* __MXSFB_DRV_H__ */ diff --git a/drivers/gpu/drm/mxsfb/mxsfb_regs.h b/drivers/gpu/drm/mxsfb/mxsfb_regs.h index 66a6ba9ec533..c5f4dea80093 100644 --- a/drivers/gpu/drm/mxsfb/mxsfb_regs.h +++ b/drivers/gpu/drm/mxsfb/mxsfb_regs.h @@ -22,6 +22,7 @@ #define LCDC_CTRL 0x00 #define LCDC_CTRL1 0x10 +#define LCDC_V4_CTRL2 0x20 #define LCDC_V3_TRANSFER_COUNT 0x20 #define LCDC_V4_TRANSFER_COUNT 0x30 #define LCDC_V4_CUR_BUF 0x40 @@ -59,6 +60,15 @@ #define CTRL1_CUR_FRAME_DONE_IRQ_EN (1 << 13) #define CTRL1_CUR_FRAME_DONE_IRQ (1 << 9) +#define CTRL2_EVEN_LINE_PATTERN_MASK (0x7 << 12) +#define CTRL2_ODD_LINE_PATTERN_MASK (0x7 << 16) +#define CTRL2_PATTERN_MASK (CTRL2_ODD_LINE_PATTERN_MASK |\ + CTRL2_EVEN_LINE_PATTERN_MASK) +#define CTRL2_SET_EVEN_LINE_PATTERN(x) (((x) & 0x7) << 12) +#define CTRL2_SET_ODD_LINE_PATTERN(x) (((x) & 0x7) << 16) +#define CTRL2_SET_PATTERN(x) (CTRL2_SET_EVEN_LINE_PATTERN(x) |\ + CTRL2_SET_ODD_LINE_PATTERN(x)) + #define TRANSFER_COUNT_SET_VCOUNT(x) (((x) & 0xffff) << 16) #define TRANSFER_COUNT_GET_VCOUNT(x) (((x) >> 16) & 0xffff) #define TRANSFER_COUNT_SET_HCOUNT(x) ((x) & 0xffff) @@ -112,4 +122,11 @@ #define MXSFB_SYNC_DATA_ENABLE_HIGH_ACT (1 << 6) #define MXSFB_SYNC_DOTCLK_FALLING_ACT (1 << 7) /* negative edge sampling */ +#define CTRL2_PATTERN_RGB 0x0 +#define CTRL2_PATTERN_RBG 0x1 +#define CTRL2_PATTERN_GBR 0x2 +#define CTRL2_PATTERN_GRB 0x3 +#define CTRL2_PATTERN_BRG 0x4 +#define CTRL2_PATTERN_BGR 0x5 + #endif /* __MXSFB_REGS_H__ */ From patchwork Wed Jan 2 17:02:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ahmad Fatoum X-Patchwork-Id: 10747007 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 59EAD14E2 for ; Thu, 3 Jan 2019 08:46:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 428C0283A5 for ; Thu, 3 Jan 2019 08:46:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 340F8287A6; Thu, 3 Jan 2019 08:46:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B480B283A5 for ; Thu, 3 Jan 2019 08:45:59 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 221486E971; Thu, 3 Jan 2019 08:45:55 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0F5B76E879 for ; Wed, 2 Jan 2019 17:03:00 +0000 (UTC) Received: from dude.hi.pengutronix.de ([2001:67c:670:100:1d::7]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gejuy-0003sJ-7r; Wed, 02 Jan 2019 18:02:56 +0100 Received: from afa by dude.hi.pengutronix.de with local (Exim 4.91) (envelope-from ) id 1gejux-0004cE-4m; Wed, 02 Jan 2019 18:02:55 +0100 From: Ahmad Fatoum To: Stefan Agner , Marek Vasut , David Airlie , Daniel Vetter Subject: [PATCH 2/3] drm/mxsfb: implement interface-pix-fmt of_property to override bus format Date: Wed, 2 Jan 2019 18:02:46 +0100 Message-Id: <20190102170247.8208-3-a.fatoum@pengutronix.de> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190102170247.8208-1-a.fatoum@pengutronix.de> References: <20190102170247.8208-1-a.fatoum@pengutronix.de> MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::7 X-SA-Exim-Mail-From: afa@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: dri-devel@lists.freedesktop.org X-Mailman-Approved-At: Thu, 03 Jan 2019 08:45:54 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kernel@pengutronix.de, dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP This way hardware that has the LCD signal lines swapped can express so in the device tree and existing panel support can be reused unmodified. Signed-off-by: Ahmad Fatoum --- drivers/gpu/drm/mxsfb/mxsfb_crtc.c | 4 +++- drivers/gpu/drm/mxsfb/mxsfb_drv.c | 13 +++++++++++++ drivers/gpu/drm/mxsfb/mxsfb_drv.h | 1 + 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/mxsfb/mxsfb_crtc.c b/drivers/gpu/drm/mxsfb/mxsfb_crtc.c index 1b5b1fddd691..0de48384054d 100644 --- a/drivers/gpu/drm/mxsfb/mxsfb_crtc.c +++ b/drivers/gpu/drm/mxsfb/mxsfb_crtc.c @@ -101,7 +101,9 @@ static void mxsfb_set_bus_fmt(struct mxsfb_drm_private *mxsfb) ctrl = readl(mxsfb->base + LCDC_CTRL); - if (mxsfb->connector.display_info.num_bus_formats) + if (mxsfb->bus_format_override) + bus_format = mxsfb->bus_format_override; + else if (mxsfb->connector.display_info.num_bus_formats) bus_format = mxsfb->connector.display_info.bus_formats[0]; ctrl &= ~CTRL_BUS_WIDTH_MASK; diff --git a/drivers/gpu/drm/mxsfb/mxsfb_drv.c b/drivers/gpu/drm/mxsfb/mxsfb_drv.c index 2393e6d16ffd..169b458691e4 100644 --- a/drivers/gpu/drm/mxsfb/mxsfb_drv.c +++ b/drivers/gpu/drm/mxsfb/mxsfb_drv.c @@ -182,6 +182,7 @@ static int mxsfb_load(struct drm_device *drm, unsigned long flags) struct platform_device *pdev = to_platform_device(drm->dev); struct mxsfb_drm_private *mxsfb; struct resource *res; + const char *fmt; int ret; mxsfb = devm_kzalloc(&pdev->dev, sizeof(*mxsfb), GFP_KERNEL); @@ -208,6 +209,18 @@ static int mxsfb_load(struct drm_device *drm, unsigned long flags) if (IS_ERR(mxsfb->clk_disp_axi)) mxsfb->clk_disp_axi = NULL; + ret = of_property_read_string(drm->dev->of_node, "interface-pix-fmt", &fmt); + if (!ret) { + if (!strcmp(fmt, "rgb24")) + mxsfb->bus_format_override = MEDIA_BUS_FMT_RGB888_1X24; + else if (!strcmp(fmt, "bgr24")) + mxsfb->bus_format_override = MEDIA_BUS_FMT_BGR888_1X24; + else if (!strcmp(fmt, "rbg24")) + mxsfb->bus_format_override = MEDIA_BUS_FMT_RBG888_1X24; + else if (!strcmp(fmt, "gbr24")) + mxsfb->bus_format_override = MEDIA_BUS_FMT_GBR888_1X24; + } + ret = dma_set_mask_and_coherent(drm->dev, DMA_BIT_MASK(32)); if (ret) return ret; diff --git a/drivers/gpu/drm/mxsfb/mxsfb_drv.h b/drivers/gpu/drm/mxsfb/mxsfb_drv.h index 89fa2076acaf..63d30dd4dc36 100644 --- a/drivers/gpu/drm/mxsfb/mxsfb_drv.h +++ b/drivers/gpu/drm/mxsfb/mxsfb_drv.h @@ -40,6 +40,7 @@ struct mxsfb_drm_private { struct drm_connector connector; struct drm_panel *panel; struct drm_fbdev_cma *fbdev; + unsigned int bus_format_override; }; int mxsfb_setup_crtc(struct drm_device *dev); From patchwork Wed Jan 2 17:02:47 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ahmad Fatoum X-Patchwork-Id: 10747011 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BFC0B14E2 for ; Thu, 3 Jan 2019 08:46:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B2AC1283A5 for ; Thu, 3 Jan 2019 08:46:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A6C95287A6; Thu, 3 Jan 2019 08:46:06 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6C181283A5 for ; Thu, 3 Jan 2019 08:46:06 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 73EE76E976; Thu, 3 Jan 2019 08:45:56 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by gabe.freedesktop.org (Postfix) with ESMTPS id 24A356E87B for ; Wed, 2 Jan 2019 17:03:00 +0000 (UTC) Received: from dude.hi.pengutronix.de ([2001:67c:670:100:1d::7]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gejuy-0003sK-7t; Wed, 02 Jan 2019 18:02:56 +0100 Received: from afa by dude.hi.pengutronix.de with local (Exim 4.91) (envelope-from ) id 1gejux-0004cI-5D; Wed, 02 Jan 2019 18:02:55 +0100 From: Ahmad Fatoum To: Stefan Agner , Marek Vasut , David Airlie , Daniel Vetter Subject: [PATCH 3/3] dt-bindings: mxsfb: document new interface-pix-fmt property Date: Wed, 2 Jan 2019 18:02:47 +0100 Message-Id: <20190102170247.8208-4-a.fatoum@pengutronix.de> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190102170247.8208-1-a.fatoum@pengutronix.de> References: <20190102170247.8208-1-a.fatoum@pengutronix.de> MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::7 X-SA-Exim-Mail-From: afa@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: dri-devel@lists.freedesktop.org X-Mailman-Approved-At: Thu, 03 Jan 2019 08:45:54 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kernel@pengutronix.de, dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP This newly implemented binding allows expressing swapped signal lanes in the device tree so existing panel support can be reused. Signed-off-by: Ahmad Fatoum --- Documentation/devicetree/bindings/display/mxsfb.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/display/mxsfb.txt b/Documentation/devicetree/bindings/display/mxsfb.txt index 472e1ea6c591..aa0c2c32ee1e 100644 --- a/Documentation/devicetree/bindings/display/mxsfb.txt +++ b/Documentation/devicetree/bindings/display/mxsfb.txt @@ -14,6 +14,11 @@ Required properties: - "pix" for the LCDIF block clock - (MX6SX-only) "axi", "disp_axi" for the bus interface clock +optional properties: +- interface-pix-fmt: overrides the bus format in use for the display + interface. This is to account for swapped signal lanes. + supported types: "rgb24", "bgr24", "rbg24", "gbr24" + Required sub-nodes: - port: The connection to an encoder chip.