From patchwork Wed Dec 18 19:10:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 936 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f198.google.com (mail-pf1-f198.google.com [209.85.210.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 7F12C3F08E for ; Wed, 18 Dec 2019 20:10:56 +0100 (CET) Received: by mail-pf1-f198.google.com with SMTP id x6sf1890213pfx.8 for ; Wed, 18 Dec 2019 11:10:56 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1576696254; cv=pass; d=google.com; s=arc-20160816; b=KEWhgjsG1SrWaFKrdxkU/UQLyXUR5ga5ObXTstTEGbi9+zzufZ6VWyb9v+W3l2cvkJ lNbcIjBB/U1El5Ed4eeE5hMgwojGaLQL2FIAjdheKi5SwKbAZ1ZXgYryB8O7rGgV5BB6 dxTOoC+G+RMVkD5AAstjpzY+50txEuOI+0txV1UJvwPbaPHGMzV/TerTyQjP9Nm+0UsP gY69UarQvFKedjrb1Yn+uN37YkUC00hbqx1GL6acDp7B5wVKQmM4CKPYQrcfsbz7t7GZ JmS4Y6Tmq7ZED1NzbHdzI4vysYwM8E4REK8rWEeutyi7azMLOMgnAOwXmYGNhvhHSrs8 VhmQ== 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:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=viH7s7I6ATG8aYZWKyh96EzfxfGEqN358pkcRlzvSEg=; b=RXeVhiIEYwdewF0kS6iJqpO/AVJ0iBH8LEqKhoicRrQ8RA1evYxOdf7I4CqOJyGYHs uFqcFsz3jC69qLmjjnytP/GXEa0mnchkc+dBzbF7QVZZbmeVYNTdLe2CdJ2tvEI8lMLK bLl/wAzagE+frcIq5wRTdw91+cAI8XHQAvXds0i8tFpQyPu3uQhEpLERWVtWCiOLQSAG wqJoSsQRLBIQGczV9CXUhfhzPKdzCPrZPj5/KQMqNpFa/8LpGMMu+cz+ZLmAxC5Wwnz9 l31EIdwf9tTHoDBWgzle62RRSfJvJGejdMRnAj3Ivj3aB9kWLzfRdA4Zbki4FTQwFa2F lhEA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=qaT1g3Qm; 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:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=viH7s7I6ATG8aYZWKyh96EzfxfGEqN358pkcRlzvSEg=; b=jq2YdykZglmHP/a8/KVOUYpVW5x7uIC6u0ABC41qMOcAAo/IOg4p0U1u09TbkQ1m7a cP9GotSgYrDjhSAc0BJS4hiyt0YZ/ZzFjxEOKXyynWoa5AemfvKIBjoF10yNWRDv4bAN 8SpVWojUMoCNehCyliq+3YEiUmmVpsN+Jyvnc= 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: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=viH7s7I6ATG8aYZWKyh96EzfxfGEqN358pkcRlzvSEg=; b=hcFG7QtNWRu389QUVvkHX/kNM6q64wECMVDniPM6pC+YTW8MdHP8dW/xuB+whwwaab DF1w+tK1sLYqoA9Z1PxhBCkHYAjSSn9R9jqve0231z9lJauhhlaBr2kMuOO4Albme4y6 MoHszSTD9kug13KpBCj+88XgdePoTocJ9i/rssmo5OmxCiDMX7mbdiX5sGRiFXs6uDOj aeEXDA28N+v0eiRcDDt71McHWA31bB2ZeT+jg56ry+UPzZZctFANFWJ/7+Bq/Gna1lsA sVYunONqdyDcWecVeExnKrSrIHWDZYDAPbmsvMhebCTcuT4hpvWHPx45IIBmkFjMmNie rsWQ== X-Gm-Message-State: APjAAAXemrZQ32RUgmWu4a/6FPDED92E3QERUOzq7h7335KEwcppCSAO aq5vULw9fLU3R+JBjPmjDh9ErUnv X-Google-Smtp-Source: APXvYqwifsrF1xVbuu29grQfLbsawuEbtJ2skXv0rqxpU3plbixvTo+iR3V5ZPmgRJNCVNjahI0TVA== X-Received: by 2002:a63:4d4c:: with SMTP id n12mr4882495pgl.212.1576696254766; Wed, 18 Dec 2019 11:10:54 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90a:fe5:: with SMTP id 92ls751005pjz.5.canary-gmail; Wed, 18 Dec 2019 11:10:54 -0800 (PST) X-Received: by 2002:a17:902:7d94:: with SMTP id a20mr1405323plm.26.1576696254210; Wed, 18 Dec 2019 11:10:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576696254; cv=none; d=google.com; s=arc-20160816; b=RSGWELHKt+6hEFlWHj/0nuXmYiflKM37sBBvhjdjR2wxe5Vk9bPORFzvqRZp1MyB19 f2dKzxK4SUvEeRhuX/hXj1GiBM44EjaDTTEdMYgxKQPGdgkE9qLqUwWHohnPkaS5krtU 6CLKnGiKaFVF3DzwiIqLUS1pZJ4niZU7/lNqg7XW698BUs9J5JPI8qAPDEZ4xI5DVq82 NDITSIm+ZponUl19x2rKjH0KhEZTep8/0RnVouLIhxevdP+juDpBk30JElc1fGjc8o/w SwngmxE0x9AQ7Em1FshNqDq1M6LSIpWPjnd/O5H/35CZYrodQbu+BZ6NTHerD48XZGD8 46UQ== 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=Y5rz72YPbxV0B26OX0MAGWfHxZgDOqp0oOHgAxqpqbs=; b=DLQDpjjl1QeVd+NfwBeu6+VSYE324YEgnYV3oUiy2hu35b75wNp0FdYUcRSTwxgjkr 3tn8YRoGDceMqn0EYf2ulBLpCWREM3U0CXoXEw6vNsL7dO943V3QKIdpyU1gPOfKW7Af 1b3FYSPzCh4tLWRCkMbEsxwY/KdZvluHSVkdM92RwFX3k3e44Ihxj+sURP1Gck3dsNVh 1U3pZfQMtMLAjU/UEkMdKXJz76JCJuffjGecclJ2gSYPmTTX9XvxRdNNJGb76hcn2v8R 5Nm8phBLQm74qUeLD5PZ0tROXtAw1SWfqKuPBbmL1mX7TjURJwvZOizm4kFfhnHTd2WR WBaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=qaT1g3Qm; 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 x15sor3145782pjt.8.2019.12.18.11.10.54 for (Google Transport Security); Wed, 18 Dec 2019 11:10:54 -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:a17:90a:cb08:: with SMTP id z8mr3892894pjt.86.1576696253896; Wed, 18 Dec 2019 11:10:53 -0800 (PST) Received: from localhost.localdomain ([2405:201:c809:c7d5:78ea:e014:edb4:e862]) by smtp.gmail.com with ESMTPSA id q7sm3745855pjd.3.2019.12.18.11.10.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Dec 2019 11:10:53 -0800 (PST) From: Jagan Teki To: Maxime Ripard , Chen-Yu Tsai , David Airlie , Daniel Vetter , Rob Herring , Mark Rutland Cc: michael@amarulasolutions.com, Icenowy Zheng , linux-sunxi , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v13 6/7] arm64: dts: allwinner: a64: Add MIPI DSI pipeline Date: Thu, 19 Dec 2019 00:40:16 +0530 Message-Id: <20191218191017.2895-7-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20191218191017.2895-1-jagan@amarulasolutions.com> References: <20191218191017.2895-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=qaT1g3Qm; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" 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: , 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 --- Changes for v13: - none arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi index 27e48234f1c2..1db8378f59a4 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>; + }; }; }; }; @@ -1014,6 +1020,37 @@ status = "disabled"; }; + dsi: dsi@1ca0000 { + compatible = "allwinner,sun50i-a64-mipi-dsi"; + reg = <0x01ca0000 0x1000>; + interrupts = ; + clocks = <&ccu CLK_BUS_MIPI_DSI>; + 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";