From patchwork Mon Mar 11 13:36:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 162 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f197.google.com (mail-pf1-f197.google.com [209.85.210.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id CC36E3F087 for ; Mon, 11 Mar 2019 14:38:18 +0100 (CET) Received: by mail-pf1-f197.google.com with SMTP id 19sf6165163pfo.10 for ; Mon, 11 Mar 2019 06:38:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1552311497; cv=pass; d=google.com; s=arc-20160816; b=OP82oXMXuDxMxEZ+bky9EWh4DUhQK709sf5wlDw7isq+teax6OJfQUKF8d7oNZs4fb ppIc1GRVH50I3GrNPNsqoPeGa0EaVlZZQWtkoRVuaET7FTU9xADVibmfECbLHVr1JRc8 lBfG1YxULPvyhRj9Xh1pl02Raq+EF2pcOGT+wmCD0VmqhXQa96RHhEvL9ixgW27/KL97 tPQM8A+1o4WGWmw/V1+RJsFfPefrb75Usw7j3qXY91UCibH+vw4qYmXWhlbCgzCpPYQI NvREoFVCeOZGkeDYTYzXMjDLTHmHZVYY5JUwSBptX2Eopb2xIcIlwixUtAIYNco1gUXV bERA== 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=KTJnx7ZfaJowHswkQfjnIQpo3lwiETT8h3tAc6mEW7s=; b=bSTUZsiH23KHIurL0OYsl62AYjrKxSHp6LFZYm3N76qV9JoO1zAZfGKPeMT8g5RjzD X37qFtucxXL9M8SNK+38xoTkaTYBIXliMiJlrjGpowPngbEvS4Ab9noFm1LVHl0xbo81 olGjiSYEdjSfA3rVNxRQykI0r6NFXuWjhgp6agUbfiNxwnxHCVKauRZmdlfFtuNAJcAs q97ohed9Pme9ObpMyWq8pjgOd3baN/fuGeqYdDZ5CWgSS8wQTHBYiZDqIleP/UTwRKy/ DAbxUuIu3WqzYSwHgZP2ItqYxrya26ss1cPbvg3tQjyi2dPT0lUaE/BAvufmqK6mry/Y Cavw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=iHSqwI6H; 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=KTJnx7ZfaJowHswkQfjnIQpo3lwiETT8h3tAc6mEW7s=; b=pm/qLjpKfMI2xC7n3GFzbLzZbhcjGKvbXfA+xVtS3TINxo7wYDmBk2Wdqe0Vu2qUzJ M2X9ToTaaYUWLacfpo4h9KO8l2dF5KQyN/ztVgvrN8bF+TpILDFicc0ld4D+fgfKjNkJ 5EbJ+cdHut17RwvTw25zLqaXgOtUWnNqeXGKQ= 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=KTJnx7ZfaJowHswkQfjnIQpo3lwiETT8h3tAc6mEW7s=; b=BagWyN0+ysarNylNVuCQzacqHXdlxk94Rt8mlp5Fd4PUyPZ7pUjb+G1ACHY7CX6KIY 4EmhIfrGwZSVkGBTQbaFoBtxAN2aJEjYGEGcuc2GHGs3kebGmI/L1p+v/2ybF0C7MB1q lpNCYk4DmYJVojtmYIy5waY5ysNp53BG9fnQ3tN6VEqhh159qZM2gfmYFm5MnuEY3Fzs 5c0pbQkLmWKNMuGwmn+ztppnB2vTvNI6oYnN3tMVf0xX8BF+MftNygwXkP4Q3hOsuc7J zVraLgU3xATb7KT0bbnMpdze9jXXkZ+nQHMeSQlAtU/3czIu+TE9ul7JQwMLDNv6LuZm N4BA== X-Gm-Message-State: APjAAAX8Y4uHXfOr7MYKrxeB/JX8qfqa3igO4Lfy+3Z+sKLTx/hocbZr ng9BJUc3ctjWHuKRGVA/Z8zQK5xs X-Google-Smtp-Source: APXvYqw9Gjv7k9ihele7sXg7er18a1eQscnAf7u/dnRw6UB2tF6fMtsiV0OCcW/KYT4MhvgSnrplpA== X-Received: by 2002:a62:1c56:: with SMTP id c83mr12336525pfc.48.1552311497661; Mon, 11 Mar 2019 06:38:17 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:bd84:: with SMTP id q4ls1641629pls.5.gmail; Mon, 11 Mar 2019 06:38:17 -0700 (PDT) X-Received: by 2002:a17:902:20e5:: with SMTP id v34mr34155649plg.319.1552311497331; Mon, 11 Mar 2019 06:38:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552311497; cv=none; d=google.com; s=arc-20160816; b=rcXAOzOGtJPmPdN7WiwXMDMPkI+CEDuO2gE9cxdcMZTbbrt5gqyzGMmi3aSPDaoVuf OPTw7tiTc5cv3w/vuQiov515ZGU8IqbBIvvqpO9iDxDdXCgKEqrsQj5HJkKzrSGqQDWW VXWotINHEjAjq8rGdko40qX5IhURUk7urtTHbzjLTT23rCEY8jTTQszyWqc3ou4549L0 YXzaPVu1RbmObDjCASyD3jrrTIquFtwMCcVwUBfH4qbgmUvdCeQFiEmYnb1fDOuBxiJo lj5SyrFqfx+nL5fPH9+cG7ReK7bDEu9q5aQtcRQyGzJnUApoQdOvG7I4m2TLgTnmLT7Y TLKA== 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=JpkYvz2XVIh29oXHw9wh2ZVrMuDNfed6jV8hIQF4UlE=; b=CBRFkYH9Lir46q3v+9zPHQ6d/sNXQHTtia0n5meALSY36bmX2E+hEr4ov80Hu/6g8g OV8TbTieuRaplRa7qm2HGgJkg2SHSdXyIvhh3ZOC9jaoxQF68Cday4Lwl00cQxzxjD77 Q8PCxgTIoa2D3eVgC5z7ahTQ0ByHstiZ7s7lBP3fAyj+dgzgVKK9ZNcGYFYCWjKnBxs4 ZiB1scPJ7kx+Rh4mpoonoJPPkPGA28LP8UeUde4InGIX0j3N8fMuA1+bwMBu2hOSsFX2 2d640r1+GPiXZZSFlhGqg0GqP4ixKPgXf9MiucvdubS/p44BdlBwN0HnpHXNo3+dR0XR Z4iQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=iHSqwI6H; 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 h7sor8341954plb.46.2019.03.11.06.38.17 for (Google Transport Security); Mon, 11 Mar 2019 06:38:17 -0700 (PDT) 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:902:501:: with SMTP id 1mr33497507plf.72.1552311497008; Mon, 11 Mar 2019 06:38:17 -0700 (PDT) Received: from localhost.localdomain ([183.82.224.199]) by smtp.gmail.com with ESMTPSA id s79sm9960397pfa.61.2019.03.11.06.38.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Mar 2019 06:38:16 -0700 (PDT) From: Jagan Teki To: Maxime Ripard , David Airlie , Daniel Vetter , Chen-Yu Tsai , Michael Turquette , Rob Herring , Mark Rutland Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, Michael Trimarchi , linux-amarula@amarulasolutions.com, linux-sunxi@googlegroups.com, Jagan Teki Subject: [PATCH v8 12/15] arm64: dts: allwinner: a64: Add MIPI DSI pipeline Date: Mon, 11 Mar 2019 19:06:34 +0530 Message-Id: <20190311133637.18334-13-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190311133637.18334-1-jagan@amarulasolutions.com> References: <20190311133637.18334-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=iHSqwI6H; 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 --- 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 e628d063931b..5525fc571fc6 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi @@ -360,6 +360,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>; + }; }; }; }; @@ -946,6 +952,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";