From patchwork Fri Dec 22 12:22:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Icenowy Zheng X-Patchwork-Id: 10130433 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id EB2986019C for ; Fri, 22 Dec 2017 12:41:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D8A092A00F for ; Fri, 22 Dec 2017 12:41:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CB3A12A011; Fri, 22 Dec 2017 12:41:19 +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=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.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 5FD192A00F for ; Fri, 22 Dec 2017 12:41:19 +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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To: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:List-Owner; bh=flzMCBdxCqAXTuBT8rYnoPZeFL9K4OFxOBc6roKfUZc=; b=dDLIZQ02hmnsIx004W8g3g+2a2 UFfgQgaT4G2d/783D5Hpbu7SUzcbJjXLV7ciaJCC6045dBjFgspt5k+yzoU45J8FptjMuWTWCts1T cQWoEzYGoPAssDUtW/LiNgP8i6i1Ki2hL3TE1cBmHuM5q8NKYJAd6+Dk39YyaapDoFADBL1VQFa6Z ufT2+xFvqgMJw4mUYtCyJ6JKYexzROqh49qhiCBTarYyhFrbzBNSu6O8VcmTb8aLp9u9pV+DZvfQu lbeSDHPk+yq5ZzigmqP3NscrtqQ/+r/0sjusJM7hLlOuVvrK8N7L6Br/feSRKTvIo9E9NBf442aLN sKBpLjxg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eSMdX-0002qa-GR; Fri, 22 Dec 2017 12:41:15 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eSMdV-0002gr-5V for linux-arm-kernel@bombadil.infradead.org; Fri, 22 Dec 2017 12:41:13 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=VWLHfBAsOV4htTCX6nC0zWGuIisT50IMc+p158+eI3E=; b=uBydxi04wryFFrgvHHCPoTdIP DaBM/n8Bz+nKS78TAi5aCogo5tv4B6hbczMrCAqdDmyYBdjRGNhkZcLuNx9KOl2TgHbLC6e4l1nlf FD7rt2n8ahdLFrfThuu1MFJF8JIms5ck4B1ycZLgKR0xyTVNhgm8XfdZi6qz//Vtb1gig9pMqHORa r7SLGMeGdGnnW+OIP378w+YhaDZddjyfHYpiMaxQQA5AKUID8iXdjkcr36JnJK4UdM42rg9yFZ4QL Stk3zRZEt2ZLJ9fcOBaOYYJWvyp4uU+ZkD1uV4G7NhX3sPGMNPQ+9iiURq1ozykP7w3rkgPH8q3OE q1kcZHZ3g==; Received: from bisque.maple.relay.mailchannels.net ([23.83.214.18]) by casper.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eSMS8-00039S-CG for linux-arm-kernel@lists.infradead.org; Fri, 22 Dec 2017 12:29:31 +0000 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 90F0C56101A; Fri, 22 Dec 2017 12:27:08 +0000 (UTC) Received: from hermes.aosc.io (unknown [100.96.22.19]) (Authenticated sender: lmn-TZDUIOWCRQMW) by relay.mailchannels.net (Postfix) with ESMTPA id B369C560BB9; Fri, 22 Dec 2017 12:27:07 +0000 (UTC) X-Sender-Id: lmn-tzduiowcrqmw|x-authsender|icenowy@aosc.io Received: from hermes.aosc.io (hermes.aosc.io [172.18.55.234]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.11.3); Fri, 22 Dec 2017 12:27:08 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: lmn-tzduiowcrqmw|x-authsender|icenowy@aosc.io X-MailChannels-Auth-Id: lmn-TZDUIOWCRQMW X-Cooperative-Battle: 3e5cb09d4329c649_1513945628389_2777976255 X-MC-Loop-Signature: 1513945628389:1739929242 X-MC-Ingress-Time: 1513945628389 Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: icenowy@aosc.io) by hermes.aosc.io (Postfix) with ESMTPSA id D9E935464B; Fri, 22 Dec 2017 12:27:01 +0000 (UTC) From: Icenowy Zheng To: Rob Herring , Maxime Ripard , Chen-Yu Tsai Subject: [PATCH v3 11/11] arm64: allwinner: a64: add simplefb for A64 SoC Date: Fri, 22 Dec 2017 20:22:43 +0800 Message-Id: <20171222122243.25735-12-icenowy@aosc.io> In-Reply-To: <20171222122243.25735-1-icenowy@aosc.io> References: <20171222122243.25735-1-icenowy@aosc.io> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171222_122928_704187_200E1386 X-CRM114-Status: UNSURE ( 8.31 ) X-CRM114-Notice: Please train this message. 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, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Icenowy Zheng MIME-Version: 1.0 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 The A64 SoC features two display pipelines, one has a LCD output, the other has a HDMI output. Add support for simplefb for these pipelines on A64 SoC. Signed-off-by: Icenowy Zheng --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 31 +++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi index fb8ea7c414e1..993f5df73e8d 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi @@ -42,9 +42,11 @@ * OTHER DEALINGS IN THE SOFTWARE. */ +#include #include #include #include +#include #include / { @@ -52,6 +54,35 @@ #address-cells = <1>; #size-cells = <1>; + chosen { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + framebuffer-lcd { + compatible = "allwinner,simple-framebuffer", + "simple-framebuffer"; + allwinner,pipeline = "mixer0-lcd0"; + clocks = <&display_clocks CLK_BUS_MIXER0>, + <&ccu CLK_BUS_TCON0>, <&ccu CLK_BUS_TCON0>, + <&display_clocks CLK_MIXER0>, + <&ccu CLK_TCON0>; + status = "disabled"; + }; + + framebuffer-hdmi { + compatible = "allwinner,simple-framebuffer", + "simple-framebuffer"; + allwinner,pipeline = "mixer1-lcd1-hdmi"; + clocks = <&display_clocks CLK_BUS_MIXER1>, + <&ccu CLK_BUS_TCON1>, <&ccu CLK_BUS_HDMI>, + <&display_clocks CLK_MIXER1>, + <&ccu CLK_TCON1>, <&ccu CLK_HDMI>, + <&ccu CLK_HDMI_DDC>; + status = "disabled"; + }; + }; + cpus { #address-cells = <1>; #size-cells = <0>;