From patchwork Wed May 3 05:29:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 98466 Delivered-To: patch@linaro.org Received: by 10.182.142.97 with SMTP id rv1csp483257obb; Tue, 2 May 2017 22:30:18 -0700 (PDT) X-Received: by 10.98.14.28 with SMTP id w28mr2833783pfi.59.1493789418228; Tue, 02 May 2017 22:30:18 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f75si1560401pff.179.2017.05.02.22.30.17; Tue, 02 May 2017 22:30:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751927AbdECFaG (ORCPT + 10 others); Wed, 3 May 2017 01:30:06 -0400 Received: from mail-pg0-f43.google.com ([74.125.83.43]:36573 "EHLO mail-pg0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751494AbdECF3h (ORCPT ); Wed, 3 May 2017 01:29:37 -0400 Received: by mail-pg0-f43.google.com with SMTP id t7so72341320pgt.3 for ; Tue, 02 May 2017 22:29:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ofcC/TV/WGtBBvQzRe7tVEatrX99TS8BFq4Tv5FvsYI=; b=cdqm4Ke/tRxtsgEQdiBWpG79bipUfWq6nREqcL9PtRzK8pLW6ag54s9Y2qGMCj7B05 DEzXni3E6ITQSpC/qDlwu9lYd8vqMxtiD0ikiY2vK90Ay34sQbP92GlHvBKUYgPI9O8i mJwSXDpDb4UNLfUBVjiwvBAWni4hHYyaLuzWU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ofcC/TV/WGtBBvQzRe7tVEatrX99TS8BFq4Tv5FvsYI=; b=glF5WBbFO3irmUaJYnshquX0F0L2x/mcgDj+4CMfZ0r49goGNBGO1t1uvT5LedA+bQ ectbctMPr8/34zWv9ooM2pRvcOfo701rhGpHqCOUUWpGJaasj7t4db4Yxb/kbEsVkpJ0 RjeqiZLLAj1NLmbDtyYWp8YRfDDaFiEySnFHG5RMSku3S3GrKcXS5Li+cPbMcnzyqlfh v9AlE01ecJ1+7KjSNS4ucy9DH8ebqlLOjbEXIwhIT6FsE91V+hq+v+hFPwYMN+cQWHTR +ecjQSZz8XfM7myWE2ko18TRcbAheq311QFvOe02rIvadJOe4zvCFrcfrr6NeavVPTih Yk3A== X-Gm-Message-State: AN3rC/5iBxSZ8FQkExiUlKy3FGTY8mwDmKukzG6EIjJe8MPfNFAJIuRC JiJ95BHtE9XWTkaa X-Received: by 10.99.181.25 with SMTP id y25mr13887472pge.192.1493789376623; Tue, 02 May 2017 22:29:36 -0700 (PDT) Received: from localhost.localdomain (ip68-111-223-48.sd.sd.cox.net. [68.111.223.48]) by smtp.gmail.com with ESMTPSA id e72sm2001576pfk.17.2017.05.02.22.29.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 May 2017 22:29:35 -0700 (PDT) From: Bjorn Andersson To: Andy Gross , Rob Herring , Mark Rutland , Ohad Ben-Cohen Cc: linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-remoteproc@vger.kernel.org Subject: [PATCH v3 3/4] soc: qcom: Add device tree binding for GLINK RPM Date: Tue, 2 May 2017 22:29:28 -0700 Message-Id: <20170503052929.17422-3-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20170503052929.17422-1-bjorn.andersson@linaro.org> References: <20170503052929.17422-1-bjorn.andersson@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add device tree binding documentation for the Qualcomm GLINK RPM, used for communication with the Resource Power Management subsystem in various Qualcomm SoCs. Signed-off-by: Bjorn Andersson --- Changes since v2: - Replace qcom,ipc syscon with a "doorbell" Changes since v1: - None .../devicetree/bindings/soc/qcom/qcom,glink.txt | 73 ++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/qcom/qcom,glink.txt -- 2.12.0 -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom,glink.txt b/Documentation/devicetree/bindings/soc/qcom/qcom,glink.txt new file mode 100644 index 000000000000..4c8983f0dcb0 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/qcom/qcom,glink.txt @@ -0,0 +1,73 @@ +Qualcomm RPM GLINK binding + +This binding describes the Qualcomm RPM GLINK, a fifo based mechanism for +communication with the Resource Power Management system on various Qualcomm +platforms. + +- compatible: + Usage: required + Value type: + Definition: must be "qcom,glink-rpm" + +- interrupts: + Usage: required + Value type: + Definition: should specify the IRQ used by the remote processor to + signal this processor about communication related events + +- qcom,rpm-msg-ram: + Usage: required + Value type: + Definition: handle to RPM message memory resource + +- doorbells: + Usage: required + Value type: + Definition: reference to the "rpm_hlos" doorbell in APCS, as described + in doorbell.txt + += GLINK DEVICES +Each subnode of the GLINK node represent function tied to a virtual +communication channel. The name of the nodes are not important. The properties +of these nodes are defined by the individual bindings for the specific function +- but must contain the following property: + +- qcom,glink-channels: + Usage: required + Value type: + Definition: a list of channels tied to this function, used for matching + the function to a set of virtual channels + += EXAMPLE +The following example represents the GLINK RPM node on a MSM8996 device, with +the function for the "rpm_request" channel defined, which is used for +regualtors and root clocks. + + apcs_glb: apcs-glb@9820000 { + compatible = "qcom,msm8996-apcs-hmss-global"; + reg = <0x9820000 0x1000>; + + #doorbell-cells = <1>; + }; + + rpm_msg_ram: memory@68000 { + compatible = "qcom,rpm-msg-ram"; + reg = <0x68000 0x6000>; + }; + + rpm-glink { + compatible = "qcom,glink-rpm"; + + interrupts = ; + + qcom,rpm-msg-ram = <&rpm_msg_ram>; + + doorbells = <&apcs_glb 0>; + + rpm-requests { + compatible = "qcom,rpm-msm8996"; + qcom,glink-channels = "rpm_requests"; + + ... + }; + };