Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_2 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 310A4C10F25 for ; Mon, 9 Mar 2020 19:56:07 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 11C8520866 for ; Mon, 9 Mar 2020 19:56:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 11C8520866 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=collabora.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8D1C76E546; Mon, 9 Mar 2020 19:56:06 +0000 (UTC) Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by gabe.freedesktop.org (Postfix) with ESMTPS id 259A26E546 for ; Mon, 9 Mar 2020 19:56:05 +0000 (UTC) Received: from localhost (unknown [IPv6:2a01:e0a:2c:6930:5cf4:84a1:2763:fe0d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: bbrezillon) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id B2D2A294D5A; Mon, 9 Mar 2020 19:56:03 +0000 (GMT) Date: Mon, 9 Mar 2020 20:55:59 +0100 From: Boris Brezillon To: Laurent Pinchart Subject: Re: [PATCH] drm/imx: parallel-display: Adjust bus_flags and bus_format handling Message-ID: <20200309205559.3c860aae@collabora.com> In-Reply-To: <20200309192306.GA20358@pendragon.ideasonboard.com> References: <20191114131751.26746-1-marex@denx.de> <10f02dbe4e7b0966d279508b636e718e031e2e61.camel@pengutronix.de> <20200309192306.GA20358@pendragon.ideasonboard.com> Organization: Collabora X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Marek Vasut , David Airlie , Sascha Hauer , dri-devel@lists.freedesktop.org, NXP Linux Team , Shawn Guo , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On Mon, 9 Mar 2020 21:23:06 +0200 Laurent Pinchart wrote: > On Mon, Mar 09, 2020 at 11:50:59AM +0100, Philipp Zabel wrote: > > On Thu, 2019-11-14 at 14:17 +0100, Marek Vasut wrote: > > > The bus_flags and bus_format handling logic does not seem to cover > > > all potential usecases. Specifically, this seems to fail with an > > > "edt,etm0700g0edh6" display attached to an 24bit display interface, > > > with interface-pix-fmt = "rgb24" set in DT. > > > > interface-pix-fmt is a legacy property that was never intended to be > > used as an override for the panel bus format. The bus flags were > > supposed to be set from the display-timings node, back when there was no > > of-graph connected panel at all. > > > > That being said, there isn't really a proper alternative that allows to > > override the bus format requested by the panel driver in the device tree > > to account for weird wiring. We could reuse the bus-width endpoint > > property documented in [1], but that wouldn't completely specify how the > > RGB components are to be mapped onto the parallel bus. > > > > [1] Documentation/devicetree/bindings/media/video-interfaces.txt > > Things are funny sometimes, I've run into the exact same problem with a > different display controller today. > > Shouldn't we use the data-shift property from [1] to specify this ? > Combined with Boris' bus format negotiation for bridges, I think we > would have all the components in place to solve this problem properly. I wonder if we shouldn't take more complex pin mappings into account now and go directly for a data-mapping property describing those mappings using a string. This way we'd have a single property that would work for both fully parallel buses (DPI/RGB) and serial (or partially parallel) ones (LVDS). _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel