From patchwork Fri May 31 03:00:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 165480 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp141907ili; Thu, 30 May 2019 20:01:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqyMO/FeFQjiGAsngCaiGay6Vtw/7O1XhCIvP6LexEc7jyOJ1JJabrgh9/ghFoJrcQ3dg2B6 X-Received: by 2002:a63:700b:: with SMTP id l11mr6402795pgc.449.1559271671878; Thu, 30 May 2019 20:01:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559271671; cv=none; d=google.com; s=arc-20160816; b=oSZ7it5fY8qoh7Z7q4HVo6wy/dgQEVgS9eNq/xynnd6CMZAApu+O4VWTzyf9O4aWF3 wqUcZIinC7YVLZ0fLwgF3U3wX8fFzUJevKhHo6VMXqIEv6KtJ/vN/YHkBP/cdaIqhIXR rMUvrwX/HTfYQrHdwwOcE/JAc/6QgQHj+AaOlETQc64HU7/m72xt7DxxZtPIRSh1HCgh z+T4RlpPe3blY73PCLsaaLcNe0v2zuXwASO07+SM+4MIF7WyLu8x6HT1yBJIf06FE9Wi MDSlKYL9Ysh/gY5DydPE6xWCRuW5mMiLg8x9vUnhOrbDw9rP4BA+ry3865XBUAmN9LGM 6bPg== 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=JAKPz5HiR/M9MZ5W/93Y/2txxEly1u4ytdsXz4IxAZM=; b=eL8+aylet8vkHRxoCpZtQMdRB6/YJs4WzHhdABWpfb3miGKOzDPW4J96HQ8oLCVjix nRRBZ+p6gWhbQKyf37Tk2ioSMQlKkeh2L659/VZaJhgEdhc7Z3MFVmfyJMqO8TcRUzJP IDQ3ZT48PHDfV1PnghVpTX673jkoOJBpWu6Kemn2q0938vzOdPFTiVKGnQiG0G80ECeM Q2Stfv6QD45xLOLTdE4bYpz8BRfebwDmHWfDXdSZkTR+8pdJi8+uZOY+SSjDdal2BvVV CTsl8mjWsn7ywZRTyvNuDrN9Da6fpxdLAAXB++3VZ4GRHlHcqoBmUbnkcu0xbxt0tmZD xgUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PtlXPcbo; 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 185si4982147pfa.180.2019.05.30.20.01.11; Thu, 30 May 2019 20:01:11 -0700 (PDT) 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=PtlXPcbo; 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 S1726784AbfEaDBF (ORCPT + 30 others); Thu, 30 May 2019 23:01:05 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:39206 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726643AbfEaDBD (ORCPT ); Thu, 30 May 2019 23:01:03 -0400 Received: by mail-pf1-f193.google.com with SMTP id j2so5222549pfe.6 for ; Thu, 30 May 2019 20:01:03 -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=JAKPz5HiR/M9MZ5W/93Y/2txxEly1u4ytdsXz4IxAZM=; b=PtlXPcbo4dDcpE3ipqToSLUoiilw4pslHUCPpdqU/uIDE7SUrNvYRFtCTnOlm2fXY0 BShSdoX0WGnvbEaKEqfwcb4pe1BxeQ26RXIFoCw+BW6J6AZjSZytxIZhJUt5VjO3sRGB j5oVWGZ2grZPKi0Fgg8fXd8HqsnrI/n/muxZ1oltqKE2YP4r8B1ZzPUkbdDp4hSSF4WQ 1XKLSeWq8fAeEJFzSCGTqND1dT8a6TuRI79Y8wprv+O3wfRnvh7qes5T+YsbeLz22sTd JXKlvtHx4/DknPQmlq7f3Vx52sxO3IAR0RDFCRKGrWSR5/2WoR9vAOAyTLJNVPkCNtlT fsbw== 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=JAKPz5HiR/M9MZ5W/93Y/2txxEly1u4ytdsXz4IxAZM=; b=ggAEs7U73EzvSpz80XlK4a3t2cw44CdA50U4Ve95uj8LtJkATRMUxfLSf3BtEhdNH6 H85X0ziTol38Otfn5yQUxuIfUzFV2FoZu3W3YjG3V8qM9yQvzDj2feT8ATDJmqmi11My 5bvGEF0SjTAw8AmhCX0GeRzObnEpjROPkmrOUxjJtXh5/vQZsdnKq1dkFvSvVYvxNlRc d9crZyjOzhAqhNOxgHht9+Afta/N3hlqA4HhwD8VCC5YdUKsC3LzmklISJLhyELqPoBw gkU0d/9F17AQfLbfd++iN/ALlBGG9QFcZFNh9PgKCpmFf6vQ80SaovjVHqSXAmnRw4UK 32eA== X-Gm-Message-State: APjAAAUtGXjAasfaKdulOJxSGc1MGkyiu5y5DVM1uFuHkDqSGWSK/j36 sQi3wuubxE6tujqLiY+ejOs2Kg== X-Received: by 2002:a17:90a:9b8b:: with SMTP id g11mr6297449pjp.103.1559271662688; Thu, 30 May 2019 20:01:02 -0700 (PDT) Received: from localhost.localdomain (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id m8sm6991549pff.137.2019.05.30.20.01.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 May 2019 20:01:01 -0700 (PDT) From: Bjorn Andersson To: Andy Gross Cc: David Brown , Rob Herring , Mark Rutland , Doug Anderson , Arun Kumar Neelakantam , Vinod Koul , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v8 1/4] dt-bindings: soc: qcom: Add AOSS QMP binding Date: Thu, 30 May 2019 20:00:54 -0700 Message-Id: <20190531030057.18328-2-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20190531030057.18328-1-bjorn.andersson@linaro.org> References: <20190531030057.18328-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. Reviewed-by: Rob Herring Reviewed-by: Vinod Koul Signed-off-by: Bjorn Andersson --- Changes since v7: - Fix spelling of "Messaging" .../bindings/soc/qcom/qcom,aoss-qmp.txt | 81 +++++++++++++++++++ include/dt-bindings/power/qcom-aoss-qmp.h | 14 ++++ 2 files changed, 95 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..954ffee0a9c4 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/qcom/qcom,aoss-qmp.txt @@ -0,0 +1,81 @@ +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 +Messaging 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 + +- #clock-cells: + Usage: optional + Value type: + Definition: must be 0 + The single clock represents the QDSS clock. + +- #power-domain-cells: + Usage: optional + Value type: + Definition: must be 1 + The provided power-domains are: + CDSP state (0), LPASS state (1), modem state (2), SLPI + state (3), SPSS state (4) and Venus state (5). + += 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..ec336d31dee4 --- /dev/null +++ b/include/dt-bindings/power/qcom-aoss-qmp.h @@ -0,0 +1,14 @@ +/* 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_LS_CDSP 0 +#define AOSS_QMP_LS_LPASS 1 +#define AOSS_QMP_LS_MODEM 2 +#define AOSS_QMP_LS_SLPI 3 +#define AOSS_QMP_LS_SPSS 4 +#define AOSS_QMP_LS_VENUS 5 + +#endif