From patchwork Sat May 27 23:23:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 100609 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp841766qge; Sat, 27 May 2017 16:23:43 -0700 (PDT) X-Received: by 10.99.168.6 with SMTP id o6mr10337221pgf.104.1495927423659; Sat, 27 May 2017 16:23:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1495927423; cv=none; d=google.com; s=arc-20160816; b=Rpo+QVT97/6VMr9aR+LzB3S8gDICCE3N3OD/kjwFTyN5p7z+SVkQT7qWlLOrDPII2R ywFAEDIUBxPJk/q9DW1hfOLcWcTq1nZqr4Zh04BxKATlDxD0ucg8EFfk4oxbwhwQ9bCX tlj/kiLvY9Yskm1A/jQ/QnkjOEOIBkILXsz0KcFO58wb3z6fHkLI66Ombo9Hl9MytY0T xd6UHZS4F1LLD4zLlHPTQWcmxiEqctWUt+6bkDM+dbi5ahZiXvl6w0S3wvbCQM4s7oNE UethnObQNUv+NPZZ00C2saLkMiIa2SCCKUwruwMcrYVDBuv07LdOi9QLfBC55ehpvaQ/ 2e3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=jP0H9KSt0MmEWKsjG9M859Hn/IJQIpOf2EW8Yi24pxQ=; b=ZFjw2u1iFzhrirNAbhbl7icPJ5a0YdTh6PqRUrgf9YlSS18ihuSmi6Insu/RZaB96c vc4OqUCgiGPuxQ/kWgnM1m0di17QQ0/FkEmoK9D2bRx11ShZaQzmwcx7OgTIqP5e6vEt nlWbVZSuoAQ8PIvfN8XC5tw1MptHfQu6RF48wUlkI/ZxTywTdp7sumo9zmI4elhVAdEC R79iykUWwJfpEfxGnE1ttS985QYiVe0ntVfQ/lXA/AmBY77K3XFJPwaW12DfLJN5IC9C CmLUCf2bgPM0E89aYHlLvOoiV8E/s1cCrC1lzgRg3MZjKuq89KhyQLi1G4dmcrTbK9BH G+Tg== ARC-Authentication-Results: i=1; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b76si5597900pfd.382.2017.05.27.16.23.43; Sat, 27 May 2017 16:23:43 -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 S1750773AbdE0XXl (ORCPT + 10 others); Sat, 27 May 2017 19:23:41 -0400 Received: from mail-pf0-f177.google.com ([209.85.192.177]:33986 "EHLO mail-pf0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750751AbdE0XXj (ORCPT ); Sat, 27 May 2017 19:23:39 -0400 Received: by mail-pf0-f177.google.com with SMTP id 9so32245843pfj.1 for ; Sat, 27 May 2017 16:23:39 -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=buuFTMy0YUrbhjAeSKbvDbUjBfunEPxGWRrq8JXd5q0=; b=jGLLcq6Lt+g75hVGlFE1k/yDA3bdTvEFhAwQlSd712rfQRVjsg3vje5NWdWzUi0PpD 334hKF4ZwxsIGQlw3prwwjMSWejT2bc5cOR1ADaFyJc/EKFDRgC3L0BK8+t0Gsfe1FgZ mkj/M+nmTvy9vncxpJtWzSiOTqIutAyasGQPU= 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=buuFTMy0YUrbhjAeSKbvDbUjBfunEPxGWRrq8JXd5q0=; b=MoocAOegxNrV3b94Z6rvyp29//4PTQ5rkbWjN9ijru8/haJZtda8kI592Crw9KODE9 ZP7ATJavUyHJB20E2V6YCH3b9un3ejd00YmWtnuTiinI+rHA6aiwI5ouCXnFSN2KRKJX ve5H9DTNBVgSR5nr4S4HIPAtaGoOaJf7jiGsACyzjrh/KqcXoMlHueOohpNk1Kr917/e L5ljJR0EQx4ULggWg8I+8S+jXQ0lrxKu4F86u/vomj3fJlE6EsAR6gU6YakRniuhd20X 05Uhe+a5DJS8IQIdoyFLZkbGm4oCRkTQt61WEHePLhwxsxNBtxsOcpiORc8tL/CrsAVW LNdw== X-Gm-Message-State: AODbwcAN3rP0QodEYjzJRVCN6p9PGOOah1F8IP9JgK/kLgC5AuojgKNN R0iw7tEg7PvXdXWG X-Received: by 10.101.86.67 with SMTP id m3mr10487255pgs.137.1495927418843; Sat, 27 May 2017 16:23:38 -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 v64sm9518937pfk.86.2017.05.27.16.23.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 27 May 2017 16:23:38 -0700 (PDT) From: Bjorn Andersson To: Andy Gross Cc: Rob Herring , 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 v7 1/2] soc: qcom: Add device tree binding for GLINK RPM Date: Sat, 27 May 2017 16:23:34 -0700 Message-Id: <20170527232335.7775-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. Acked-by: Rob Herring Signed-off-by: Bjorn Andersson --- Changes since v6: - Change node in example to "mailbox" - Add Rob's ack. .../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 Acked-by: Andy Gross 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..50fc20c6ce91 --- /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: mailbox@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"; + + ... + }; + };