From patchwork Fri Jan 25 03:23:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chen-Yu Tsai X-Patchwork-Id: 10780503 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 707F0922 for ; Fri, 25 Jan 2019 03:30:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5EC312FAD5 for ; Fri, 25 Jan 2019 03:30:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 526D52FAD7; Fri, 25 Jan 2019 03:30:17 +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 EFB832FAD5 for ; Fri, 25 Jan 2019 03:30:16 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7A8976F264; Fri, 25 Jan 2019 03:30:08 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from wens.csie.org (mirror2.csie.ntu.edu.tw [140.112.30.76]) by gabe.freedesktop.org (Postfix) with ESMTPS id AFF9E6F262 for ; Fri, 25 Jan 2019 03:30:06 +0000 (UTC) Received: by wens.csie.org (Postfix, from userid 1000) id 149355FCC3; Fri, 25 Jan 2019 11:23:15 +0800 (CST) From: Chen-Yu Tsai To: Maxime Ripard , Michael Turquette , Stephen Boyd , Rob Herring , Mark Rutland , David Airlie , Daniel Vetter Subject: [PATCH 00/11] ARM: sun8i: a23: Enable display pipeline Date: Fri, 25 Jan 2019 11:23:03 +0800 Message-Id: <20190125032314.20915-1-wens@csie.org> X-Mailer: git-send-email 2.20.1 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, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Chen-Yu Tsai , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Hi everyone, This series enables the display pipeline on the Allwinner A23 SoC. A few fixes are included for corner cases when the frontend isn't enabled. The A23 display pipeline is very much the same as the A33, except that the A23 does not have the SAT IP block embedded within the display backend. MIPI DSI is not covered as I do not have a device that uses it. Patch 1 fixes the pll-mipi clock on the A23. Patch 2 adds compatible strings for the various hardware blocks of the A23 display pipeline. Patch 3 through 5 fix some issues in our DRM plane support, namely declaring support for formats when we shouldn't. Patch 6 adds support for the A23 display pipeline to the driver. Patch 7 is a small cleanup before moving the display pipeline device nodes. Patch 8 moves the display nodes from the A33-specific dtsi file to the A23-A33 shared dtsi file. Note that the MIPI DSI device nodes are not moved. Patch 9 adds compatible strings to the display nodes in the A23-specific dtsi file. Patch 10 enables the display pipeline for the shared A23/A33 Q8 tablet dtsi file. The compatible string should be filled in by the tablet dts files. Patch 11 fills in the compatible string for the standard A23 Q8 tablet. Note the compatible string is not for the specific model used in the tablet, as it varies between production runs. Rather it is just one that works. Please have a look. Patch 3 might be worth applying as a fix, but might not be worth the trouble. It could just as easily be applied for -next and then backported. Also, the fixes tags are no longer line wrapped, unlike patches I've sent in the past. Regards ChenYu Chen-Yu Tsai (11): clk: sunxi-ng: sun8i-a23: Enable PLL-MIPI LDOs when ungating it dt-bindings: display: sun4i-drm: Add compatible strings for A23 display drm/sun4i: backend: Remove BGRX8888 from list of supported formats drm/sun4i: layer: Assign backend pointer before calling DRM helpers drm/sun4i: layer: support just backend formats when frontend is unavailable drm/sun4i: Add support for A23 display pipeline ARM: dts: sun8i-a23-a33: Move NAND controller device node to sort by address ARM: dts: sun8i-a33: Move display pipeline nodes to a23/a33 common dtsi ARM: dts: sun8i-a23: Add compatible strings to display pipeline device nodes ARM: dts: sun8i-q8-common: Enable display pipeline with RGB LCD panel ARM: dts: sun8i-a23-q8: Set compatible string for LCD panel .../bindings/display/sunxi/sun4i-drm.txt | 5 + arch/arm/boot/dts/sun8i-a23-a33.dtsi | 175 ++++++++++++++-- arch/arm/boot/dts/sun8i-a23-q8-tablet.dts | 4 + arch/arm/boot/dts/sun8i-a23.dtsi | 20 ++ arch/arm/boot/dts/sun8i-a33.dtsi | 194 ++++-------------- arch/arm/boot/dts/sun8i-q8-common.dtsi | 37 ++++ drivers/clk/sunxi-ng/ccu-sun8i-a23.c | 2 +- drivers/gpu/drm/sun4i/sun4i_backend.c | 5 +- drivers/gpu/drm/sun4i/sun4i_drv.c | 2 + drivers/gpu/drm/sun4i/sun4i_frontend.c | 4 + drivers/gpu/drm/sun4i/sun4i_layer.c | 37 +++- drivers/gpu/drm/sun4i/sun4i_tcon.c | 1 + drivers/gpu/drm/sun4i/sun6i_drc.c | 1 + 13 files changed, 310 insertions(+), 177 deletions(-)