From patchwork Thu Nov 30 01:07:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Norris X-Patchwork-Id: 10084011 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 B15846020B for ; Thu, 30 Nov 2017 01:07:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9B73829D9D for ; Thu, 30 Nov 2017 01:07:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8D9C829D9F; Thu, 30 Nov 2017 01:07:56 +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=-0.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, FSL_HELO_FAKE, RCVD_IN_DNSWL_MED autolearn=no 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 33EC329D9D for ; Thu, 30 Nov 2017 01:07:56 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=s13fWrmcVCxmDPnUTjK78u00pr019OldG79/RfGl2Fg=; b=iy8zcsE29zGz7c pgVvclE5WOtvCQZtUz4rrpQcaL+vY5Zs4/l8qlnJy0vL7+oxHQ2aMc9TtfiYno38VLTBV38ZuWuLF XNNlY69SsEmh5fANuKdHPYXMgyKqoRnZrkHVPpK65iDxTeXYH9NZBuZXU217FbtUu9lD6Rrkh7xMt zyamDeQ5vk6Xi1pa4cF4hYuDueDwqFkA6HELzB4DRLtia4cn1d+K2YN7uUWAjhXaFytCHI68iJred +JfLDXFYTh7XEQpwHPf4w6eNK4ChR9s5EweeT3cdbhtwYcQ9hBW8gDxGfS2DmSNho/++BlSlAMDlk bi9OpT1x6WDWdx+snQKA==; 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 1eKDKV-0005VC-AG; Thu, 30 Nov 2017 01:07:55 +0000 Received: from mail-it0-x241.google.com ([2607:f8b0:4001:c0b::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eKDKS-0005Td-JM for linux-rockchip@lists.infradead.org; Thu, 30 Nov 2017 01:07:54 +0000 Received: by mail-it0-x241.google.com with SMTP id r6so6486020itr.3 for ; Wed, 29 Nov 2017 17:07:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=t9Ksgh4OyQwQafylTBbV44o+XAMsyJqZVWC/Q992VB0=; b=RG7ZWPKDktMBr00X+dZRSOKe/C9BEJ4fK9GqLYmdlo/lZFrWYlFFK0078jsKAYrfOP nwhE4X7uao0GyhgF0qh1bO//L23Vq/oVirbC4WwSpUZXQkK09EZbyUY7SDBSBGwg9GGQ WL2YFw1HO8hX4lN218baXXSOR7QgH5cvdotko= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=t9Ksgh4OyQwQafylTBbV44o+XAMsyJqZVWC/Q992VB0=; b=hprEJcI0rvIZJu/htz7WRvIsIAmB0nx/Jh9YKwplJNlkrbBVNeUQEdQj9dH3sFMABN nV8225ocMyQuU8WJq/qc7c2hq2KV+oT/ZrFXDvSsVOxggM7dt0BJREhpp427WHmFeiJ3 C5NfkfBVyKCU33iBEG6cqKYnqWK5ygy+rB+3f6qtHkMrzObrtCOTPQeBzmJNfjBFiCAz wL/tTjCmWa5ptTvvOVDbwi5iYvJAW2NwVbkQ8xB6Dv4Kl7UzuSe7LJbrb1zL5lmIZ4MT sV1UKpH5F52JiDAPh1OcX3ClLLWxBVr8MvwevzpMsXzZQex2z/hkzhq9OYQEWCwdXu2O DbJw== X-Gm-Message-State: AJaThX7TrnsqD/8Qu3VIUPexpvwoai0JVcqAvI2GS28Vz9x9CmERFjCt sUYhDsaJuFgZ91uo/3kdAtJFZw== X-Google-Smtp-Source: AGs4zMY15jDEiglodvTnMtxnGsxi63pt2JBR5mPqAU8D1MrEXIgXltKhfkBugGzOU6Xnuxm5GWEioA== X-Received: by 10.36.254.71 with SMTP id w68mr1004853ith.24.1512004050687; Wed, 29 Nov 2017 17:07:30 -0800 (PST) Received: from google.com ([2620:0:1000:1600:4c49:1dd8:1cd3:15b8]) by smtp.gmail.com with ESMTPSA id 14sm1382791ior.48.2017.11.29.17.07.29 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Wed, 29 Nov 2017 17:07:29 -0800 (PST) Date: Wed, 29 Nov 2017 17:07:27 -0800 From: Brian Norris To: Heiko Stuebner Subject: [PATCH] arm64: dts: rockchip: add rk3399 DSI0 reset Message-ID: <20171130010723.GA133459@google.com> References: <20171129233541.51337-1-briannorris@chromium.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20171129233541.51337-1-briannorris@chromium.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171129_170752_721253_57382A9A X-CRM114-Status: UNSURE ( 9.01 ) 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: linux-kernel@vger.kernel.org, Doug Anderson , linux-rockchip@lists.infradead.org, Nickey Yang , mka@chromium.org, Chris Zhong , linux-arm-kernel@lists.infradead.org Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Nickey Yang This patch adds the information for the secondary MIPI DSI controller, e.g., interrupts, grf, clocks, ports and so on. Mirrors the existing definition for dsi0. Signed-off-by: Nickey Yang Signed-off-by: Brian Norris --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 45 ++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi index 8940a3dc3670..e7e882d06c68 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi @@ -1526,6 +1526,11 @@ reg = <2>; remote-endpoint = <&hdmi_in_vopl>; }; + + vopl_out_mipi1: endpoint@3 { + reg = <3>; + remote-endpoint = <&mipi1_in_vopl>; + }; }; }; @@ -1573,6 +1578,11 @@ reg = <2>; remote-endpoint = <&hdmi_in_vopb>; }; + + vopb_out_mipi1: endpoint@3 { + reg = <3>; + remote-endpoint = <&mipi1_in_vopb>; + }; }; }; @@ -1674,6 +1684,41 @@ }; }; + 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>; + resets = <&cru SRST_P_MIPI_DSI1>; + reset-names = "apb"; + rockchip,grf = <&grf>; + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + mipi1_in: port@0 { + reg = <0>; + #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>;