From patchwork Wed Jul 12 16:03:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacob Chen X-Patchwork-Id: 9837093 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 25D50602BD for ; Wed, 12 Jul 2017 16:05:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 15E63285E7 for ; Wed, 12 Jul 2017 16:05:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 099D428615; Wed, 12 Jul 2017 16:05:11 +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 A4C52285E7 for ; Wed, 12 Jul 2017 16:05:10 +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=63Y8ITtReje/H1QWikl9+nNdIKNI1baBSkw9haqc3Uo=; b=ugnrkSblZjFVfEXmdRb91r9/By 8s5ujz+/XjQdxXVK9LR9Eur+pcCF5ZzJAAyjp5veufHdVCwaRtxjWbaV/Ct/hmms4sJSh5uDKiJW8 ZttB5Qt4VMTGxTDKFDnr4ra0AntVQTCAZmLAUCywYq7jSUmbMPG2LcKFlba89kNNHk385Q6FI32Wa 6Oz8OKfWfvZBTo++5HKXaECtIIqvmCokLQ92SEf+oM0xC0Dq4J4SSXI4nT6Y+xXR7mmk58rXFwatX Kt+NEoX5X3JgGS47zqxSAtq1LdRdzcJDqXORDXsS0oRHEi3wfvvFqzgBPogp58QqNwvY7jluIWknu 25P0Bc1g==; 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 1dVK8T-0007Re-Tu; Wed, 12 Jul 2017 16:05:09 +0000 Received: from mail-pf0-f195.google.com ([209.85.192.195]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dVK8A-0006P4-5t; Wed, 12 Jul 2017 16:04:52 +0000 Received: by mail-pf0-f195.google.com with SMTP id c24so3749764pfe.1; Wed, 12 Jul 2017 09:04:29 -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=b70LQ5mVqxGMnOrwsGLcfqg83tOL74Qw1U4+vPmZ1JE=; b=lcxz4cVpfYqBkUcs8XG4YHbYfV/TbtbhWoApBLzvXeb+aMB/VakZeI5b4Wn2bir42b Z9+v0X7tNk6N2ltY85xlpmRFMmexcGU1Z+Bb5TvT05wTWFrWxofmy4gclpFZeHThF460 tCyS04mzfFEUUDfbmdHVZvA1UIwcDXvBpMs/OFvsUklRdIVJBwklquPngVJe1zcX79EZ qVOGCS6nW/L8p1tEXdRd8xx+l8+gPUkrU83u4XfZo1SzRQFmlM+x9r4v/waGgE2LfRaD Eapn6vegT6dbK9H9nN9BGneIwJDLuc1dlhXM54hPEqWBI8aOkCoKVXv3Q48VY7tFy0/O sNWg== X-Gm-Message-State: AIVw113oeH2ck6nUgcDdwnQPztVOReRIWT1qUEdqztDoUAk0DGW0vGWp s2Op4U11vc4Dow/H X-Received: by 10.84.217.156 with SMTP id p28mr5065743pli.206.1499875468971; Wed, 12 Jul 2017 09:04:28 -0700 (PDT) Received: from chen-MacBookAir.lan ([222.76.56.149]) by smtp.gmail.com with ESMTPSA id d70sm6662017pfg.132.2017.07.12.09.04.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 12 Jul 2017 09:04:28 -0700 (PDT) From: Jacob Chen To: linux-rockchip@lists.infradead.org Subject: [PATCH 1/5] arm64: dts: rockchip: Add rk3399 vop and display-subsystem Date: Thu, 13 Jul 2017 00:03:51 +0800 Message-Id: <1499875435-23944-2-git-send-email-jacob-chen@iotwrt.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1499875435-23944-1-git-send-email-jacob-chen@iotwrt.com> References: <1499875435-23944-1-git-send-email-jacob-chen@iotwrt.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170712_090450_277247_AEB72C5F X-CRM114-Status: UNSURE ( 7.08 ) 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: devicetree@vger.kernel.org, heiko@sntech.de, kever.yang@rock-chips.com, linux-kernel@vger.kernel.org, Jacob Chen , Yakir Yang , wxt@rock-chips.com, linux-arm-kernel@lists.infradead.org, mark.yao@rock-chips.com MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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..300e500 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 0x1ffc>, <0x0 0xff8f2000 0x0 0x400>; + interrupts = ; + clocks = <&cru ACLK_VOP1>, <&cru DCLK_VOP1>, <&cru HCLK_VOP1>, <&cru DCLK_VOP1_DIV>; + clock-names = "aclk_vop", "dclk_vop", "hclk_vop", "dclk_source"; + 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 0x1ffc>, <0x0 0xff902000 0x0 0x1000>; + interrupts = ; + clocks = <&cru ACLK_VOP0>, <&cru DCLK_VOP0>, <&cru HCLK_VOP0>, <&cru DCLK_VOP0_DIV>; + clock-names = "aclk_vop", "dclk_vop", "hclk_vop", "dclk_source"; + 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>;