From patchwork Tue Nov 13 11:16:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10680343 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 8A53414E2 for ; Tue, 13 Nov 2018 11:23:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 75B822992E for ; Tue, 13 Nov 2018 11:23:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 642182995B; Tue, 13 Nov 2018 11:23:43 +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=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW 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 0606F2992E for ; Tue, 13 Nov 2018 11:23:43 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=GZhbm03UMGV4VZMfZ78j8qHElO66UKP/E1ylAJ1hwH8=; b=KKQbZIyqkmLFiE 1ejbbkHFKQv0zZ2lTC96PQKydPL5n3Zp8XRhMp0mcP0Sy7UGlLjopyB46ROSXMZYKHbXsohv1jG3v JZCe0gv8F6JbuEB++3O0z8Av+yIqXjUozGIikU0HbCvlP3K63ek3g+VmJ5sjiqz1G518s8nRSV3aM AhCuFiPyL6c+o8dKZ77+sKfJ0BssuW/3rUogkervw3H7NMQ/2Oe8iz1fPyaZcOZZ6JWQbHET7G9yQ CzUGASboHygEZdAE3BS1lXetBl5UI6pBszic2A7FYq7zGql4iLDIZ0XflaE3J6mx/cMhoaoEieaOu yIFFwqeqnKtN4UjKv2JA==; 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 1gMWn6-0005vv-HC; Tue, 13 Nov 2018 11:23:32 +0000 Received: from mail-pl1-x641.google.com ([2607:f8b0:4864:20::641]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gMWjD-0000y8-SF for linux-arm-kernel@lists.infradead.org; Tue, 13 Nov 2018 11:19:36 +0000 Received: by mail-pl1-x641.google.com with SMTP id w24-v6so5866202plq.3 for ; Tue, 13 Nov 2018 03:19:21 -0800 (PST) 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 :mime-version:content-transfer-encoding; bh=ZgZNmPoaTkDf6ytgXj7F48CJwNB1w7qMXXV09tpNU38=; b=R54Bdr0t5wkh6hlo5cu4TtuMzPckKnfw9vn7bQ2q+LgPHvjnM1tVg3VxnLfno3HX1Q NFY8xjL0EPyD3DNNeMIE+aAVJ3tmc2z549KMdttRh64ke7GlZlGmbFbfc0ZRP9tt8Y0+ v96mCqitAyGS+7trKg5WDAt7GAG6gDpqrH1DQ= 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:mime-version:content-transfer-encoding; bh=ZgZNmPoaTkDf6ytgXj7F48CJwNB1w7qMXXV09tpNU38=; b=Ga1Vztcf57efj//lTBAPZIDPWbRJgi/xqfjHw0Ao5V6iAOjehAW5UcrnoumRsQwoe5 HcGKWOh2hLSq4GIjN1fu+KJeh0vPgkSUn/ebpG6/sTUgNA9YzOlkH2qdH19KtBbHtM74 O6qVzWtRWr8Ze8GBk23hshss29/2oV/qJebHO4VGpHUC8wMyAb/S618Z4Vhp+4BYSsYW OxslsCWeLbknPD0JyzU9T+CYMgTuuqy7ybBUSarwS9dbC6hXX5SjBRI1joeN8T3M6JuX zJH+ttmM1otWIm+A1ufhPAQKlvXiA0AtAi5/KORqDTqDXofSvOY/UBmhVyQVbZ1u+bgq yCmA== X-Gm-Message-State: AGRZ1gIvKsHocRTjSuFRR7QMvPnV0GjLWlIv4AcmUHH+6zR/KiDThGb0 NmyUYVuu7i6AgooaHLkRP/uIWw== X-Google-Smtp-Source: AJdET5f8TIJpYsQwoXu33oV8ySOI4Udtx0acCilLCHNKQaIr+qp4JuFdPHjkslaoBTEPDyXPW0w55w== X-Received: by 2002:a17:902:112b:: with SMTP id d40-v6mr4689104pla.48.1542107960743; Tue, 13 Nov 2018 03:19:20 -0800 (PST) Received: from localhost.localdomain ([2401:4900:3670:3f11:bc71:2ef7:4a39:e260]) by smtp.gmail.com with ESMTPSA id 27-v6sm28531377pfm.36.2018.11.13.03.19.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Nov 2018 03:19:20 -0800 (PST) From: Jagan Teki To: Maxime Ripard , Chen-Yu Tsai , Icenowy Zheng , Jernej Skrabec , Vasily Khoruzhick , 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, linux-amarula@amarulasolutions.com Subject: [PATCH v4 24/26] arm64: dts: allwinner: a64: Add DSI pipeline Date: Tue, 13 Nov 2018 16:46:31 +0530 Message-Id: <20181113111633.20189-25-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20181113111633.20189-1-jagan@amarulasolutions.com> References: <20181113111633.20189-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181113_031931_915178_D8FC05BE X-CRM114-Status: GOOD ( 13.73 ) 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 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 has a MIPI-DSI block which is similar to A31 without mod clock. So, add dsi node with A64 compatible, dphy node with A31 compatible and finally connect dsi to tcon0 to make proper DSI pipeline. Signed-off-by: Jagan Teki --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi index f3a66f888205..d6f269883759 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi @@ -320,6 +320,12 @@ #address-cells = <1>; #size-cells = <0>; reg = <1>; + + tcon0_out_dsi: endpoint@1 { + reg = <1>; + remote-endpoint = <&dsi_in_tcon0>; + allwinner,tcon-channel = <1>; + }; }; }; }; @@ -829,6 +835,45 @@ status = "disabled"; }; + dsi: dsi@1ca0000 { + compatible = "allwinner,sun50i-a64-mipi-dsi"; + reg = <0x01ca0000 0x1000>; + interrupts = ; + clocks = <&ccu CLK_BUS_MIPI_DSI>; + clock-names = "bus"; + resets = <&ccu RST_BUS_MIPI_DSI>; + phys = <&dphy>; + phy-names = "dphy"; + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + + dsi_in_tcon0: endpoint { + remote-endpoint = <&tcon0_out_dsi>; + }; + }; + }; + }; + + dphy: d-phy@1ca1000 { + compatible = "allwinner,sun50i-a64-mipi-dphy", + "allwinner,sun6i-a31-mipi-dphy"; + reg = <0x01ca1000 0x1000>; + clocks = <&ccu CLK_BUS_MIPI_DSI>, + <&ccu CLK_DSI_DPHY>; + clock-names = "bus", "mod"; + resets = <&ccu RST_BUS_MIPI_DSI>; + status = "disabled"; + #phy-cells = <0>; + }; + hdmi: hdmi@1ee0000 { compatible = "allwinner,sun50i-a64-dw-hdmi", "allwinner,sun8i-a83t-dw-hdmi";