Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp919330imm; Wed, 26 Sep 2018 08:47:25 -0700 (PDT) X-Google-Smtp-Source: ACcGV63qHwSik39QkT88uw1W/DCrvmNsfwGhb9Odoghe2uzXsCb493j7TjcSKIA+Cz+bYLXB5vL1 X-Received: by 2002:a17:902:8eca:: with SMTP id x10-v6mr6822456plo.336.1537976845670; Wed, 26 Sep 2018 08:47:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537976845; cv=none; d=google.com; s=arc-20160816; b=ZyEOhxlsAWunTae7XpkjmrbJR4BK70hG0Z8S8+RSM0mYXOWfWDzdlOSlfEkzIh0pYz fPkI9kex7xIzXFWf8QWmK1CQletJe+2Lseni6Sh9Wi+UnURqTyY6eD9aeJNqChP1rCkW lrd5h6qgsH6IlEMcmyPA2oTeLO2Ne+aR7Pwm1Vzxuaia4ApEct2nbXlGIMPhxKkcJ8Uw 1Yxnlof3AQOW5g7xdx0A24gC+9IyfARR41imbLtkeDWHyr55vt8JvzQ+Y/Kull3/EkDz O1+pxWjfIpCJ2mIAB8Ktdx1F0OQExM41kC7fUurcRGcLOz83bJ45udFeIjEzgITcgOtF /KIg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=Ff4+vngZsWyAY/qiHnDFqxhOPJPhKI6dFYWxVeY78h4=; b=lg/WVr3KTM6P0r8WEn0JEwATQfJJGmSUabkiPj2wNqn3ibP3RTHcNqeiWP1wsc00m6 f/keaGhkRYTzJQVCdr4dznvJIIkbg//HClb5pqOY8XV656dgmh0he26b1ne9mII2lIwt Lz4uY6ZOxM+QcTxBuNsQLLr1ojpKY+/R5RGZa+l0U6ceKiKgT89szcV6ppUJREYXZ8T+ ptD2BTXBoMlF78ce5A8QO3Jucth3xrZOrA9EOOzXsfNC0ysyRqwN/n2J2VQVvwRh9NKx 1yGu96xGDKFS8bO2Na58O4Cc3yWnO0gykyBGPWtgQOp3o7GuBcBoCI4Oq0x4NQY7g6O/ Vv6A== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g10-v6si2678067plt.212.2018.09.26.08.47.09; Wed, 26 Sep 2018 08:47:25 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728137AbeIZWAe (ORCPT + 99 others); Wed, 26 Sep 2018 18:00:34 -0400 Received: from foss.arm.com ([217.140.101.70]:48824 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727285AbeIZWAe (ORCPT ); Wed, 26 Sep 2018 18:00:34 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 6010B18A; Wed, 26 Sep 2018 08:47:01 -0700 (PDT) Received: from [10.4.12.131] (e110467-lin.emea.arm.com [10.4.12.131]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 0D4B43F5BD; Wed, 26 Sep 2018 08:46:57 -0700 (PDT) Subject: Re: [PATCH v16 4/5] dt-bindings: arm-smmu: Add bindings for qcom,smmu-v2 To: Vivek Gautam , joro@8bytes.org, robh+dt@kernel.org, will.deacon@arm.com, iommu@lists.linux-foundation.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: alex.williamson@redhat.com, mark.rutland@arm.com, rjw@rjwysocki.net, robdclark@gmail.com, linux-pm@vger.kernel.org, freedreno@lists.freedesktop.org, sboyd@kernel.org, tfiga@chromium.org, jcrouse@codeaurora.org, sricharan@codeaurora.org, m.szyprowski@samsung.com, architt@codeaurora.org, linux-arm-msm@vger.kernel.org References: <20180830144541.17740-1-vivek.gautam@codeaurora.org> <20180830144541.17740-5-vivek.gautam@codeaurora.org> From: Robin Murphy Message-ID: <52cc5a5e-d497-ad24-8dd2-3455707a3eef@arm.com> Date: Wed, 26 Sep 2018 16:46:56 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180830144541.17740-5-vivek.gautam@codeaurora.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 30/08/18 15:45, Vivek Gautam wrote: > Add bindings doc for Qcom's smmu-v2 implementation. Reviewed-by: Robin Murphy > Signed-off-by: Vivek Gautam > Reviewed-by: Tomasz Figa > Tested-by: Srinivas Kandagatla > --- > .../devicetree/bindings/iommu/arm,smmu.txt | 39 ++++++++++++++++++++++ > 1 file changed, 39 insertions(+) > > diff --git a/Documentation/devicetree/bindings/iommu/arm,smmu.txt b/Documentation/devicetree/bindings/iommu/arm,smmu.txt > index 8a6ffce12af5..a6504b37cc21 100644 > --- a/Documentation/devicetree/bindings/iommu/arm,smmu.txt > +++ b/Documentation/devicetree/bindings/iommu/arm,smmu.txt > @@ -17,10 +17,16 @@ conditions. > "arm,mmu-401" > "arm,mmu-500" > "cavium,smmu-v2" > + "qcom,smmu-v2" > > depending on the particular implementation and/or the > version of the architecture implemented. > > + Qcom SoCs must contain, as below, SoC-specific compatibles > + along with "qcom,smmu-v2": > + "qcom,msm8996-smmu-v2", "qcom,smmu-v2", > + "qcom,sdm845-smmu-v2", "qcom,smmu-v2". > + > - reg : Base address and size of the SMMU. > > - #global-interrupts : The number of global interrupts exposed by the > @@ -71,6 +77,22 @@ conditions. > or using stream matching with #iommu-cells = <2>, and > may be ignored if present in such cases. > > +- clock-names: List of the names of clocks input to the device. The > + required list depends on particular implementation and > + is as follows: > + - for "qcom,smmu-v2": > + - "bus": clock required for downstream bus access and > + for the smmu ptw, > + - "iface": clock required to access smmu's registers > + through the TCU's programming interface. > + - unspecified for other implementations. > + > +- clocks: Specifiers for all clocks listed in the clock-names property, > + as per generic clock bindings. > + > +- power-domains: Specifiers for power domains required to be powered on for > + the SMMU to operate, as per generic power domain bindings. > + > ** Deprecated properties: > > - mmu-masters (deprecated in favour of the generic "iommus" binding) : > @@ -137,3 +159,20 @@ conditions. > iommu-map = <0 &smmu3 0 0x400>; > ... > }; > + > + /* Qcom's arm,smmu-v2 implementation */ > + smmu4: iommu@d00000 { > + compatible = "qcom,msm8996-smmu-v2", "qcom,smmu-v2"; > + reg = <0xd00000 0x10000>; > + > + #global-interrupts = <1>; > + interrupts = , > + , > + ; > + #iommu-cells = <1>; > + power-domains = <&mmcc MDSS_GDSC>; > + > + clocks = <&mmcc SMMU_MDP_AXI_CLK>, > + <&mmcc SMMU_MDP_AHB_CLK>; > + clock-names = "bus", "iface"; > + }; >