From patchwork Fri Jun 14 16:43:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 568 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 7ACE23F0E1 for ; Fri, 14 Jun 2019 18:44:15 +0200 (CEST) Received: by mail-pf1-f198.google.com with SMTP id x9sf2150960pfm.16 for ; Fri, 14 Jun 2019 09:44:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1560530654; cv=pass; d=google.com; s=arc-20160816; b=AaYshJbEGaloY87x7g7XCtFx+jyJVaILI9JO/UHvK8sbpijFQRYj2N+m9xbnJa31BE gYBg86ZvudzbcQQbNoIgJSzkZsP2lKrhWCV6vOafPycEZIMiz09nM00PZu6JTBE5Y+zz GNT6+P4LJWPF80JMFsVqWfsKS7CsqP3x+RAxHYjrH1TcFfhf6945kUnavS75J0MHMWx+ pAHFUQHGkiTZtcmQUdbn+f68HmtRxWyaEepjV1IGKjUjMEMhIbNgst4I2uiXmne7nO29 9cWhTPtHYed5LzFxS3NjNgI3f6pwWFgB5RENIXITkP16LPHi6s5+E4iUcUxcUiF8NxuF AoBw== 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=5W0cQrzcSvOeoqr3sBtQDScf8WuypzEipgVCTp4EcY4=; b=sws+rXSPS37h/uKTbMfYsIorpHFL5RqRSW6IvMDmUFeDZq2URGcsyx6v35vrWXd+z2 0o+kVhAo4QJwQkxwPrZnlCdf9xmgXV38bdoWM5IZYGByGQKw4146LJLEJRnS476hTn55 ODl+fYxexClN1ph6Dq7gWPymF6An60ybEAG4qxxBg+VCoT6fGAO2yZHhP+3Itqy0dViL KWrR0ZzmDKVaL5Y4gfGYdJgWTpd3/pFLkqRm3mA54cTP4b7/aa1GvoDhGeOqnHZfVOyB 8iqxSnKmeZs3WmV6hifS2Ux3qrG0XBNANQxSEaYpAi/ytYth0zUk9t5AZ/qkylOLGlW3 mIZA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=NxRS0jSV; 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=5W0cQrzcSvOeoqr3sBtQDScf8WuypzEipgVCTp4EcY4=; b=rmgprWZ4pZt49urdIXQqfuBz41vPwGw5JcBCvqqCEwgmf/r/FKcErhvZ1KOt/JRpAx jc1pMXqVYSjjq+bdR1oEacjFBK5psvOvMhwyfEewZmQOD+i/0hyGIYIiZJtT2tzEoT0V tYVFmpz9ZVT5I3lPxSVGQHx8Zu4r0FcROz4Tk= 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=5W0cQrzcSvOeoqr3sBtQDScf8WuypzEipgVCTp4EcY4=; b=f7gDRcM5o8yGT8Vu8h2L3rm8t4TQ+PLjiPLfbQFLuFZcznGHtFTnBho61aCtFxfmLA N0oZzScdxIWeoQCOhUIlxBsW8tQR/5p1ZtICpIgodFVBVhpcmjikbHrmFOPudmdtZw1w pHaMND/UojSLyWWv0iN6s3rf2tLqrLhuHb5Y2u0av9BSZ7WGEFaoY9d/mUXjuizpsNsz ELiTLM1sX+JtY/6avwxzPf9qHG5wpeIP0oqgIy4Qd5Y3ywcSnJGsu+0MHaDA5JWzMJ1U ufDb1+u3lipiWVW7Ws5j3LsHMzDzuvmrRqoJnLvTGvO9tnA7S0Ui3U036JEkR6WCuAT8 1B7Q== X-Gm-Message-State: APjAAAXmYaXim8C3npWElTCcz18/ayjUrUaAoWdqsnTlUg47yRAa1LFW 6ioZrWBBud+tL1/VALxxP96TiQMm X-Google-Smtp-Source: APXvYqyJ+9lAJzAd/UD7fhwVcgvL05cUW6oaRwYcXj+dLeIGfIRMPqi5UO7wBOkfEafQXYRRXkOBrg== X-Received: by 2002:a63:eb55:: with SMTP id b21mr35836123pgk.67.1560530654231; Fri, 14 Jun 2019 09:44:14 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:fe03:: with SMTP id p3ls2147511pgh.8.gmail; Fri, 14 Jun 2019 09:44:14 -0700 (PDT) X-Received: by 2002:aa7:9ab5:: with SMTP id x21mr3235874pfi.139.1560530653965; Fri, 14 Jun 2019 09:44:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560530653; cv=none; d=google.com; s=arc-20160816; b=JdYb3GESWi/lCzixZyJ32iVSWD6lGZD5plO2FRf0SjcECUpSA/w2PNsV3dNhdv68vi RNmFvp+CO6JEughYpaTykPyGHxqQrYrC3s01vfz42/7XM3ADqO/gWp+sAyAs9WZiPOIN GnhkSSYaUW76QHqmHu68aJRFfRgiV98XORNmzPLiF93RieTWzEC5760jXVqfD8xInHBz G36EC7fmApJ//vazFcRC1RYHDh4IBliDYFtaZqoDPrgsPsPfeeq4xBjCipQbawW9VXng bU5Ovd+JXzh4z9fHT+E95rhhc4U9NTtqb652bDXjecym9kAlJq/9JBa0tRoLOnAswJxH MEtA== 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=aKv8CY3ZfTC87OfgidzsL+oxrJ/KYUyR5hJ1sg73Mj4=; b=HFu8HnGtpQWv6J7dWbULtTftXyaua1JQlapOeHXYQVvlnUTM/PTZPc9RYVuVGf+v6k bFzbpBYalitWdiDrXViJ4z1PEV7eZ+4ToYObintgMg051j3/xJhRSro4aEHANnkhe6tN lvXJpyDcW+1Lzk98aA18wDxsIloZpmFHgo3y/gfY75Vh2t1T+7/Fa+UCX4oCpXNZF9I7 md4ymc56hBXUSNUTFX2H6q/xyFesWfUu5ouIKvYYULykFN598aqHlLjY+rD9LtvAywsa /xeP1VWMP5tzJqYrUBAE7FyAGu/6P9WM7fzwsRAi+tOVmUwTvUgiO4HUGh30Yi03Kkae 1bzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=NxRS0jSV; 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 m8sor4248902plt.32.2019.06.14.09.44.13 for (Google Transport Security); Fri, 14 Jun 2019 09:44:13 -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:ac1:: with SMTP id 59mr16384176plp.168.1560530653656; Fri, 14 Jun 2019 09:44:13 -0700 (PDT) Received: from localhost.localdomain ([115.97.180.18]) by smtp.gmail.com with ESMTPSA id 85sm1639583pfv.130.2019.06.14.09.44.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Jun 2019 09:44:13 -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, devicetree@vger.kernel.org, Jernej Skrabec Cc: Michael Trimarchi , linux-sunxi@googlegroups.com, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v2 8/9] ARM: dts: sun8i: r40: Add MIPI DSI pipeline Date: Fri, 14 Jun 2019 22:13:23 +0530 Message-Id: <20190614164324.9427-9-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190614164324.9427-1-jagan@amarulasolutions.com> References: <20190614164324.9427-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=NxRS0jSV; 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 R40. Unlike conventional Display pipeline in allwinner, R40 have TCON TCOP which would interact various block like muxes, tcon lcd, tcon_tv for better pipeline fitting. For MIPI DSI pipeline, we have to configure the tcon_lcd0 block which would interact with tcon_top for upper pipeline connections and dsi block for lower pipeline connections. So, this patch created that pipeline by adding new nodes for tcon_lcd0, dsi, dphy and connet them to make proper pipeline fitting. Signed-off-by: Jagan Teki --- arch/arm/boot/dts/sun8i-r40.dtsi | 73 ++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-r40.dtsi b/arch/arm/boot/dts/sun8i-r40.dtsi index 219d2dca16b3..eb6b2960c700 100644 --- a/arch/arm/boot/dts/sun8i-r40.dtsi +++ b/arch/arm/boot/dts/sun8i-r40.dtsi @@ -623,6 +623,7 @@ tcon_top_mixer0_out_tcon_lcd0: endpoint@0 { reg = <0>; + remote-endpoint = <&tcon_lcd0_in_tcon_top_mixer0>; }; tcon_top_mixer0_out_tcon_lcd1: endpoint@1 { @@ -701,6 +702,45 @@ }; }; + tcon_lcd0: lcd-controller@1c71000 { + compatible = "allwinner,sun8i-r40-tcon-lcd"; + reg = <0x01c71000 0x1000>; + interrupts = ; + clocks = <&ccu CLK_BUS_TCON_LCD0>, <&ccu CLK_TCON_LCD0>; + clock-names = "ahb", "tcon-ch0"; + clock-output-names = "tcon-pixel-clock"; + resets = <&ccu RST_BUS_TCON_LCD0>, <&ccu RST_BUS_LVDS>; + reset-names = "lcd", "lvds"; + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + tcon_lcd0_in: port@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + + tcon_lcd0_in_tcon_top_mixer0: endpoint@0 { + reg = <0>; + remote-endpoint = <&tcon_top_mixer0_out_tcon_lcd0>; + }; + }; + + tcon_lcd0_out: port@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + + tcon_lcd0_out_dsi_out: endpoint@1 { + reg = <1>; + remote-endpoint = <&dsi_in_tcon_lcd0_out>; + }; + }; + }; + }; + tcon_tv0: lcd-controller@1c73000 { compatible = "allwinner,sun8i-r40-tcon-tv"; reg = <0x01c73000 0x1000>; @@ -798,6 +838,39 @@ interrupts = ; }; + dsi: dsi@1ca0000 { + compatible = "allwinner,sun8i-r40-mipi-dsi", + "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_tcon_lcd0_out: endpoint { + remote-endpoint = <&tcon_lcd0_out_dsi_out>; + }; + }; + }; + + dphy: d-phy@1ca1000 { + compatible = "allwinner,sun8i-r40-mipi-dphy", + "allwinner,sun6i-a31-mipi-dphy"; + reg = <0x01ca1000 0x1000>; + clocks = <&ccu CLK_BUS_MIPI_DSI>, + <&tcon_top CLK_TCON_TOP_DSI>; + clock-names = "bus", "mod"; + resets = <&ccu RST_BUS_MIPI_DSI>; + status = "disabled"; + #phy-cells = <0>; + }; + hdmi: hdmi@1ee0000 { compatible = "allwinner,sun8i-r40-dw-hdmi", "allwinner,sun8i-a83t-dw-hdmi";