From patchwork Wed Jan 2 17:02:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ahmad Fatoum X-Patchwork-Id: 10747013 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 76BD714DE for ; Thu, 3 Jan 2019 08:46:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6944A283A5 for ; Thu, 3 Jan 2019 08:46:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5D880287A6; Thu, 3 Jan 2019 08:46:08 +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 23C23283A5 for ; Thu, 3 Jan 2019 08:46:08 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id AE5E06E977; 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 2432D6E87A 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-0003sH-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-0004c9-3u; Wed, 02 Jan 2019 18:02:55 +0100 From: Ahmad Fatoum To: Stefan Agner , Marek Vasut , David Airlie , Daniel Vetter Subject: [PATCH 0/3] drm/mxsfb: support swapped RGB lanes Date: Wed, 2 Jan 2019 18:02:44 +0100 Message-Id: <20190102170247.8208-1-a.fatoum@pengutronix.de> X-Mailer: git-send-email 2.19.1 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 Hello, I got a board with the RED[0:7]/BLUE[0:7] lanes originating from the LCDIF swapped and would like to describe this in the device tree: This first patch extends the mxsfb driver to support following bus formats: MEDIA_BUS_FMT_BGR888_1X24 MEDIA_BUS_FMT_RBG888_1X24 MEDIA_BUS_FMT_GBR888_1X24 The latter two patches add a new interface-pix-fmt property (named so because fsl,imx-parallel-display has one), which allows a device tree to override the bus format to account for swapped signal lanes. Thoughts? Cheers Ahmad --- Ahmad Fatoum (3): drm/mxsfb: use bus_format to determine pixel RGB component order drm/mxsfb: implement interface-pix-fmt of_property to override bus format dt-bindings: mxsfb: document new interface-pix-fmt property .../devicetree/bindings/display/mxsfb.txt | 5 +++ drivers/gpu/drm/mxsfb/mxsfb_crtc.c | 45 +++++++++++++++---- drivers/gpu/drm/mxsfb/mxsfb_drv.c | 13 ++++++ drivers/gpu/drm/mxsfb/mxsfb_drv.h | 7 +++ drivers/gpu/drm/mxsfb/mxsfb_regs.h | 17 +++++++ 5 files changed, 79 insertions(+), 8 deletions(-)