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: 10598153 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 11E0F920 for ; Wed, 12 Sep 2018 18:33:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 042AE2AA4A for ; Wed, 12 Sep 2018 18:33:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EC4BF2AA7A; Wed, 12 Sep 2018 18:33:45 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 57EA62AA4A for ; Wed, 12 Sep 2018 18:33:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=JH+ViL/jzLRRHtaEkjiVMbKGUcTF8OwMTY4Gdx4DmuE=; b=lNO3b+sooITMZw PaGpXqcspZ5Tpgy8ieuGpgphyHOlJyEEDznMzV3jVbQco4xbOAd/QoiZrB/s6fOhwSl33RgloVMkj NOAL3j5lCc/fuzJRAh0ILgo/mMutrxPwWlIJAHinBMBrb6uxLaDYO7bbvx3SbhJ9HfwfK3Nrw4G8M f3PKGa82zCzpgtdbr5gqNsuuzcQ0W/zh44TAkXDlfogqSS4qw0ufXLyr0qfwBosuQ9JKcC6GyEAHQ Z2RDe0w8e+gKg9lGonS92o4MFV+qW23OTmjqQDUCCb8st6B6HPq46rW5NZbylLEY09zVB9EYD1Y87 tnfvDNId5owO1Cj+t3bA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1g09xD-0001qN-Lj; Wed, 12 Sep 2018 18:33:31 +0000 Received: from mail.kmu-office.ch ([2a02:418:6a02::a2]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g09wR-0001UJ-QQ for linux-arm-kernel@lists.infradead.org; Wed, 12 Sep 2018 18:32:46 +0000 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1536777150; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references; bh=E651IZz3UG8pQia4ZoWmDyN3a9w9EAHAFjOfmtIWk1Y=; b=PNo5YoozVOXzQZRnPnSftPqIFqeq0Ml/IHyL9Yjwxw2CFnMzFbZalHSkqRuvS9fF0D0Q24 gmUdoWLyPerjjcOAlrO0yP8rABWhoXPdyAUc0tJmTMSJQfE1q1k6rbFSvpWLRdizQDmynp OwFSpX5KvP8WOStRP3pN1GbaR1YHk4I= 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180912_113244_031022_E4FE6357 X-CRM114-Status: GOOD ( 13.91 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, architt@codeaurora.org, max.krummenacher@toradex.com, marcel.ziswiler@toradex.com, gustavo@padovan.org, maarten.lankhorst@linux.intel.com, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, a.hajda@samsung.com, linux-imx@nxp.com, kernel@pengutronix.de, fabio.estevam@nxp.com, sean@poorly.run, Stefan Agner , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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(-)