From patchwork Mon Mar 12 16:10:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Harald Geyer X-Patchwork-Id: 10276721 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 BAE9160211 for ; Mon, 12 Mar 2018 16:28:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AE4B5289D4 for ; Mon, 12 Mar 2018 16:28:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A283B289EB; Mon, 12 Mar 2018 16:28:06 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID 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 C7819289D4 for ; Mon, 12 Mar 2018 16:28:05 +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=xmdueEH6maCNGvcwz7KtnS0qF5bkKq548lqUaVBtcno=; b=a0e28dYOr0rRHKtCObskfIGHOT 3g0Rx0kNc90g8oYn8zriX2LWPu9XnCywOyG01Q+Y28F0p/7xQoPpyIygnz2y3WvkqrCr8CPwLTAAV 9KgSD37KBhMv7uc00q5qLp0D1IbvXtGAUpvKYwx6IX5K1iB+kLMyH66xQhwsFNPIts+j70xO4w9R2 DE+O1HqRwILkEumIqBs1X2DnYRDperiEuqBdJjMhlEzm/olyVY+tSIeXUxBCfLR9TSZh9qkx1E2aQ kLWRaKqKFQ7IlqCfA3e6y8woLuBR/MBRJjj4wesWg/ZQEXHCaTyShcDVRbLnN8+VQLVvoSrAuvu5/ n3VVPRWw==; 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 1evQIp-0003Ww-4s; Mon, 12 Mar 2018 16:27:59 +0000 Received: from mail.cosmopool.net ([2a01:4f8:160:20c1::10:107]) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1evQAQ-0006qA-CN for linux-arm-kernel@lists.infradead.org; Mon, 12 Mar 2018 16:19:25 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.cosmopool.net (Postfix) with ESMTP id BBC22901A82; Mon, 12 Mar 2018 17:11:10 +0100 (CET) Received: from mail.cosmopool.net ([127.0.0.1]) by localhost (mail.your-server.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id shecbxCQJx7D; Mon, 12 Mar 2018 17:11:10 +0100 (CET) Received: from huygens.ccbib.org (unknown [10.0.10.106]) by mail.cosmopool.net (Postfix) with SMTP id 5949690196F; Mon, 12 Mar 2018 17:11:09 +0100 (CET) Received: by huygens.ccbib.org (sSMTP sendmail emulation); Mon, 12 Mar 2018 16:11:09 +0000 From: Harald Geyer To: Maxime Ripard , Chen-Yu Tsai Subject: [PATCH 3/5] arm64: dts: allwinner: a64: add simplefb for A64 SoC Date: Mon, 12 Mar 2018 16:10:48 +0000 Message-Id: <20180312161050.7647-4-harald@ccbib.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180312161050.7647-1-harald@ccbib.org> References: <20180312161050.7647-1-harald@ccbib.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180312_091919_499564_430A73E4 X-CRM114-Status: GOOD ( 12.66 ) 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: Mark Rutland , devicetree@vger.kernel.org, info@olimex.com, Catalin Marinas , Harald Geyer , Will Deacon , linux-kernel@vger.kernel.org, Rob Herring , Andre Przywara , 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 the LCD output. Tested on Teres I. This patch was inspired by work of Icenowy Zheng. Signed-off-by: Harald Geyer --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi index ca1b365bc722..05d5e8def68a 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi @@ -52,6 +52,26 @@ #address-cells = <1>; #size-cells = <1>; + chosen { + #address-cells = <1>; + #size-cells = <1>; + ranges; + +/* + * The pipeline mixer0-lcd0 depends on clock CLK_MIXER0 from DE2 CCU. + * However there is no support for this clock on A64 yet, so we depend + * on the upstream clocks here to keep them (and thus CLK_MIXER0) up. + */ + simplefb_lcd: framebuffer-lcd { + compatible = "allwinner,simple-framebuffer", + "simple-framebuffer"; + allwinner,pipeline = "mixer0-lcd0"; + clocks = <&ccu CLK_TCON0>, + <&ccu CLK_DE>, <&ccu CLK_BUS_DE>; + status = "disabled"; + }; + }; + cpus { #address-cells = <1>; #size-cells = <0>;