linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/7] soc: qcom: Add support for SM8450
@ 2021-12-01  7:27 Vinod Koul
  2021-12-01  7:27 ` [PATCH 1/7] dt-bindings: arm: cpus: Add kryo780 compatible Vinod Koul
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Vinod Koul @ 2021-12-01  7:27 UTC (permalink / raw)
  To: Rob Herring, Bjorn Andersson
  Cc: linux-arm-msm, Vinod Koul, devicetree, linux-kernel

This series adds CPU, SoC and board compatible followed by rpmpd support
for SM8450 and socinfo ID and update the smem processor count

Dmitry Baryshkov (4):
  soc: qcom: smem: Update max processor count
  dt-bindings: power: rpmpd: Add SM8450 to rpmpd binding
  soc: qcom: rpmhpd: Add SM8450 power domains
  soc: qcom: socinfo: add SM8450 ID

Vinod Koul (3):
  dt-bindings: arm: cpus: Add kryo780 compatible
  dt-bindings: firmware: scm: Add SM8450 compatible
  dt-bindings: arm: qcom: Document SM8450 SoC and boards

 .../devicetree/bindings/arm/cpus.yaml         |  1 +
 .../devicetree/bindings/arm/qcom.yaml         |  6 +++
 .../devicetree/bindings/firmware/qcom,scm.txt |  1 +
 .../devicetree/bindings/power/qcom,rpmpd.yaml |  1 +
 drivers/soc/qcom/rpmhpd.c                     | 52 +++++++++++++++++++
 drivers/soc/qcom/smem.c                       |  2 +-
 drivers/soc/qcom/socinfo.c                    |  1 +
 include/dt-bindings/power/qcom-rpmpd.h        | 15 ++++++
 8 files changed, 78 insertions(+), 1 deletion(-)

-- 
2.31.1


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH 1/7] dt-bindings: arm: cpus: Add kryo780 compatible
  2021-12-01  7:27 [PATCH 0/7] soc: qcom: Add support for SM8450 Vinod Koul
@ 2021-12-01  7:27 ` Vinod Koul
  2021-12-01  7:27 ` [PATCH 2/7] dt-bindings: firmware: scm: Add SM8450 compatible Vinod Koul
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Vinod Koul @ 2021-12-01  7:27 UTC (permalink / raw)
  To: Rob Herring, Bjorn Andersson
  Cc: linux-arm-msm, Vinod Koul, devicetree, linux-kernel

Kryo780 is found in SM8450, so add it to the list of cpu compatibles

Signed-off-by: Vinod Koul <vkoul@kernel.org>
---
 Documentation/devicetree/bindings/arm/cpus.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/arm/cpus.yaml b/Documentation/devicetree/bindings/arm/cpus.yaml
index f2ab6423b4af..dfa28e3525cb 100644
--- a/Documentation/devicetree/bindings/arm/cpus.yaml
+++ b/Documentation/devicetree/bindings/arm/cpus.yaml
@@ -174,6 +174,7 @@ properties:
       - qcom,kryo560
       - qcom,kryo570
       - qcom,kryo685
+      - qcom,kryo780
       - qcom,scorpion
 
   enable-method:
-- 
2.31.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH 2/7] dt-bindings: firmware: scm: Add SM8450 compatible
  2021-12-01  7:27 [PATCH 0/7] soc: qcom: Add support for SM8450 Vinod Koul
  2021-12-01  7:27 ` [PATCH 1/7] dt-bindings: arm: cpus: Add kryo780 compatible Vinod Koul
@ 2021-12-01  7:27 ` Vinod Koul
  2021-12-01  7:27 ` [PATCH 3/7] dt-bindings: arm: qcom: Document SM8450 SoC and boards Vinod Koul
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Vinod Koul @ 2021-12-01  7:27 UTC (permalink / raw)
  To: Rob Herring, Bjorn Andersson
  Cc: linux-arm-msm, Vinod Koul, devicetree, linux-kernel

Add compatible for SM8450 SoCs.

Signed-off-by: Vinod Koul <vkoul@kernel.org>
---
 Documentation/devicetree/bindings/firmware/qcom,scm.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/firmware/qcom,scm.txt b/Documentation/devicetree/bindings/firmware/qcom,scm.txt
index d7e3cda8924e..548733388497 100644
--- a/Documentation/devicetree/bindings/firmware/qcom,scm.txt
+++ b/Documentation/devicetree/bindings/firmware/qcom,scm.txt
@@ -29,6 +29,7 @@ Required properties:
  * "qcom,scm-sm8150"
  * "qcom,scm-sm8250"
  * "qcom,scm-sm8350"
+ * "qcom,scm-sm8450"
  and:
  * "qcom,scm"
 - clocks: Specifies clocks needed by the SCM interface, if any:
-- 
2.31.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH 3/7] dt-bindings: arm: qcom: Document SM8450 SoC and boards
  2021-12-01  7:27 [PATCH 0/7] soc: qcom: Add support for SM8450 Vinod Koul
  2021-12-01  7:27 ` [PATCH 1/7] dt-bindings: arm: cpus: Add kryo780 compatible Vinod Koul
  2021-12-01  7:27 ` [PATCH 2/7] dt-bindings: firmware: scm: Add SM8450 compatible Vinod Koul
@ 2021-12-01  7:27 ` Vinod Koul
  2021-12-01  7:27 ` [PATCH 4/7] soc: qcom: smem: Update max processor count Vinod Koul
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Vinod Koul @ 2021-12-01  7:27 UTC (permalink / raw)
  To: Rob Herring, Bjorn Andersson
  Cc: linux-arm-msm, Vinod Koul, devicetree, linux-kernel

Document the SM8450 SoC binding and also the boards using it.

Signed-off-by: Vinod Koul <vkoul@kernel.org>
---
 Documentation/devicetree/bindings/arm/qcom.yaml | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/Documentation/devicetree/bindings/arm/qcom.yaml b/Documentation/devicetree/bindings/arm/qcom.yaml
index c8808e0f9e64..29a0bd3adac2 100644
--- a/Documentation/devicetree/bindings/arm/qcom.yaml
+++ b/Documentation/devicetree/bindings/arm/qcom.yaml
@@ -50,6 +50,7 @@ description: |
         sm8150
         sm8250
         sm8350
+        sm8450
 
   The 'board' element must be one of the following strings:
 
@@ -257,6 +258,11 @@ properties:
               - qcom,sm8350-mtp
           - const: qcom,sm8350
 
+      - items:
+          - enum:
+              - qcom,sm8450-qrd
+          - const: qcom,sm8450
+
 additionalProperties: true
 
 ...
-- 
2.31.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH 4/7] soc: qcom: smem: Update max processor count
  2021-12-01  7:27 [PATCH 0/7] soc: qcom: Add support for SM8450 Vinod Koul
                   ` (2 preceding siblings ...)
  2021-12-01  7:27 ` [PATCH 3/7] dt-bindings: arm: qcom: Document SM8450 SoC and boards Vinod Koul
@ 2021-12-01  7:27 ` Vinod Koul
  2021-12-01  7:27 ` [PATCH 5/7] dt-bindings: power: rpmpd: Add SM8450 to rpmpd binding Vinod Koul
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Vinod Koul @ 2021-12-01  7:27 UTC (permalink / raw)
  To: Rob Herring, Bjorn Andersson
  Cc: linux-arm-msm, Dmitry Baryshkov, devicetree, linux-kernel, Vinod Koul

From: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>

Update max processor count to reflect the number of co-processors on
SM8450 SoCs.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
---
 drivers/soc/qcom/smem.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/soc/qcom/smem.c b/drivers/soc/qcom/smem.c
index c7e519bfdc8a..e2057d8f1eff 100644
--- a/drivers/soc/qcom/smem.c
+++ b/drivers/soc/qcom/smem.c
@@ -85,7 +85,7 @@
 #define SMEM_GLOBAL_HOST	0xfffe
 
 /* Max number of processors/hosts in a system */
-#define SMEM_HOST_COUNT		14
+#define SMEM_HOST_COUNT		15
 
 /**
   * struct smem_proc_comm - proc_comm communication struct (legacy)
-- 
2.31.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH 5/7] dt-bindings: power: rpmpd: Add SM8450 to rpmpd binding
  2021-12-01  7:27 [PATCH 0/7] soc: qcom: Add support for SM8450 Vinod Koul
                   ` (3 preceding siblings ...)
  2021-12-01  7:27 ` [PATCH 4/7] soc: qcom: smem: Update max processor count Vinod Koul
@ 2021-12-01  7:27 ` Vinod Koul
  2021-12-01  7:27 ` [PATCH 6/7] soc: qcom: rpmhpd: Add SM8450 power domains Vinod Koul
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Vinod Koul @ 2021-12-01  7:27 UTC (permalink / raw)
  To: Rob Herring, Bjorn Andersson
  Cc: linux-arm-msm, Dmitry Baryshkov, devicetree, linux-kernel, Vinod Koul

From: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>

Add compatible and constants for the power domains exposed by the RPMH
in the Qualcomm SM8450 platform.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
---
 .../devicetree/bindings/power/qcom,rpmpd.yaml     |  1 +
 include/dt-bindings/power/qcom-rpmpd.h            | 15 +++++++++++++++
 2 files changed, 16 insertions(+)

diff --git a/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml b/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml
index e810480e3eb7..a51f7d6c58b7 100644
--- a/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml
+++ b/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml
@@ -36,6 +36,7 @@ properties:
       - qcom,sm8150-rpmhpd
       - qcom,sm8250-rpmhpd
       - qcom,sm8350-rpmhpd
+      - qcom,sm8450-rpmhpd
 
   '#power-domain-cells':
     const: 1
diff --git a/include/dt-bindings/power/qcom-rpmpd.h b/include/dt-bindings/power/qcom-rpmpd.h
index 960f7976a807..535d7addd382 100644
--- a/include/dt-bindings/power/qcom-rpmpd.h
+++ b/include/dt-bindings/power/qcom-rpmpd.h
@@ -68,6 +68,21 @@
 #define SM8350_MXC_AO	11
 #define SM8350_MSS	12
 
+/* SM8450 Power Domain Indexes */
+#define SM8450_CX	0
+#define SM8450_CX_AO	1
+#define SM8450_EBI	2
+#define SM8450_GFX	3
+#define SM8450_LCX	4
+#define SM8450_LMX	5
+#define SM8450_MMCX	6
+#define SM8450_MMCX_AO	7
+#define SM8450_MX	8
+#define SM8450_MX_AO	9
+#define SM8450_MXC	10
+#define SM8450_MXC_AO	11
+#define SM8450_MSS	12
+
 /* SC7180 Power Domain Indexes */
 #define SC7180_CX	0
 #define SC7180_CX_AO	1
-- 
2.31.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH 6/7] soc: qcom: rpmhpd: Add SM8450 power domains
  2021-12-01  7:27 [PATCH 0/7] soc: qcom: Add support for SM8450 Vinod Koul
                   ` (4 preceding siblings ...)
  2021-12-01  7:27 ` [PATCH 5/7] dt-bindings: power: rpmpd: Add SM8450 to rpmpd binding Vinod Koul
@ 2021-12-01  7:27 ` Vinod Koul
  2021-12-01  7:27 ` [PATCH 7/7] soc: qcom: socinfo: add SM8450 ID Vinod Koul
  2021-12-08 20:20 ` [PATCH 0/7] soc: qcom: Add support for SM8450 Bjorn Andersson
  7 siblings, 0 replies; 9+ messages in thread
From: Vinod Koul @ 2021-12-01  7:27 UTC (permalink / raw)
  To: Rob Herring, Bjorn Andersson
  Cc: linux-arm-msm, Dmitry Baryshkov, devicetree, linux-kernel, Vinod Koul

From: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>

Add the power domains exposed by RPMH in the Qualcomm SM8450 platform.
Unlike previous generations CX domain is not a child of MX domain.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
---
 drivers/soc/qcom/rpmhpd.c | 52 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)

diff --git a/drivers/soc/qcom/rpmhpd.c b/drivers/soc/qcom/rpmhpd.c
index 1118345d8824..e7e150ce1b1a 100644
--- a/drivers/soc/qcom/rpmhpd.c
+++ b/drivers/soc/qcom/rpmhpd.c
@@ -253,6 +253,57 @@ static const struct rpmhpd_desc sm8350_desc = {
 	.num_pds = ARRAY_SIZE(sm8350_rpmhpds),
 };
 
+/* SM8450 RPMH powerdomains */
+static struct rpmhpd sm8450_cx_ao;
+static struct rpmhpd sm8450_cx = {
+	.pd = { .name = "cx", },
+	.peer = &sm8450_cx_ao,
+	.res_name = "cx.lvl",
+};
+
+static struct rpmhpd sm8450_cx_ao = {
+	.pd = { .name = "cx_ao", },
+	.active_only = true,
+	.res_name = "cx.lvl",
+};
+
+static struct rpmhpd sm8450_mmcx_ao;
+static struct rpmhpd sm8450_mmcx = {
+	.pd = { .name = "mmcx", },
+	.peer = &sm8450_mmcx_ao,
+	.parent = &sm8450_cx.pd,
+	.res_name = "mmcx.lvl",
+};
+
+static struct rpmhpd sm8450_mmcx_ao = {
+	.pd = { .name = "mmcx_ao", },
+	.active_only = true,
+	.peer = &sm8450_mmcx,
+	.parent = &sm8450_cx_ao.pd,
+	.res_name = "mmcx.lvl",
+};
+
+static struct rpmhpd *sm8450_rpmhpds[] = {
+	[SM8450_CX] = &sm8450_cx,
+	[SM8450_CX_AO] = &sm8450_cx_ao,
+	[SM8450_EBI] = &sdm845_ebi,
+	[SM8450_GFX] = &sdm845_gfx,
+	[SM8450_LCX] = &sdm845_lcx,
+	[SM8450_LMX] = &sdm845_lmx,
+	[SM8450_MMCX] = &sm8450_mmcx,
+	[SM8450_MMCX_AO] = &sm8450_mmcx_ao,
+	[SM8450_MX] = &sdm845_mx,
+	[SM8450_MX_AO] = &sdm845_mx_ao,
+	[SM8450_MXC] = &sm8350_mxc,
+	[SM8450_MXC_AO] = &sm8350_mxc_ao,
+	[SM8450_MSS] = &sdm845_mss,
+};
+
+static const struct rpmhpd_desc sm8450_desc = {
+	.rpmhpds = sm8450_rpmhpds,
+	.num_pds = ARRAY_SIZE(sm8450_rpmhpds),
+};
+
 /* SC7180 RPMH powerdomains */
 static struct rpmhpd *sc7180_rpmhpds[] = {
 	[SC7180_CX] = &sdm845_cx,
@@ -318,6 +369,7 @@ static const struct of_device_id rpmhpd_match_table[] = {
 	{ .compatible = "qcom,sm8150-rpmhpd", .data = &sm8150_desc },
 	{ .compatible = "qcom,sm8250-rpmhpd", .data = &sm8250_desc },
 	{ .compatible = "qcom,sm8350-rpmhpd", .data = &sm8350_desc },
+	{ .compatible = "qcom,sm8450-rpmhpd", .data = &sm8450_desc },
 	{ }
 };
 MODULE_DEVICE_TABLE(of, rpmhpd_match_table);
-- 
2.31.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH 7/7] soc: qcom: socinfo: add SM8450 ID
  2021-12-01  7:27 [PATCH 0/7] soc: qcom: Add support for SM8450 Vinod Koul
                   ` (5 preceding siblings ...)
  2021-12-01  7:27 ` [PATCH 6/7] soc: qcom: rpmhpd: Add SM8450 power domains Vinod Koul
@ 2021-12-01  7:27 ` Vinod Koul
  2021-12-08 20:20 ` [PATCH 0/7] soc: qcom: Add support for SM8450 Bjorn Andersson
  7 siblings, 0 replies; 9+ messages in thread
From: Vinod Koul @ 2021-12-01  7:27 UTC (permalink / raw)
  To: Rob Herring, Bjorn Andersson
  Cc: linux-arm-msm, Dmitry Baryshkov, devicetree, linux-kernel, Vinod Koul

From: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>

Add the ID for the Qualcomm SM8450 SoC.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
---
 drivers/soc/qcom/socinfo.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/soc/qcom/socinfo.c b/drivers/soc/qcom/socinfo.c
index 9a0eb59405e8..113dc57b74c3 100644
--- a/drivers/soc/qcom/socinfo.c
+++ b/drivers/soc/qcom/socinfo.c
@@ -315,6 +315,7 @@ static const struct soc_id soc_id[] = {
 	{ 425, "SC7180" },
 	{ 453, "IPQ6005" },
 	{ 455, "QRB5165" },
+	{ 457, "SM8450" },
 };
 
 static const char *socinfo_machine(struct device *dev, unsigned int id)
-- 
2.31.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [PATCH 0/7] soc: qcom: Add support for SM8450
  2021-12-01  7:27 [PATCH 0/7] soc: qcom: Add support for SM8450 Vinod Koul
                   ` (6 preceding siblings ...)
  2021-12-01  7:27 ` [PATCH 7/7] soc: qcom: socinfo: add SM8450 ID Vinod Koul
@ 2021-12-08 20:20 ` Bjorn Andersson
  7 siblings, 0 replies; 9+ messages in thread
From: Bjorn Andersson @ 2021-12-08 20:20 UTC (permalink / raw)
  To: Rob Herring, Vinod Koul; +Cc: linux-kernel, linux-arm-msm, devicetree

On Wed, 1 Dec 2021 12:57:38 +0530, Vinod Koul wrote:
> This series adds CPU, SoC and board compatible followed by rpmpd support
> for SM8450 and socinfo ID and update the smem processor count
> 
> Dmitry Baryshkov (4):
>   soc: qcom: smem: Update max processor count
>   dt-bindings: power: rpmpd: Add SM8450 to rpmpd binding
>   soc: qcom: rpmhpd: Add SM8450 power domains
>   soc: qcom: socinfo: add SM8450 ID
> 
> [...]

Applied, thanks!

[1/7] dt-bindings: arm: cpus: Add kryo780 compatible
      commit: f5ef92aa8b78dbe7e65c0eb27a176961f41d70ea
[2/7] dt-bindings: firmware: scm: Add SM8450 compatible
      commit: ff0ce949551fce08feb2ad9a6f59b785b59bad4e
[3/7] dt-bindings: arm: qcom: Document SM8450 SoC and boards
      commit: c1b360d254575a71ee683ad8f78e929a9450adda
[4/7] soc: qcom: smem: Update max processor count
      commit: 1f88aa7779247dd03c6396efd3d8d2c80964c1ac
[5/7] dt-bindings: power: rpmpd: Add SM8450 to rpmpd binding
      commit: 3fe1b82d947fa07fd40c76b099568c9b74300fab
[6/7] soc: qcom: rpmhpd: Add SM8450 power domains
      commit: 4f84580dbd71836131f1ef23c00835fcb1fd74dc
[7/7] soc: qcom: socinfo: add SM8450 ID
      commit: 34f92297694823b2a9f4f9a1d9f4f4ee265494f9

Best regards,
-- 
Bjorn Andersson <bjorn.andersson@linaro.org>

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-12-08 20:20 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-01  7:27 [PATCH 0/7] soc: qcom: Add support for SM8450 Vinod Koul
2021-12-01  7:27 ` [PATCH 1/7] dt-bindings: arm: cpus: Add kryo780 compatible Vinod Koul
2021-12-01  7:27 ` [PATCH 2/7] dt-bindings: firmware: scm: Add SM8450 compatible Vinod Koul
2021-12-01  7:27 ` [PATCH 3/7] dt-bindings: arm: qcom: Document SM8450 SoC and boards Vinod Koul
2021-12-01  7:27 ` [PATCH 4/7] soc: qcom: smem: Update max processor count Vinod Koul
2021-12-01  7:27 ` [PATCH 5/7] dt-bindings: power: rpmpd: Add SM8450 to rpmpd binding Vinod Koul
2021-12-01  7:27 ` [PATCH 6/7] soc: qcom: rpmhpd: Add SM8450 power domains Vinod Koul
2021-12-01  7:27 ` [PATCH 7/7] soc: qcom: socinfo: add SM8450 ID Vinod Koul
2021-12-08 20:20 ` [PATCH 0/7] soc: qcom: Add support for SM8450 Bjorn Andersson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).