From patchwork Mon Jul 17 14:16:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacob Chen X-Patchwork-Id: 9845229 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 37E6C60386 for ; Mon, 17 Jul 2017 14:18:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 29A6928459 for ; Mon, 17 Jul 2017 14:18:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1DEDA284B5; Mon, 17 Jul 2017 14:18:19 +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.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=unavailable 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 9EF7028459 for ; Mon, 17 Jul 2017 14:18:18 +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=6WWQC2en81gvf9YS/jCTVY7OtZFyUoJt89hqwKL06gw=; b=BnXy5VYNHlmChU3LN9gouNOy+v GyETdRrK8XyWk/x4QH7SP6KcSJd9Z0CUSXFFK/QOVg17sLdv1WUt5502qQOv6vblWBqHYdV2yd+EU ICX10GkQtkLM57rHThF2KqSnwoQHRL3LxlDwyZxE6AG0RBb7Clg77WBPet6R7tByzKlokqDUiHLbg WBaYqOcH04V8eOJgsZaiLET6HHzASTaH6bliw319cFtwZYrW+vqeqkEVfNRqDHEGjm7leEYsRNFPc 5mZ8U0BLjmQC+k/MOFHMw++9n3Dgmhe9rLSbdtGQXztthYUs5WFUqD90tCCUr6exH5pQ1lP8eIhG/ zn4TzleQ==; 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 1dX6qj-0004qL-Ue; Mon, 17 Jul 2017 14:18:13 +0000 Received: from mail-pf0-f194.google.com ([209.85.192.194]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dX6qD-0004Fm-L5; Mon, 17 Jul 2017 14:17:51 +0000 Received: by mail-pf0-f194.google.com with SMTP id a11so3475231pfj.3; Mon, 17 Jul 2017 07:17:17 -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=KX+R6gAGaxvjGaKDHHkdJQra7dk3nWN45/FLYK0ZaU4=; b=Xx+8lDlJTx3672A9yzRMLu813WTqRAVSplbd4lvyTM98wt0lAVXsv0vwiNGVIJNKof ECb+/0zf8Ok1RZ3YErMVm6FUei4cw4RqtLNGsOYWLRhF6OrSa+OT9raYaUlk1N/oop9Q DgBKO4Z8fCmdgZdXREpqB99vkAw1VoeUBzy4N8W4YVuXOEMZKt+JlPzu4yLb0lBEi3rR RK5FTb8Wnq4OCU/RfhMH/D85m8IpukF68DUkb5njnxLFIMPZ9llbaX8DlR90xRQ6nn4w xNJ3/1Qw05hS/SCnQ0TdMOG2zr+QjOQX9/EZLzO3jlUo0n9vQek3Hj5SSIGQ0IRHlBh1 YYGA== X-Gm-Message-State: AIVw113aqn09nr4PKSbsrdNLjiezgSR7/uvg6Gyq7xW54nG8K/3dq40h nxVOdR6exraFiQFZDGw= X-Received: by 10.84.224.133 with SMTP id s5mr29679770plj.93.1500301037186; Mon, 17 Jul 2017 07:17:17 -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.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 17 Jul 2017 07:17:16 -0700 (PDT) From: Jacob Chen To: linux-rockchip@lists.infradead.org Subject: [PATCH v2 1/5] arm64: dts: rockchip: Add rk3399 vop and display-subsystem Date: Mon, 17 Jul 2017 22:16:55 +0800 Message-Id: <1500301019-9960-2-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_071742_586427_C05A8F6C X-CRM114-Status: UNSURE ( 7.11 ) 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, heiko@sntech.de, linux-kernel@vger.kernel.org, Jacob Chen , Yakir Yang , Caesar Wang , linux-arm-kernel@lists.infradead.org, Mark Yao 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: Mark Yao Add devicetree nodes for rk3399 VOP (Video Output Processors), and the top level display-subsystem root node. Later patches add endpoints (eDP, HDMI, MIPI, etc) that attach to the VOPs' output ports. Signed-off-by: Mark Yao Signed-off-by: Yakir Yang Signed-off-by: Caesar Wang Signed-off-by: Jacob Chen --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 65 ++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi index e795135..978057d 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi @@ -1455,6 +1455,71 @@ status = "disabled"; }; + vopl: vop@ff8f0000 { + compatible = "rockchip,rk3399-vop-lit"; + reg = <0x0 0xff8f0000 0x0 0x3efc>; + interrupts = ; + clocks = <&cru ACLK_VOP1>, <&cru DCLK_VOP1>, <&cru HCLK_VOP1>; + clock-names = "aclk_vop", "dclk_vop", "hclk_vop"; + resets = <&cru SRST_A_VOP1>, <&cru SRST_H_VOP1>, <&cru SRST_D_VOP1>; + reset-names = "axi", "ahb", "dclk"; + power-domains = <&power RK3399_PD_VOPL>; + iommus = <&vopl_mmu>; + status = "disabled"; + + vopl_out: port { + #address-cells = <1>; + #size-cells = <0>; + }; + }; + + vopl_mmu: iommu@ff8f3f00 { + compatible = "rockchip,iommu"; + reg = <0x0 0xff8f3f00 0x0 0x100>; + interrupts = ; + interrupt-names = "vopl_mmu"; + clocks = <&cru ACLK_VOP1>, <&cru HCLK_VOP1>; + clock-names = "aclk", "hclk"; + power-domains = <&power RK3399_PD_VOPL>; + #iommu-cells = <0>; + status = "disabled"; + }; + + vopb: vop@ff900000 { + compatible = "rockchip,rk3399-vop-big"; + reg = <0x0 0xff900000 0x0 0x3efc>; + interrupts = ; + clocks = <&cru ACLK_VOP0>, <&cru DCLK_VOP0>, <&cru HCLK_VOP0>; + clock-names = "aclk_vop", "dclk_vop", "hclk_vop"; + resets = <&cru SRST_A_VOP0>, <&cru SRST_H_VOP0>, <&cru SRST_D_VOP0>; + reset-names = "axi", "ahb", "dclk"; + power-domains = <&power RK3399_PD_VOPB>; + iommus = <&vopb_mmu>; + status = "disabled"; + + vopb_out: port { + #address-cells = <1>; + #size-cells = <0>; + }; + }; + + vopb_mmu: iommu@ff903f00 { + compatible = "rockchip,iommu"; + reg = <0x0 0xff903f00 0x0 0x100>; + interrupts = ; + interrupt-names = "vopb_mmu"; + clocks = <&cru ACLK_VOP0>, <&cru HCLK_VOP0>; + clock-names = "aclk", "hclk"; + power-domains = <&power RK3399_PD_VOPB>; + #iommu-cells = <0>; + status = "disabled"; + }; + + display-subsystem { + compatible = "rockchip,display-subsystem"; + ports = <&vopl_out>, <&vopb_out>; + }; + pinctrl: pinctrl { compatible = "rockchip,rk3399-pinctrl"; rockchip,grf = <&grf>;