Received: by 10.213.65.68 with SMTP id h4csp58879imn; Thu, 15 Mar 2018 09:27:58 -0700 (PDT) X-Google-Smtp-Source: AG47ELsvaNUPmY414PL4kf+3X6Z8J+18krV1E887g2ys2VSG9AlxLrZh62S9dVpCPEPbcTwxA9Os X-Received: by 10.101.68.82 with SMTP id e18mr7135405pgq.329.1521131278718; Thu, 15 Mar 2018 09:27:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521131278; cv=none; d=google.com; s=arc-20160816; b=RcOExzaJ2vHbOMQaF8yMt6kj/rb4DUFjRwk3mstyiXbKAgjeCE/LKxdSSjmTNVWZhe 1Ecoj04WU+Xa6SGa8/k7kKKIbKt85bUEOI7ZEIy4Ii84ww2+1arEMLC6eB9w6l1baXVm X8puGCvM8GVDrND6ZpqPQFAegHTdlIh3MP7hQkpoQ/eVq+dLmoiIxpQeiUl8frSK4PA6 tvSOXMazyu6NAOQp13kf1SltYISFudRCj+6aSp6/NnMPHwo8Mc0S5owICu0VGjSx+XI1 7qz34PINpPyAw4sF1NpSEuVIOINSu+fYRpshiJe1xFcLT13/ueUPQoSA6BioPu8tP4x6 X5Iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=85NB7xx1rzAWRtbDBfr/lHJvbuWOXrWOby7NVoZR2TY=; b=Mu0rNNXl1hxjEifz/Sjjfy0ZanWAkiRIX5RLXQZ6c9WPpqUj0E7MFYnlxHUKFUtU3a GMFjv5Xd2g3JgO1cgvWuJeQevplNhTNrQZJgKsWvLY7gs2cfk/2UXxhjktb3AMKMIanx kT6waIzh4NMYphL9PvfpotXb/Gb8+NZVfOMvRInd8+oEGPdFEe1EqdBD14IJmLctieX3 +7YAc6iGuHKNxXAGcKR5jsBgABtGs85iWS6h0No6RpxsJ+ugtJ+KLWZ2b7dtsnkR+Lwu GVgXVBH1iWhieb4Ye+KEGsJ2eYUGRQC3xmcbqLwDxtLJ1odp5Hr0KKBeuNF0ANB/8b5/ o8pA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m137si3661262pga.270.2018.03.15.09.27.44; Thu, 15 Mar 2018 09:27:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932306AbeCOQ01 (ORCPT + 99 others); Thu, 15 Mar 2018 12:26:27 -0400 Received: from h1.radempa.de ([176.9.142.194]:52245 "EHLO mail.cosmopool.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752140AbeCOQZc (ORCPT ); Thu, 15 Mar 2018 12:25:32 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.cosmopool.net (Postfix) with ESMTP id 6E789903549; Thu, 15 Mar 2018 17:25:30 +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 jAtcm1BBMahn; Thu, 15 Mar 2018 17:25:29 +0100 (CET) Received: from huygens.ccbib.org (unknown [10.0.10.106]) by mail.cosmopool.net (Postfix) with SMTP id DF0D7901A2E; Thu, 15 Mar 2018 17:25:28 +0100 (CET) Received: by huygens.ccbib.org (sSMTP sendmail emulation); Thu, 15 Mar 2018 16:25:28 +0000 From: Harald Geyer To: Maxime Ripard , Chen-Yu Tsai Cc: Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Andre Przywara , Icenowy Zheng , info@olimex.com, Harald Geyer Subject: [PATCHv2 3/5] arm64: dts: allwinner: a64: add simplefb for A64 SoC Date: Thu, 15 Mar 2018 16:25:08 +0000 Message-Id: <20180315162510.11669-4-harald@ccbib.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180315162510.11669-1-harald@ccbib.org> References: <20180315162510.11669-1-harald@ccbib.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- changes since v1: none 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 8401e7f887ff..1b2ef28c42bd 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>; -- 2.11.0