Received: by 10.223.185.116 with SMTP id b49csp1097853wrg; Wed, 14 Feb 2018 11:35:31 -0800 (PST) X-Google-Smtp-Source: AH8x227ucJLuulNsgjij3BgFOLNbTQWTVX/IQkbNKq/+Za6sHPQXo3iT0ObSAUE1+Tap/XnGJzwg X-Received: by 10.98.13.196 with SMTP id 65mr133847pfn.139.1518636931851; Wed, 14 Feb 2018 11:35:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518636931; cv=none; d=google.com; s=arc-20160816; b=CJIGaiW0/ufKEoaUt2yM+Z5JA44BUEFt8I9T7wcxW/T3hV9ZtqAjGQR++rMjrBqEdN 32EVRU6E0CPhAOXbbIK7SNgbduUyO7D+35bXrcvk3GHodBxzT424cjODjK94hzRP7+cl Bi+qpYe3bbzoPJvS2o/EDMWw0/DeFg+CQNMH+OPFRhYK2qERvZhR7DmAVAl3hQc75gIW Ouy5PpPk5Ekkqg4qP8V68XAwhUXfKtYWG1W8kTbpya5lmZ9c1sO3LMGC2iHeLgFQE1E2 lEM2vocQ3gjcSkxcZ8nz5rpe+PE40HKyl40wlS3vfXenk8vomdtSUvIcfuGXS7VoN/g7 qyDw== 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:dkim-signature:arc-authentication-results; bh=ac/4slqqWnFgyS5Olg4Xi0LPppwWHjCttRgWO/HrBcE=; b=aw5hpOrOtmgP7JVO6jwqzVOHa22KBTvE7JS2blZYJTP5KzhCoO3urtOGlLnVO+2b00 b0T+8asYL/l8izAmCJXxRBd5ZPxDGacKPLywz3/1+NYtWSligOOblEBlCNENyN2xvYFY VIuftwqnLRWiGjsHidBT8VGWwtyXsR6rXMDlC0hCEHPkTDlsP5KoMPCYUzsO3MKjF1rs N7ZFaAJasD90/JjGUQ01Seg3HrT99KLWFgtNEKcnlPHd38TnBEqwbu6pBoCjGWpuEwPI 5AS2R3jEdTCQHXfS1v0/NSUF+u9nQOtXVOLmnM+DOfp0Q1yytAiKz/0x+eR2Y3Lg7foR fkLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UErQSb4g; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w3si1438446pgb.754.2018.02.14.11.35.16; Wed, 14 Feb 2018 11:35:31 -0800 (PST) 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; dkim=pass header.i=@linaro.org header.s=google header.b=UErQSb4g; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1163025AbeBNTea (ORCPT + 99 others); Wed, 14 Feb 2018 14:34:30 -0500 Received: from mail-qk0-f194.google.com ([209.85.220.194]:36476 "EHLO mail-qk0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1162964AbeBNTe1 (ORCPT ); Wed, 14 Feb 2018 14:34:27 -0500 Received: by mail-qk0-f194.google.com with SMTP id 15so28082185qkl.3 for ; Wed, 14 Feb 2018 11:34:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=ac/4slqqWnFgyS5Olg4Xi0LPppwWHjCttRgWO/HrBcE=; b=UErQSb4gXLgZrxaIk0CbDo28p2rOFXzwyQJUmQOb1XrtPlTPrRRZuQ14hfjlMadh+T kaElAdWgM8G2OO+3ufEHdkoOnT8Ty7vMucKkoCX4EoX9XfDpN8I93ytxO0YU+/OQWXDq HceAfYDWQW6ES+2Ih0ruYXI4hgbPTYV3G8wBk= 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=ac/4slqqWnFgyS5Olg4Xi0LPppwWHjCttRgWO/HrBcE=; b=TEwoJ3C9bAJdI8hdS7CO8qakIiXi5jVUgF81LtCIqORsK27D4AQmEibnJbNHI0UAmj X0sWLVqQrG+xQhecBE67vME6I3cPOO6tUesilGxJAD/GB+VPa273rjoR+A4YYXVx5J0m C4uAVzagOPp2gzxKPAEquQoXoiElMHExhTc8yPuUi0rif7RqQ0bRQUVXs0M9WtbWoaWG kzq+SzE60j4habe6Mm5sWRqf1TmHxww3jtlQB9hfDY5BW9byMwcNm9EjIB4DZslUwZwQ TiKN+Csxgs1cAdGuKQPfXaTiaU6uh/NSMli3LFJ/Lctg5JMpgJYGj+six7yUC+AVOV42 iYjQ== X-Gm-Message-State: APf1xPBz1TL7pRH9ZX5n114jg/cx8ZAUe3fSNC0vevKF6UlTbeU/TRpb iyB198dTxDDt6LJ+gbOcz4SM4Q== X-Received: by 10.55.107.66 with SMTP id g63mr185612qkc.329.1518636866780; Wed, 14 Feb 2018 11:34:26 -0800 (PST) Received: from bjorns-mbp-2.lan ([8.43.114.254]) by smtp.gmail.com with ESMTPSA id q24sm10060296qkq.75.2018.02.14.11.34.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Feb 2018 11:34:24 -0800 (PST) Date: Wed, 14 Feb 2018 11:34:19 -0800 From: Bjorn Andersson To: Lina Iyer Cc: andy.gross@linaro.org, david.brown@linaro.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, sboyd@codeaurora.org, rnayak@codeaurora.org, msivasub@codeaurora.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH v2 2/2] dt-bindings: introduce Command DB for QCOM SoCs Message-ID: <20180214193419.GE93895@bjorns-mbp-2.lan> References: <20180208195154.3580-1-ilina@codeaurora.org> <20180208195154.3580-3-ilina@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180208195154.3580-3-ilina@codeaurora.org> User-Agent: Mutt/1.8.0 (2017-02-23) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 08 Feb 11:51 PST 2018, Lina Iyer wrote: > From: Mahesh Sivasubramanian > > Command DB provides information on shared resources like clocks, > regulators etc., probed at boot by the remote subsytem and made > available in shared memory. > > Cc: devicetree@vger.kernel.org > Signed-off-by: Mahesh Sivasubramanian > Signed-off-by: Lina Iyer > --- > .../devicetree/bindings/arm/msm/cmd-db.txt | 38 ++++++++++++++++++++++ > 1 file changed, 38 insertions(+) > create mode 100644 Documentation/devicetree/bindings/arm/msm/cmd-db.txt > > diff --git a/Documentation/devicetree/bindings/arm/msm/cmd-db.txt b/Documentation/devicetree/bindings/arm/msm/cmd-db.txt > new file mode 100644 > index 000000000000..e21666e40ebf > --- /dev/null > +++ b/Documentation/devicetree/bindings/arm/msm/cmd-db.txt > @@ -0,0 +1,38 @@ > +Command DB > +--------- > + > +Command DB is a database that provides a mapping between resource key and the > +resource address for a system resource managed by a remote processor. The data > +is stored in a shared memory region and is loaded by the remote processor. > + > +Some of the Qualcomm Technologies Inc SoC's have hardware accelerators for > +controlling shared resources. Depending on the board configuration the shared > +resource properties may change. These properties are dynamically probed by the > +remote processor and made available in the shared memory. > + > +The devicetree representation of the command DB driver should be: > + > +PROPERTIES: > +- compatible: > + Usage: required > + Value type: > + Definition: Should be "qcom,cmd-db" > + > +- memory-region: > + Usage: required > + Value type: > + Definition: The phandle to the reserved memory region. > + > +Example: > + > + reserved-memory { > + [...] > + cmd_db_mem: qcom,cmd-db@c3f000c { > + reg = <0x0 0xc3f000c 0x0 0x8>; I was hoping that we can describe the actual memory here, as I got the impression that it will also be a chunk of memory carved out from System RAM. If not it would seem unlikely that there's a 8 byte carveout in the middle of DDR, what else is here? > + }; > + }; > + > + qcom,cmd-db@c3f000c { > + compatible = "qcom,cmd-db"; Add "qcom,cmd-db" to "reserved_mem_matches" in drivers/of/platform.c, use of_reserved_mem_lookup(pdev->dev.of_node) to get the reserved_mem and you can just put the compatible directly on the reserved-memory node. That way you don't need this separate node that doesn't really represent anything. > + memory-region = <&cmd_db_mem>; > + }; Regards, Bjorn