Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2395316imu; Sun, 6 Jan 2019 00:12:16 -0800 (PST) X-Google-Smtp-Source: ALg8bN4b2OZqOSn3WY9cHanROPRtnhk5tNPvCo1NeVKYdTUEhHFXvqDP5lmGPZpZr1M4VGx4Gc6C X-Received: by 2002:a17:902:4681:: with SMTP id p1mr13138449pld.184.1546762336645; Sun, 06 Jan 2019 00:12:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546762336; cv=none; d=google.com; s=arc-20160816; b=tl47tDVNMUndO/awqlFp4r5pu1k6euWpxbUNax1ztl5YGy+dKmWiuGmwctI/0EJQhP t+Mn6cvDkcEYrI5Gl5tyLiMoXuhZMZwd4RMlLx5GyC7+D6fIq7UrB1AEXSH7XbLe0X8E 0XNwFLUJ6pO/ZsYVkseJJShmUDLh4PGjnrgw3MoxV+8XIUUJYKKagG0NhdVj4vb10nfI X9OHqV8ueahq9tdPDc00THDCoPcmDJ1tadklHgozyDGohlJh+WFNVBcrhC6gIgi3PXGB lKb7mijSkzolHrHU1/6v49WutJqnDZQkazNrLhHMgbiNXEWG/k7muecFqc6bwT7JW+uY Z/6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=rh2Ck7LIQpEkBwHFh55ynypbWnh0z21Uufq2+c/DSpk=; b=KRdtyEZK3DJZIVZvuWdk1fzNR8IKQ8RL4UedpOzoasADdP9id4+ivXy91EURnXBUcn NAHEY4yVPeM2OmsxEZ778TLvd/2/RmjgeIHWMvLm1gajJFr8i2xeSzD28XuKhvUGvCcP 6EvEmdjRSkFgNY+IOuXBCantInIPLnFB2gnrw6qkmG8GblaP71ZXj7UIl99MHCtCoTFT uv00RgF2K9gdp9qbxP1ko1P7toPUF5jIvTn4/Eqf6mUVlnYFFf12pWu/1X3njWXQ+6Az yO9VdsAlNi/JZi3nE+BtKlGkN4MX5W5EZ9kChd981yE8pMPV52k8HpuHCA6SWlXH5OD+ VxpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cMMKRR86; 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; dmarc=pass (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 a6si15897064plz.316.2019.01.06.00.11.59; Sun, 06 Jan 2019 00:12:16 -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=@linaro.org header.s=google header.b=cMMKRR86; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726462AbfAFIKU (ORCPT + 99 others); Sun, 6 Jan 2019 03:10:20 -0500 Received: from mail-pf1-f196.google.com ([209.85.210.196]:37463 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726445AbfAFIKT (ORCPT ); Sun, 6 Jan 2019 03:10:19 -0500 Received: by mail-pf1-f196.google.com with SMTP id y126so20317615pfb.4 for ; Sun, 06 Jan 2019 00:10:18 -0800 (PST) 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=rh2Ck7LIQpEkBwHFh55ynypbWnh0z21Uufq2+c/DSpk=; b=cMMKRR86xvlO/bimhaW4sFTbsUyo1Dvu5bGm1I1yAXrqhKPXT5lb5yW69OagxYWoay usXvR9vn8Yxn2UPZB1s42euFIrprWvAGySzeA2bS+/nh7vqCkRgqlqVjUf4c6VVp+Fir r5Qf4Ey2wQMgUvigBhC7vbFSS3k2UovfIVdrA= 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=rh2Ck7LIQpEkBwHFh55ynypbWnh0z21Uufq2+c/DSpk=; b=V9K4fyBer9lIufIaUxhRW77DlW/7F/xJlh/5Tp6ScnoVbxzemRuzNCDe5AyESkp+T1 UgWrdSlvoo9hwB52Q51xqku1OUczREA11jieCNZnoEfm/gcE6/R+7ga2/8ImQOqKk9HL Po91jDDo3TpLrS5PxPnpbWgJIVXwPUlXk2Mq8EUuOV9P0eiriPi9kCR9R5E25gLkd6WF lUGFcR28bL1YzaSkmlqhE2M/PkvympQayfUC/M6B/IDI2+sQVkzlvYhNeX2edtACgJgd zs4n4Ubv/YyDpjFH/mn5UdDWzGT8AemOMLTGi2yk1jmCNZE2e2HNqxSbrNBENLsfKN+M ZaDw== X-Gm-Message-State: AA+aEWaHn5e9PhzLvjEo4RRzzscA+Ye9UcYMOEpxoUG6PKGoqcRH9ATO +PD3d47/ynKyhM+HIc/ponH0gQ== X-Received: by 2002:a62:ea09:: with SMTP id t9mr61431520pfh.228.1546762218054; Sun, 06 Jan 2019 00:10:18 -0800 (PST) Received: from localhost.localdomain (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id v190sm90763364pfv.26.2019.01.06.00.10.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 Jan 2019 00:10:17 -0800 (PST) From: Bjorn Andersson To: Andy Gross , David Brown , Rob Herring , Mark Rutland Cc: Russell King , Ulf Hansson , Arun Kumar Neelakantam , linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/7] dt-bindings: soc: qcom: Add AOSS QMP binding Date: Sun, 6 Jan 2019 00:09:09 -0800 Message-Id: <20190106080915.4493-2-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20190106080915.4493-1-bjorn.andersson@linaro.org> References: <20190106080915.4493-1-bjorn.andersson@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add binding for the QMP based side-channel communication mechanism to the AOSS, which is used to control resources not exposed through the RPMh interface. Signed-off-by: Bjorn Andersson --- Changes since v1: - Don't describe power-domain as a separate child node .../bindings/soc/qcom/qcom,aoss-qmp.txt | 57 +++++++++++++++++++ include/dt-bindings/power/qcom-aoss-qmp.h | 15 +++++ 2 files changed, 72 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/qcom/qcom,aoss-qmp.txt create mode 100644 include/dt-bindings/power/qcom-aoss-qmp.h diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom,aoss-qmp.txt b/Documentation/devicetree/bindings/soc/qcom/qcom,aoss-qmp.txt new file mode 100644 index 000000000000..9b0d9785efe0 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/qcom/qcom,aoss-qmp.txt @@ -0,0 +1,57 @@ +Qualcomm Always-On Subsystem side channel binding + +This binding describes the hardware component responsible for side channel +requests to the always-on subsystem (AOSS), used for certain power management +requests that is not handled by the standard RPMh interface. Each client in the +SoC has it's own block of message RAM and IRQ for communication with the AOSS. +The protocol used to communicate in the message RAM is known as QMP. + +The AOSS side channel exposes control over a set of resources, used to control +a set of debug related clocks and to affect the low power state of resources +related to the secondary subsystems. These resources are exposed as a set of +power-domains. + +- compatible: + Usage: required + Value type: + Definition: must be "qcom,sdm845-aoss-qmp" + +- reg: + Usage: required + Value type: + Definition: the base address and size of the message RAM for this + client's communication with the AOSS + +- interrupts: + Usage: required + Value type: + Definition: should specify the AOSS message IRQ for this client + +- mboxes: + Usage: required + Value type: + Definition: reference to the mailbox representing the outgoing doorbell + in APCS for this client, as described in mailbox/mailbox.txt + +- #power-domain-cells: + Usage: optional + Value type: + Definition: must be 1 + The provided power-domains are: + QDSS clock-domain (0), CDSP state (1), LPASS state (2), + modem state (3), SLPI state (4), SPSS state (5) and Venus + state (6). + += EXAMPLE + +The following example represents the AOSS side-channel message RAM and the +mechanism exposing the power-domains, as found in SDM845. + + aoss_qmp: qmp@c300000 { + compatible = "qcom,sdm845-aoss-qmp"; + reg = <0x0c300000 0x100000>; + interrupts = ; + mboxes = <&apss_shared 0>; + + #power-domain-cells = <1>; + }; diff --git a/include/dt-bindings/power/qcom-aoss-qmp.h b/include/dt-bindings/power/qcom-aoss-qmp.h new file mode 100644 index 000000000000..7d8ac1a4f90c --- /dev/null +++ b/include/dt-bindings/power/qcom-aoss-qmp.h @@ -0,0 +1,15 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* Copyright (c) 2018, Linaro Ltd. */ + +#ifndef __DT_BINDINGS_POWER_QCOM_AOSS_QMP_H +#define __DT_BINDINGS_POWER_QCOM_AOSS_QMP_H + +#define AOSS_QMP_QDSS_CLK 0 +#define AOSS_QMP_LS_CDSP 1 +#define AOSS_QMP_LS_LPASS 2 +#define AOSS_QMP_LS_MODEM 3 +#define AOSS_QMP_LS_SLPI 4 +#define AOSS_QMP_LS_SPSS 5 +#define AOSS_QMP_LS_VENUS 6 + +#endif -- 2.18.0