From patchwork Tue Oct 17 12:17:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chen-Yu Tsai X-Patchwork-Id: 826930 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3yGZ391xlhz9s9Y for ; Tue, 17 Oct 2017 23:18:13 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935660AbdJQMSL (ORCPT ); Tue, 17 Oct 2017 08:18:11 -0400 Received: from mirror2.csie.ntu.edu.tw ([140.112.30.76]:57236 "EHLO wens.csie.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935654AbdJQMSK (ORCPT ); Tue, 17 Oct 2017 08:18:10 -0400 Received: by wens.csie.org (Postfix, from userid 1000) id EE80160117; Tue, 17 Oct 2017 20:18:07 +0800 (CST) From: Chen-Yu Tsai To: Maxime Ripard , David Airlie , Rob Herring , Mark Rutland Cc: Chen-Yu Tsai , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com Subject: [PATCH 00/10] drm/sunxi: Display pipeline and HDMI output on A10/A20 Date: Tue, 17 Oct 2017 20:17:57 +0800 Message-Id: <20171017121807.2994-1-wens@csie.org> X-Mailer: git-send-email 2.14.2 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Hi everyone, This series adds display support for Allwinner A10/A20 SoCs to the sun4i-drm driver. The core display pipeline components and HDMI are covered. LCD panel RGB output should also be available, but I do not have devices to test this on. Jonathan had HDMI working on the A20, along with LCD panels for a development board. I've picked up the work, polished it, and added A10 (which is what the A20 is based on) support to the batch. The series is based on my latest sun4i-drm cleanup series. The patches should apply without them, but display would be broken on devices with more than 1GB RAM, and HDMI display colors would be inverted on A10 devices. The TCON changes will likely conflict with the A83T LVDS series Maxime posted, but they would be obvious and easy to fix. The patches are pretty self-explaining: - 1 patch exports the PLLs used by the HDMI controller - 1 patch adds support for the backend output mux - 3 patches add A10/A20 compatible strings to the sun4i-drm driver - 2 patches add the display pipeline nodes to the .dtsi files - 2 patches enable HDMI output on various boards Chen-Yu Tsai (6): drm/sun4i: backend: Support output muxing drm/sun4i: hdmi: Support HDMI controller on A10 drm/sun4i: Add support for A10 display pipeline components ARM: dts: sun4i: Add device nodes for display pipelines ARM: dts: sun4i: Enable HDMI support on some A10 devices ARM: dts: sun7i: Enable HDMI support on some A20 devices Jonathan Liu (4): drm/sun4i: tcon: Add support for A10 TCON drm/sun4i: Add support for A20 display pipeline components clk: sunxi-ng: sun4i: Export video PLLs ARM: dts: sun7i: Add device nodes for display pipelines .../bindings/display/sunxi/sun4i-drm.txt | 9 + arch/arm/boot/dts/sun4i-a10-cubieboard.dts | 25 ++ arch/arm/boot/dts/sun4i-a10-olinuxino-lime.dts | 21 ++ arch/arm/boot/dts/sun4i-a10.dtsi | 306 ++++++++++++++++++++ arch/arm/boot/dts/sun7i-a20-bananapi-m1-plus.dts | 25 ++ arch/arm/boot/dts/sun7i-a20-cubieboard2.dts | 25 ++ arch/arm/boot/dts/sun7i-a20-cubietruck.dts | 25 ++ arch/arm/boot/dts/sun7i-a20-lamobo-r1.dts | 25 ++ arch/arm/boot/dts/sun7i-a20-olinuxino-lime.dts | 25 ++ arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts | 25 ++ arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts | 25 ++ arch/arm/boot/dts/sun7i-a20.dtsi | 307 +++++++++++++++++++++ drivers/clk/sunxi-ng/ccu-sun4i-a10.h | 4 +- drivers/gpu/drm/sun4i/sun4i_backend.c | 68 ++++- drivers/gpu/drm/sun4i/sun4i_backend.h | 3 +- drivers/gpu/drm/sun4i/sun4i_drv.c | 10 +- drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c | 53 ++++ drivers/gpu/drm/sun4i/sun4i_tcon.c | 37 +++ include/dt-bindings/clock/sun4i-a10-ccu.h | 2 + 19 files changed, 1012 insertions(+), 8 deletions(-) Acked-by: Maxime Ripard