Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1017668imu; Fri, 4 Jan 2019 11:23:11 -0800 (PST) X-Google-Smtp-Source: ALg8bN6zXd3Rp4xnroGD0fvWHm3dfRW71Kao8eP6NOIoGJss/1qTbxwZ6TczSJ8sHmmVTHFqMc+C X-Received: by 2002:a17:902:5a0b:: with SMTP id q11mr9898897pli.186.1546629791329; Fri, 04 Jan 2019 11:23:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546629791; cv=none; d=google.com; s=arc-20160816; b=a5zs9x42aAoJS0x0mtmMHgC+zn747vt3AykPPTQkhbH7n8TChxMh3I5tZiSDIDEdDa GBjgmI4OJ3RRSqUax2ea8D2CbTqnT//1UPm35LoiFFG2XmP9ch6ZdnWcRlrskAHmV2fW /PN9XveI19Rt+4xw6jvFpdg543vfLx/o8/J2TL2gnZuOcKB9eRkiaWDmsAAp1DaJyHi+ KDaayCTNa+IpvrlZzbmAg1vcwkaV4sU1wEdJFBZWrDdQPYBDG/C5MXyF6FSA56Hbc1jk xueviKxbaQXl7bUPpNdwNEZ9JDFQ58KyJDGrLjXHxkpEibEjGTMJYpVmb3tvIJNigojg 5bHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=Q6mPl7JSMZcPTqtfr1PAceZvtQIchhL2DH2BJMv78q0=; b=yhg3vYa6ePAI8TmV1NCNTODQqdQcj4KUoBafcbm/cIFJs2h+0mVK+UdKBDMDoSWkR0 mBzYH65cayGUEWgbwQsnLc6UrdBXJmDaZ7ROcRzr1SdktlvGkfONqUayJwD3zFbU7Hf0 Znf1dMoFruUSEsrJh4k130aUdCtymWexgox+iiwCcU4mLEOP4sBsDAqCJTWMlwdatsFE dkAfemOVxiR30zfodlUuhRdQuImT+s1CGgyfMVF8W/GHnU1sqdSzBwyiopCRFLwjgSh+ UQ1RJ3uGqEF4rsfu1NfSCCK7zKe8TLSXpjiR16wgcgnNQ0SuvGKG7IZmWjWhHP6WUI7C /ReQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v11si13291896pgo.11.2019.01.04.11.22.56; Fri, 04 Jan 2019 11:23:11 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726060AbfADTVk (ORCPT + 99 others); Fri, 4 Jan 2019 14:21:40 -0500 Received: from mga18.intel.com ([134.134.136.126]:26731 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725916AbfADTVk (ORCPT ); Fri, 4 Jan 2019 14:21:40 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Jan 2019 11:21:39 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,439,1539673200"; d="scan'208";a="107019242" Received: from tthayer-hp-z620.an.intel.com ([10.122.105.146]) by orsmga008.jf.intel.com with ESMTP; 04 Jan 2019 11:21:39 -0800 From: thor.thayer@linux.intel.com To: dinguyen@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org, Thor Thayer Subject: [PATCH] arm64: dts: stratix10: Add Stratix10 SMMU support Date: Fri, 4 Jan 2019 13:23:46 -0600 Message-Id: <1546629826-1167-1-git-send-email-thor.thayer@linux.intel.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Thor Thayer Now there are device tree clocks for the ARM64 SMMU, add SMMU support to the Stratix10 Device Tree which includes adding the SMMU node and adding IOMMU stream ids to the SMMU peripherals. Signed-off-by: Thor Thayer --- arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi | 29 +++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi b/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi index b2c9bb664595..e3f5eaa3657d 100644 --- a/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi +++ b/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi @@ -161,6 +161,7 @@ tx-fifo-depth = <16384>; rx-fifo-depth = <16384>; snps,multicast-filter-bins = <256>; + iommus = <&smmu 1>; status = "disabled"; }; @@ -177,6 +178,7 @@ tx-fifo-depth = <16384>; rx-fifo-depth = <16384>; snps,multicast-filter-bins = <256>; + iommus = <&smmu 2>; status = "disabled"; }; @@ -193,6 +195,7 @@ tx-fifo-depth = <16384>; rx-fifo-depth = <16384>; snps,multicast-filter-bins = <256>; + iommus = <&smmu 3>; status = "disabled"; }; @@ -303,6 +306,7 @@ clocks = <&clkmgr STRATIX10_L4_MP_CLK>, <&clkmgr STRATIX10_SDMMC_CLK>; clock-names = "biu", "ciu"; + iommus = <&smmu 5>; status = "disabled"; }; @@ -336,6 +340,29 @@ reg = <0xffd11000 0x1000>; }; + smmu: iommu@fa000000 { + compatible = "arm,mmu-500", "arm,smmu-v2"; + reg = <0xfa000000 0x40000>; + #global-interrupts = <2>; + #iommu-cells = <1>; + clocks = <&clkmgr STRATIX10_L4_MAIN_CLK>; + clock-names = "iommu"; + interrupt-parent = <&intc>; + interrupts = <0 128 4>, /* Global Secure Fault */ + <0 129 4>, /* Global Non-secure Fault */ + /* Non-secure Context Interrupts (32) */ + <0 138 4>, <0 139 4>, <0 140 4>, <0 141 4>, + <0 142 4>, <0 143 4>, <0 144 4>, <0 145 4>, + <0 146 4>, <0 147 4>, <0 148 4>, <0 149 4>, + <0 150 4>, <0 151 4>, <0 152 4>, <0 153 4>, + <0 154 4>, <0 155 4>, <0 156 4>, <0 157 4>, + <0 158 4>, <0 159 4>, <0 160 4>, <0 161 4>, + <0 162 4>, <0 163 4>, <0 164 4>, <0 165 4>, + <0 166 4>, <0 167 4>, <0 168 4>, <0 169 4>; + stream-match-mask = <0x7ff0>; + status = "disabled"; + }; + spi0: spi@ffda4000 { compatible = "snps,dw-apb-ssi"; #address-cells = <1>; @@ -445,6 +472,7 @@ resets = <&rst USB0_RESET>, <&rst USB0_OCP_RESET>; reset-names = "dwc2", "dwc2-ecc"; clocks = <&clkmgr STRATIX10_USB_CLK>; + iommus = <&smmu 6>; status = "disabled"; }; @@ -457,6 +485,7 @@ resets = <&rst USB1_RESET>, <&rst USB1_OCP_RESET>; reset-names = "dwc2", "dwc2-ecc"; clocks = <&clkmgr STRATIX10_USB_CLK>; + iommus = <&smmu 7>; status = "disabled"; }; -- 2.7.4