[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240904-qcs8300_initial_dtsi-v1-7-d0ea9afdc007@quicinc.com>
Date: Wed, 4 Sep 2024 16:33:48 +0800
From: Jingyi Wang <quic_jingyw@...cinc.com>
To: Bjorn Andersson <andersson@...nel.org>,
Mathieu Poirier
<mathieu.poirier@...aro.org>,
Rob Herring <robh@...nel.org>,
"Krzysztof
Kozlowski" <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>,
"Bartosz
Golaszewski" <bartosz.golaszewski@...aro.org>,
Vinod Koul <vkoul@...nel.org>,
Kishon Vijay Abraham I <kishon@...nel.org>,
Manivannan Sadhasivam
<manivannan.sadhasivam@...aro.org>,
Alim Akhtar <alim.akhtar@...sung.com>,
Avri Altman <avri.altman@....com>,
Bart Van Assche <bvanassche@....org>, "Andy Gross" <agross@...nel.org>,
Ulf Hansson <ulf.hansson@...aro.org>,
"Thomas Gleixner" <tglx@...utronix.de>, Will Deacon <will@...nel.org>,
Robin
Murphy <robin.murphy@....com>, Joerg Roedel <joro@...tes.org>,
Konrad Dybcio
<konradybcio@...nel.org>,
Robert Marko <robimarko@...il.com>,
Das Srinagesh
<quic_gurus@...cinc.com>,
Jassi Brar <jassisinghbrar@...il.com>, Lee Jones
<lee@...nel.org>,
Srinivas Kandagatla <srinivas.kandagatla@...aro.org>,
Catalin Marinas <catalin.marinas@....com>
CC: <linux-arm-msm@...r.kernel.org>, <linux-remoteproc@...r.kernel.org>,
<devicetree@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<linux-phy@...ts.infradead.org>, <linux-scsi@...r.kernel.org>,
<linux-pm@...r.kernel.org>, <linux-arm-kernel@...ts.infradead.org>,
<iommu@...ts.linux.dev>, Jingyi Wang <quic_jingyw@...cinc.com>,
Tingguo Cheng
<quic_tingguoc@...cinc.com>,
Shazad Hussain <quic_shazhuss@...cinc.com>
Subject: [PATCH 07/19] pmdomain: qcom: rpmhpd: Add QCS8300 power domains
From: Tingguo Cheng <quic_tingguoc@...cinc.com>
Add support for the power-domains found on QCS8300 platform.
Co-developed-by: Shazad Hussain <quic_shazhuss@...cinc.com>
Signed-off-by: Shazad Hussain <quic_shazhuss@...cinc.com>
Signed-off-by: Tingguo Cheng <quic_tingguoc@...cinc.com>
Signed-off-by: Jingyi Wang <quic_jingyw@...cinc.com>
---
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 d2cb4271a1ca..d79321b08d16 100644
--- a/drivers/pmdomain/qcom/rpmhpd.c
+++ b/drivers/pmdomain/qcom/rpmhpd.c
@@ -623,7 +623,31 @@ static const struct rpmhpd_desc x1e80100_desc = {
.num_pds = ARRAY_SIZE(x1e80100_rpmhpds),
};
+/* QCS8300 RPMH power domains */
+static struct rpmhpd *qcs8300_rpmhpds[] = {
+ [QCS8300_CX] = &cx,
+ [QCS8300_CX_AO] = &cx_ao,
+ [QCS8300_EBI] = &ebi,
+ [QCS8300_GFX] = &gfx,
+ [QCS8300_LCX] = &lcx,
+ [QCS8300_LMX] = &lmx,
+ [QCS8300_MMCX] = &mmcx,
+ [QCS8300_MMCX_AO] = &mmcx_ao,
+ [QCS8300_MXC] = &mxc,
+ [QCS8300_MXC_AO] = &mxc_ao,
+ [QCS8300_MX] = &mx,
+ [QCS8300_MX_AO] = &mx_ao,
+ [QCS8300_NSP0] = &nsp0,
+ [QCS8300_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 },
--
2.25.1
Powered by blists - more mailing lists