Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: soc: qcom: Add AOSS QMP binding

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 <robh@kernel.org>
Reviewed-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>

+95
+81
Documentation/devicetree/bindings/soc/qcom/qcom,aoss-qmp.txt
··· 1 + Qualcomm Always-On Subsystem side channel binding 2 + 3 + This binding describes the hardware component responsible for side channel 4 + requests to the always-on subsystem (AOSS), used for certain power management 5 + requests that is not handled by the standard RPMh interface. Each client in the 6 + SoC has it's own block of message RAM and IRQ for communication with the AOSS. 7 + The protocol used to communicate in the message RAM is known as Qualcomm 8 + Messaging Protocol (QMP) 9 + 10 + The AOSS side channel exposes control over a set of resources, used to control 11 + a set of debug related clocks and to affect the low power state of resources 12 + related to the secondary subsystems. These resources are exposed as a set of 13 + power-domains. 14 + 15 + - compatible: 16 + Usage: required 17 + Value type: <string> 18 + Definition: must be "qcom,sdm845-aoss-qmp" 19 + 20 + - reg: 21 + Usage: required 22 + Value type: <prop-encoded-array> 23 + Definition: the base address and size of the message RAM for this 24 + client's communication with the AOSS 25 + 26 + - interrupts: 27 + Usage: required 28 + Value type: <prop-encoded-array> 29 + Definition: should specify the AOSS message IRQ for this client 30 + 31 + - mboxes: 32 + Usage: required 33 + Value type: <prop-encoded-array> 34 + Definition: reference to the mailbox representing the outgoing doorbell 35 + in APCS for this client, as described in mailbox/mailbox.txt 36 + 37 + - #clock-cells: 38 + Usage: optional 39 + Value type: <u32> 40 + Definition: must be 0 41 + The single clock represents the QDSS clock. 42 + 43 + - #power-domain-cells: 44 + Usage: optional 45 + Value type: <u32> 46 + Definition: must be 1 47 + The provided power-domains are: 48 + CDSP state (0), LPASS state (1), modem state (2), SLPI 49 + state (3), SPSS state (4) and Venus state (5). 50 + 51 + = SUBNODES 52 + The AOSS side channel also provides the controls for three cooling devices, 53 + these are expressed as subnodes of the QMP node. The name of the node is used 54 + to identify the resource and must therefor be "cx", "mx" or "ebi". 55 + 56 + - #cooling-cells: 57 + Usage: optional 58 + Value type: <u32> 59 + Definition: must be 2 60 + 61 + = EXAMPLE 62 + 63 + The following example represents the AOSS side-channel message RAM and the 64 + mechanism exposing the power-domains, as found in SDM845. 65 + 66 + aoss_qmp: qmp@c300000 { 67 + compatible = "qcom,sdm845-aoss-qmp"; 68 + reg = <0x0c300000 0x100000>; 69 + interrupts = <GIC_SPI 389 IRQ_TYPE_EDGE_RISING>; 70 + mboxes = <&apss_shared 0>; 71 + 72 + #power-domain-cells = <1>; 73 + 74 + cx_cdev: cx { 75 + #cooling-cells = <2>; 76 + }; 77 + 78 + mx_cdev: mx { 79 + #cooling-cells = <2>; 80 + }; 81 + };
+14
include/dt-bindings/power/qcom-aoss-qmp.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0 */ 2 + /* Copyright (c) 2018, Linaro Ltd. */ 3 + 4 + #ifndef __DT_BINDINGS_POWER_QCOM_AOSS_QMP_H 5 + #define __DT_BINDINGS_POWER_QCOM_AOSS_QMP_H 6 + 7 + #define AOSS_QMP_LS_CDSP 0 8 + #define AOSS_QMP_LS_LPASS 1 9 + #define AOSS_QMP_LS_MODEM 2 10 + #define AOSS_QMP_LS_SLPI 3 11 + #define AOSS_QMP_LS_SPSS 4 12 + #define AOSS_QMP_LS_VENUS 5 13 + 14 + #endif