From patchwork Fri May 10 04:34:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 163827 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:142:0:0:0:0 with SMTP id j2csp1874963ilr; Thu, 9 May 2019 21:34:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqwzL3DUUeBPjCJiUAu+DqBiAWuI7HtAa7dye5xifgZGiX+NiJEPZDtoO6s+OHudkd9iNZ/t X-Received: by 2002:a17:902:2a28:: with SMTP id i37mr10045379plb.47.1557462883652; Thu, 09 May 2019 21:34:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557462883; cv=none; d=google.com; s=arc-20160816; b=t5BD8a97sdojELOIEaufxVEKYFpW/0x/k3h29Lz5YbQCOpTZWXGjGUxZLX9RI+PTC5 Bkd4iKkdtECVfEvT6F/AzU2zcpd/bHodCp0B9jDyAtuC8pwMZ7NGVBtRPVaox4MyETfg 6s3WkBMiQL85cbjwIuSB7cBUuE1kcM5f41xJmFq18PyJkt1aIfx3irikITZTmONYARH1 w/rT0PqWBcExwPmhEYVaUkxpB6enqvCpt6A3wEOZnqUIt4XowNl8qCHtcTdNnPo/dj6M nvNr6hLYHyjvCxTqGjgWiXQqnEppos4u1cJHh0Vmu86LXqh0oDl3yMIrWUSeh9pEAj/u v1Aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=K0FcWu1mVQWjlvQpogOKNfqp64A6KIyrywCpStMa3jQ=; b=gKAG3N01lJpWuNQ6szRyJAUtoXXa2eFXa6Z4wZnPItvplsGmC2p859RFBCPQyQ9pKu gUy6TLc3+wt3kxK4lGvzS/qFzg14YVTLTi+RSfsV00VgV0sibjXN6ZCDVnWK+CIK0WZG e8utT3i2Y5t4MaGJ7WEISJKLqaAe+NWnv16fnxAEDEEVScptOA+GDAclOHJQC4lcBEFv srR4Kzp8qpiJvxOfAhbsTwUs0oGAavs/frZI8ojwgngpp6UL/mYZVYe7Tksig5idNHtN mBIJrKu1rtF8sfRRRdFHopzMCiyowvGZJUpoZoZrvyChhNG92KM5dLnbYZM7ctivuTut yeBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dx6L97lk; 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=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 z4si5561580pln.345.2019.05.09.21.34.43; Thu, 09 May 2019 21:34:43 -0700 (PDT) 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; dkim=pass header.i=@linaro.org header.s=google header.b=dx6L97lk; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727177AbfEJEem (ORCPT + 30 others); Fri, 10 May 2019 00:34:42 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:46013 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727127AbfEJEed (ORCPT ); Fri, 10 May 2019 00:34:33 -0400 Received: by mail-pl1-f193.google.com with SMTP id a5so2188307pls.12 for ; Thu, 09 May 2019 21:34:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=K0FcWu1mVQWjlvQpogOKNfqp64A6KIyrywCpStMa3jQ=; b=dx6L97lkkdjv3dUyfokhgj5npiudPe84KV+OlAcP1fgsy1yKZmj3kmBZBs6QD2sFEU KmAb4nqIM9D7MvFsKi7aO1hLRQp39ezRgA408XQQuo/P3+BrEIvQhs8613YW/kDU1pVA jG4wuA2OMG+paovhGISm3LID+n7Qp3kWZGk2ACvBBjt/J+8TatblulGnfm33eIJtXxeI jE7a89J7fwszQI8dcZXYroS4BuQUir5qFpvzWZ2SWvAD6WGOXqtY6gfOzgvNCGiWEdNC bFvaMupqTSb+etVh36aLywqcZa8+We6riaRWTFN4SRDySsPzYRX5Ld6lKlLlM6Jlntgh 5tdw== 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=K0FcWu1mVQWjlvQpogOKNfqp64A6KIyrywCpStMa3jQ=; b=B9Zjtq1e2ZOedy0JMAdPllriVG6+asTA/7Jr2c5ma/Z5jvDKIJuXeyH4VMtP8usVQK xHAD+ykjaACmieimaWdjNNSxpA8dHix9aKNHYtzAZ4kzatE40youJEQHUbZUAdA3kIYx 0fW/c4OvPFvgv7NJAp+3ncsgNWzq1+HHa5CoJtrh3ZtunBRDz+GPlJ0KJnG8x/VbUrhN d0KBiCTNa+oquFRjaMhbD9ZT3DqfRBuFtY3cguCe+iAV5+Y/ZGNetUuOOuyUJk0UQsOg REhWRbatosfA21LOPZu8K4HPFPHEzCHALG4VpZX19XSg2Gz8u8XyvUfNfsZtUniT+z6A YQ7Q== X-Gm-Message-State: APjAAAW78HXZyOL7axEe7ve25yyAh4QGErLi99mlx6sdhXPCE/5pA8BU OU0XOvQu+SITEeD8lJcWmV4PZOMXm2U= X-Received: by 2002:a17:902:3281:: with SMTP id z1mr10331855plb.44.1557462872691; Thu, 09 May 2019 21:34:32 -0700 (PDT) Received: from localhost.localdomain (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id s17sm4785317pfm.149.2019.05.09.21.34.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 May 2019 21:34:32 -0700 (PDT) From: Bjorn Andersson To: Andy Gross , David Brown Cc: Ohad Ben-Cohen , Rob Herring , Mark Rutland , linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 7/8] arm64: dts: qcom: qcs404: Define APPS IOMMU Date: Thu, 9 May 2019 21:34:20 -0700 Message-Id: <20190510043421.31393-8-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20190510043421.31393-1-bjorn.andersson@linaro.org> References: <20190510043421.31393-1-bjorn.andersson@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The APPS IOMMU provides contexts for FastRPC, MDP and WLAN, among other things. Define these. We use the qcom_iommu binding because the firmware restrictions in incompatible with the arm-smmu. 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 b213f6acad76..fcde4f0334c2 100644 --- a/arch/arm64/boot/dts/qcom/qcs404.dtsi +++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi @@ -378,6 +378,91 @@ reg = <0x01937000 0x25000>; }; + 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>,