From patchwork Mon Jul 17 14:16:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacob Chen X-Patchwork-Id: 9845357 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 4F4BE60392 for ; Mon, 17 Jul 2017 14:47:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 41E27274D0 for ; Mon, 17 Jul 2017 14:47:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 36B6C27F7F; Mon, 17 Jul 2017 14:47:21 +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=-1.4 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_SORBS_SPAM 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 E1A6E274D0 for ; Mon, 17 Jul 2017 14:47:20 +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=xNP86eo5aT0IEuUtLtQDF9NW/OYiQOmcJPVhWSg3jJo=; b=I1e7Mm2AnrEeKguAyQIL2Ec/In Xl9xFqdrJlors2qBZSvj/zwc+OaFRAjT1fQ4H9VSSzz3Ucai8IA6vHssnL1tTaSL7rlzaIksrRtqR gCkWsrWAGPdKb+zWYQLsapGppZPqlqwBPDGmQH3n2U+BUrTDmJVZpP8Gno68OoqAARqV0PTt/58fp KdrK3MHlCdz+QfcmG5vDA6mQASCDb0HQNw9wYfce0mrm0YQ2XlmyalEGEdsWH8N51EM1Qol6Tvtg9 vYK8cv1iTmsoWX6EBAi/UYHlyI8H68eNWSA1UKjiiPlabTrtBN7Q6cDNa/FkVO3ab6c/+FdSZ4FES jYJGQ5OQ==; 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 1dX7It-0006tT-Tz; Mon, 17 Jul 2017 14:47:19 +0000 Received: from mail-pg0-f66.google.com ([74.125.83.66]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dX6qM-0004GE-Jg; Mon, 17 Jul 2017 14:17:55 +0000 Received: by mail-pg0-f66.google.com with SMTP id y129so19678998pgy.3; Mon, 17 Jul 2017 07:17:30 -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=HCmN9b+VJWT1mW1a9bzIRLYit7hdCnIx6avgsCLjEzk=; b=j0D5ZZexGwE1mOdswLHFRhNwt6UB1RQ1wh4vFGodrqeEkr+Y7qFMIa0J7566nVXXaM bWGAkGmTjwOusT7vsnyotIJuN+RGq7Com2S0WRf7fezPAsr+rKmfZpmzAMYsIHOpapOn my9j9CTxnsMSJs7he51kis3mCawQZRr4OmFn6Gu+ehRh/8bDmjaPpSG/dQkgJRDGMxJv dAyYW5M2CgBtQ87qQt7uGPTyVD0ZkmlxbYzU35oJbyNHp+wd8tpXVAV9S+cRO++urXPK IW8zkhnTkGhb4gR255bJLG8lqB8+SLpUKojuNSfENVFAMDwv4kDJWVOUlnvR/Plf6b0W aQSg== X-Gm-Message-State: AIVw113fJdC0/7F4byWOJFI5bRtkn/smdcqYUZ18fqMFKKOVUl5tiwXm /8k1yhdwmrpZQZ/lu4E= X-Received: by 10.99.122.3 with SMTP id v3mr28678289pgc.98.1500301049573; Mon, 17 Jul 2017 07:17:29 -0700 (PDT) Received: from chen-MacBookAir.lan ([198.199.94.210]) by smtp.gmail.com with ESMTPSA id g7sm35858650pfj.29.2017.07.17.07.17.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 17 Jul 2017 07:17:29 -0700 (PDT) From: Jacob Chen To: linux-rockchip@lists.infradead.org Subject: [PATCH v2 4/5] arm64: dts: rockchip: add rk3399 mipi nodes Date: Mon, 17 Jul 2017 22:16:58 +0800 Message-Id: <1500301019-9960-5-git-send-email-jacob-chen@iotwrt.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1500301019-9960-1-git-send-email-jacob-chen@iotwrt.com> References: <1500301019-9960-1-git-send-email-jacob-chen@iotwrt.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170717_071751_084371_7480E711 X-CRM114-Status: UNSURE ( 6.66 ) 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: devicetree@vger.kernel.org, Jacob Chen , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, heiko@sntech.de MIME-Version: 1.0 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 Add an mipi node, and also add mipi endpoints to vopb and vopl output port nodes. Signed-off-by: Jacob Chen --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 44 ++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi index c0371af..5c5c9d9 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi @@ -1475,6 +1475,11 @@ #address-cells = <1>; #size-cells = <0>; + vopl_out_mipi: endpoint@0 { + reg = <0>; + remote-endpoint = <&mipi_in_vopl>; + }; + vopl_out_edp: endpoint@1 { reg = <1>; remote-endpoint = <&edp_in_vopl>; @@ -1516,6 +1521,11 @@ remote-endpoint = <&edp_in_vopb>; }; + vopb_out_mipi: endpoint@1 { + reg = <1>; + remote-endpoint = <&mipi_in_vopb>; + }; + }; }; @@ -1531,6 +1541,40 @@ status = "disabled"; }; + mipi_dsi: mipi@ff960000 { + compatible = "rockchip,rk3399-mipi-dsi", "snps,dw-mipi-dsi"; + reg = <0x0 0xff960000 0x0 0x8000>; + interrupts = ; + clocks = <&cru SCLK_MIPIDPHY_REF>, <&cru PCLK_MIPI_DSI0>, + <&cru SCLK_DPHY_TX0_CFG>; + clock-names = "ref", "pclk", "phy_cfg"; + power-domains = <&power RK3399_PD_VIO>; + rockchip,grf = <&grf>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + + mipi_in: port { + #address-cells = <1>; + #size-cells = <0>; + + mipi_in_vopb: endpoint@0 { + reg = <0>; + remote-endpoint = <&vopb_out_mipi>; + }; + mipi_in_vopl: endpoint@1 { + reg = <1>; + remote-endpoint = <&vopl_out_mipi>; + }; + }; + }; + }; + edp: edp@ff970000 { compatible = "rockchip,rk3399-edp"; reg = <0x0 0xff970000 0x0 0x8000>;