From patchwork Sun Dec 22 13:22:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 956 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 28F503F042 for ; Sun, 22 Dec 2019 14:29:57 +0100 (CET) Received: by mail-pf1-f199.google.com with SMTP id g69sf9893454pfb.17 for ; Sun, 22 Dec 2019 05:29:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1577021396; cv=pass; d=google.com; s=arc-20160816; b=LiEiWokTXPIe5KJ4w8IT6I83UtKmELAvqCk9IoS0nT2mBDbVZ3oRoEvJ1GYW0GCgoI wRUzpbEA4Ez3wJDp2Mmf71UYCdCAJZFOmHNqKtkDc9FRmdlO1dIeWJNmyNpl53b69Mx6 pxPI8Ikp+MPGt88L+UpyQ1/folLgIoXP9FP4aYCzEOlcNiAB428RjjaYX+urPT45IMgi 0nNSgq8l7E1jfAXWi2XtiDx8/492dy2BmofqtJk4IjSbD8vzSH2us+E3TiZKBizIkYcy 8M+jw6Smct7GRpw1SMQTd5kfKiV2glAAdkA+Z5dc1oH1gYWKCySHLuTTq0cTH72YcWBx gxyQ== 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=+RCwcWGbVEIVyAFcMCMuga/dSDTXkTo0tIPB/a9t+Z0=; b=mfwiKHb4wv2/9XQhBilhPJ9Ui47lAOeg6Wfl1cKdfPKOA+T5rmddIhKdbhEZNLgsPa VDIEB959UHykMOVG2dNiI4onDI4d671NDRlOqXy7H2axkDuAeSTozLIpz+XugmIc3h+1 Z/2/Jasx2G7zea8LMYV4BFG3ZKpCyRfU2T5RuAepxduwqS8EnqigtpNfr5LIOt9PnRfH gHqW4IB7zT26mHoWLTUuSoIpZfiQqnzLpQ3HpOsfvG3LsE+fmN/Jo5CzeEzKpfkG5JKV L5McI8VOBkBuAnRRclIiY/CzbHI3HVXCIDlH0cEzNucfP5vL/GQJdQJyrBX/B3kKbThk eiUQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="aN/z+SvO"; 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=+RCwcWGbVEIVyAFcMCMuga/dSDTXkTo0tIPB/a9t+Z0=; b=XxRDCesaqoa3Fg3LsPTXUtsWxh+gD8yo00Rmo/ePZwKeFzZukiJso+aGytHmTxrCKB FHtt2dvJcYqxPESrDJGEkELBNoOy91ceC8i2+ny+qSOvLnzX3xLGrGDs3XRNHsG0pbAe QuFvbB8KDmYaMVVlMxFvYyV+XfjtNKTDWEhSo= 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=+RCwcWGbVEIVyAFcMCMuga/dSDTXkTo0tIPB/a9t+Z0=; b=ZdgQkGZ2wwkajl+5zaxzxRtan5v1Liu4Hz0JVswxaTJZTcChqoRO5icY/s6GiV6TH6 z4hjevYofx3bPfcQWjF/aOqqraVY9WSE7eKrBhHnKGPE3IQBgrDlP7BOnqbPPwWS6I5X swRaqWcK8YEh6I4RCiuagJ1dynWNqac3Cg3zxUyVe2XSAOJQdKGbtsL7zIraiHGiRLkT dhmvC5xjJ5W+/VzOLxKog2sipUhVddM0VxenbovZDrw3801jZeWcn5CgscVm8NbDGzn7 19po+bd04CW/TWKYbbshHNMLaXv/6MnmC7J09GGJ3HggRaiZXXiUMCK4DHLPQBnk/nyK 4e6A== X-Gm-Message-State: APjAAAV9Xh0cd97ECzYXMuP80jiqSw8C97sL0kp1rZvec7jTh5iO+AiQ 62P9e6ZsC34D1IvaUhm6ldXgQqDI X-Google-Smtp-Source: APXvYqzcQYJI4pBatTfO/lOvyXBdJLLYzjJvgdOVNualw0f2sZGGCBwkYrJf1ayCQP+7HefsbkzJQQ== X-Received: by 2002:a17:902:ac88:: with SMTP id h8mr25470574plr.131.1577021395892; Sun, 22 Dec 2019 05:29:55 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:b606:: with SMTP id b6ls3548058pls.11.gmail; Sun, 22 Dec 2019 05:29:55 -0800 (PST) X-Received: by 2002:a17:90a:3244:: with SMTP id k62mr16152385pjb.43.1577021395444; Sun, 22 Dec 2019 05:29:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577021395; cv=none; d=google.com; s=arc-20160816; b=ATca3dM8AbVESOAuM6upYbPK2fwm85Mj1Zn1mD7oNDHgMhKyfoEtwuwE3bpCfO1dgB hCnPn0Q86YGbQKXlefvZ2DhA7OGDha/ceiNZT1q5vPndkywpQmli6oqQg67GQIPd0mtx dt/RxyV21GwhcXUOmU0JcG2XDg+Q5Tq0JicFBt4TZ3U8G5ENFUCTiTnojA1zuO+goap7 o9dSrJ28vD4HMM9zv4/ACYG+iyWLueMCX+/SJimIf9GZ0dr0IR4FjoSNu/VUz34ut+A9 jmDGYowoGIDAmotYidw3FFhTaMNOUB5MMJuK9V/vR+LRl6Za/ZgbVVCfIhQf6oHtfyWu kKuw== 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=xq2qov66+ZKQzbRfM2Ia41hD0OqHDHdZrt8IUGMciys=; b=xCUKxSr99FhmWzbERXcWRASl4YTMRMAEXsT2fLYrBQGf6WkqyRIF7iE8741ieIYPep /N+Q4GYhSvRf8Fbkl6IUrnxRDsrkS/ebT4F/59Kxq3lcS6Q+jjxa+Gxd/iT6A9l8eaTB pQE3+81bc25etUKg0T4Xa06p1KJvMKLFf6of9BYAzEji+vLk9SNZOMKg7bxy01Id4DB+ XWGbPFoZTyXfvnrIaP4//UNitQig6i4TMVKF0pA7dsFGoExcwLLxJDeHIhYUrZpXNWuk l4awi1nbfJw8kLuNxB0dIGfnwB3b3ZHxzO6szUzd7aLUvEB2dnENE9UR9SwoY8kFTqu5 yo2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="aN/z+SvO"; 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 x28sor15277036pga.74.2019.12.22.05.29.55 for (Google Transport Security); Sun, 22 Dec 2019 05:29:55 -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:a63:e911:: with SMTP id i17mr26186191pgh.42.1577021395126; Sun, 22 Dec 2019 05:29:55 -0800 (PST) Received: from localhost.localdomain ([49.206.202.16]) by smtp.gmail.com with ESMTPSA id o2sm12073058pjo.26.2019.12.22.05.29.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Dec 2019 05:29:54 -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 v14 6/7] arm64: dts: allwinner: a64: Add MIPI DSI pipeline Date: Sun, 22 Dec 2019 18:52:28 +0530 Message-Id: <20191222132229.30276-7-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20191222132229.30276-1-jagan@amarulasolutions.com> References: <20191222132229.30276-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="aN/z+SvO"; 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 v14: - 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";