From patchwork Wed Nov 9 13:21:56 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caesar Wang X-Patchwork-Id: 9419243 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 A96AD60512 for ; Wed, 9 Nov 2016 13:25:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9B4B02914A for ; Wed, 9 Nov 2016 13:25:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8E5112923D; Wed, 9 Nov 2016 13:25:44 +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=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0A0462914A for ; Wed, 9 Nov 2016 13:25:44 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1c4SrK-0000bM-OL; Wed, 09 Nov 2016 13:24:11 +0000 Received: from mail-pf0-f193.google.com ([209.85.192.193]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1c4SqJ-00088t-Rc; Wed, 09 Nov 2016 13:23:09 +0000 Received: by mail-pf0-f193.google.com with SMTP id i88so281275pfk.2; Wed, 09 Nov 2016 05:22:48 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=52tqDskcdcGoeQoILj1a8xYmqg85IpKJnpjYMDu79Wo=; b=AT0rVaYeRKAqtCHMLirBjUpf/5VSWAR08cXhb3jdmI0d802AitUAVRQ3n9magBkCEr cURrLXsgd1vfqP5P3SZhgI4HuD5g4OIHGuXaidHYbVggdg4Zsjj2yCROGwIGpE9hPYhY xj+5Wu91oQwz/xgCu/NWfHD/bT5oV+DrHwp71SoOV/T37FILhk+Xg87mbtzFA08G13rx JTjyYhGNstbZgIyMdE0r4/h4XjojkWRC/bm/sc9aqvqmPdXJnrjZ3pUlDiMRhdlvj0/d lwH8FqiP+LYcr1tnROBDWn3wRUFAZ84Q49WgZ7KcF+Y0Lxzu1oeIQ3jg3xvaEIn3zL1o SBwA== X-Gm-Message-State: ABUngvey2bCZa5qbs3ehC2AQM+7Llk7XWPIk5hGdGuQm/9Te6YF6FTMZY422MW0C2Yj+9w== X-Received: by 10.98.61.152 with SMTP id x24mr33153134pfj.88.1478697767886; Wed, 09 Nov 2016 05:22:47 -0800 (PST) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id p14sm56142360par.25.2016.11.09.05.22.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 Nov 2016 05:22:46 -0800 (PST) From: Caesar Wang To: Heiko Stuebner Subject: [PATCH v2 4/9] arm64: dts: rockchip: add eDP device node for rk3399 Date: Wed, 9 Nov 2016 21:21:56 +0800 Message-Id: <1478697721-2323-5-git-send-email-wxt@rock-chips.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1478697721-2323-1-git-send-email-wxt@rock-chips.com> References: <1478697721-2323-1-git-send-email-wxt@rock-chips.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161109_052308_049158_CFDEEBC2 X-CRM114-Status: GOOD ( 10.06 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Brian Norris , Catalin Marinas , Xing Zheng , linux-kernel@vger.kernel.org, Yakir Yang , Will Deacon , Douglas Anderson , tfiga@chromium.org, linux-rockchip@lists.infradead.org, Rob Herring , eddie.cai@rock-chips.com, zhangqing , David Wu , Jianqun Xu , linux-arm-kernel@lists.infradead.org, Caesar Wang 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 From: Yakir Yang Add rk3399 eDP device node, and connect to VOP device node with remote endpoint. Signed-off-by: Yakir Yang Signed-off-by: Caesar Wang (Caesar rebase the lastest and solve the conflict) --- Changes in v2: - Yakir posted the original patch on - https://patchwork.kernel.org/patch/9191777 arch/arm64/boot/dts/rockchip/rk3399.dtsi | 52 ++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi index f1d289a..6544910 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi @@ -1304,6 +1304,11 @@ vopl_out: port { #address-cells = <1>; #size-cells = <0>; + + vopl_out_edp: endpoint@0 { + reg = <0>; + remote-endpoint = <&edp_in_vopl>; + }; }; }; @@ -1330,6 +1335,11 @@ vopb_out: port { #address-cells = <1>; #size-cells = <0>; + + vopb_out_edp: endpoint@0 { + reg = <0>; + remote-endpoint = <&edp_in_vopb>; + }; }; }; @@ -1342,6 +1352,41 @@ status = "disabled"; }; + edp: edp@ff970000 { + compatible = "rockchip,rk3399-edp"; + reg = <0x0 0xff970000 0x0 0x8000>; + interrupts = ; + clocks = <&cru PCLK_EDP>, <&cru PCLK_EDP_CTRL>; + clock-names = "dp", "pclk"; + resets = <&cru SRST_P_EDP_CTRL>; + reset-names = "dp"; + rockchip,grf = <&grf>; + status = "disabled"; + pinctrl-names = "default"; + pinctrl-0 = <&edp_hpd>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + edp_in: port@0 { + reg = <0>; + #address-cells = <1>; + #size-cells = <0>; + + edp_in_vopb: endpoint@0 { + reg = <0>; + remote-endpoint = <&vopb_out_edp>; + }; + + edp_in_vopl: endpoint@1 { + reg = <1>; + remote-endpoint = <&vopl_out_edp>; + }; + }; + }; + }; + display_subsystem: display-subsystem { compatible = "rockchip,display-subsystem"; ports = <&vopl_out>, <&vopb_out>; @@ -1469,6 +1514,13 @@ }; }; + edp { + edp_hpd: edp-hpd { + rockchip,pins = + <4 23 RK_FUNC_2 &pcfg_pull_none>; + }; + }; + gmac { rgmii_pins: rgmii-pins { rockchip,pins =