From nobody Fri Nov 29 11:52:41 2024 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 2C50224B26; Fri, 20 Sep 2024 03:40: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=1726803624; cv=none; b=mUOWwASVRSejoIwH4VFyDTBudfmd+b72zNtYj3T4AkpDN0IWOlucYo+Aiv3LMjhPG6pFqxHJ88oRLtFEbLLNlNrSBJNotf1JwBPFS8Ptk1lZkMDq/h3wqkITZN9HXSLZy3MWbGL7CUYTu/rcInkqDIFSMB8VF8xs/Xt8f/1buv0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726803624; c=relaxed/simple; bh=AM4nbqiXRvsUIGQN+GkMO8sRIzyUncMM7bdQpUuxXIw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=Q2kffnjBSCWy4dtpbXa+prB+Ds48vmtlWkjBh/JLaD+oASP+8SFeup1CKU7cgY1wUQ38MK+b6vsv6tQmGys/55uY4+Wcg75t2CNRgFaUihkICKnGM6Lm702obSpXexxscUXhjy0iUWphYLZv7AEr5rP+759tLDgfl/GIgZ7yvKI= 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=b/swAbij; 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="b/swAbij" Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 48JJ469k012514; Fri, 20 Sep 2024 03:40:20 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=b/swAbijd7PVG2KI jaq5ifc+9tG4bfVDbFblCO+UVkH/pKc3rEykiACbLk0DJ1bqRnqg3CRgTMmyWhIi LI5lupw2+244cEOKWTUS6m6SdB0aUoh5ooHkq4bHoLyFXRknqZP+pN9dT/cBjUfQ 8oGD3Uot7RkVjcfMaNst1fxVlJGFtQnePwD5lDkveh/jHjwRlrKHbdinw+OTSKX7 Zc+2gdi2J9FssNn28kwDZ9kaqwp1CSHN/zgiJluoqixBbu4DgXIyDo63u55Obk5T ojJt/PZaCC5FG5NJwjb/qda0yBc+C98HsX7J1JuRL88IYzC044YsW9AGU1fCV/x1 fpxBJg== Received: from nasanppmta02.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 41n4gd7fpy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 20 Sep 2024 03:40:19 +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 48K3eJl9012606 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 20 Sep 2024 03:40:19 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; Thu, 19 Sep 2024 20:40:12 -0700 From: Tingguo Cheng Date: Fri, 20 Sep 2024 11:39:33 +0800 Subject: [PATCH 1/2] dt-bindings: power: qcom,rpmpd: document qcs8300 RPMh power domains 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: quoted-printable Message-ID: <20240920-add_qcs8300_powerdomains_driver_support-v1-1-96a2a08841da@quicinc.com> References: <20240920-add_qcs8300_powerdomains_driver_support-v1-0-96a2a08841da@quicinc.com> In-Reply-To: <20240920-add_qcs8300_powerdomains_driver_support-v1-0-96a2a08841da@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=1726803608; l=863; i=quic_tingguoc@quicinc.com; s=20240917; h=from:subject:message-id; bh=AM4nbqiXRvsUIGQN+GkMO8sRIzyUncMM7bdQpUuxXIw=; b=+iG/xr1gID/+EXYHymU7P/yKUkWyK5iKAtI5YbJ0frPiVzmm1HJIU8MOFpNTY73KjLp2LtQi5 lNwtnp0Nn7JBJAcAJT6+3aCJlnq8asqusRcqoaEU4hzBD92MgBi+hpo X-Developer-Key: i=quic_tingguoc@quicinc.com; a=ed25519; pk=PiFYQPN5GCP7O6SA43tuKfHAbl9DewSKOuQA/GiHQrI= X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) 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-ORIG-GUID: eP8sa0oYvDTAedVQv-P_1uiyBoNzX_UG X-Proofpoint-GUID: eP8sa0oYvDTAedVQv-P_1uiyBoNzX_UG 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 malwarescore=0 suspectscore=0 bulkscore=0 clxscore=1015 spamscore=0 adultscore=0 lowpriorityscore=0 mlxlogscore=999 impostorscore=0 mlxscore=0 priorityscore=1501 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2408220000 definitions=main-2409200023 Add compatible string for the RPMh power domains on qcs8300 platform. Signed-off-by: Tingguo Cheng Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/power/qcom,rpmpd.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml b/Docu= mentation/devicetree/bindings/power/qcom,rpmpd.yaml index 929b7ef9c1bcdae8194adfdfd6114573ab4d59cd..be1a9cb71a9babf007bc43f230a= 04401cd26a6b6 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 --=20 2.34.1 From nobody Fri Nov 29 11:52:41 2024 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.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 5084839FD9; Fri, 20 Sep 2024 03:40:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726803640; cv=none; b=nP3c/+u0GGaa3rIvy3oaW2hAkhfd+TuzODD9pAGUSyBwRKnh4Nz5s8T7VGrrIpbqzJUvME+uScU0mMmbNovBfMz11fgpjdFOb/lixpMAS8pUe33IF+0cJuY02Z2jI8dh0cZ1iEE5qu3CtcOkp1V8x+0Ww5P3wfkrG9HwuT4D608= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726803640; c=relaxed/simple; bh=/n1l+08SIXcl6jEihesb7X5FdpgZZK7kyQjy+8BOwS4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=ZTl/83RbadelVDDhVa7mvxkXannQyuoJVieDieym5fmCW74R5Z6cQcvXlPiFt3TIwi/HijPadxCsQHBMFMl/KelMiJ4KBk5Uhzuu2NmSc+ubiUtivtCUsC+kjv/Uz2/n3vPJG3wg+l53sFqSntf8vwzIlN9V7948QPQFsxxKjy0= 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=F8RF/Yev; arc=none smtp.client-ip=205.220.180.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="F8RF/Yev" Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 48JJ3u5M018268; Fri, 20 Sep 2024 03:40:34 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=F8RF/YeveBvzNrU9 CZYB4LdJqBwfW/5LMqV8dC8dUGgKMvGw1O03ZdULKvreXxX0LXLDE9Vd63uJ8Y0/ jkjL4LHoASExakUYVzEdvzVLg7hYLV6imqbOxJgZgqskBzgDYRQGfOg5CiKqoJhv /2jMMcGewLGl5bAneWrkAkq3zrMiSCgpfUj3suNPMI3v0jC7FyeeU534Gp/woMf/ +ll0U30TA8Z4eiAshjdk2ZrMLt7efqehd8j6h0EJ7SG9CWBcxmV+BiXBpB3dHJ7+ RECfpvVmnqpDs2pFElN1zs9Pi9POQElWQRHt7IcqrfIzaSvDu/8Hj4pJuevNnopZ ub6SsA== Received: from nasanppmta02.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 41n4j6yq1r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 20 Sep 2024 03:40:33 +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 48K3eMrO012633 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 20 Sep 2024 03:40:22 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; Thu, 19 Sep 2024 20:40:16 -0700 From: Tingguo Cheng Date: Fri, 20 Sep 2024 11:39:34 +0800 Subject: [PATCH 2/2] pmdomain: qcom: rpmhpd: Add qcs8300 power domains 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: quoted-printable Message-ID: <20240920-add_qcs8300_powerdomains_driver_support-v1-2-96a2a08841da@quicinc.com> References: <20240920-add_qcs8300_powerdomains_driver_support-v1-0-96a2a08841da@quicinc.com> In-Reply-To: <20240920-add_qcs8300_powerdomains_driver_support-v1-0-96a2a08841da@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=1726803608; l=1740; i=quic_tingguoc@quicinc.com; s=20240917; h=from:subject:message-id; bh=/n1l+08SIXcl6jEihesb7X5FdpgZZK7kyQjy+8BOwS4=; b=0dCz2YHxWNPX5llxuRT0lDU4L3+qOG9kBT+P5bg6wVQxWI+WmPMYo4PHpusTQZJprpqvcmjcP VMoClJv8WtWBJ/Dlf25ifXX09VbS7MSntCc4I3TQHyk2p+q5A06zlUD X-Developer-Key: i=quic_tingguoc@quicinc.com; a=ed25519; pk=PiFYQPN5GCP7O6SA43tuKfHAbl9DewSKOuQA/GiHQrI= X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) 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-ORIG-GUID: qHFfXNPNHY4Oa5ejQ_fONESployOJnSR X-Proofpoint-GUID: qHFfXNPNHY4Oa5ejQ_fONESployOJnSR 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 mlxlogscore=898 mlxscore=0 malwarescore=0 bulkscore=0 priorityscore=1501 clxscore=1015 adultscore=0 suspectscore=0 lowpriorityscore=0 spamscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2408220000 definitions=main-2409200024 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 --- 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..d256110225dc517187b2ac1bbbb= 781eae78b7d59 100644 --- a/drivers/pmdomain/qcom/rpmhpd.c +++ b/drivers/pmdomain/qcom/rpmhpd.c @@ -624,7 +624,31 @@ static const struct rpmhpd_desc x1e80100_desc =3D { .num_pds =3D ARRAY_SIZE(x1e80100_rpmhpds), }; =20 +/* QCS8300 RPMH power domains */ +static struct rpmhpd *qcs8300_rpmhpds[] =3D { + [RPMHPD_CX] =3D &cx, + [RPMHPD_CX_AO] =3D &cx_ao, + [RPMHPD_EBI] =3D &ebi, + [RPMHPD_GFX] =3D &gfx, + [RPMHPD_LCX] =3D &lcx, + [RPMHPD_LMX] =3D &lmx, + [RPMHPD_MMCX] =3D &mmcx_w_cx_parent, + [RPMHPD_MMCX_AO] =3D &mmcx_ao_w_cx_parent, + [RPMHPD_MXC] =3D &mxc, + [RPMHPD_MXC_AO] =3D &mxc_ao, + [RPMHPD_MX] =3D &mx, + [RPMHPD_MX_AO] =3D &mx_ao, + [RPMHPD_NSP0] =3D &nsp0, + [RPMHPD_NSP1] =3D &nsp1, +}; + +static const struct rpmhpd_desc qcs8300_desc =3D { + .rpmhpds =3D qcs8300_rpmhpds, + .num_pds =3D ARRAY_SIZE(qcs8300_rpmhpds), +}; + static const struct of_device_id rpmhpd_match_table[] =3D { + { .compatible =3D "qcom,qcs8300-rpmhpd", .data =3D &qcs8300_desc }, { .compatible =3D "qcom,qdu1000-rpmhpd", .data =3D &qdu1000_desc }, { .compatible =3D "qcom,sa8155p-rpmhpd", .data =3D &sa8155p_desc }, { .compatible =3D "qcom,sa8540p-rpmhpd", .data =3D &sa8540p_desc }, --=20 2.34.1