From patchwork Thu Mar 16 05:26: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: 95368 Delivered-To: patch@linaro.org Received: by 10.140.89.134 with SMTP id v6csp659698qgd; Wed, 15 Mar 2017 22:26:48 -0700 (PDT) X-Received: by 10.99.149.6 with SMTP id p6mr7767790pgd.122.1489642007887; Wed, 15 Mar 2017 22:26:47 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 74si2939054pfi.355.2017.03.15.22.26.47; Wed, 15 Mar 2017 22:26:47 -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 S1751110AbdCPF0q (ORCPT + 9 others); Thu, 16 Mar 2017 01:26:46 -0400 Received: from mail-pg0-f42.google.com ([74.125.83.42]:33662 "EHLO mail-pg0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750884AbdCPF0o (ORCPT ); Thu, 16 Mar 2017 01:26:44 -0400 Received: by mail-pg0-f42.google.com with SMTP id n190so19622667pga.0 for ; Wed, 15 Mar 2017 22:26:43 -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; bh=shbDVTyJFDnnYQcnCJ/iNeLRXaQ2ECUof+I7c1uI20o=; b=i6sV9OxYvzyemRTpWesAMc7RUmEh/aMb9mrEJopzTc4GaQg0iwEA3pMZ82QUo7sFfs Yf9ihAy0r3nl5BzLpArOxe0wzUPUDGKXPeIFF442wtF4aXbRopMO2K/ercLJa5RmBL8T Z3q9S4fcgvCjXo7gieIbjq6UxidV0ezC3yKSM= 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; bh=shbDVTyJFDnnYQcnCJ/iNeLRXaQ2ECUof+I7c1uI20o=; b=sCTZpQErmW3wMax+veEioBPV6agpoQqmUwM4CAg9J1rXPmfJt2NDtiwB6HrihgwlJV u0+eIAhgOoSCgw2likxuSWtTC+/HNA9ckIynzDOU7XfLnbhzWu8e52wrGav4Zu2HRpAj YF3GU/b04OaDEqhxLb6O0jJsR9vz+uYOj9O6+HHpeIFAZJsQiDRs8y+eiKAnt4yBy//y p0aE+WBET81k0lXOuVYYmchVwYEIOlp35K5G/1tbp8HoLbiI5CmhO34ydrsmp2NcSYIs 8Mqj+zsPvejYpI0qbqsVHeUmv98KT1ok9TV7un2f7MLxEv6rjv4t99PkklFiOI6eN1Dg kpPg== X-Gm-Message-State: AFeK/H2J9FrN0z8pW0uCvbPehM1hmc3XTkdjsAy3jUrc8plZH99MZ29ZN/pYAYnHgLpBjSmD X-Received: by 10.98.196.221 with SMTP id h90mr8065016pfk.149.1489642003200; Wed, 15 Mar 2017 22:26:43 -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 b83sm7405103pfe.12.2017.03.15.22.26.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Mar 2017 22:26:42 -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 1/2] soc: qcom: Add device tree binding for GLINK RPM Date: Wed, 15 Mar 2017 22:26:38 -0700 Message-Id: <20170316052639.11391-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.12.0 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 --- .../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 Tested-by: Srinivas Kandagatla 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..da92c4f787f3 --- /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 + +- qcom,ipc: + Usage: required + Value type: + Definition: three entries specifying the outgoing ipc bit used for + signaling the remote processor: + - phandle to a syscon node representing the apcs registers + - u32 representing offset to the register within the syscon + - u32 representing the ipc bit within the register + += 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: syscon@f9011000 { + compatible = "syscon"; + reg = <0xf9011000 0x1000>; + }; + + 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>; + qcom,ipc = <&apcs 0x10 0>; + + rpm-requests { + compatible = "qcom,rpm-msm8996"; + qcom,glink-channels = "rpm_requests"; + + ... + }; + };