Received: by 10.192.165.156 with SMTP id m28csp742009imm; Mon, 16 Apr 2018 08:02:13 -0700 (PDT) X-Google-Smtp-Source: AIpwx490T8EyMpIgZtbGAMdDhbBjNc4Skjx+HS/qsxPexTnKehZx7pn1BYc3Ts6lGjob05U9PMGA X-Received: by 10.98.178.76 with SMTP id x73mr22054503pfe.193.1523890933552; Mon, 16 Apr 2018 08:02:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523890933; cv=none; d=google.com; s=arc-20160816; b=GvM+dwyCXmUVTeNJ6SxqmFwxFS2ioWXMcrycVsJxFNrA4EHdCMdFenQlLJghpWk5io Vzf8PrXi7JwtwDtgcbFe/cozY9ychFWARcGGctVwyUW9siNi0mam4UKLPGpebrATbi0i NcsWp4gsRBqE3x4YDyvt4UcV/4S7980mM5VmezHTj8X1rizImRaajAGqPcQ2j0oPmfzB 6dEdYubAEJeozP/I5/rtsSjQKSpdkjl5g/M5fR7PNMMeeDrWeucCwxzmb6rEX1jz2ZWf Y6/H7s6M48FiURRbUrWsDeUxTZTxa80QuSj3k6oze7OP2Y2mK/lGQPxehET7lblrh6D1 iEhA== 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:arc-authentication-results; bh=6TI69pmP4HXZulpmBZSg7rArf9gWwPI/y2ZyOKp4pEs=; b=yhBkJ8tEBngQuRiF1f00y69kZy81FhzRJ2iUyMoD3TU/OcgRK7CvEg8/b77QlwPxou /TTaFBqRKzzWXQKEg2jwWrrSySKMar46S8y3P3iuOk1fvHPdgtFAsEmR5eYmz7WL6roA x2xcq/ihfjCclk4uSHazRn1t1AsBZQx2EcRNqtVQNu5cnpoywgqqqSlv/rR7lvC3h3wB TwgMezDHqZJOsnKB4SX/r+71tiS//Sf7CtqJ15+BZMWaaA/nGvPsSXMNGC729580huwi Ql5zb5Itz+F2EEJQqorc+2BWauovNTqop7dkiSzjQ4pp4rfQ7eujLLbKiyO7WrhqCtEg ErLg== 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 w9-v6si3751850plp.389.2018.04.16.08.01.45; Mon, 16 Apr 2018 08:02:13 -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 S1751193AbeDPO7Q (ORCPT + 99 others); Mon, 16 Apr 2018 10:59:16 -0400 Received: from mail-ot0-f196.google.com ([74.125.82.196]:42760 "EHLO mail-ot0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750799AbeDPO7N (ORCPT ); Mon, 16 Apr 2018 10:59:13 -0400 Received: by mail-ot0-f196.google.com with SMTP id h55-v6so17686578ote.9; Mon, 16 Apr 2018 07:59:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=6TI69pmP4HXZulpmBZSg7rArf9gWwPI/y2ZyOKp4pEs=; b=tXUphFWjtPkyolWric2K/xiJ4RmB1e2eTclLDgctVev17OweEYGq3lSeqBOp9FJJlQ KyrGG94eLvx8Om7HGnMCOLmlrs8YJZG39hSM/EFQjESV9EqHrFLmoMrrcMB5iSQFEPsW LHzG0GOHmUG90sLltoQ/33KimD3TvKpiTrZFHBRtJMWSCql4YEZAlYQZobJmNpgg7InM wWDbb95MXQVvhLFYOVHQy1y2fHUutKakiP/S4NoaJhPuiCJ/O6rX+GQx+0wHl7MmHHh9 kjariYuZGiQy8z7XG1R1dFGP70Cd2/qX9PpKTHbYJ24DRuRirxP/EOwV3HCPIS7PeMGm 7k/g== X-Gm-Message-State: ALQs6tCPGvmDz9SgTGPeDKZ4LORlWuGF5l1OPj33Ti4/HI3Q2O/3rIGX /e04W4pMLpwrZsJb8uO+Kg== X-Received: by 2002:a9d:7014:: with SMTP id k20-v6mr11421921otj.56.1523890753109; Mon, 16 Apr 2018 07:59:13 -0700 (PDT) Received: from localhost (216-188-254-6.dyn.grandenetworks.net. [216.188.254.6]) by smtp.gmail.com with ESMTPSA id d52-v6sm8331539ote.51.2018.04.16.07.59.12 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 16 Apr 2018 07:59:12 -0700 (PDT) Date: Mon, 16 Apr 2018 09:59:12 -0500 From: Rob Herring To: Rishabh Bhatnagar Cc: linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm@lists.infradead.org, linux-kernel@vger.kernel.org, tsoni@codeaurora.org, kyan@codeaurora.org, ckadabi@codeaurora.org, stanimir.varbanov@linaro.org, evgreen@chromium.org Subject: Re: [PATCH v4 1/2] Documentation: Documentation for qcom, llcc Message-ID: <20180416145912.ja7d2xd2kqiukrgl@rob-hp-laptop> References: <1523390893-10904-1-git-send-email-rishabhb@codeaurora.org> <1523390893-10904-2-git-send-email-rishabhb@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1523390893-10904-2-git-send-email-rishabhb@codeaurora.org> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 10, 2018 at 01:08:12PM -0700, Rishabh Bhatnagar wrote: > Documentation for last level cache controller device tree bindings, > client bindings usage examples. "Documentation: Documentation ..."? That wastes a lot of the subject line... The preferred prefix is "dt-bindings: ..." > > Signed-off-by: Channagoud Kadabi > Signed-off-by: Rishabh Bhatnagar > --- > .../devicetree/bindings/arm/msm/qcom,llcc.txt | 58 ++++++++++++++++++++++ > 1 file changed, 58 insertions(+) > create mode 100644 Documentation/devicetree/bindings/arm/msm/qcom,llcc.txt > > diff --git a/Documentation/devicetree/bindings/arm/msm/qcom,llcc.txt b/Documentation/devicetree/bindings/arm/msm/qcom,llcc.txt > new file mode 100644 > index 0000000..497cf0f > --- /dev/null > +++ b/Documentation/devicetree/bindings/arm/msm/qcom,llcc.txt > @@ -0,0 +1,58 @@ > +== Introduction== > + > +LLCC (Last Level Cache Controller) provides last level of cache memory in SOC, > +that can be shared by multiple clients. Clients here are different cores in the > +SOC, the idea is to minimize the local caches at the clients and migrate to > +common pool of memory > + > +Properties: > +- compatible: > + Usage: required > + Value type: > + Definition: must be "qcom,sdm845-llcc" > + > +- reg: > + Usage: required > + Value Type: > + Definition: must be addresses and sizes of the LLCC registers How many address ranges? > + > +- #cache-cells: This is all written as it is a common binding, but it is not one. You already have most of the configuration data for each client in the driver, I think I'd just put the client connection there too. Is there any variation of this for a given SoC? > + Usage: required > + Value Type: > + Definition: Number of cache cells, must be 1 > + > +- max-slices: > + usage: required > + Value Type: > + Definition: Number of cache slices supported by hardware What's a slice? > + > +Example: > + > + llcc: qcom,llcc@1100000 { > + compatible = "qcom,sdm845-llcc"; > + reg = <0x1100000 0x250000>; > + #cache-cells = <1>; > + max-slices = <32>; > + }; > + > +== Client == > + > +Properties: > +- cache-slice-names: > + Usage: required > + Value type: > + Definition: A set of names that identify the usecase names of a > + client that uses cache slice. These strings are > + used to look up the cache slice entries by name. > + > +- cache-slices: > + Usage: required > + Value type: > + Definition: The tuple has phandle to llcc device as the first > + argument and the second argument is the usecase > + id of the client. > +For Example: > + venus { > + cache-slice-names = "vidsc0", "vidsc1"; > + cache-slices = <&llcc VIDSC0_ID>, <&llcc VIDSC1_ID>; > + }; > -- > The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, > a Linux Foundation Collaborative Project > > -- > To unsubscribe from this list: send the line "unsubscribe devicetree" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html