From patchwork Fri May 18 09:45:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10409343 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 A692E60230 for ; Fri, 18 May 2018 09:56:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 95ACF288F8 for ; Fri, 18 May 2018 09:56:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8A1CF288FE; Fri, 18 May 2018 09:56:59 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=unavailable 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 03D38288F8 for ; Fri, 18 May 2018 09:56:59 +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=hL30lAcD3YpCK1Ixf/VJb6lzROIQryQNEYF8RtL5XtM=; b=sJvM4KWx04f9ILRPO6JPqwPqqP dMhmtAnYT/RObeWupqhADsUuW3qUFedsSuBXdBVg8bw9wMMGEmVaCAGk+HKzXUNMN33h3tTL2cqPZ ApdN8ldpwv6JQdaAgbWRm10A8jdb33kb3u5Xm8QDbRVgUrgFcPNQD3+TeMqVQy9cE1YpVIDGccHU8 0/VIP+2zlMILTeuvSKMG86U2nCRTZKzq6/peRvd8/aA0nr1de/6TfwHKbOPyHxDgbddRbsMatWcUk VeGXDMWtqvl25G3ATHdI4CmZD6oEqGWeMvSDyelDV0E/bR3KRSogHkYqD3VDnR9QhBq0Mfhw7gmwE Z34JX1YQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fJc7x-0005Tw-Kv; Fri, 18 May 2018 09:56:45 +0000 Received: from mail-pl0-x243.google.com ([2607:f8b0:400e:c01::243]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fJbyg-00085j-MY for linux-arm-kernel@lists.infradead.org; Fri, 18 May 2018 09:48:10 +0000 Received: by mail-pl0-x243.google.com with SMTP id c11-v6so4289538plr.5 for ; Fri, 18 May 2018 02:47:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Dt/K7KSZoQyofpCw5YmzVBgIRq0va0aS3GDAUmsl6FI=; b=La5Gz+xaRZEmm5E8mNNmvTJj2QkncjXMpeSclodnWhC4go6XjtTMx+sf00ILBV+hG9 CUsUbg+L+Xa3uSfd24Q5ayPu3NLJYIAcPUcZPjonZ+AE2xTBlL6wIVeoHEO/4n0YEq0v A3iut5lPGez8OnnZztMFi7xrWt13fElzeMVNw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Dt/K7KSZoQyofpCw5YmzVBgIRq0va0aS3GDAUmsl6FI=; b=ORIFsRcOT83UweJtIdItIAyVlqie9j/Q4xvHgi+6mpFwvQfo8Wk7rac9BO/kry4Idl wSVy3ybddelUhEG0j7t0Tash9p/RkYKI2hdRG8UIf77+4iGG1W0KvzOEpkF4VifoWGih orQmENNTiiWaov5L0lgtM8xXtFy62wOrZyIivrbCz7/0aClP5oKdhxe9UuRzbckonTqd jVlglxlZxAuTgf2k9nCmefTVC+zX9SAe9jzANOqvuI81rn+TvQpsc6/5WuYbqBAtJCG3 CMj6qcKJHiOrIz154n5+rxSkPqs+XvWS2F1qi+lifE4pzApITQ5urCGLWzOBNRrj58jm 11nw== X-Gm-Message-State: ALKqPwfCAqq9mcpL29uQ4neN3C675LzCsFCbmpRLr2chWaMeFKcgicnA 0XbEW9aYExcdaXWadtTahODOrQ== X-Google-Smtp-Source: AB8JxZpmMTeOxnqYdyZuXObHeCo1giRsDt8N8l7TL/n0yGRdCdLdh/q10aLwkQkAuLzs/CkIhIt+VA== X-Received: by 2002:a17:902:b681:: with SMTP id c1-v6mr8797003pls.286.1526636819802; Fri, 18 May 2018 02:46:59 -0700 (PDT) Received: from localhost.localdomain ([183.82.227.74]) by smtp.gmail.com with ESMTPSA id j11-v6sm12694097pff.64.2018.05.18.02.46.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 18 May 2018 02:46:59 -0700 (PDT) From: Jagan Teki To: Maxime Ripard , Chen-Yu Tsai , Icenowy Zheng , Jernej Skrabec , Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , David Airlie , dri-devel@lists.freedesktop.org, Michael Turquette , Stephen Boyd , linux-clk@vger.kernel.org, Michael Trimarchi , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com Subject: [PATCH v2 09/26] arm64: dts: allwinner: a64: Add DE2 tcon1 pipeline Date: Fri, 18 May 2018 15:15:19 +0530 Message-Id: <20180518094536.17201-10-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180518094536.17201-1-jagan@amarulasolutions.com> References: <20180518094536.17201-1-jagan@amarulasolutions.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180518_024710_774107_972EAD16 X-CRM114-Status: GOOD ( 15.15 ) 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: Jagan Teki 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 DE2 on the A64 is mainly composed of the mixers and tcons, plus various encoders. This patch add second mixer and tcon which eventually useful for testing HDMI. the other part of DE2 will add in future. Signed-off-by: Jagan Teki --- Changes for v2: - Change compatibles and other based on previous patch changes arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 61 +++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi index 26c2a9c44727..9c1452ee8027 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi @@ -107,6 +107,12 @@ }; }; + de: display-engine { + compatible = "allwinner,sun50i-a64-display-engine"; + allwinner,pipelines = <&mixer1>; + status = "disabled"; + }; + osc24M: osc24M_clk { #clock-cells = <0>; compatible = "fixed-clock"; @@ -183,6 +189,30 @@ #reset-cells = <1>; }; + mixer1: mixer@1200000 { + compatible = "allwinner,sun50i-a64-de2-mixer-1"; + reg = <0x01200000 0x100000>; + clocks = <&display_clocks CLK_BUS_MIXER1>, + <&display_clocks CLK_MIXER1>; + clock-names = "bus", + "mod"; + resets = <&display_clocks RST_WB>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + mixer1_out: port@1 { + reg = <1>; + + mixer1_out_tcon1: endpoint { + remote-endpoint = <&tcon1_in_mixer1>; + }; + }; + }; + }; + + syscon: syscon@1c00000 { compatible = "allwinner,sun50i-a64-system-controller", "syscon"; @@ -200,6 +230,37 @@ #dma-cells = <1>; }; + tcon1: lcd-controller@1c0d000 { + compatible = "allwinner,sun50i-a64-tcon-tv", + "allwinner,sun8i-a83t-tcon-tv"; + reg = <0x01c0d000 0x1000>; + interrupts = ; + clocks = <&ccu CLK_BUS_TCON1>, <&ccu CLK_TCON1>; + clock-names = "ahb", "tcon-ch1"; + resets = <&ccu RST_BUS_TCON1>; + reset-names = "lcd"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + tcon1_in: port@0 { + reg = <0>; + + tcon1_in_mixer1: endpoint { + remote-endpoint = <&mixer1_out_tcon1>; + }; + }; + + tcon1_out: port@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + + }; + }; + }; + mmc0: mmc@1c0f000 { compatible = "allwinner,sun50i-a64-mmc"; reg = <0x01c0f000 0x1000>;