From patchwork Wed Jun 8 13:26:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shunqian Zheng X-Patchwork-Id: 9164621 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 80523604DB for ; Wed, 8 Jun 2016 13:27:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 72B4B28047 for ; Wed, 8 Jun 2016 13:27:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6787D281F9; Wed, 8 Jun 2016 13:27:52 +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=ham 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 1191E28047 for ; Wed, 8 Jun 2016 13:27:52 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1bAdWR-0003dI-Ew; Wed, 08 Jun 2016 13:27:51 +0000 Received: from mail-pa0-f66.google.com ([209.85.220.66]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1bAdVx-00036l-Rb; Wed, 08 Jun 2016 13:27:22 +0000 Received: by mail-pa0-f66.google.com with SMTP id gp3so603406pac.2; Wed, 08 Jun 2016 06:27:05 -0700 (PDT) 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=02oT7EWPdNEl6+d6VWzGukkH9FKHmwLBhlYlNwoDScM=; b=R+mb04iEKbRv29w2UeBBt+iaN40t+/uNYDkqSz4pYFRiWzeNIVCRKbrmA9TtxwJ/uN eLlPcynhDa2FT1QEr2hkId5ihzDI4s+/FnTTw5CpC0i9jNC1MSqtloMHB6lqIpjL232n PJpa5AHOQ9xofaJ9khW7C0LuNRWUSBaHdv960sfhcO0MePZobcWzBln8WAsczHlbTglr Q0lBwzFsDS2g2UIIjm1W5HEIC2WdDs+vFwdbtvdIigTP7vtGVu/DR6cz0yZ6bP08c/Kv SmJ9mky+CSBqeryL8+ADEZKfbciEP9av9zC4Yn+HPIxhCkJ1fk4DZcoukD4FGdbWDVDA 8w7w== X-Gm-Message-State: ALyK8tKLvvqevNEy0803M7fxhcfzZtOtHK+BJEjKLgy+4s6rzqtofcU4Ox5lILcql6ebIw== X-Received: by 10.66.248.133 with SMTP id ym5mr5817564pac.46.1465392424770; Wed, 08 Jun 2016 06:27:04 -0700 (PDT) Received: from SHUNQIAN-W530.example.org ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id tn7sm2604010pac.29.2016.06.08.06.27.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 08 Jun 2016 06:27:04 -0700 (PDT) From: Shunqian Zheng To: joro@8bytes.org, heiko@sntech.de, robh+dt@kernel.org, mark.rutland@arm.com, linux@armlinux.org.uk, mark.yao@rock-chips.com, airlied@linux.ie, tfiga@google.com, xxm@rock-chips.com Subject: [PATCH v2 4/7] ARM: dts: rockchip: add virtual iommu for display Date: Wed, 8 Jun 2016 21:26:29 +0800 Message-Id: <1465392392-2003-5-git-send-email-zhengsq@rock-chips.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1465392392-2003-1-git-send-email-zhengsq@rock-chips.com> References: <1465392392-2003-1-git-send-email-zhengsq@rock-chips.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160608_062722_043387_59FF7B49 X-CRM114-Status: UNSURE ( 7.79 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.20 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, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-rockchip@lists.infradead.org, iommu@lists.linux-foundation.org, Shunqian Zheng , linux-arm-kernel@lists.infradead.org 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 An virtual iommu without reg or interrupts for display. Adding this according to iommu driver changes. Signed-off-by: Shunqian Zheng --- arch/arm/boot/dts/rk3288.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi index 7fa932f..4cd535f 100644 --- a/arch/arm/boot/dts/rk3288.dtsi +++ b/arch/arm/boot/dts/rk3288.dtsi @@ -219,9 +219,15 @@ clock-names = "timer", "pclk"; }; + display_mmu: virtual-iommu { + compatible = "rockchip,iommu"; + #iommu-cells = <0>; + }; + display-subsystem { compatible = "rockchip,display-subsystem"; ports = <&vopl_out>, <&vopb_out>; + iommus = <&display_mmu>; }; sdmmc: dwmmc@ff0c0000 {