Received: by 2002:a25:2c96:0:0:0:0:0 with SMTP id s144csp924525ybs; Mon, 25 May 2020 02:42:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwgU4i1nsUpyN7HYFvGWjZcJ2OpJ4rLafNLDXejERJ0ohb+heHw1e1z2d9O6+1N1rIVyGqY X-Received: by 2002:a17:906:55c4:: with SMTP id z4mr19058056ejp.332.1590399775795; Mon, 25 May 2020 02:42:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590399775; cv=none; d=google.com; s=arc-20160816; b=m5G5udyUr6Shwf3O6PqqECsIOfVloS3Atvu8LoKMrLrf6kF2QBlmyC14MmIhsNyOtg Q8pnMr8rqr5kUWfB7VkZDIZbiUddMFBiFsSQmJQCxCPgvOzHCdoAd/pI8mc6qPPZhWaZ 4EUGONHIZFrlMLfpQ4FXQr0cVgwcrs1Et2wwj1XLi5rf2zSZGRwS0mSxEOXfb7pFN+vR Gw0UbDZpXCp6nARXFhHg+5qD53GPFlCnMbcTLA8OGNjmXs9Iy3ND9N97tuFiViT5T5Yl PrQ72d6Xj+p8h7sQmwaQ8I5Y4hR+TOwr3jEYMdNSZ3ibOPiBzbRgAHpVfoPox1v6TeUR y17g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature; bh=8yygGiBP0D9AqMlE/nAxVZXV3Mc/D/TZO0KkO47wiAo=; b=wHxwwLht7vUJQdZmRw1Y2tC/JzzVGLQ5WWSTdIvyPwuOf1p7KijriQcq7kwBmU/wJO SU+Pgw8fyojJHMtGJbDy8GzkWMh+d306pt5xGRz5dHW/4ekrdgWmisBU7VM6LSWkXDO5 FqK5R+yftrUR2y3F0XgDRsScCQpy7sH066qB55wIWcC21FLpwWmNUXlX07bneZPWJC2i 1CSWxieh7XEbgSG9JXPszwBizgGFrKmRIcjDV+OuUjWEzQz60ZvFZDbLs5Ja2D3Fw/AP k1owIC3OVomvhvFvzYDJwsnbiHdIFAPLPvRUQ8jdTFPgoT7uDaVwI8idIYz/Wf3+qsgP l8nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=hOwyHL6k; 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 r25si5336676edp.88.2020.05.25.02.42.33; Mon, 25 May 2020 02:42:55 -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=fail header.i=@mg.codeaurora.org header.s=smtp header.b=hOwyHL6k; 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 S2389517AbgEYJiC (ORCPT + 99 others); Mon, 25 May 2020 05:38:02 -0400 Received: from mail27.static.mailgun.info ([104.130.122.27]:39615 "EHLO mail27.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389365AbgEYJiB (ORCPT ); Mon, 25 May 2020 05:38:01 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1590399481; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=8yygGiBP0D9AqMlE/nAxVZXV3Mc/D/TZO0KkO47wiAo=; b=hOwyHL6kwvb/VzFFwwVL9h56z/2OjYPqVBWUX4mdOPi609R1ePel+7dj8Ir4d8PtASAVfiaX mYW+GKFyzputoVR5uCfh9DlS2TbwKkuYB5+ZE9AP3i3ClPzkVBcOoE3IL8MnoF2/3zZGMIeJ IFP6RjEsvpxI2MGrTmhVZrMfNvU= X-Mailgun-Sending-Ip: 104.130.122.27 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n04.prod.us-east-1.postgun.com with SMTP id 5ecb91e48cd231c403df1324 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Mon, 25 May 2020 09:37:40 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 33CD5C433CA; Mon, 25 May 2020 09:37:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: saiprakash.ranjan) by smtp.codeaurora.org (Postfix) with ESMTPSA id CCF53C433C9; Mon, 25 May 2020 09:37:38 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 25 May 2020 15:07:38 +0530 From: Sai Prakash Ranjan To: Jonathan Marek Cc: linux-arm-msm@vger.kernel.org, Andy Gross , Bjorn Andersson , Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree-owner@vger.kernel.org Subject: Re: [PATCH 1/6] arm64: dts: qcom: sm8150: add apps_smmu node In-Reply-To: <20200524023815.21789-2-jonathan@marek.ca> References: <20200524023815.21789-1-jonathan@marek.ca> <20200524023815.21789-2-jonathan@marek.ca> Message-ID: X-Sender: saiprakash.ranjan@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jonathan, On 2020-05-24 08:08, Jonathan Marek wrote: > 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"; This should be qcom,sm8150-smmu-500 and also you need to update the arm-smmu binding with this compatible in a separate patch. -Sai -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation