From patchwork Tue Sep 4 04:40:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Icenowy Zheng X-Patchwork-Id: 10586859 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 0A9F1920 for ; Tue, 4 Sep 2018 07:07:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EDCDF28EA9 for ; Tue, 4 Sep 2018 07:07:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E1DFE29010; Tue, 4 Sep 2018 07:07:01 +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 9C2D928EA9 for ; Tue, 4 Sep 2018 07:07:01 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8736A6E341; Tue, 4 Sep 2018 07:06:07 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org X-Greylist: delayed 54342 seconds by postgrey-1.36 at gabe; Tue, 04 Sep 2018 04:41:22 UTC Received: from common.maple.relay.mailchannels.net (common.maple.relay.mailchannels.net [23.83.214.38]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4ABB589057 for ; Tue, 4 Sep 2018 04:41:22 +0000 (UTC) X-Sender-Id: lmn-tzduiowcrqmw|x-authsender|icenowy@aosc.io Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 9FF0968241A; Tue, 4 Sep 2018 04:41:20 +0000 (UTC) Received: from hermes.aosc.io (unknown [100.96.29.126]) (Authenticated sender: lmn-TZDUIOWCRQMW) by relay.mailchannels.net (Postfix) with ESMTPA id C782A681907; Tue, 4 Sep 2018 04:41:19 +0000 (UTC) X-Sender-Id: lmn-tzduiowcrqmw|x-authsender|icenowy@aosc.io Received: from hermes.aosc.io (hermes.aosc.io [199.195.250.187]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.16.2); Tue, 04 Sep 2018 04:41:20 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: lmn-tzduiowcrqmw|x-authsender|icenowy@aosc.io X-MailChannels-Auth-Id: lmn-TZDUIOWCRQMW X-Unite-Abiding: 4fae83b649ce1e1f_1536036080495_1492202961 X-MC-Loop-Signature: 1536036080495:1675431759 X-MC-Ingress-Time: 1536036080495 Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: icenowy@aosc.io) by hermes.aosc.io (Postfix) with ESMTPSA id A23635A0D3; Tue, 4 Sep 2018 04:41:13 +0000 (UTC) From: Icenowy Zheng To: Maxime Ripard , Chen-Yu Tsai , Jagan Teki , Jernej Skrabec Subject: [PATCH v4 00/11] arm64: allwinner: Add A64 DE2 HDMI support Date: Tue, 4 Sep 2018 12:40:42 +0800 Message-Id: <20180904044053.15425-1-icenowy@aosc.io> X-Mailman-Approved-At: Tue, 04 Sep 2018 07:06:03 +0000 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, linux-sunxi@googlegroups.com, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Icenowy Zheng MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Allwinner A64 has display engine pipeline like other Allwinner SOC's A83T/H3/H5. A64 behaviour similar to Allwinner A83T where Mixer0 => TCON0 => LVDS/RGB/MIPI-DSI Mixer1 => TCON1 => HDMI as per Display System Block Diagram from the A64 user manual. This patchset adds support for the two display pipelines, and enables the HDMI output on several boards. The first pipeline is not enabled in this patchset yet, although it's added. Icenowy Zheng (2): clk: sunxi-ng: a64: Add max. rate constraint to video PLLs dt-bindings: sun4i-drm: add HDMI VCC supply property for sun8i-dw-hdmi Jagan Teki (8): clk: sunxi-ng: a64: Add minimal rate for video PLLs dt-bindings: display: Add compatible for A64 DE2 display pipeline drm/sun4i: Add support for A64 mixers drm/sun4i: Add support for A64 display engine dt-bindings: display: Add compatible for A64 HDMI dt-bindings: clock: sun50i-a64-ccu: Add PLL_VIDEO0 macro arm64: dts: allwinner: a64: Add display pipeline arm64: dts: allwinner: a64: Enable HDMI output on A64 boards w/ HDMI Jernej Skrabec (1): drm/sun4i: Add support for HDMI voltage regulator .../bindings/display/sunxi/sun4i-drm.txt | 9 + .../dts/allwinner/sun50i-a64-bananapi-m64.dts | 34 ++++ .../dts/allwinner/sun50i-a64-nanopi-a64.dts | 34 ++++ .../dts/allwinner/sun50i-a64-olinuxino.dts | 34 ++++ .../dts/allwinner/sun50i-a64-orangepi-win.dts | 34 ++++ .../boot/dts/allwinner/sun50i-a64-pine64.dts | 34 ++++ .../allwinner/sun50i-a64-sopine-baseboard.dts | 34 ++++ arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 170 ++++++++++++++++++ drivers/clk/sunxi-ng/ccu-sun50i-a64.c | 48 ++--- drivers/clk/sunxi-ng/ccu-sun50i-a64.h | 4 +- drivers/gpu/drm/sun4i/sun4i_drv.c | 1 + drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c | 17 +- drivers/gpu/drm/sun4i/sun8i_dw_hdmi.h | 2 + drivers/gpu/drm/sun4i/sun8i_mixer.c | 24 +++ include/dt-bindings/clock/sun50i-a64-ccu.h | 1 + 15 files changed, 456 insertions(+), 24 deletions(-)