From patchwork Tue Dec 3 13:48:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 920 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pj1-f70.google.com (mail-pj1-f70.google.com [209.85.216.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 85CDD3F0CC for ; Tue, 3 Dec 2019 14:49:02 +0100 (CET) Received: by mail-pj1-f70.google.com with SMTP id ie20sf1878970pjb.8 for ; Tue, 03 Dec 2019 05:49:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1575380941; cv=pass; d=google.com; s=arc-20160816; b=QxsxpIEjM1kUmyrQ7qX8sbFg4qJhE2yRFyaI9TRVwxe7o8uQ6fUIKILr/GpFEfsYkt DmUp7DUnA/yn8ufeoRlXYGCjmZRvMn07ZfU6w8RXn21zWpzTWmiEJUJztMfI58TCBl4i eL2eIJw599TRFs5OdVasLOONS5Rz6TrsodDIOfTCIV/H4sWKWDo2W9wrewml453vmHWF oD/JWRa63HcHqCgSoUkDuKn9aN0v0WfYas+D3+s98FmIRK7bjAIiF6ld88or+GDYZPSm xUADy3S5ThPSw3hSvizRkHzDyqpCKf+klIkRf4YHA9faqiSzjSwqYuHYvl+yBHw30j+y UKQw== 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=1263zBQvdZmqKIr0OUb2YlEIn+oJOSEcE3JU2s1PeVQ=; b=f5p4RAR+4wgPWk5HI8BoE2BaSKgA3dA53cnfBQpzG/n79X4vxlpe6K9K3xpQRAoBKB G95hifh1UHByMzGi4/YDljzbxDkNduqBybYTj468mQGssk3w4KybWn/s3tulNZrqwH3I xuzkGEgMFeAhCV9ITBf2+AracxZWsF4WQ5kTbJdV8m3JlvX+3tum+ILxLzkaPpxGVBnv 3kewNAhaKbYAann5/p7N2HAYWBvtrkGMuEu2u9W/YGGjHhoczl1Q3Shra1Mb/JSQWhgq w1LxxkfPPWIoQqzkZqVPw6pJX2KGkTRLR0kbNQcKJqThQK4ZtOn8HU1x0wz2IthXFl1I FaFg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=N5hZ67OM; 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=1263zBQvdZmqKIr0OUb2YlEIn+oJOSEcE3JU2s1PeVQ=; b=f8RS5jB5TemoAfThGLf5LygeSlp2iVugyK2uOH1wixRIwd1FbIRBgCPSzqLTe8Kd9O zowQGTAE15pqpjMUQlJzzLvkGZ0FwHw/0WVjizJLaGf//wBlsvrR9i1uqb81H1V3HZ2O Mu9Z4AUooSsBMw/XySw+4x7GPa6j7CHrEDVtQ= 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=1263zBQvdZmqKIr0OUb2YlEIn+oJOSEcE3JU2s1PeVQ=; b=iBtJbIJyujxDYb6ASkNxE7dv5I7g315/4GrF55vD881Y9jWVND8IYtHzP/AzexN6lx 5Hbg5/9YxU+w4Xahlf+PTFlT312+fyC9yy3I74t46M0ixhib0KsB4uljULK0iL5RQdgT F9WS/OWEZanEKOlH8UVV2wlqpaUXoBK8LvgmbUbBVzytxoiojHnUE1qvYtrRU0RYvukw pt+svtxKNBJ8QYFcsjzqubwjSuihi/136C3o8gx3SgfWptMsU4QYK8mVaeFPPp7m10H1 1Afrk1oIdjw7lhwnd2AWOQHImk1tLrYqlHmd6nQpS7i+2Sycy3rmQGTiBQGv2r6n8uav h7qQ== X-Gm-Message-State: APjAAAU7KCaBLGY2aesyf6DhZ4tiWu4I1+4kPIy9zQgCUUVmu5VXhwtw BpO+HVNNVCFl3LJVfvFn62ce0mvk X-Google-Smtp-Source: APXvYqwLpAcKgMgv5V5SlecoVEAvFbt6DxGHOysLFHyYPf2/WnOWtM9VBiEkH7qm4t2cIzJzzm2e/Q== X-Received: by 2002:a62:e51a:: with SMTP id n26mr4620297pff.224.1575380941330; Tue, 03 Dec 2019 05:49:01 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a65:4608:: with SMTP id v8ls279772pgq.8.gmail; Tue, 03 Dec 2019 05:49:01 -0800 (PST) X-Received: by 2002:a62:2a14:: with SMTP id q20mr4921788pfq.148.1575380940821; Tue, 03 Dec 2019 05:49:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575380940; cv=none; d=google.com; s=arc-20160816; b=A1tC3TVEKUqSbFvs2zgJeyy4KwMuCptQu7aH0tOv6utarkTiqm1YGEK3x1FFuVj3VG IEJtgnafHZqXzyi8BVbzTOtImFM5Ozwim25b+G8XQL4VAw506XL5UqgpyIyYkzp4L5k7 3vDYI4xj+YLPEJwxWoPwVyPNc8sY6u1+lbU3CjDYsPO1H8pltOtQF/5XD6lIGRLsdbLT tyy0gZdRtGYXXWMXpdC5ih38hFbZ8AXNopFm8mgteVsUpsK3+o4tOz6DAI9U4dzS6V3M EjdjK/c4/dzWYKLk3s4hn9xq12ZNaf8g/sHvhNtEuL2KkU/ikrFTSPSdUtlYE1MHRtBc NzjQ== 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=Ke4tL+lHXK0j3bKO8x1UNBlk4yZ+cYr66D3IUPPUdkM=; b=pN4ZjXIcIoQGh43ovQh108S8W/Y53Q12puSQHI70zXsbcQO5zWBCKw2qBHP5yG2qm6 riaCshJhLE+2c32kE348Za/0rr0ZX+zvUk2YJEweugV8uD1HgZcKRjoDVniQczOZ7KGu Dxn9peVyKZiovqwjbSXEu6V0Y1/uWHDxmKO32zo7cAu8en2A5pkBGXkwzKAAjyg5XEvN iV7Q/Ajqof8eUPmle4RJM9h01GdvKQblR6AoZj6jNCeDvUTy79954c3qeVN1stt/84mp FTqF02kBiTFGWU3n/+SVnuhe2cKThE6C+cYSkN0yz4qHxDiX+KLUHK266FDa1uqlhdvu GB3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=N5hZ67OM; 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 v11sor2657929pgr.34.2019.12.03.05.49.00 for (Google Transport Security); Tue, 03 Dec 2019 05:49:00 -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:c849:: with SMTP id l9mr5543294pgi.330.1575380940429; Tue, 03 Dec 2019 05:49:00 -0800 (PST) Received: from localhost.localdomain ([115.97.190.29]) by smtp.gmail.com with ESMTPSA id y144sm4397892pfb.188.2019.12.03.05.48.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Dec 2019 05:48:59 -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 v12 6/7] arm64: dts: allwinner: a64: Add MIPI DSI pipeline Date: Tue, 3 Dec 2019 19:18:15 +0530 Message-Id: <20191203134816.5319-7-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20191203134816.5319-1-jagan@amarulasolutions.com> References: <20191203134816.5319-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=N5hZ67OM; 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 v12: - 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";