Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp6165552ybi; Wed, 29 May 2019 03:58:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqyar7xqUPoe8t3P+7Mgx67fOkoWA1FddzR4bwk3HNAJ+VRvJZ9E8cAce1Qgej8fhuNEH2KL X-Received: by 2002:a62:7610:: with SMTP id r16mr150621547pfc.69.1559127527530; Wed, 29 May 2019 03:58:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559127527; cv=none; d=google.com; s=arc-20160816; b=TZEHn9kZaFSsoykkPne3pOmMBsM+b9bvScInORvSGyW2y///d5Sad/2bCsQS6/EEDw BHx6kr4nLA+dPV2f7hSdLZpKkh/LAtTI7SRDMZ80dS1Bt/WCz63q8qvrWd5GyXZo0sZR ffz5+8GZ4n4L8yluHg1MUdWSJtl+uqcdLtewVWak/WuZgYQLGsg9MtLg4L6slA1KHd45 nW6J3iGRN2fB7/z9qiwrMcaNPaH72IHHcHK5b0yGyH8Ad4Oz3gRLEL+DVXUNgcHrlwh6 F44DXzmnCWGPIIiPjO4wMBSGWljiEus0SrkH59yjZeWbX7ZOXxS3yd8BbZP4pHF8UWcy xVlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=IKHbkwp0tH0KLf+f56uwsCmAY1kuILa8NoPqQgZh2PQ=; b=q73R8EMNWA1WAMfwPT4AzokFtVPowkHvA7Fn3Vlhp6XwOMf0kJtqFjjx4Ihuc7JsPb s9sN7NOEWyh267sW8PRGpOT7exkpaDJ7mQMhsPsjpimyKYRJVnWyX8LM88RdxY2zJpMo rYa+xOVFMGJNth1Dl0/QgRDOh8LkXK7jEH85vpY/KfiEkftbvTsGnEiHq979y53MSmeh b4RWXGVuiRbaxWrE2DrG3m3VmYs7sBWx0Fvxq2yR4KI25NGFlUhHukzCu5/z+6ch2u9x +G+UyOwHw0DDVJdwN+yevDck7TKH+A6HqHBZYwOP6O38zHdPfSIgNB+c/cGJBPTps2bF GgIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=GSAv18sB; 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 d21si23343050pgv.353.2019.05.29.03.58.31; Wed, 29 May 2019 03:58:47 -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; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=GSAv18sB; 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 S1726875AbfE2K5F (ORCPT + 99 others); Wed, 29 May 2019 06:57:05 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:38444 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726080AbfE2K5E (ORCPT ); Wed, 29 May 2019 06:57:04 -0400 Received: by mail-pf1-f196.google.com with SMTP id a186so692392pfa.5 for ; Wed, 29 May 2019 03:57:04 -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 :mime-version:content-transfer-encoding; bh=IKHbkwp0tH0KLf+f56uwsCmAY1kuILa8NoPqQgZh2PQ=; b=GSAv18sBWAsz8YQuoNO/1lpeipPjg1J2Fa0U0jPgNa05sDr21vIDWTvRUnnqx7VvkU IXsuxZfeXOdVCzR1B36mNH3Fa+NvmT+6gMD9vl8dXUq5bzJ+JXt+UnjbHK5bGmiwUUNq qIER4dq4n4aRkLFBSOEGAJDdlBmtwYTIdNnXw= 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=IKHbkwp0tH0KLf+f56uwsCmAY1kuILa8NoPqQgZh2PQ=; b=dCuS0Xa6ohO8rqO5qELLnxYQDbCzb5ltEtbgNCXKslHusIjREnm6eUeJfvtgSvOHU+ MLGW9LeNsSBKwvtvFjL67YJ/igEYDzVskThP2/6cbmzKYQf2colLNYlXL6CZXhd+QJ8b 640v/UMgSj2Sz1X9uxCziI8MK/KrHIeR9wBrZZG4zVNCX/tTFuzNKxhtGPzyYGqX/asC 3LpvrSUuCEtpjpJCaFqXYUiWEUQXtdPg/fXIqiiWcCW+5HEC1p7vpJkK53e48lfkj4cL X5oKiJDRaff8C/ZNW+Hp1/Agf9sfY+YmRhgnX/MHvCy5+SKMewbE8kJ4HVvU8OzVYgMx 0sJQ== X-Gm-Message-State: APjAAAXSnt7RzMP8ZmOkE8gJ5+3KIrCEkSbK98WtzEWSrn7Vrzg/Lc5C 6Cs0PEOYXPyJxf1xQi1wnAiLrw== X-Received: by 2002:a63:d014:: with SMTP id z20mr131060453pgf.227.1559127423790; Wed, 29 May 2019 03:57:03 -0700 (PDT) Received: from localhost.localdomain ([49.206.202.218]) by smtp.gmail.com with ESMTPSA id 184sm18974479pfa.48.2019.05.29.03.56.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 May 2019 03:57:03 -0700 (PDT) From: Jagan Teki To: Maxime Ripard , David Airlie , Daniel Vetter , Chen-Yu Tsai , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Michael Trimarchi , devicetree@vger.kernel.org, linux-sunxi@googlegroups.com, linux-amarula@amarulasolutions.com, Sergey Suloev , Ryan Pannell , bshah@mykolab.com, Jagan Teki Subject: [PATCH v9 5/9] arm64: dts: allwinner: a64: Add MIPI DSI pipeline Date: Wed, 29 May 2019 16:26:11 +0530 Message-Id: <20190529105615.14027-6-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190529105615.14027-1-jagan@amarulasolutions.com> References: <20190529105615.14027-1-jagan@amarulasolutions.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add MIPI DSI pipeline for Allwinner A64. - dsi node, with A64 compatible since it doesn't support DSI_SCLK gating unlike A33 - dphy node, with A64 compatible with A33 fallback since DPHY on A64 and A33 is similar - finally, attach the dsi_in to tcon0 for complete MIPI DSI Signed-off-by: Jagan Teki Tested-by: Merlijn Wajer --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi index b275c6d35420..44c1c11db423 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi @@ -382,6 +382,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>; + }; }; }; }; @@ -985,6 +991,38 @@ 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"; + #address-cells = <1>; + #size-cells = <0>; + + port { + 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"; -- 2.18.0.321.gffc6fa0e3