From patchwork Wed Sep 12 18:32:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Agner X-Patchwork-Id: 10598133 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 C827F14E5 for ; Wed, 12 Sep 2018 18:32:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BB0B82AA4D for ; Wed, 12 Sep 2018 18:32:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AE5AF2AA60; Wed, 12 Sep 2018 18:32:37 +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 269112AA4D for ; Wed, 12 Sep 2018 18:32:36 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2757F6E116; Wed, 12 Sep 2018 18:32:34 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail.kmu-office.ch (mail.kmu-office.ch [IPv6:2a02:418:6a02::a2]) by gabe.freedesktop.org (Postfix) with ESMTPS id 351526E116 for ; Wed, 12 Sep 2018 18:32:32 +0000 (UTC) Received: from trochilidae.toradex.int (75-146-58-181-Washington.hfc.comcastbusiness.net [75.146.58.181]) by mail.kmu-office.ch (Postfix) with ESMTPSA id E6FAF5C0119; Wed, 12 Sep 2018 20:32:25 +0200 (CEST) From: Stefan Agner To: linus.walleij@linaro.org, Laurent.pinchart@ideasonboard.com, airlied@linux.ie, robh+dt@kernel.org, mark.rutland@arm.com, shawnguo@kernel.org, s.hauer@pengutronix.de, p.zabel@pengutronix.de Subject: [PATCH v2 0/8] drm/bridge: add bus flag support Date: Wed, 12 Sep 2018 11:32:14 -0700 Message-Id: <20180912183222.25414-1-stefan@agner.ch> X-Mailer: git-send-email 2.19.0 MIME-Version: 1.0 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: devicetree@vger.kernel.org, max.krummenacher@toradex.com, marcel.ziswiler@toradex.com, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-imx@nxp.com, kernel@pengutronix.de, fabio.estevam@nxp.com, sean@poorly.run, linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP This v2 shifted a bit more to rework bridge timing support. While my use case mainly cares about complete bus flag support, it seems to me that bus timings have ended up to be more complex than necessary. Patch 2/3 are an attempt to simplify bus timings. This also aligns bridge timings with how display timings are specified today. @Linus Walleij, Laurent Pinchart: Since you have been involved in the initial bus timings discussion, I would like to have your Ack on at least patch 2/3... If we want to keep the setup/hold timings, the patchset should also work without those two patches. Acked-by: Linus Walleij --- Stefan Changes in v2: - Rename bus_flags to simple_bus_flags - Reword dt-bindings for de-active - Add patch 2/3 which attempts to simplify bridge timings Stefan Agner (8): drm/bridge: use bus flags in bridge timings drm/pl111: simplify bridge timing support drm/bridge: simplify bridge timing info drm/bridge: allow to specify data-enable polarity dt-bindings: display: add data-enable polarity property drm/imx: support handling bridge timings bus flags ARM: dts: imx6qdl-apalis: add VGA support ARM: dts: imx6qdl-apalis: add GPIO I2C node for DDC .../bindings/display/bridge/dumb-vga-dac.txt | 2 + arch/arm/boot/dts/imx6q-apalis-eval.dts | 28 ++++++++ arch/arm/boot/dts/imx6qdl-apalis.dtsi | 72 +++++++++++++++++++ drivers/gpu/drm/bridge/dumb-vga-dac.c | 45 +++++++----- drivers/gpu/drm/imx/parallel-display.c | 3 + drivers/gpu/drm/pl111/pl111_display.c | 22 ++---- include/drm/drm_bridge.h | 25 ++----- 7 files changed, 142 insertions(+), 55 deletions(-)