From patchwork Thu Jan 31 00:00:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 157092 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp6556138jaa; Wed, 30 Jan 2019 16:00:25 -0800 (PST) X-Google-Smtp-Source: ALg8bN7C+YAERXCiYD6QbNfkFJDjRazPKHVaej5muvUnkKUcFdSZ1R3anuBh89a5ghQ8h1TVtk8N X-Received: by 2002:a17:902:a58c:: with SMTP id az12mr26036651plb.299.1548892825714; Wed, 30 Jan 2019 16:00:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548892825; cv=none; d=google.com; s=arc-20160816; b=QOcqf7jPzvsrWMO9MbfB4eaf/9ywrcfEiVa3WVtpBHvkRlgK20UnLsUnS+rKyNaKEl CAJLWPueP3vSNPpIm4DShArIga5vGG28M5i0+oBlL/v8mgTragRv+sY2sdNZj+xXnzs3 ileQfi9zKTkvJ8LT0mTZ15qEaq7qvd4yRO7Q5g1TFiOfjgr+c9SAAaF+rUgipuFTR9YP JiJRMQrJqBZUdR6Agj+sNq9JrevvO9skNub4TwANysl0hksl9JJk0YUNRuBsIB29oYy3 Kkr71WXChn4S9I5dkCVgs5DTcQViatvWubsRru0+7mQFRI55Ulz4wA2/9oUHBARBMmKZ Wkww== 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 :dkim-signature; bh=OaFD0M5dIEtSst8G4T5l3VJFNcduRZuMCC/2FAz5l/o=; b=B8mb8RbBth1obWTYTrCsfH08JtBaeZHSOsd7vuUXhmIfVEwwNvnxyxph+TClqp1VRZ LX9f9BXWn5h+F7LliHrb+8eZ1JWchaQ0nWhLME9F0RnphbeuhFo7XxZQaLNTCYxc1DHe dDsTBtO5eMlnLSUis/EnwIBA9zqY4o/bITnsI342wEkiEMJEFjCpHomoTrbyvAoMrnAR sDcQhDbN2UZUbnHaruBVjfPZiDY8dWIenPbaBezRXf+0OzUHMUPpXwOAEXJL3UISYytS Lkta2sFSaHXOD3q0x2KpdROotqrC77v2+pQpUnhC8m6LiXh1ZpVdaye1pT70QiocuNA2 33Vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=d2mYM3oc; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k91si2834739pld.283.2019.01.30.16.00.24; Wed, 30 Jan 2019 16:00:25 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=d2mYM3oc; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726915AbfAaAAY (ORCPT + 7 others); Wed, 30 Jan 2019 19:00:24 -0500 Received: from mail-pl1-f196.google.com ([209.85.214.196]:33730 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726230AbfAaAAY (ORCPT ); Wed, 30 Jan 2019 19:00:24 -0500 Received: by mail-pl1-f196.google.com with SMTP id z23so603421plo.0 for ; Wed, 30 Jan 2019 16:00:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=OaFD0M5dIEtSst8G4T5l3VJFNcduRZuMCC/2FAz5l/o=; b=d2mYM3ocy/vz4UJO504AzF338dNMr5sjZ4pl9Pq96Palfh13lixX21yR94Cfl2NaYN oAB8q8UBSBGwpEE/mlT8d64tW/4f9JZ+Uc41sheWHSU+Csl/QGK2CVT9ESMZAQ2BLtQ5 WWKYnhynQ42mry1GqnPZ+WRDKO+2wFncmFbyo= 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; bh=OaFD0M5dIEtSst8G4T5l3VJFNcduRZuMCC/2FAz5l/o=; b=YKG3uNtu7PG5Q/Yh0j1/rpMbemW2VfN2ru1x/ynn3nza4QVC5JmsHkUBgHE1vmXf1n JFq85AXg2Wt62Yp52XKRAHUI+qZXcomjEdbwV+d9PpEzDY8fRPks5wnSSnIO6zFjlnW9 T/4VK37igOnCJuDSUcM7bEYNNxSV/l+xjQ+rmeb9l9V3F9WgjlUu4rimljdflL1V2ohW Qi1KlOaWLunwPyCCAVqtoQ37BAjHRJwy+VfQ+H9d0NzdQAowJMs1z4spTYvmnxBQ1hG2 guE1/DjWzE2SsorQc85tKO72EDjfwinCC3ZxURVC+b1TSikwepzfdEB2g7XeuX+xwvt3 SyQg== X-Gm-Message-State: AJcUukesrYBDIWbna1HX8hSzZB9WgavK566UpYLNung6HMT/IcL9CByO dcNsc7h6loxHIw7bmIcMdyeazQ== X-Received: by 2002:a17:902:e08b:: with SMTP id cb11mr32825776plb.263.1548892822814; Wed, 30 Jan 2019 16:00:22 -0800 (PST) Received: from localhost.localdomain (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id 15sm1007622pfs.113.2019.01.30.16.00.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Jan 2019 16:00:21 -0800 (PST) From: Bjorn Andersson To: Andy Gross , David Brown Cc: Rob Herring , Mark Rutland , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Thierry Escande , Srinivas Kandagatla Subject: [PATCH] arm64: dts: qcom: qcs404: Define APPS IOMMU Date: Wed, 30 Jan 2019 16:00:06 -0800 Message-Id: <20190131000006.11145-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.18.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The APPS IOMMU provides contexts for FastRPC, MDP and WLAN, among other things. Define these. Signed-off-by: Bjorn Andersson --- arch/arm64/boot/dts/qcom/qcs404.dtsi | 85 ++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) -- 2.18.0 diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi index d90decd00f5c..c574e48c61d2 100644 --- a/arch/arm64/boot/dts/qcom/qcs404.dtsi +++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi @@ -395,6 +395,91 @@ reg = <0x01905000 0x20000>; }; + apps_iommu: iommu@1e20000 { + compatible = "qcom,qcs404-iommu", "qcom,msm-iommu-v1"; + clocks = <&gcc GCC_SMMU_CFG_CLK>, + <&gcc GCC_APSS_TCU_CLK>; + clock-names = "iface", "bus"; + qcom,iommu-secure-id = <17>; + + #address-cells = <1>; + #size-cells = <1>; + #iommu-cells = <1>; + + /* Define ranges such that the first bank is at 0x1000 */ + ranges = <0 0x01e20000 0x40000>; + + /* Bank 5: CDSP compute bank 1 */ + iommu-ctx@5000 { + compatible = "qcom,msm-iommu-v1-ns"; + reg = <0x5000 0x1000>; + interrupts = ; + }; + + /* Bank 6: CDSP compute bank 2 */ + iommu-ctx@6000 { + compatible = "qcom,msm-iommu-v1-ns"; + reg = <0x6000 0x1000>; + interrupts = ; + }; + + /* Bank 7: CDSP compute bank 3 */ + iommu-ctx@7000 { + compatible = "qcom,msm-iommu-v1-ns"; + reg = <0x7000 0x1000>; + interrupts = ; + }; + + /* Bank 8: CDSP compute bank 4 */ + iommu-ctx@8000 { + compatible = "qcom,msm-iommu-v1-ns"; + reg = <0x8000 0x1000>; + interrupts = ; + }; + + /* Bank 9: CDSP compute bank 5 */ + iommu-ctx@9000 { + compatible = "qcom,msm-iommu-v1-ns"; + reg = <0x9000 0x1000>; + interrupts = ; + }; + + /* Bank 10: MDP */ + iommu-ctx@a000 { + compatible = "qcom,msm-iommu-v1-ns"; + reg = <0xa000 0x1000>; + interrupts = ; + }; + + /* Bank 21: WLAN 0 */ + iommu-ctx@15000 { + compatible = "qcom,msm-iommu-v1-ns"; + reg = <0x15000 0x1000>; + interrupts = ; + }; + + /* Bank 23: ADSP compute bank 2 */ + iommu-ctx@17000 { + compatible = "qcom,msm-iommu-v1-ns"; + reg = <0x17000 0x1000>; + interrupts = ; + }; + + /* Bank 24: ADSP compute bank 3 */ + iommu-ctx@18000 { + compatible = "qcom,msm-iommu-v1-ns"; + reg = <0x18000 0x1000>; + interrupts = ; + }; + + /* Bank 25: ADSP compute bank 4 */ + iommu-ctx@19000 { + compatible = "qcom,msm-iommu-v1-ns"; + reg = <0x19000 0x1000>; + interrupts = ; + }; + }; + spmi_bus: spmi@200f000 { compatible = "qcom,spmi-pmic-arb"; reg = <0x0200f000 0x001000>,