From patchwork Mon Dec 10 16:17:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 89 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wm1-f69.google.com (cartago.priv [10.11.12.1]) by cassiopea (Postfix) with ESMTPS id 2D3362E54AF for ; Mon, 10 Dec 2018 17:18:14 +0100 (CET) Received: by mail-wm1-f69.google.com with SMTP id y74sf3762743wmc.0 for ; Mon, 10 Dec 2018 08:18:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1544458694; cv=pass; d=google.com; s=arc-20160816; b=fkHIZJdcnOIHQ8s5AEw5J1FpmsixeOIcdwcoKrytCHCllr1lwewQO0bNorGSH5+0qo NJ75D5PO0md+Q1i5SKHh4nQ9CJf0YJgPw/cKA0zVLOGai2iXKgQk9eVayTr1/tfF336S O9rkBxzPOHzu/b3AVxlpsMil1CPSVX40XHlW+YBT60Cca5QUdOl5q53qAGbJSTJz37Bm hByIWKYM5Z6PT9OZzCKVRuNI3tsstiV90JVhFtgTox2F+Op3rw0cwDSy8lrapiFPKaUN GyB5OFbe0k9Dj2j5PkFbbWRQaCBn5SHnmwBCnsh2/nDQ2VVf06ETAPSPxaa/KXHGgH35 /67w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=FjGhPpG8sG9uBklMCJSskhFh/huEKC/N4BLQs4vEQZ4=; b=fnyJiRpeL0vl7+DTd1LLR7hIe2d9eOWOfA8OmL1Y9HsumWeCXTEGXIlZZ3nnWM39yP U/eoaI1hDOl0mp+EbNbeUrM61VWAUAKWy3rFAh1U4srVIrn5KnUk+6FeSyXNJi29Pj7N mNhg+/2rzyHRLybHGLBD5UBNa/pq7e2F1JGiKBni3VvSV/uQfVAaPAEHp8GFwlQJ8Pqn l2vrAc3XUNf6pMFgg6jMuqfoF/QdtYICZWuEm8WKVQOWQkZCa/QVTWefXe+OeXPgWF1R Zyur2/bEvTRcYOMyoiGeZqLdIuzCQN9BQBl2YK1CfwOBLiGxGxr8Vx9sxN0QI/nZobF7 dtWg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=aqPbNxfJ; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com 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:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=FjGhPpG8sG9uBklMCJSskhFh/huEKC/N4BLQs4vEQZ4=; b=Heff17As8TvMxWW1jXT9rBFFlCNKiQFXtnwOfOhzRSJSQ6Yi8Z4bfa6w8KONCuPsOF ccdhbVN8gREd0YL/PSjK5OW2qd/sb7WvmyT8JH+GC9cWU/qoyFyWXn1Qpbb13fxSjGl3 aathqH6cOdGtkNrp9KVTckrk17kWhWq+aePjk= 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:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=FjGhPpG8sG9uBklMCJSskhFh/huEKC/N4BLQs4vEQZ4=; b=CZlN57CSJ8d1HJ3KpmxixeVc0R95NAqFpZlnOKFmctRncxkB57dsqk2vcTNK/TffuF VIJMoxtP4pvAndtv0pSouZqIQq48ZG2nmZy1uvhsryrQbheKdE0Zqbn+EI/JgM+uCNtH ZToR49drOETwxGuaGSuKUdsF5tnBgsBfgv2dajcHg1eN3blts8Iq8lf7sMhykE2fSNIb m6wBzvvCDmr387KUOh9ZkQ4fOE+HwF3nt9nEg7Se7eBENljlntKUZV1/J1n8iC6fWiHZ 5ZHhHwAXGOhdHg8YymdfO0wGCJ8eFa2/cUkroDEu3ab1QL9vAmltUwx+LCV4PnvAB1/5 +3vg== X-Gm-Message-State: AA+aEWZhd7PUM3+ewAmeCKCcSaPla+vmeGr3FtTKMmbGRlRIDpTi3viT JMmRzTDyDa+RmS5fIE+gd13T6HXX X-Google-Smtp-Source: AFSGD/UCKmHVXGVbVhcBNXY4yFpMNoVOZl8UcDskWEwz5HdEsTKza0j7rjD1vgTIu7gMoeZEk7uHNg== X-Received: by 2002:a1c:8389:: with SMTP id f131mr1279848wmd.21.1544458693890; Mon, 10 Dec 2018 08:18:13 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a1c:35c6:: with SMTP id c189ls1825738wma.13.canary-gmail; Mon, 10 Dec 2018 08:18:13 -0800 (PST) X-Received: by 2002:a1c:f8f:: with SMTP id 137mr11015266wmp.96.1544458693491; Mon, 10 Dec 2018 08:18:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544458693; cv=none; d=google.com; s=arc-20160816; b=UG0qEgegwj00MzBK47F5JDDlXzVlE6sFTOFNKTUusG/C8jpJWzjLHqrTGolrTbcqZU ReKdc7pGplKH2OefqbOaxkmBWDhPZPkgkk1d1Ac18TyrHXy8o9kS2QI/odz/5XY/5Jcg 10ORe+wTZQNlVOCeLkUtVcI3czgVpqkMaqsIj7ck6RnlZ6OZizB31F4q4X7C4ZxjB7rL pCs4DmKAcdrmEUZq8oKhMKFF06fktBx3h5JYE4dJKSMnQMePFy/P9S+7CmCKFEJZmiKu TQeHhPxT/D5T2FMHdW5kQnD0QB4wTAS8Sbp/PLGMhMuNFkqkK4+8/GZlgnqfZfS1hol7 Ku/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=FjGhPpG8sG9uBklMCJSskhFh/huEKC/N4BLQs4vEQZ4=; b=uxrTIEr6Q/STaLwUZ60932DAXOv9dXYTmZNyBjhTfgjby/F9gOssETmA2kaDWTJTde aDQGH7CqtaoL8H3/zLBTvHCY62s4PQ3Rp6n4gBQs3CwFO7XwEWd4MddM7FZf3+mjCo54 FKFQKSYy4Jln9pVi6pg2IM+bjNyF28e8vNehQVU5IeDCB6/p+5iGJx5QJdPBIaZeSjDQ fSZNA9OJinwrFmTBQOa4fe9+0sYfx/Hb6q95LjryKUrZnx1T9XZ36qZ5D4oNmr5E6/mr eOAasKeBa4SnJbXAYF5++vnk8gQrT94WvYAIHoxLjZBrT3h5joEbc1SzFejhTJLL23vK x1EA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=aqPbNxfJ; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id j78sor8085286wmd.27.2018.12.10.08.18.13 for (Google Transport Security); Mon, 10 Dec 2018 08:18:13 -0800 (PST) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a1c:de57:: with SMTP id v84mr10923948wmg.55.1544458693211; Mon, 10 Dec 2018 08:18:13 -0800 (PST) Received: from localhost.localdomain (ip-162-59.sn-213-198.clouditalia.com. [213.198.162.59]) by smtp.gmail.com with ESMTPSA id b13sm8397503wrn.28.2018.12.10.08.18.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Dec 2018 08:18:12 -0800 (PST) From: Jagan Teki To: Maxime Ripard , Chen-Yu Tsai , Michael Turquette , Stephen Boyd Cc: linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Michael Trimarchi , linux-sunxi , linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v5 17/17] arm64: dts: allwinner: a64: Add DSI pipeline Date: Mon, 10 Dec 2018 21:47:29 +0530 Message-Id: <20181210161729.29720-18-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20181210161729.29720-1-jagan@amarulasolutions.com> References: <20181210161729.29720-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=aqPbNxfJ; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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 dd5740bc3fc9..dd5c7ad55149 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi @@ -344,6 +344,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>; + }; }; }; }; @@ -910,6 +916,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>; + }; + csi: csi@1cb0000 { compatible = "allwinner,sun50i-a64-csi"; reg = <0x01cb0000 0x1000>;