From patchwork Thu Nov 30 01:11: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: 10084021 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 1194A6020B for ; Thu, 30 Nov 2017 01:11:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 02B292998B for ; Thu, 30 Nov 2017 01:11:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EB3A829D9F; Thu, 30 Nov 2017 01:11: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_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, 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 ADD562998B for ; Thu, 30 Nov 2017 01:11: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=oQmRbdbzIfhXlxw0G9Em73F0xTPB5eg3kejHUgKkTkA=; b=p6oALX8cLIjBmX bMtG8Z9f/Gl5J15+8OMRimDEiwbowL0G+qYXpt6ujNZHs7FUGOdoXf/5oxRDMLTX2Apw22NYBEj8j t9vSa4mk/BFgGsNkq2rJO6Zb3RcIiZVzH4T2Fe+RutQT3JDfI9hHZ57PKVBbIRAIuuxJ4Tm0fnqdk SKWbtw1MCKTZcsmtAFfx1Yps+MaHT8+RnhkE68MDEyW4/kN167zVVgz+5I4gq9rSzHtdEOMBHv127 29lfLLZLz2TN92yttnWLatgMBHXLuc7BucPtyzKCpfH0aShsT+s+eIcC4upbtrvmLe9LFcEh9gmLR hRjy2cayJDaOaspuFKdA==; 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 1eKDON-0008Qh-Qh; Thu, 30 Nov 2017 01:11:55 +0000 Received: from mail-it0-x243.google.com ([2607:f8b0:4001:c0b::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eKDOJ-0008OT-Ar; Thu, 30 Nov 2017 01:11:53 +0000 Received: by mail-it0-x243.google.com with SMTP id p139so6390232itb.1; Wed, 29 Nov 2017 17:11:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=t9Ksgh4OyQwQafylTBbV44o+XAMsyJqZVWC/Q992VB0=; b=Q+1JM5p69rYoCrfAm8lZ79sXjvvvG03cqFtPyuoEU+uBLTsaTUzwViS19V3W2enc8W 9RUoif8q31zi2Zvy6m3BoZ0DObstGkx8Ka7MRB6gLJye3Fy4jVKh9ZU1ycetapMOYttq YGDJCSFLvU87Q0nEdRHqunktEjOo/mUCSSyjG9TKJ1rD1OJZ9U8oYSlTCq6JBJ5/iQj1 C2kIJ3On7aM2+c9dlyPs8drHZOigxc3Fte3vD+wSuiB9oE5ceJi8BiDYe2Hp8vy0jzrn FiNahOF8UbtKoirKBfzF6Hzm4Mm6RO/S+VhkBUz0aqZIFbKS1fikZnXV+9Of4lOLcp3z 0sIQ== 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=VbJYNgJzj+mavaY54kJ/CoJwan3BWroiL3rSLHz3f7tdJuyDuk7IBxSKWPq8R7QbWN Zc5CBnIPjz+lmE/4X92fwwRf0nObFTvDrxTHqIu72ZpC/JhHN36g+wooO4IYXdCN/Yjn 3WaIkOTOOo1wvEX9yGREYGBPVMCVuT5dwemWkGfwWZxavCWVhtK8Vi/fnrlIK+LQxzcO GAeUcuHTXeVbah5StdVWZJbj4RdvcBCgkVqtnURBy0S1xhxJLHa8m52Rwa45YjVmngDm eY61i/HcAn2uo8QdPsWIIAw/2WWOXm7FRcVgz0J9n4e8Xm3vLh0IPYkBfK/hwSM/B9P6 gz6w== X-Gm-Message-State: AJaThX7u1dnfFX4/uH0J05xRvQSWbQnHlmz3cvsbE48gm75dnx5bo8Ah ahq2rJd/rmKTXq7hWNCPAjs= X-Google-Smtp-Source: AGs4zMYoCHOPjPoX6ZyIEK5AAV9MMZ6QIocsem1e/wIdw6t41CPjS44oeuywdgscSoiYelt0qvzsMw== X-Received: by 10.36.55.136 with SMTP id r130mr963251itr.3.1512004290618; Wed, 29 Nov 2017 17:11:30 -0800 (PST) Received: from google.com ([2620:0:1000:1600:4c49:1dd8:1cd3:15b8]) by smtp.gmail.com with ESMTPSA id o71sm1643704itc.30.2017.11.29.17.11.29 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Wed, 29 Nov 2017 17:11:29 -0800 (PST) Date: Wed, 29 Nov 2017 17:11:27 -0800 From: Brian Norris To: Brian Norris Subject: [PATCH] arm64: dts: rockchip: add mipi_dsi1 support for rk3399 Message-ID: <20171130011127.GB124672@google.com> References: <20171129233541.51337-1-briannorris@chromium.org> <20171130010723.GA133459@google.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20171130010723.GA133459@google.com> 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_171151_450359_0BF40516 X-CRM114-Status: UNSURE ( 9.28 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Heiko Stuebner , Doug Anderson , linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Nickey Yang , mka@chromium.org, Chris Zhong , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=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>;