From patchwork Tue Sep 26 07:55:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nickey Yang X-Patchwork-Id: 9971443 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0086460365 for ; Tue, 26 Sep 2017 08:11:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E462A287E9 for ; Tue, 26 Sep 2017 08:11:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D8ABE28919; Tue, 26 Sep 2017 08:11:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 52F87288F1 for ; Tue, 26 Sep 2017 08:11:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=2fasvxNV6cOrTle8SRCUQjrp0eciGtEDqJ45RtiQTA4=; b=HdX8O/AP4NfBlDYZBhxrJ+/TkI EitE5Z+swROUAPZm+I5xjEEo3Yio4QyATBbrmIyB94Fhbhv2YUJHbur/oTpAB1nfRJkDOG8RGKx8X 5uG+mkQQ5ldPCZjyHPYOFa1i4xMLvSGrrEkXaJwGtZwxtxap+rOTxYJBlS+7V9Y/srTgFo0p/x7RK laBLNYPUQCz75QixVX1+IvvwwdH7qrFy423aymHGSmiKnMRhnf+DkoF6pLFPx4vkBx5LoRwxDt+dF zD5leNMGOqzW+0aUFKxbxxZKClxslgcWVBznpNoQYgNSqpKhIB+SOuko4xeLOW7MkAF9m0jTZJRo8 EUZP74iQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dwky7-0003h4-IF; Tue, 26 Sep 2017 08:11:51 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dwky5-0003V8-6W for linux-rockchip@bombadil.infradead.org; Tue, 26 Sep 2017 08:11:49 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Tt6KZ0YqQ8WjY0P8DTF54hxdj/gnAAe8rqCgfGAJspo=; b=cprlrF0mzi5qrmq7gdByHpdqc QlmEHMhyL5Hm3Y6PRRwWhBBSYT/t+DQ/sIG3XbSVp+sLZ5xGX6JSfqNnAC4ub88aQd0RAxoJzhP9A 9DmNWf7IqsZQ2dTVAnWNkLG83tdVDQtYcvp1mxXBuWbrynzrgKnL6HTnxRt5phDWUnZT0gZHaFH8/ PxgkLYBAM+AfaHFk0O0VTjHc2mZC05ayH6f+0pgVIvwb6m4IeORVtE1tzlh97qGzI71wTTrZd2tRS 3moG109XbDl2EZoY5LhiAn3KW/s9Uf5kZflB746omfCngQQd/og0e2w3DE8BS8COEjeZ0nprmieEG 6sB0UnEhQ==; Received: from mail-pg0-f65.google.com ([74.125.83.65]) by casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dwkjV-0002L8-Gv for linux-rockchip@lists.infradead.org; Tue, 26 Sep 2017 07:56:47 +0000 Received: by mail-pg0-f65.google.com with SMTP id m30so6337815pgn.5 for ; Tue, 26 Sep 2017 00:56:25 -0700 (PDT) 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; bh=Tt6KZ0YqQ8WjY0P8DTF54hxdj/gnAAe8rqCgfGAJspo=; b=aX4ZU1o4h/Oes4ziI5BVY2jsriVQ4LMGeoQCnxJt850QpaL2cpPSacpYOAiAU7XyAU vBJz0kjKhpQfM9RFcXar1xr9VR7SFeFResX7Z7IpL0Nr2BzDKvApsKt2MX9SEsmk3tjf nz+O6u+zkXgfFpg4mIvgR/It6yGMdLOj/u9MVovotROJ8uW+DrtLF3Fs6aPD1v9eX9Ra Got61KRUj1eYJlM3q01RRzpu0lPlcNfajIywLypdQyqUMbM2Nm04ItOH9bmUPEQAE7de YmfDhmkuVbux+428Q8sXo6Mw5/OKfEVAK8K/zVLdZSdCGxsVQDqSOSwOTQozE5Zfrgp0 21ow== X-Gm-Message-State: AHPjjUjZcQkbhC1zNlgfQeHIptJwjE3cqrWf/tONZpbM6jn05U6vg7ZF 4IZ/5TY1qVOQvabk/7kJM75utFJz X-Google-Smtp-Source: AOwi7QD2BuGRGnzuD07QofsfCFDO/Yo22TbY/GNO71NGPBZih6+vMSLt3KL9f1Sx//uIlWEhXW3WOg== X-Received: by 10.99.42.11 with SMTP id q11mr9999790pgq.7.1506412583674; Tue, 26 Sep 2017 00:56:23 -0700 (PDT) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id n12sm16116908pfb.131.2017.09.26.00.56.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 26 Sep 2017 00:56:23 -0700 (PDT) From: Nickey Yang To: mark.yao@rock-chips.com, robh+dt@kernel.org, heiko@sntech.de, mark.rutland@arm.com, airlied@linux.ie Subject: [PATCH v2 8/8] arm64: dts: rockchip: add mipi_dsi1 support for rk3399 Date: Tue, 26 Sep 2017 15:55:23 +0800 Message-Id: <1506412523-1766-8-git-send-email-nickey.yang@rock-chips.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1506412523-1766-1-git-send-email-nickey.yang@rock-chips.com> References: <1506412523-1766-1-git-send-email-nickey.yang@rock-chips.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170926_085645_707977_0BBAC9D6 X-CRM114-Status: UNSURE ( 8.82 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: bivvy.bi@rock-chips.com, hl@rock-chips.com, briannorris@chromium.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-rockchip@lists.infradead.org, nickey.yang@rock-chips.com, seanpaul@chromium.org, zyw@rock-chips.com, xbl@rock-chips.com MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds the mipi_dsi1 related needed information. e.g.: interrupts, grf, clocks, ports and so on. Signed-off-by: Nickey Yang --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 39 ++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi index ab7629c..82c03fa 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi @@ -1515,6 +1515,11 @@ reg = <2>; remote-endpoint = <&hdmi_in_vopl>; }; + + vopl_out_mipi1: endpoint@3 { + reg = <3>; + remote-endpoint = <&mipi1_in_vopl>; + }; }; }; @@ -1562,6 +1567,11 @@ reg = <2>; remote-endpoint = <&hdmi_in_vopb>; }; + + vopb_out_mipi1: endpoint@3 { + reg = <3>; + remote-endpoint = <&mipi1_in_vopb>; + }; }; }; @@ -1653,6 +1663,35 @@ }; }; + mipi_dsi1: mipi@ff968000 { + compatible = "rockchip,rk3399-mipi-dsi", "snps,dw-mipi-dsi"; + reg = <0x0 0xff968000 0x0 0x8000>; + interrupts = ; + clocks = <&cru SCLK_DPHY_PLL>, <&cru PCLK_MIPI_DSI1>, + <&cru SCLK_DPHY_TX1RX1_CFG>, <&cru PCLK_VIO_GRF>; + clock-names = "ref", "pclk", "phy_cfg", "grf"; + power-domains = <&power RK3399_PD_VIO>; + rockchip,grf = <&grf>; + status = "disabled"; + + ports { + mipi1_in: port { + #address-cells = <1>; + #size-cells = <0>; + + mipi1_in_vopb: endpoint@0 { + reg = <0>; + remote-endpoint = <&vopb_out_mipi1>; + }; + + mipi1_in_vopl: endpoint@1 { + reg = <1>; + remote-endpoint = <&vopl_out_mipi1>; + }; + }; + }; + }; + edp: edp@ff970000 { compatible = "rockchip,rk3399-edp"; reg = <0x0 0xff970000 0x0 0x8000>;