Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3830301imm; Mon, 1 Oct 2018 05:19:03 -0700 (PDT) X-Google-Smtp-Source: ACcGV60fu7jKdLCpS0o4/j6uJy6uc8nizIpuJgaI3FJnm3/Un5APnxT8dB+djlTKn1Xt6mYwutz2 X-Received: by 2002:a17:902:848d:: with SMTP id c13-v6mr11070433plo.303.1538396343544; Mon, 01 Oct 2018 05:19:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538396343; cv=none; d=google.com; s=arc-20160816; b=uVmyNtOqBV5QYjxVC4RJktMWz+1NMDBhnok/vBstWxwE8HQwhiCZ1Gk8uR7dr8Mv1H kjEMlemgp2VkO1XKSg+A/azCG/XzN8QREHwlhCu+nEqImlQCq8m6CEaDSJTVdGi1XnT2 0ZcmQvEIxHEaGvxjt9gLLorH0tz2NUQiNWUQiQqs7FIEaTXMvoFkD2qS/Ujj565q/YdA 0YbFmqlQYXKL8WaE+BcKkjoF7Ecll7Og8ky1AybPIPB6iHbnF2RNAlooEBlgHeIdhd0a X1MLCdKpUWpnAYi764QqPlRuiPysNOwrUfiHAw9mqhe0VoY1kEGurWjayEL/VA7En2d5 TvgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=l3X/9QNxI6B78m3dYxBKcYDmAMgDmBDH8Uy0/HZRNOY=; b=KcldlSGlf9PO9xKw2LApBqdzW/6NuI2i4LgmsFG8U81HTqAGDVOZUh9EHuZVf1wZn0 /P/iw8K4atWlwMsJApCz7DyVtcW7kT/3YCPEARMxM72hgd3V3IN46oFbSgaLjnIVh6DM XQIRajczBlZD8qsTRrLNkg2uU4jD7hc+Phz/5Lal8HFVBEZ+332v76mDKkId3PiXP6HH UFeWdeuKvUCO4+Z20Ir2YA0RG8CrksYFO+7oOhDAQFUl6oQYgqf4vdpCkNG503sCsoaA PSFIJzLXictPCRSyjFqlrxAlGtPOjSEqaJmU3rpl+ORZuzdRQ4zBkJVoawZ4qlypkbGa VlEg== 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 b137-v6si10081308pga.80.2018.10.01.05.18.45; Mon, 01 Oct 2018 05:19:03 -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 S1729189AbeJAS4G (ORCPT + 99 others); Mon, 1 Oct 2018 14:56:06 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:47660 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728921AbeJAS4G (ORCPT ); Mon, 1 Oct 2018 14:56:06 -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 A3E3D18A; Mon, 1 Oct 2018 05:18:34 -0700 (PDT) Received: from edgewater-inn.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 7285D3F5A0; Mon, 1 Oct 2018 05:18:34 -0700 (PDT) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id 129871AE3C57; Mon, 1 Oct 2018 13:18:57 +0100 (BST) Date: Mon, 1 Oct 2018 13:18:57 +0100 From: Will Deacon To: Vivek Gautam Cc: joro@8bytes.org, robh+dt@kernel.org, robin.murphy@arm.com, iommu@lists.linux-foundation.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, 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 Subject: Re: [PATCH v16 4/5] dt-bindings: arm-smmu: Add bindings for qcom,smmu-v2 Message-ID: <20181001121857.GA31488@arm.com> References: <20180830144541.17740-1-vivek.gautam@codeaurora.org> <20180830144541.17740-5-vivek.gautam@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180830144541.17740-5-vivek.gautam@codeaurora.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 30, 2018 at 08:15:40PM +0530, Vivek Gautam wrote: > Add bindings doc for Qcom's smmu-v2 implementation. > > 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(+) It would be nice to have an Ack from a DT maintainer on this, since it's adding new compatible strings... Will > 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"; > + }; > -- > QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member > of Code Aurora Forum, hosted by The Linux Foundation >