Received: by 10.223.185.116 with SMTP id b49csp2385935wrg; Thu, 15 Feb 2018 10:48:58 -0800 (PST) X-Google-Smtp-Source: AH8x2252jC1u+NDG2CPZINg4P3wURpKAVRsfaZPh2j8+bOTTaLmiGNCm8Sc7QsmFOptuTrbY123t X-Received: by 2002:a17:902:a984:: with SMTP id bh4-v6mr3335703plb.95.1518720538212; Thu, 15 Feb 2018 10:48:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518720538; cv=none; d=google.com; s=arc-20160816; b=Z04tkSif2nxl1pfq79feJfaBbCAqn7pbm2x0erjpEaoU6sCef/oHvl4XiKb0vzBxN6 reQdX9ryZYDdwnqzuQtOBl3Ss9EdbhWP2eb2cV/tN2iBkURxltGi8jmAYb0FwI9wCqqB To5H4XKt7rqs+FmMGVTGoj1oukH/yScczG6+KUYpJd7zhaoVdStkVr+N7xW7QPBaiazR QXjaIRSQ13NFIU1mB9pn1swYEYgChfgQLxmK6jYyDXUEArtolqdywYJStaoSN0AiOqKt 7uEdYhrl282dN/SBVHT+qzFWqeA587mr+S3d4Lugxo9vCA/LY2r9zI2a7i6A8ZAB7qwI FTgA== 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:dmarc-filter:dkim-signature:dkim-signature :arc-authentication-results; bh=b/KcB5ppwOWiAFrgh6roIjxkzaicjwjJf3xlm9iBj34=; b=gjwpTxQyhWSYWPNikg0EwpEDhq2a3slLqTuxquTdMYCFDJZPCemHM8jMZF7vLIOpnh HcBsGG/0twSGyBANwoq5e/x3T73SUhBc5ACH8le+velQsu0iiHmJ2Qku/iDaLE+Xux6I zhzDcTfHdtIw7rScOZAGZHz96DxE2qQFxecamt0r4Qy7amulMNf/W6BwHDdVOzkml7Bo vY91CGY2iaAPPGZUn3W6M252Lj7VAFSKDypCiugzaCSLXLjY6BBkVtjpDsL8vZXCcvi+ o7PqBBrm+wqyYBgdf0H9+q5muJ8PnzC+7QfP1tY+flyVAN+JHYIsNKYVwxyYaJMu4Zez PWXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=ByD6upzM; dkim=pass header.i=@codeaurora.org header.s=default header.b=M3TfXFYX; 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 g11si3116596pgq.80.2018.02.15.10.48.43; Thu, 15 Feb 2018 10:48:58 -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=@codeaurora.org header.s=default header.b=ByD6upzM; dkim=pass header.i=@codeaurora.org header.s=default header.b=M3TfXFYX; 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 S1166896AbeBOSqX (ORCPT + 99 others); Thu, 15 Feb 2018 13:46:23 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:57960 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1162567AbeBOSqU (ORCPT ); Thu, 15 Feb 2018 13:46:20 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 2B8D160585; Thu, 15 Feb 2018 18:46:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1518720379; bh=+YE7axnBR68FwAedyVEj29MoD9B8egIOJLUYFw3i1lI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ByD6upzMrZr71Q80GKbPBC/1+UVbkoy3kP8Fclov3fUGVpuDEI2U7Gp8MkCWevz1E Jd6n0a+j4cOwXWBXBasmPBjz+HSDPZk13PgAy6ffJdOQpHYFBaU8CxpoRN/L4v/v7P +Y1H6CfqYOjznMt7Gcio22yZKdf8j/M4xRxdLjzU= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from localhost (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: ilina@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 7BBB760558; Thu, 15 Feb 2018 18:46:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1518720378; bh=+YE7axnBR68FwAedyVEj29MoD9B8egIOJLUYFw3i1lI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=M3TfXFYXA2A9aI32lG/W2efyhBjNugmE+LrVrSGSjp5yMTY+BA6eATb4gYp904afj covqYbdiFa7FHTyU3lQx0Noad9XwMWBlG/AaS0iW0l9NaJ74iPTCTUVvLC3LXV9PSZ 6pGo82afYzdNkcg9LK7Akl1XrWOXCFXieOl4SWsM= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 7BBB760558 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=ilina@codeaurora.org Date: Thu, 15 Feb 2018 18:46:17 +0000 From: Lina Iyer To: Bjorn Andersson 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: <20180215184617.GB23714@codeaurora.org> References: <20180208195154.3580-1-ilina@codeaurora.org> <20180208195154.3580-3-ilina@codeaurora.org> <20180214193419.GE93895@bjorns-mbp-2.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20180214193419.GE93895@bjorns-mbp-2.lan> User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 14 2018 at 19:34 +0000, Bjorn Andersson wrote: >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. > Yes, it can be described. But, the location should always be read from the address above. Generally, the CMD DB memory would not change, but it is not always guaranteed. >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. > Oh okay. I can take care of that. Thanks, Lina >> + memory-region = <&cmd_db_mem>; >> + };