From patchwork Thu May 4 20:05:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 9712627 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6719160235 for ; Thu, 4 May 2017 20:06:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 56EBE28329 for ; Thu, 4 May 2017 20:06:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4ACD328402; Thu, 4 May 2017 20:06:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ED6DE286A4 for ; Thu, 4 May 2017 20:06:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756982AbdEDUFw (ORCPT ); Thu, 4 May 2017 16:05:52 -0400 Received: from mail-pf0-f172.google.com ([209.85.192.172]:35480 "EHLO mail-pf0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756882AbdEDUFs (ORCPT ); Thu, 4 May 2017 16:05:48 -0400 Received: by mail-pf0-f172.google.com with SMTP id v14so12481690pfd.2 for ; Thu, 04 May 2017 13:05:48 -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=9h4oWcD2CALfesTd6MYnex00DvlJjVGJ8yNdy2570gk=; b=i1f+vLx3FCmAktb42arl/aqzfU50duxJjn58BD1JsBvVSnR601uWhKbjqS53hl1Xhx o1ARTxFtkySNm5eboOhcltELGNd2LlwMmcKbX8o8tAXI8eRFo/ZwY6w7w48iVdI08xgJ F52yTbGwpr9T5gDj/kRd1k9A+K4EvwT2DE2nQ= 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=9h4oWcD2CALfesTd6MYnex00DvlJjVGJ8yNdy2570gk=; b=U6RBdBVTzSf6KDtvh45IqkdnvHgadXUjZTsUyYjf7SwvyW1yT+7OvapoNFpagDvu/3 LjuwBcAYNMwBSdRNilxMSJOffEvoevI4Yj5gBY8nJnmHCT4M1hsmEwWRKrPU5RdpfhVr 4RoOBTyvSzNyXy/12/UTwlPDSnHe4MWNYr/oRtFwWIXmM1K51e0wIOimm1eVom4IRZTB X+ARYJzLGsMMEALLn2RKFiOBOFLCb1a6pPgg4r7oxiJe0oSEuSubvfPC2fGr5gB68+49 2mQMc9iLSqWVsutwG5kmeu6X2Ia7SwupuvF+xdqG6jS+38hgyW9VF7kV82qyOI2Pve80 bdkg== X-Gm-Message-State: AN3rC/5AYCrKiOkNqb9CGfVnI1f4Y5tneBWZ2BRDn23AgjGtQsgwkwEi SIJ0HCI97SotwjS9 X-Received: by 10.98.219.197 with SMTP id f188mr12840725pfg.109.1493928347330; Thu, 04 May 2017 13:05:47 -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 s68sm5969712pgc.5.2017.05.04.13.05.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 May 2017 13:05:46 -0700 (PDT) From: Bjorn Andersson To: Andy Gross , Rob Herring , Mark Rutland , Ohad Ben-Cohen Cc: Jassi Brar , 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 v4 4/5] soc: qcom: Add device tree binding for GLINK RPM Date: Thu, 4 May 2017 13:05:38 -0700 Message-Id: <20170504200539.27027-4-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20170504200539.27027-1-bjorn.andersson@linaro.org> References: <20170504200539.27027-1-bjorn.andersson@linaro.org> Sender: linux-remoteproc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Acked-by: Rob Herring --- Changes since v3: - Transition doorbell to mailbox framework 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 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..e32198df0e9c --- /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 + +- mboxes: + Usage: required + Value type: + Definition: reference to the "rpm_hlos" mailbox in APCS, as described + in mailbox/mailbox.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>; + + #mbox-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>; + + mboxes = <&apcs_glb 0>; + + rpm-requests { + compatible = "qcom,rpm-msm8996"; + qcom,glink-channels = "rpm_requests"; + + ... + }; + };