Received: by 2002:a25:2c96:0:0:0:0:0 with SMTP id s144csp22451ybs; Sat, 23 May 2020 19:40:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxUtT+Mdr4vcmBewZdcoTLqe3QwXiR3Rjm13++zNaG2596pWw60GBlY4iT2+5B7D6EP30Es X-Received: by 2002:a50:9317:: with SMTP id m23mr9586628eda.65.1590288048858; Sat, 23 May 2020 19:40:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590288048; cv=none; d=google.com; s=arc-20160816; b=IYC4v2CmtQ1y82RPlNpNq8zBUkYQTAZSFYw1KOfVvqXtSkbpScqOlvp0/gUZKz36hg oy5vqUZRRIqSCNo9u5C1NpcYO5Hv21M23kVWOWy8dBh0rO20xDwpYdd5Uz64Wcgp67O5 +oZyiQQjecLAfao5EG1LC1q+ATVI9yKNm1cy6oqyoM2mpQKIW90lb/Z/xCoPFYPNug30 nkEqM/o9EwdVM6xIr1dEUKGN1Ddl9aI+1zSSn4W4Bd9MuG970drWBI4pPZKncDIVZTcN FUazoqYvflml6krEiCpKRHcjWRbsuhsvb/+0F/XK1kHMZP1QnM5oL11e7fLbT0qJcQhD o3DA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=4u1HmOI2Twq6GsEKJ5fvB0tfsgVAGgF1UXgxs14K3Zo=; b=c/X8cfesFXuB7VPer4MxEwIm2kf4Ew/TR+FEGgzwWqNIi1iHe+hJ8gHnHuMkMrOgGr aXICjnOpaZvPVjOur/1DPNk2mWHVOi48NIQB4c//PXsE1Dvcq5U/HatV0L7M1AD+s0LW E3TlshWSNaZNGK/dzDxRMa/nmPWSJNa2DtIMgVg2VTOsD7IWMcGu9TPIig04I/ljR8lW mIT2SHsh21gX7Rv8rl4ZI51+JmjHq00Bzzp8kP7tYiEC+UGblWDWYTsBXWxtx1ak+XTw mLKnSbnbQmIpzwGsbJc6gRp6hraWLAr2K+Eujx4WRUhDLZISkUbA3rkt8ueFahJXKov/ hmDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marek-ca.20150623.gappssmtp.com header.s=20150623 header.b=Cm6R0AG1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g18si1801831edr.463.2020.05.23.19.40.22; Sat, 23 May 2020 19:40:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@marek-ca.20150623.gappssmtp.com header.s=20150623 header.b=Cm6R0AG1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388316AbgEXCiV (ORCPT + 99 others); Sat, 23 May 2020 22:38:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388225AbgEXCiU (ORCPT ); Sat, 23 May 2020 22:38:20 -0400 Received: from mail-qk1-x744.google.com (mail-qk1-x744.google.com [IPv6:2607:f8b0:4864:20::744]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9E80C05BD43 for ; Sat, 23 May 2020 19:38:18 -0700 (PDT) Received: by mail-qk1-x744.google.com with SMTP id b6so14671975qkh.11 for ; Sat, 23 May 2020 19:38:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marek-ca.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=4u1HmOI2Twq6GsEKJ5fvB0tfsgVAGgF1UXgxs14K3Zo=; b=Cm6R0AG1Zt7MiVkUiBh1yvKYC1S/pepEQzaF+2ABrJfB8O3YyxAeWF3qHWhK6dsrVO IwbCK9+Msh0xNCzh2hcqXKGhYZ/gOgOpBzH97v0I/vzK2JhXtmLvUsqsWuJwV3m7srT3 ACp+mHDuK6b/R6xUDNvc43J/Nz/xTSLs7rAKOXfAB2z+Oc9JNB8rHARXRONOVXWguzIb pX/6x8Ann6RFY/Q1mobmGohsxw9/TRBPmOU2AeWnTw2gc6NdqrT/hWLsQVMseIIbkPQG o6+OQXMu/pLMlQYC/cRFdMfuR+CYldKvgI0FzK3wz/D9L+NC3heKj4bJ/G977f0YjEDw x1/Q== 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:mime-version:content-transfer-encoding; bh=4u1HmOI2Twq6GsEKJ5fvB0tfsgVAGgF1UXgxs14K3Zo=; b=GUa1tOhgbUIxll1zvN20hYlQJ7dW1F6ACDGtgE0E97I0L1QptvBuXPYrU5JKImv1ZC Lu/N84TvlNtP4DAdDLIK9DXYRlCKDXk5xI+7CiFQgLg4jb7nBbsIkwYrqlvv6wzjRVYg 9eIUR64PYSchwxAU+zZzBKgUl2kGnptzL0bcwvCQEARcYrGdvm8/J0LyTk+Y3jlpSwDi 1bTklSGdQjRlcgpTHphHLJp9JbH9hrHdnT47YXqudc232jzSxrexii37HJj1XADy2XTn 7YsoBJ6LsFa3ZSptCkuXHi2Ut44oOHCxWQyLz3CTEIgM8aht5miCNwU77Ov4ap9miHD5 OdOA== X-Gm-Message-State: AOAM532/FPqvmOUc/n1jYVDpOnBgfxoSuWy3LJ/fuJwtY+oyhcUmQLlc uGpVBl3SBpFP+juFCAZ2kWsqkA== X-Received: by 2002:ae9:e854:: with SMTP id a81mr21969493qkg.396.1590287898123; Sat, 23 May 2020 19:38:18 -0700 (PDT) Received: from localhost.localdomain ([147.253.86.153]) by smtp.gmail.com with ESMTPSA id e3sm11187666qtj.25.2020.05.23.19.38.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 May 2020 19:38:17 -0700 (PDT) From: Jonathan Marek To: linux-arm-msm@vger.kernel.org Cc: Andy Gross , Bjorn Andersson , Rob Herring , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 1/6] arm64: dts: qcom: sm8150: add apps_smmu node Date: Sat, 23 May 2020 22:38:07 -0400 Message-Id: <20200524023815.21789-2-jonathan@marek.ca> X-Mailer: git-send-email 2.26.1 In-Reply-To: <20200524023815.21789-1-jonathan@marek.ca> References: <20200524023815.21789-1-jonathan@marek.ca> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the apps_smmu node for sm8150. Note that adding the iommus field for UFS is required because initializing the iommu removes the bypass mapping that created by the bootloader. Signed-off-by: Jonathan Marek --- arch/arm64/boot/dts/qcom/sm8150.dtsi | 91 ++++++++++++++++++++++++++++ 1 file changed, 91 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi index a36512d1f6a1..acb839427b12 100644 --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi @@ -442,6 +442,8 @@ ufs_mem_hc: ufshc@1d84000 { resets = <&gcc GCC_UFS_PHY_BCR>; reset-names = "rst"; + iommus = <&apps_smmu 0x300 0>; + clock-names = "core_clk", "bus_aggr_clk", @@ -706,6 +708,7 @@ usb_1_dwc3: dwc3@a600000 { compatible = "snps,dwc3"; reg = <0 0x0a600000 0 0xcd00>; interrupts = ; + iommus = <&apps_smmu 0x140 0>; snps,dis_u2_susphy_quirk; snps,dis_enblslpm_quirk; phys = <&usb_1_hsphy>, <&usb_1_ssphy>; @@ -742,6 +745,94 @@ spmi_bus: spmi@c440000 { cell-index = <0>; }; + apps_smmu: iommu@15000000 { + compatible = "qcom,sdm845-smmu-500", "arm,mmu-500"; + reg = <0 0x15000000 0 0x100000>; + #iommu-cells = <2>; + #global-interrupts = <1>; + interrupts = , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + }; + remoteproc_adsp: remoteproc@17300000 { compatible = "qcom,sm8150-adsp-pas"; reg = <0x0 0x17300000 0x0 0x4040>; -- 2.26.1