From patchwork Fri Sep 27 11:59:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tingguo Cheng X-Patchwork-Id: 13814162 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 69B3C18BB8F; Fri, 27 Sep 2024 12:00:09 +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=1727438410; cv=none; b=CaRW/AeN6+tdTDP3WAKKlg0lJqgmvxpmsX549aUJiC9tO4qeAApfXiBhQLpZwvz1ffJPvWlqCQfaZUbLM0PqdlyAeXIt66haAvQmriaZSAfqaO6xy89C6cEWRzOYONQTLIHr66VEU7dIbL6HYsafFDq5im2lD2DfIkVmfizCXHs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727438410; c=relaxed/simple; bh=AM4nbqiXRvsUIGQN+GkMO8sRIzyUncMM7bdQpUuxXIw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=TqngUsLzuhSDvJGwx+kjpEo2MSx81sfQ466RLeLFy26R8UmoDnCXHeHS1oVxUIixyb1pCnkjCeQBZ92ydGhY1/9zw3z/3eoyy3tiCE/fZvbYg62aKUDhhRvq0ohe9eZX+/J3zzEF19cDhJN6nlhaI1St07+G0eJm85B+LMpuueM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=fSWL/uiL; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="fSWL/uiL" Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 48R9V8vp011647; Fri, 27 Sep 2024 12:00:06 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= RcGDA5Fbmx5gVi8sxt+iM+hwQ4LPJu/7KtoLwKM7sXc=; b=fSWL/uiLzuU9EPE0 rfEYFwKYIM4FPO0IwRpxKTuLQqsXPS3cPRBfW6H4ua9GeNH3DRGjBPdswFtDpGEH 8+RzthVtLdQOYU0I4owp4+t8jxIH+WJzKm2MkGhR3oIQU1+5UFdL0yOy3xD4enTZ QKEp99WQYD2Vi8F993X8MZZv2t4Mi5MyAXzU/p2/oM7Q7c/eKeRWyPDilexKmYpI euKPqULiLZWkM14DihelOPdDC52OI/gbks744rrUC38S5z74Bw/9t+x9Ojl5IPx2 2g20n+IDZE+qGOTfxID6E4AqZCfza2t6fEB8cuBzq+a6LOEOr2lyKzcws0YodFww /lbVUQ== Received: from nasanppmta02.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 41skuf2wx3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 27 Sep 2024 12:00:05 +0000 (GMT) Received: from nasanex01c.na.qualcomm.com (nasanex01c.na.qualcomm.com [10.45.79.139]) by NASANPPMTA02.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 48RC04Ne005598 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 27 Sep 2024 12:00:04 GMT Received: from cse-cd02-lnx.ap.qualcomm.com (10.80.80.8) by nasanex01c.na.qualcomm.com (10.45.79.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Fri, 27 Sep 2024 04:59:57 -0700 From: Tingguo Cheng Date: Fri, 27 Sep 2024 19:59:13 +0800 Subject: [PATCH v2 1/4] dt-bindings: power: qcom,rpmpd: document qcs8300 RPMh power domains Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <20240927-add_qcs615_qcs8300_powerdomains_driver_support-v2-1-18c030ad7b68@quicinc.com> References: <20240927-add_qcs615_qcs8300_powerdomains_driver_support-v2-0-18c030ad7b68@quicinc.com> In-Reply-To: <20240927-add_qcs615_qcs8300_powerdomains_driver_support-v2-0-18c030ad7b68@quicinc.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Ulf Hansson CC: , , , , , , , , Tingguo Cheng X-Mailer: b4 0.15-dev-dedf8 X-Developer-Signature: v=1; a=ed25519-sha256; t=1727438390; l=863; i=quic_tingguoc@quicinc.com; s=20240917; h=from:subject:message-id; bh=AM4nbqiXRvsUIGQN+GkMO8sRIzyUncMM7bdQpUuxXIw=; b=/7C+mCD6ly1MTM8A2oXtYvL3V3ZhODRrfopVqsCpo3N17pLSZolueOjR14RmgTkQv/XrzbtnS opP8BIybXLDAJxyVUs9Mn2Oz6MKOGf236ypJgTq+jtVFvM/0+HXlW1L X-Developer-Key: i=quic_tingguoc@quicinc.com; a=ed25519; pk=PiFYQPN5GCP7O6SA43tuKfHAbl9DewSKOuQA/GiHQrI= X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01c.na.qualcomm.com (10.45.79.139) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: veUH61tUJJkDjM9yVWIppynHMCDC6dp2 X-Proofpoint-ORIG-GUID: veUH61tUJJkDjM9yVWIppynHMCDC6dp2 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 spamscore=0 adultscore=0 clxscore=1015 lowpriorityscore=0 suspectscore=0 malwarescore=0 impostorscore=0 mlxlogscore=932 bulkscore=0 mlxscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2408220000 definitions=main-2409270086 Add compatible string for the RPMh power domains on qcs8300 platform. Signed-off-by: Tingguo Cheng --- Documentation/devicetree/bindings/power/qcom,rpmpd.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml b/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml index 929b7ef9c1bcdae8194adfdfd6114573ab4d59cd..be1a9cb71a9babf007bc43f230a04401cd26a6b6 100644 --- a/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml +++ b/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml @@ -32,6 +32,7 @@ properties: - qcom,msm8998-rpmpd - qcom,qcm2290-rpmpd - qcom,qcs404-rpmpd + - qcom,qcs8300-rpmhpd - qcom,qdu1000-rpmhpd - qcom,qm215-rpmpd - qcom,sa8155p-rpmhpd From patchwork Fri Sep 27 11:59:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tingguo Cheng X-Patchwork-Id: 13814163 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 002C118B47B; Fri, 27 Sep 2024 12:00:13 +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=1727438415; cv=none; b=bqeiwiNg95uRwgsJfZ13wrDbl1NqpJZ4hEDUQn8XYc4HoznLDfULpqJoGWF37K58lFuSgExV2t/bz6rN/ZkWEyVZwrTEzjI+yDsCiztWdK+1P1UoUlRo5nmhJFwtBM+3jImSx1CTLGZ+38RiQWa7HoqDuPgatoocq/uZw2Kv7jw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727438415; c=relaxed/simple; bh=/n1l+08SIXcl6jEihesb7X5FdpgZZK7kyQjy+8BOwS4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=hMrrJAYf71AjGPsAq3ACUQHkqwcCiuUudi3fiYs94tpcsjBbqhnSU5NR5SuDIgsPd+mzqXt8/EYQoT473kb7Kvf3+oFLRILbdjEkCxj7PXw6rRSY0hfZAOJC7N+Hb83zZMnK/bnh9DlMQGABqT/fYuLkNhNky1HRshhzhq48+AA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=oXMuvDbb; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="oXMuvDbb" Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 48R6rjTV017002; Fri, 27 Sep 2024 12:00:10 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= ahn7U8Yo0bz2XKR147lH9HgizZfOaNftsyT9uNb3ct0=; b=oXMuvDbbzlIqT+Bf 5PIR7qo+e5/5xsO+Yl7MC6IStsCJB/A9c03Dih0L/F1I4nxjusQdrvV2sT+yIC+r XHYLjwn+pcPP5OFyYS+60TAnWzx2zdR6QGw0qcQrbrFnoU3y0Gqv5afhvvNCvTzd Cx6RdssGoexdDVXWpm0NxeOacDPDRtEWz1qqldZRLSxOtHaSu5sIo4lJwf0N9ERf 8Z2EeNqPsYGy08Uewg1d5PlvL0xivOFo08cZphhddgU9ay1chHuOEoowuvHe0dDX naPwk0VpJl0gKQM2G8ImiCLWfwU+fuAYsU0kj8x4N5d3BWmDZNhtvcoDEr/BNfTH iwnt0g== Received: from nasanppmta05.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 41spc32sm7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 27 Sep 2024 12:00:09 +0000 (GMT) Received: from nasanex01c.na.qualcomm.com (nasanex01c.na.qualcomm.com [10.45.79.139]) by NASANPPMTA05.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 48RC08QR028689 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 27 Sep 2024 12:00:08 GMT Received: from cse-cd02-lnx.ap.qualcomm.com (10.80.80.8) by nasanex01c.na.qualcomm.com (10.45.79.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Fri, 27 Sep 2024 05:00:02 -0700 From: Tingguo Cheng Date: Fri, 27 Sep 2024 19:59:14 +0800 Subject: [PATCH v2 2/4] pmdomain: qcom: rpmhpd: Add qcs8300 power domains Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <20240927-add_qcs615_qcs8300_powerdomains_driver_support-v2-2-18c030ad7b68@quicinc.com> References: <20240927-add_qcs615_qcs8300_powerdomains_driver_support-v2-0-18c030ad7b68@quicinc.com> In-Reply-To: <20240927-add_qcs615_qcs8300_powerdomains_driver_support-v2-0-18c030ad7b68@quicinc.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Ulf Hansson CC: , , , , , , , , Tingguo Cheng , Shazad Hussain X-Mailer: b4 0.15-dev-dedf8 X-Developer-Signature: v=1; a=ed25519-sha256; t=1727438390; l=1740; i=quic_tingguoc@quicinc.com; s=20240917; h=from:subject:message-id; bh=/n1l+08SIXcl6jEihesb7X5FdpgZZK7kyQjy+8BOwS4=; b=eMBmLtfApda5UyiGybtkY00gMaoBgvsNBlkeC99GuCGlquJqx7Kl15P8ZHJG0uIMudA90iYsD eUZkyVvwlCpAooGQdHVPvYcaQDVdBWYDbXW7XXIoqrUjkFkIQwKaHkf X-Developer-Key: i=quic_tingguoc@quicinc.com; a=ed25519; pk=PiFYQPN5GCP7O6SA43tuKfHAbl9DewSKOuQA/GiHQrI= X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01c.na.qualcomm.com (10.45.79.139) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: LUnMn-Oxs7UZ73x0job5-tqTqpqIRASY X-Proofpoint-ORIG-GUID: LUnMn-Oxs7UZ73x0job5-tqTqpqIRASY X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 priorityscore=1501 suspectscore=0 lowpriorityscore=0 spamscore=0 impostorscore=0 malwarescore=0 adultscore=0 phishscore=0 mlxlogscore=893 bulkscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2408220000 definitions=main-2409270086 Add support for the power domains exposed by RPMh on the qcs8300 platform. MMCX depends on CX, so mark CX as the parent of MMCX. Co-developed-by: Shazad Hussain Signed-off-by: Shazad Hussain Signed-off-by: Tingguo Cheng Reviewed-by: Dmitry Baryshkov --- drivers/pmdomain/qcom/rpmhpd.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/drivers/pmdomain/qcom/rpmhpd.c b/drivers/pmdomain/qcom/rpmhpd.c index 65505e1e221986ad20751b658374dd0e74719703..d256110225dc517187b2ac1bbbb781eae78b7d59 100644 --- a/drivers/pmdomain/qcom/rpmhpd.c +++ b/drivers/pmdomain/qcom/rpmhpd.c @@ -624,7 +624,31 @@ static const struct rpmhpd_desc x1e80100_desc = { .num_pds = ARRAY_SIZE(x1e80100_rpmhpds), }; +/* QCS8300 RPMH power domains */ +static struct rpmhpd *qcs8300_rpmhpds[] = { + [RPMHPD_CX] = &cx, + [RPMHPD_CX_AO] = &cx_ao, + [RPMHPD_EBI] = &ebi, + [RPMHPD_GFX] = &gfx, + [RPMHPD_LCX] = &lcx, + [RPMHPD_LMX] = &lmx, + [RPMHPD_MMCX] = &mmcx_w_cx_parent, + [RPMHPD_MMCX_AO] = &mmcx_ao_w_cx_parent, + [RPMHPD_MXC] = &mxc, + [RPMHPD_MXC_AO] = &mxc_ao, + [RPMHPD_MX] = &mx, + [RPMHPD_MX_AO] = &mx_ao, + [RPMHPD_NSP0] = &nsp0, + [RPMHPD_NSP1] = &nsp1, +}; + +static const struct rpmhpd_desc qcs8300_desc = { + .rpmhpds = qcs8300_rpmhpds, + .num_pds = ARRAY_SIZE(qcs8300_rpmhpds), +}; + static const struct of_device_id rpmhpd_match_table[] = { + { .compatible = "qcom,qcs8300-rpmhpd", .data = &qcs8300_desc }, { .compatible = "qcom,qdu1000-rpmhpd", .data = &qdu1000_desc }, { .compatible = "qcom,sa8155p-rpmhpd", .data = &sa8155p_desc }, { .compatible = "qcom,sa8540p-rpmhpd", .data = &sa8540p_desc }, From patchwork Fri Sep 27 11:59:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tingguo Cheng X-Patchwork-Id: 13814164 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 CC95018C017; Fri, 27 Sep 2024 12:00:16 +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=1727438418; cv=none; b=eb3LEQwOkeoMOadh+Rnir+/wsx7XumfOlWUtNdW0W8ERa7Lcbf9AxSxHBDDUZmeYBetBUwU6BL6VznRwSFR7n4EoDDJGgvk+T32/eDsqNCGuGLpWFq4B90mVY+JDNj9u/qr9PcBNjiVkNRlRt0B0qnsdkA07bLAewHdIdZWsGD4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727438418; c=relaxed/simple; bh=cnOIwgzxq7hwzmkJLyUklKHDjUlag4OLtnk2uhLhgn0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=rGGAyceUbqeYPXaBOjnXI/OOfgrnZGfTHIqqcLGxH181V7073cT2ELcjnJqb8oRFyD2ty45Yl9wxJhW84YADvXuIVWOU50nZSanOzZ7D87XXh3IzSKtcGctPNemmWfyChbUo963XeQVq+JrgFbGSy4dRupQWTdECCb11FRsuQhE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=RcgTnc/p; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="RcgTnc/p" Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 48R6ujS4000899; Fri, 27 Sep 2024 12:00:13 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= AbI7nJzPOL8I2ahUhIzyiRus6tA6xHsIRd+3RMfQzvU=; b=RcgTnc/pLbGriBez UXXg0V3JEDW7Pr7BHXh159H1Xf5XNtM7AGvAJcI3Bg6fQYaGQjYy93O5n37FjzCs 7s2ncGnE8+fW/GO+B6e5g7VvV67G2CjHWNdQp6yI4i9BKCckLt0IwEspLE2PQ2LK DBokX2J8Ql0WpT6UUrjxIvVVj9Jpa6vdv6k6NkbWdlHSr1hvTxw0cbOb/mOcyfLX EyOh+GqX7Poe7mYN81aJM1Emm0AkX24isP5msAA/MoE4dxwHONgQ/3A6/u2vwp6O 0tfM91ymanl8+aMTvUFNehHh58pn+k3nLH4rzbCZCqpK52znkrAwRvE5Inieno/U Ptw4bQ== Received: from nasanppmta04.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 41sn3sjs4a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 27 Sep 2024 12:00:13 +0000 (GMT) Received: from nasanex01c.na.qualcomm.com (nasanex01c.na.qualcomm.com [10.45.79.139]) by NASANPPMTA04.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 48RC0Ct0029957 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 27 Sep 2024 12:00:12 GMT Received: from cse-cd02-lnx.ap.qualcomm.com (10.80.80.8) by nasanex01c.na.qualcomm.com (10.45.79.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Fri, 27 Sep 2024 05:00:06 -0700 From: Tingguo Cheng Date: Fri, 27 Sep 2024 19:59:15 +0800 Subject: [PATCH v2 3/4] dt-bindings: power: qcom,rpmpd: document qcs615 RPMh power domains Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <20240927-add_qcs615_qcs8300_powerdomains_driver_support-v2-3-18c030ad7b68@quicinc.com> References: <20240927-add_qcs615_qcs8300_powerdomains_driver_support-v2-0-18c030ad7b68@quicinc.com> In-Reply-To: <20240927-add_qcs615_qcs8300_powerdomains_driver_support-v2-0-18c030ad7b68@quicinc.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Ulf Hansson CC: , , , , , , , , Tingguo Cheng X-Mailer: b4 0.15-dev-dedf8 X-Developer-Signature: v=1; a=ed25519-sha256; t=1727438390; l=861; i=quic_tingguoc@quicinc.com; s=20240917; h=from:subject:message-id; bh=cnOIwgzxq7hwzmkJLyUklKHDjUlag4OLtnk2uhLhgn0=; b=JSEYtKSwpP+BKmoYM5IH26jxL5cyE5p8O6QIw3n9Nce+3MOr/O5k3ue5A+kqTb+Wsat0zLh6m Ilx3b6kKFGICciXboNmxgodZXO3yG1sM18WA431o/IRaWrBj6sxGw8t X-Developer-Key: i=quic_tingguoc@quicinc.com; a=ed25519; pk=PiFYQPN5GCP7O6SA43tuKfHAbl9DewSKOuQA/GiHQrI= X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01c.na.qualcomm.com (10.45.79.139) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: q2huCPdxj4BC85d_-LlQ5RqmUZs0CZNs X-Proofpoint-ORIG-GUID: q2huCPdxj4BC85d_-LlQ5RqmUZs0CZNs X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 phishscore=0 mlxscore=0 impostorscore=0 spamscore=0 malwarescore=0 suspectscore=0 priorityscore=1501 lowpriorityscore=0 mlxlogscore=937 clxscore=1015 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2408220000 definitions=main-2409270086 Add compatible string for the RPMh power domains on qcs615 platform. Signed-off-by: Tingguo Cheng --- Documentation/devicetree/bindings/power/qcom,rpmpd.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml b/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml index be1a9cb71a9babf007bc43f230a04401cd26a6b6..17ad46e5552947f08b1be8691e225ed9ddaa736b 100644 --- a/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml +++ b/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml @@ -32,6 +32,7 @@ properties: - qcom,msm8998-rpmpd - qcom,qcm2290-rpmpd - qcom,qcs404-rpmpd + - qcom,qcs615-rpmhpd - qcom,qcs8300-rpmhpd - qcom,qdu1000-rpmhpd - qcom,qm215-rpmpd From patchwork Fri Sep 27 11:59:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tingguo Cheng X-Patchwork-Id: 13814165 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 0082C18BBAB; Fri, 27 Sep 2024 12:00:22 +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=1727438424; cv=none; b=JV+jPuhZqljis3eRmK45dLZZ00Qz+cnRLf2QcJCdegfnWA3SFwhUI7l3I3+BjCLJvQfkWK72a0+N3pzzXGNPpoWB+D4X+qjaZHsMIjTtvV9liumrHSL3yDNAgBz/OL1JLWhGiwYTOg19vQhmJ/zPs4Crn/VCoLVSXjBb+l4Yq+k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727438424; c=relaxed/simple; bh=KiWNR4u/65xMmaqypvhKSc5m4ZESgrg/Ieajt/VQUWA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=UqcXKWkTP8oPkT0WsIuQUt/HOvcKPoHOc1CmeTg1uTo4d+U8DRSK1EFAtcAi3jlyIh0M5/Sc7u9ptapSArIlhjrsNWXIRhoSTo/pPrInM+3yNjakvg754FtWtV95pZN47u/t1TYG3zr9f4iBCGvvwblyuPZaDmBi9GbhdMrApxk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=n6/FUp0/; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="n6/FUp0/" Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 48R6aOWV014838; Fri, 27 Sep 2024 12:00:17 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= B0Vfl7VdKh0tBkOUpt5Cb/KYoBsGDN2QdYVHbAKRIKc=; b=n6/FUp0/08b/OLuK BhCEl65qofQUQOs+29vSABJTx6woA5kKx1nBq5Xtz/hK+ty9qjLHjRk4AALmricP NNOf38ewwRqorqOUv2aCooRpgjfa0elZRWRxQ5c2h3IsThZfLDX4W+NCKzmQkduU K+eHA1gkozquLwWzrlkkOGC1HYFPBodaN1pw6D4VyLVIiITwpFDuZp8dcdueEsfz frqUzr+W9QHgbimTutMauiPRT8mpT2NutjXMKzs0zDEooIAGovYJZmzYmPuD2l58 +Q6oVsx+ECEwz8AzS7XvIzKsFAZ3Tca/QIl0xNWPBc2qyxc333Nb5vZRX5I+esIF BKSt5Q== Received: from nasanppmta03.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 41spc32smr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 27 Sep 2024 12:00:16 +0000 (GMT) Received: from nasanex01c.na.qualcomm.com (nasanex01c.na.qualcomm.com [10.45.79.139]) by NASANPPMTA03.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 48RC0GD5017298 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 27 Sep 2024 12:00:16 GMT Received: from cse-cd02-lnx.ap.qualcomm.com (10.80.80.8) by nasanex01c.na.qualcomm.com (10.45.79.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Fri, 27 Sep 2024 05:00:09 -0700 From: Tingguo Cheng Date: Fri, 27 Sep 2024 19:59:16 +0800 Subject: [PATCH v2 4/4] pmdomain: qcom: rpmhpd: Add qcs615 power domains Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <20240927-add_qcs615_qcs8300_powerdomains_driver_support-v2-4-18c030ad7b68@quicinc.com> References: <20240927-add_qcs615_qcs8300_powerdomains_driver_support-v2-0-18c030ad7b68@quicinc.com> In-Reply-To: <20240927-add_qcs615_qcs8300_powerdomains_driver_support-v2-0-18c030ad7b68@quicinc.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Ulf Hansson CC: , , , , , , , , Tingguo Cheng X-Mailer: b4 0.15-dev-dedf8 X-Developer-Signature: v=1; a=ed25519-sha256; t=1727438391; l=1321; i=quic_tingguoc@quicinc.com; s=20240917; h=from:subject:message-id; bh=KiWNR4u/65xMmaqypvhKSc5m4ZESgrg/Ieajt/VQUWA=; b=YWUxC0OTV3ENrF1LLerQn8r5XNbhk8BX7CX4AdP/MgfNXSigRcvogOQlxQ9/qAV3ilmkzAP+E ec+w898+eFHADELzMZMr3qM9P72SVmjQNxIBz4X6BDkKJkqeWjSomKM X-Developer-Key: i=quic_tingguoc@quicinc.com; a=ed25519; pk=PiFYQPN5GCP7O6SA43tuKfHAbl9DewSKOuQA/GiHQrI= X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01c.na.qualcomm.com (10.45.79.139) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: GxxnW90NFOkY4kQC9e7ZNyMyl4Q5w6EM X-Proofpoint-ORIG-GUID: GxxnW90NFOkY4kQC9e7ZNyMyl4Q5w6EM X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 priorityscore=1501 suspectscore=0 lowpriorityscore=0 spamscore=0 impostorscore=0 malwarescore=0 adultscore=0 phishscore=0 mlxlogscore=956 bulkscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2408220000 definitions=main-2409270086 Add support for power domains exposed by RPMh on the qcs615 platform. Only CX/CX_AO are exposed by RPMh. Consumers such as VDD_MX, EBI, LPI_ MX and LPI_CX will share the power domains. Signed-off-by: Tingguo Cheng --- drivers/pmdomain/qcom/rpmhpd.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/pmdomain/qcom/rpmhpd.c b/drivers/pmdomain/qcom/rpmhpd.c index d256110225dc517187b2ac1bbbb781eae78b7d59..731feab9f17ddae699815332d193e9a298fff0e1 100644 --- a/drivers/pmdomain/qcom/rpmhpd.c +++ b/drivers/pmdomain/qcom/rpmhpd.c @@ -647,7 +647,19 @@ static const struct rpmhpd_desc qcs8300_desc = { .num_pds = ARRAY_SIZE(qcs8300_rpmhpds), }; +/* QCS615 RPMH powerdomains */ +static struct rpmhpd *qcs615_rpmhpds[] = { + [RPMHPD_CX] = &cx, + [RPMHPD_CX_AO] = &cx_ao, +}; + +static const struct rpmhpd_desc qcs615_desc = { + .rpmhpds = qcs615_rpmhpds, + .num_pds = ARRAY_SIZE(qcs615_rpmhpds), +}; + static const struct of_device_id rpmhpd_match_table[] = { + { .compatible = "qcom,qcs615-rpmhpd", .data = &qcs615_desc }, { .compatible = "qcom,qcs8300-rpmhpd", .data = &qcs8300_desc }, { .compatible = "qcom,qdu1000-rpmhpd", .data = &qdu1000_desc }, { .compatible = "qcom,sa8155p-rpmhpd", .data = &sa8155p_desc },