From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 305723AFD1C for ; Tue, 19 May 2026 19:05:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779217525; cv=none; b=XTHtIGT/kuD0M3JlXw3fPMDJkjHEAAzuaqAEqqap0eKD+HJ416vXpm6SwVoVFxx29lE7xq7YLuv++khswuqyUBCecxmhj+mh+YqXiSEJWqKiBKcb26f4QW3JQOY16XFeSnNygsOhPzpDljmOrSuOWfyFm1487UQzCIVnQdbiias= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779217525; c=relaxed/simple; bh=FswLjexa4W/19cOLQDCspqJYNyI5kjTklXut13h725o=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=aeOVlH5vaGHhV7mOjpgSlOuWTFzfBoplYb6mm79mR/ZVeJ4BbC3jIpMMRt8mPC1cjJWuoCNXUv8KaroY0PMb5HVLmT63d/vzhbiK+iSU15T4bCIv7qEilCxsAYOapGG0zOUN0oWYE+GuZ5jhvGIn17/uLaVhKSScpIo9vdlmHQE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=Q6b8drNk; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=XkyLd6MB; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="Q6b8drNk"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="XkyLd6MB" Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 64JExHwQ1237896 for ; Tue, 19 May 2026 19:05:23 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= gHAPpvkbvRI2RnEglKIra6lXC/2fx7JbZmYyoLMJzkg=; b=Q6b8drNkWgalir8q qSifjUkbQahQkJKS/9lDriMXkn8wZnsz2aGwTUyi/VwTIhr2C1FrVyAMA+ipaW/d 6AYFlFl28LHF1D9gPEJ7r8zTwOitRT2hDn97S21/l1zrnaHpE6F31Idgb5i4obke EcyQO5GCWeJglRQGCT/d/VIVrud6NdBZ9I3EIoAG3y+DGygCUbcldfFwdH4pQmIJ NPHHFilkReR8fs8T/Ncd/uLNIdObCRdGaKuNxbWWg2uzcOE4EJgV6kwp3ggUPOrf osZv9xxULK+KfEjxnXj4jzC+IHr9L/OfqevTcnxOPYWgo+upzWK+vGJvfMKKOJS+ 4FZDCQ== Received: from mail-pg1-f200.google.com (mail-pg1-f200.google.com [209.85.215.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4e8t3ss2tc-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 19 May 2026 19:05:23 +0000 (GMT) Received: by mail-pg1-f200.google.com with SMTP id 41be03b00d2f7-c828acf7c1dso6610576a12.3 for ; Tue, 19 May 2026 12:05:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1779217523; x=1779822323; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=gHAPpvkbvRI2RnEglKIra6lXC/2fx7JbZmYyoLMJzkg=; b=XkyLd6MBys6SpwD/3YdJErNtOAuoZp60mSiWQkebEfJ94bIp+pTqQyOkUppf5YIy9/ GRBJY86qSeLSUy9WMBeWbCm8mDF6KibGCbWPSKjol6ki1F69whHvwIVz73dQgW4ZviZj 4u4ifbXmf4R36IQCxeJzlaniw/iwHlm+tfWjpDGlLplGfdmfipIGZaQ+boX4tjv0fKGv 7Lo9y0/iwm2OaKxzo1oz5cN1x0c/Pu4uqb2+MFVTbql1AW0AEZ0tQ/rf68dMARSseAP4 J4JNyxX23JbKWtIw1gGGn/wn8C/XGW51GMN1aB7zfmcZKIsBXxsd18HouV1K1JsvWO9v jngA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779217523; x=1779822323; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=gHAPpvkbvRI2RnEglKIra6lXC/2fx7JbZmYyoLMJzkg=; b=gIAMdSPerDgIK5xuPP+tBbYCcrAxppCE2PKCKDG7/7sMIpNYMXHeD8QGal9wyVBMrH 3z1n7AMyVmLTB4/ELGGoEo1kqhxBQgO7NIBBiGb3jqKVvq1ZXV9ImK7QFEEh18fZM665 SCKeCTnYc31uOtuB5pTLuuNmtAWPOdxe/8bg1xVPBFNg5T5DVleyGmSeE6XT6iG3xrwW r1obUK+LaA4prKPgKPCxCsmKjw88pnF1uaFwYpjLYruCItN+PR1156GzvW2Fe5jCYbse ruKixykJWF9qIo8PIpCxzl+MWdLyMQGMtYuTJCJ1g7n+Q3ANME715L5IiETjvjleYwk4 cpmw== X-Forwarded-Encrypted: i=1; AFNElJ8PZBCZMR07mj2rzgz4aUM6RPXaIkBXI7MXw49GJ5XskGFUaKS+mec2ITDcdd+09FIH46eqD9EkVSrx//s=@vger.kernel.org X-Gm-Message-State: AOJu0Yxw9R/ptcS2vryuHL0M99JJn5abtDdiT1GblazUEhPH3wh7Pms1 nPc7rgRsZO/NUcSqFTUFp763uckd6dBchGIZSbot6XBErz/gBwxNWzP3jEj3GOHGxuMNypy3YGj cHHtPpKMn0nc+cfRUL3+tSUrSBdIu0ujJBgvDxIWE4PnH9aCHJfj7J2d3tKd8fJfnlQ0= X-Gm-Gg: Acq92OEv+f9x/NbP1G/7Aq4P0vPxUbsulHV9cdA8jHgMQod+HlyxbYStZAzUKysKoVt yquf2rMcG708dtPWPLfYHnm9VPRWBVkbdq0wiiTAMTwAvd6fUGg5w1EqFvQj6CZAHoYOdC/Lthe /wiSvpu2ZhqZ4M0FUg5PbL43kDvjwWnZ9TkauzFmUwKN+aTbm+WYjQbruf/wSbfb6f/qb1QM2Fx 1KaLYgTPoYcS1dnWoPA9FimVliKS9llgwALDr7Qdjx3KMCkFDUXxUXeP0vDcQzegROYtZP9Yh+z h9Dlm7PhjOS/VCJWouFy23/FnnJ72kUWp886MtjVA2Kb7SPnKT8xACvg2uOUnNCuVl+PCJB/LA0 pElhhdquwxw7jO0gQAafNP1cPKGcZ9aUcq3xfhQQ9ZbJAXFG90akkMXvwZfvP8JXAs2jNK38uvT IFKnQ5AagL1+J4CTSSLVUtVRwCZ8Y0IP9BwycXn16Vw2our/zn7K4= X-Received: by 2002:a05:6a20:9188:b0:3a2:e089:ae56 with SMTP id adf61e73a8af0-3b22ee36135mr24018352637.52.1779217522720; Tue, 19 May 2026 12:05:22 -0700 (PDT) X-Received: by 2002:a05:6a20:9188:b0:3a2:e089:ae56 with SMTP id adf61e73a8af0-3b22ee36135mr24018308637.52.1779217522069; Tue, 19 May 2026 12:05:22 -0700 (PDT) Received: from hu-viswanat-blr.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com. [103.229.18.19]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-83f19794e6esm17423401b3a.25.2026.05.19.12.05.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 May 2026 12:05:21 -0700 (PDT) From: Vignesh Viswanathan Date: Wed, 20 May 2026 00:35:09 +0530 Subject: [PATCH 1/2] dt-bindings: soc: qcom: Document CDSP Power Management Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260520-cdsp-power-v1-1-85eb9501a1cd@oss.qualcomm.com> References: <20260520-cdsp-power-v1-0-85eb9501a1cd@oss.qualcomm.com> In-Reply-To: <20260520-cdsp-power-v1-0-85eb9501a1cd@oss.qualcomm.com> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Liam Girdwood , Mark Brown , Vignesh Viswanathan Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1779217514; l=5161; i=vignesh.viswanathan@oss.qualcomm.com; s=20260518; h=from:subject:message-id; bh=FswLjexa4W/19cOLQDCspqJYNyI5kjTklXut13h725o=; b=R/5ABYELjlk9wnZSNkHlXqO9inFOaDo6atAm1JPNGo2b1bxoEK8e21KAIv9zuc8/jpap//BlT kOHtpjS8SwAAsG92mxeQQh3I5aLQaZRx85GVpGmQrV5W3+HNmLHna9W X-Developer-Key: i=vignesh.viswanathan@oss.qualcomm.com; a=ed25519; pk=/lHspsTTqZQg546ZudgrbywCsk3Whx/C0XNVUevaKNk= X-Proofpoint-GUID: 1_eRwebachSsqjibeAmUtOYSZfFLRiO_ X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNTE5MDE5MCBTYWx0ZWRfX5fesJrgE6e6t /cZsid40pPgXComaXpz4ZhKFBQKdzKBroz7TWY6h5Xfb/iF1eiHZhBiAQJQYduHzQqG53qD2Lhf vK/SSvtPNf1iUZoJK0mzVvQv0I3KgbexfWihPsMooRHEnSc2VVB6LWa+b0s9KoGL68Yue3Yt9Fv c+Tkd9hdRssa255ohzrAQybEVZtWQclyMO1y1dJqzdvTGMJJrgoZC4R1Zm4tPzMne89yE4Rn82y bvRCfbFG3Oz1nG6XPvO7lCerwsu2WKBAimbjvR8DA6gBFYZROrTmi7d6ry5lxkX7ZAaf2vC3XR6 qDsge/uQ6QzOF1sKuABXb91cRHlv1fAfG+as4ASSO4s0+zwzdALh5xnZ9oYVAcNeVjZOvCEl4z2 +RbX5oESRuuxuHD8CX4TM/cjvtvNTkKsx+o94RMOMcrEiyTIg2KXQS2tEOASBfbSK4IhfOvrbVN y9REuhHDBOW03GG5tAg== X-Proofpoint-ORIG-GUID: 1_eRwebachSsqjibeAmUtOYSZfFLRiO_ X-Authority-Analysis: v=2.4 cv=SNhykuvH c=1 sm=1 tr=0 ts=6a0cb473 cx=c_pps a=oF/VQ+ItUULfLr/lQ2/icg==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17 a=IkcTkHD0fZMA:10 a=NGcC8JguVDcA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yOCtJkima9RkubShWh1s:22 a=gEfo2CItAAAA:8 a=EUspDBNiAAAA:8 a=85UeY_1I7I5IrrPC5DQA:9 a=QEXdDO2ut3YA:10 a=3WC7DwWrALyhR5TkjVHa:22 a=sptkURWiP4Gy88Gu7hUp:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-05-19_05,2026-05-18_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 spamscore=0 bulkscore=0 adultscore=0 impostorscore=0 lowpriorityscore=0 priorityscore=1501 malwarescore=0 phishscore=0 clxscore=1015 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2605130000 definitions=main-2605190190 Add documentation for the CDSP Power Management driver, which handles Dynamic Clock and Voltage Scaling (DCVS) requests via SMEM, manages Low Power Mode (LPM) transitions via MPM handshake, and provides virtual regulators for the remoteproc driver to control CDSP power rails. Signed-off-by: Vignesh Viswanathan --- .../bindings/soc/qcom/qcom,cdsp-power.yaml | 138 +++++++++++++++++++++ 1 file changed, 138 insertions(+) diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom,cdsp-power.yaml b/Documentation/devicetree/bindings/soc/qcom/qcom,cdsp-power.yaml new file mode 100644 index 000000000000..f0f89fdeba4e --- /dev/null +++ b/Documentation/devicetree/bindings/soc/qcom/qcom,cdsp-power.yaml @@ -0,0 +1,138 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/qcom/qcom,cdsp-power.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm CDSP Power Management + +maintainers: + - Vignesh Viswanathan + +description: + The CDSP Power Management driver provides power management services for the + Qualcomm Compute DSP (CDSP) subsystem. It handles Dynamic Clock and Voltage + Scaling (DCVS) requests via SMEM, manages Low Power Mode (LPM) transitions + via MPM handshake, and provides virtual regulators that are consumed by the + CDSP remoteproc driver. + +properties: + compatible: + const: qcom,cdsp-power + + reg: + items: + - description: MPM (Modem Power Manager) register region + - description: RSCC (RSC Configuration) register region + + reg-names: + items: + - const: mpm + - const: rscc + + interrupts-extended: + items: + - description: LPM (Low Power Mode) interrupt from MPM + - description: DCVS (Dynamic Clock and Voltage Scaling) interrupt from IPCC + + interrupt-names: + items: + - const: lpm + - const: dcvs + + mboxes: + maxItems: 1 + description: IPCC mailbox channel for sending DCVS responses to CDSP + + qcom,smem-item: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + SMEM item ID used for DCVS communication channel between APSS and CDSP. + This is a platform-specific value that identifies the shared memory region. + + vdd-cx-supply: + description: + Phandle to the CX voltage regulator. This is the actual hardware regulator + (e.g., from MP8899 PMIC) that supplies power to the CDSP CX rail. + + vdd-mx-supply: + description: + Phandle to the MX voltage regulator. This is the actual hardware regulator + (e.g., from MP8899 PMIC) that supplies power to the CDSP MX rail. Optional + on boards where MX rail is always-on or not present. + + regulators: + type: object + description: + Virtual regulators provided by this driver for consumption by the CDSP + remoteproc driver. These virtual regulators pass through enable/disable + requests to the actual hardware regulators (vdd-cx-supply, vdd-mx-supply). + + properties: + cdsp-vdd-cx: + type: object + $ref: /schemas/regulator/regulator.yaml# + description: Virtual CX regulator for CDSP + unevaluatedProperties: false + + cdsp-vdd-mx: + type: object + $ref: /schemas/regulator/regulator.yaml# + description: Virtual MX regulator for CDSP + unevaluatedProperties: false + + additionalProperties: false + +required: + - compatible + - reg + - reg-names + - interrupts-extended + - interrupt-names + - mboxes + - qcom,smem-item + - vdd-cx-supply + - regulators + +additionalProperties: false + +examples: + - | + #include + #include + #include + + soc { + #address-cells = <2>; + #size-cells = <2>; + + cdsp_power: cdsp-power@4ae000 { + compatible = "qcom,cdsp-power"; + reg = <0x0 0x004ae000 0x0 0x1000>, + <0x0 0x26018018 0x0 0x4>; + reg-names = "mpm", "rscc"; + + interrupts-extended = <&intc GIC_SPI 65 IRQ_TYPE_EDGE_RISING 0>, + <&ipcc IPCC_CLIENT_CDSP + IPCC_MPROC_SIGNAL_PING + IRQ_TYPE_EDGE_RISING>; + interrupt-names = "lpm", "dcvs"; + + mboxes = <&ipcc IPCC_CLIENT_CDSP IPCC_MPROC_SIGNAL_PING>; + + qcom,smem-item = <503>; + + vdd-cx-supply = <&ipq9650_s2>; + vdd-mx-supply = <&ipq9650_s4>; + + regulators { + cdsp_vdd_cx: cdsp-vdd-cx { + regulator-name = "cdsp-vdd-cx"; + }; + + cdsp_vdd_mx: cdsp-vdd-mx { + regulator-name = "cdsp-vdd-mx"; + }; + }; + }; + }; -- 2.43.0