From patchwork Tue Sep 20 12:06:45 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 9341547 X-Patchwork-Delegate: horms@verge.net.au 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 59958601C2 for ; Tue, 20 Sep 2016 12:15:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4964D29263 for ; Tue, 20 Sep 2016 12:15:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3E0D729495; Tue, 20 Sep 2016 12:15:18 +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=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D77DA29263 for ; Tue, 20 Sep 2016 12:15:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752931AbcITMPR (ORCPT ); Tue, 20 Sep 2016 08:15:17 -0400 Received: from mail-pa0-f67.google.com ([209.85.220.67]:33095 "EHLO mail-pa0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752731AbcITMPQ (ORCPT ); Tue, 20 Sep 2016 08:15:16 -0400 Received: by mail-pa0-f67.google.com with SMTP id oz2so874848pac.0 for ; Tue, 20 Sep 2016 05:15:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:date:message-id:subject; bh=FDe/XOnD11N8lXIBVWmlsfAthW5o24O361E1QFnPXiI=; b=JvmUyMPZQ2+c9wT+cOgTSccyErFrcQyfobxaFP0u4MHzL67OZnf8vgoBYT6N3G+oJt 6YodRQ8MbAUfN0XgrVBABJbc1WniYPljKKLsnEQOfve5rtQnX2nQUX6GzhF/bLEzfy40 QPPrOomwA5CKvABCpOaFzlqknGEyUg1dhNRhJaaclnRtX5lnHRe//ywWMP2T+OnmlYQF I3ZuDgRrUVgLbeguh19lWMQPn7H8GlEt51tItAAX0cK3eG+wAJm018QiUCZPBrXvrZRP 72eC7gNh3d+YCkJomYd+6u8DG0Vhbq4V7OvQ7ZBODKp1XHX7iKbIZSACRwNfpZH/BqS3 6C6g== 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:date:message-id:subject; bh=FDe/XOnD11N8lXIBVWmlsfAthW5o24O361E1QFnPXiI=; b=d0DogPOqOLQ5vnsjc8BqW2BuPOKjSs9M8j6M3aHKyNFF+bc8a+td9khhGgOYyQ3TyE qDfNFTBB2WwINmovW46Vm9RLUdd5kZ2TTcPyGq56kAtpghczBF6vMYYpM/6ZmkaAgrz7 O7LiGGZXfS7uXmjscUZDWNcngC3wwrEPFrjociCh4Lv4hHOorxwbXvZXXAtSxOw+UBUv JQkKxDntyOwebN3NZxohi5B7vVXojepFwzs01/65nz6MGMfwk65Kul/GQR+Tc7O3ydiy 3NwGY/7Y/j0/NyKiD/8Zb6+jJDbwkJvTcYOJ95n35GL/yP1cMvBYVJRfetMzJjKwaSJ6 OIOQ== X-Gm-Message-State: AE9vXwNKfh7Rt+fM3oSkD+O97FUBhws0q9pJVjmnd0yecUowzidM0aECgCo8MXDOtBhHoQ== X-Received: by 10.66.149.138 with SMTP id ua10mr37335764pab.146.1474373715934; Tue, 20 Sep 2016 05:15:15 -0700 (PDT) Received: from [127.0.0.1] (s214090.ppp.asahi-net.or.jp. [220.157.214.90]) by smtp.gmail.com with ESMTPSA id 21sm30661486pfo.80.2016.09.20.05.15.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Sep 2016 05:15:14 -0700 (PDT) From: Magnus Damm To: linux-renesas-soc@vger.kernel.org Cc: Magnus Damm Date: Tue, 20 Sep 2016 21:06:45 +0900 Message-Id: <20160920120645.14819.80249.sendpatchset@little-apple> Subject: [PATCH/RFC] ARM: dts: r8a7790: IPMMU-MX DU prototype Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Magnus Damm These two hunks of code enable the r8a7790 IPMMU-MX instance together with the DU device on r8a7790. Depending on kernel version LPAE may need to be enabled before the IPMMU driver becomes available. Useful to test the IPMMU with the DU via the VGA port on r8a7790 Lager. # modetest -M rcar-du -s 60:800x600 Not-Yet-Signed-off-by: Magnus Damm --- Tested with renesas-drivers-2016-09-13-v4.8-rc6 arch/arm/boot/dts/r8a7790.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- 0001/arch/arm/boot/dts/r8a7790.dtsi +++ work/arch/arm/boot/dts/r8a7790.dtsi 2016-09-20 20:17:26.000000000 +0900 @@ -985,6 +985,7 @@ <&mstp7_clks R8A7790_CLK_LVDS0>, <&mstp7_clks R8A7790_CLK_LVDS1>; clock-names = "du.0", "du.1", "du.2", "lvds.0", "lvds.1"; + iommus = <&ipmmu_mx 15>, <&ipmmu_mx 16>; status = "disabled"; ports { @@ -1893,7 +1894,7 @@ interrupts = , ; #iommu-cells = <1>; - status = "disabled"; + status = "okay"; }; ipmmu_rt: mmu@ffc80000 {