From patchwork Wed Feb 6 05:13:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 157559 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp6000907jaa; Tue, 5 Feb 2019 21:13:54 -0800 (PST) X-Google-Smtp-Source: AHgI3IYx8TxjFTr5jTKGatC7KtAofqx48xxQqlrK0wWnnnugwSXvs5IFGGFcKa6n/gi0O8L4VO9p X-Received: by 2002:aa7:8a45:: with SMTP id n5mr658594pfa.151.1549430034239; Tue, 05 Feb 2019 21:13:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549430034; cv=none; d=google.com; s=arc-20160816; b=FiVhnrcHpp9CiGTaGxNE+FRQ4EgR2MRF+smeJMwMaVm9gYzsH0nyU4cCQOEr0D8al9 NgLwbHzi/s53Aq6OMWJ8rjCedm/614F12zVJ9pQYhTNZJaLUusYMm8eCBkn7GDExanYm z0aflw/hfBetdTO8lWIBYUT4fTh7ZFuYbERsgLucx/gmiKaNDsgm26xUxLoK16jEY4bd haX0S1gcqPa5jmnWWxkYxiD+c2dPAFBKZNKrfRImouo1fpYZVMG6RCp+eHyB9TU2kU+r A/3BzshlRc8aIqSfTLJzTq6m9ycqS3CU43a4Jk7hJ8KqAB4khx0pwcDodzFXbJN8oBPV N/aA== 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=7GluNEYIYq7F+AEH/HbazVyyzUsPwLBNFtLOwueywr4=; b=KOxeiFe8wY0ny/UdiuvI5MNKMOz0AT4kMkIT+utlpE/qqZCoD4FM8NTMYRnF5Fq9fw +kFwmWjRdSMiLhW5Xm66ikjYjA/vSBLQ4z3L4Wk5x8Ca10wpodo1q6PeyYBOGyevQSK/ /cKFkppX2NsTukeAw2U+sgJr2V7ipDX/OEDl7vn1NJAQYRrGPLwDiMxGXoPur+SriDFX CD/NUmcRcaLjg3hv6OA+EnaPVOk2qfbLOemNw04+67WiTSQoK41a2X0Bw8fBC2n5Nykl xgDU0dO84NDX2Dl6c6HDVTrRZeeznO8fymsuryZEc/9t4G1+oIglv7JMZHzJ/MFIJ1Gu ijoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=olCPqWZk; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 w11si3972824pfk.210.2019.02.05.21.13.54; Tue, 05 Feb 2019 21:13:54 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=olCPqWZk; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 S1727702AbfBFFNs (ORCPT + 7 others); Wed, 6 Feb 2019 00:13:48 -0500 Received: from mail-pl1-f194.google.com ([209.85.214.194]:43865 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727741AbfBFFNs (ORCPT ); Wed, 6 Feb 2019 00:13:48 -0500 Received: by mail-pl1-f194.google.com with SMTP id gn14so2568252plb.10 for ; Tue, 05 Feb 2019 21:13:47 -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=7GluNEYIYq7F+AEH/HbazVyyzUsPwLBNFtLOwueywr4=; b=olCPqWZkszTummcLF45fgSS6Be0r4s970GM4lIGJG9B/+d9N8Fxy70sK+n3s50kPK+ 5tu4ImXkCoDV28G+iAye35ofFuuDYUdvgipmEcrRo9wQLLVVHo8WFraxm/SYiIcDQTaw mR0hrE7KK2kVXPMMl5WczmHP39d59X6uKFSAC32YbfIX3Zbn5nS3/epiiDTUEQ/N5nda WOZ7ZoOeZ8uAh5o5eT/W8YPG3rODa4reiyPhaJarlcmlOSzt+UWhgsAgISojGlcBfuxC UFXmCfAH/HtzAZbGU8KXf2FGGR4cL2duTCktq4coq2bJixpPayAqSDy3G0KE9cKaQyt1 5Miw== 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=7GluNEYIYq7F+AEH/HbazVyyzUsPwLBNFtLOwueywr4=; b=ua+0guGBm8OMU5YQdHNkc6zgTi15TM+UtZpb9FAZ3njWQyIEPAGfGwVSrJZsaI3g5y wN1tlsZ4ejFDqAuoh8UmKumtZyDusICvnWnXh3haCf8FFd+bGJRFs9SvsgGrbaaPccDZ SRneHwLs7zRXlyz9tPhMVTp0w8yl5iKyhmregkJla/UfWRRYgRXu6PtI9H5e1nJOfHYa LpyH8B4pCET00avqhqwHXSNTDcHjFYaIT0ObA7vq+Wi7l0wbcxy8T5sQKr2PoV42SOPy qxqvzekMcSLLAbgcr7i7KcTOfJ85xxrun/RZ76R+K/MidBJ7xC3jxSitEKZkNsjHB1X4 v/Sg== X-Gm-Message-State: AHQUAubhQjUOY5dtKKnrsaw5M8ktzc6Q0WRckkS3pRgIzgmymaQvjH94 Vzn4oUZ/sr+/YXNVva/d3cK9TQ== X-Received: by 2002:a17:902:9b87:: with SMTP id y7mr8931954plp.336.1549430027126; Tue, 05 Feb 2019 21:13:47 -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 y71sm10735012pfi.123.2019.02.05.21.13.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Feb 2019 21:13:46 -0800 (PST) From: Bjorn Andersson To: Andy Gross Cc: David Brown , Rob Herring , Mark Rutland , Arun Kumar Neelakantam , Sibi Sankar , Doug Anderson , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v6 4/8] dt-bindings: soc: qcom: Add AOSS QMP binding Date: Tue, 5 Feb 2019 21:13:31 -0800 Message-Id: <20190206051335.23799-5-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20190206051335.23799-1-bjorn.andersson@linaro.org> References: <20190206051335.23799-1-bjorn.andersson@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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. Reviewed-by: Rob Herring Reviewed-by: Stephen Boyd Signed-off-by: Bjorn Andersson --- Changes since v5: - None .../bindings/soc/qcom/qcom,aoss-qmp.txt | 76 +++++++++++++++++++ include/dt-bindings/power/qcom-aoss-qmp.h | 15 ++++ 2 files changed, 91 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/qcom/qcom,aoss-qmp.txt create mode 100644 include/dt-bindings/power/qcom-aoss-qmp.h -- 2.18.0 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..9ce6c42192ad --- /dev/null +++ b/Documentation/devicetree/bindings/soc/qcom/qcom,aoss-qmp.txt @@ -0,0 +1,76 @@ +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 Qualcomm +Messagin Protocol (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). + += SUBNODES +The AOSS side channel also provides the controls for three cooling devices, +these are expressed as subnodes of the QMP node. The name of the node is used +to identify the resource and must therefor be "cx", "mx" or "ebi". + +- #cooling-cells: + Usage: optional + Value type: + Definition: must be 2 + += 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>; + + cx_cdev: cx { + #cooling-cells = <2>; + }; + + mx_cdev: mx { + #cooling-cells = <2>; + }; + }; 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