All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] qcom-cpufreq-nvmem: Add msm8939 with some fixups
@ 2022-04-18 16:22 Bryan O'Donoghue
  2022-04-18 16:22 ` [PATCH 1/5] dt-bindings: opp: Add missing compat devices Bryan O'Donoghue
                   ` (5 more replies)
  0 siblings, 6 replies; 9+ messages in thread
From: Bryan O'Donoghue @ 2022-04-18 16:22 UTC (permalink / raw)
  To: agross, bjorn.andersson, ilia.lin, rafael
  Cc: linux-arm-msm, linux-pm, bryan.odonoghue

Fix up some missing compat strings for the qcom-cpufreq-nvmem yaml.
Add in msm8939 as a compatible qcom-cpufreq-nvmem.

Bryan O'Donoghue (5):
  dt-bindings: opp: Add missing compat devices
  dt-bindings: opp: Add msm8939 to the compatible list
  cpufreq: blocklist Qualcomm msm8939 in cpufreq-dt-platdev
  cpufreq: qcom-cpufreq-nvmem: Rename qcs404 data to cpr_genpd
  cpufreq: qcom-cpufreq-nvmem: Add msm8939 as cpr_genpd

 .../devicetree/bindings/cpufreq/qcom-cpufreq-nvmem.yaml  | 8 ++++++++
 drivers/cpufreq/cpufreq-dt-platdev.c                     | 1 +
 drivers/cpufreq/qcom-cpufreq-nvmem.c                     | 9 +++++----
 3 files changed, 14 insertions(+), 4 deletions(-)

-- 
2.35.1


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

* [PATCH 1/5] dt-bindings: opp: Add missing compat devices
  2022-04-18 16:22 [PATCH 0/5] qcom-cpufreq-nvmem: Add msm8939 with some fixups Bryan O'Donoghue
@ 2022-04-18 16:22 ` Bryan O'Donoghue
  2022-04-26 20:09   ` Rob Herring
  2022-04-18 16:22 ` [PATCH 2/5] dt-bindings: opp: Add msm8939 to the compatible list Bryan O'Donoghue
                   ` (4 subsequent siblings)
  5 siblings, 1 reply; 9+ messages in thread
From: Bryan O'Donoghue @ 2022-04-18 16:22 UTC (permalink / raw)
  To: agross, bjorn.andersson, ilia.lin, rafael
  Cc: linux-arm-msm, linux-pm, bryan.odonoghue, robh+dt, krzk+dt, devicetree

A number of devices listed in drivers/cpufreq/qcom-cpufreq-nvmem.c appear
to be missing from the compatible list.

Cc: ilia.lin@kernel.org
Cc: robh+dt@kernel.org
Cc: krzk+dt@kernel.org
Cc: devicetree@vger.kernel.org
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
---
 .../devicetree/bindings/cpufreq/qcom-cpufreq-nvmem.yaml     | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/Documentation/devicetree/bindings/cpufreq/qcom-cpufreq-nvmem.yaml b/Documentation/devicetree/bindings/cpufreq/qcom-cpufreq-nvmem.yaml
index a9a776da5505..5eb1dba13fe2 100644
--- a/Documentation/devicetree/bindings/cpufreq/qcom-cpufreq-nvmem.yaml
+++ b/Documentation/devicetree/bindings/cpufreq/qcom-cpufreq-nvmem.yaml
@@ -22,6 +22,12 @@ select:
     compatible:
       contains:
         enum:
+          - qcom,apq8064
+          - qcom,apq8096
+          - qcom,ipq8064
+          - qcom,msm8960
+          - qcom,msm8974
+          - qcom,msm8996
           - qcom,qcs404
   required:
     - compatible
-- 
2.35.1


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

* [PATCH 2/5] dt-bindings: opp: Add msm8939 to the compatible list
  2022-04-18 16:22 [PATCH 0/5] qcom-cpufreq-nvmem: Add msm8939 with some fixups Bryan O'Donoghue
  2022-04-18 16:22 ` [PATCH 1/5] dt-bindings: opp: Add missing compat devices Bryan O'Donoghue
@ 2022-04-18 16:22 ` Bryan O'Donoghue
  2022-04-26 20:10   ` Rob Herring
  2022-04-18 16:22 ` [PATCH 3/5] cpufreq: blocklist Qualcomm msm8939 in cpufreq-dt-platdev Bryan O'Donoghue
                   ` (3 subsequent siblings)
  5 siblings, 1 reply; 9+ messages in thread
From: Bryan O'Donoghue @ 2022-04-18 16:22 UTC (permalink / raw)
  To: agross, bjorn.andersson, ilia.lin, rafael
  Cc: linux-arm-msm, linux-pm, bryan.odonoghue, robh+dt, krzk+dt, devicetree

msm8939 will uses this driver instead of the generic dt-cpufreq. Add to the
compatible list.

Cc: ilia.lin@kernel.org
Cc: robh+dt@kernel.org
Cc: krzk+dt@kernel.org
Cc: devicetree@vger.kernel.org
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
---
 .../devicetree/bindings/cpufreq/qcom-cpufreq-nvmem.yaml          | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/cpufreq/qcom-cpufreq-nvmem.yaml b/Documentation/devicetree/bindings/cpufreq/qcom-cpufreq-nvmem.yaml
index 5eb1dba13fe2..7efae476c02e 100644
--- a/Documentation/devicetree/bindings/cpufreq/qcom-cpufreq-nvmem.yaml
+++ b/Documentation/devicetree/bindings/cpufreq/qcom-cpufreq-nvmem.yaml
@@ -25,6 +25,7 @@ select:
           - qcom,apq8064
           - qcom,apq8096
           - qcom,ipq8064
+          - qcom,msm8939
           - qcom,msm8960
           - qcom,msm8974
           - qcom,msm8996
-- 
2.35.1


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

* [PATCH 3/5] cpufreq: blocklist Qualcomm msm8939 in cpufreq-dt-platdev
  2022-04-18 16:22 [PATCH 0/5] qcom-cpufreq-nvmem: Add msm8939 with some fixups Bryan O'Donoghue
  2022-04-18 16:22 ` [PATCH 1/5] dt-bindings: opp: Add missing compat devices Bryan O'Donoghue
  2022-04-18 16:22 ` [PATCH 2/5] dt-bindings: opp: Add msm8939 to the compatible list Bryan O'Donoghue
@ 2022-04-18 16:22 ` Bryan O'Donoghue
  2022-04-18 16:22 ` [PATCH 4/5] cpufreq: qcom-cpufreq-nvmem: Rename qcs404 data to cpr_genpd Bryan O'Donoghue
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 9+ messages in thread
From: Bryan O'Donoghue @ 2022-04-18 16:22 UTC (permalink / raw)
  To: agross, bjorn.andersson, ilia.lin, rafael
  Cc: linux-arm-msm, linux-pm, bryan.odonoghue

msm8939 uses qcom-cpufreq-nvmem. Block it on the generic cpufreq-dt list.

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
---
 drivers/cpufreq/cpufreq-dt-platdev.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/cpufreq/cpufreq-dt-platdev.c b/drivers/cpufreq/cpufreq-dt-platdev.c
index 96de1536e1cb..71d5b0df4a75 100644
--- a/drivers/cpufreq/cpufreq-dt-platdev.c
+++ b/drivers/cpufreq/cpufreq-dt-platdev.c
@@ -136,6 +136,7 @@ static const struct of_device_id blocklist[] __initconst = {
 	{ .compatible = "nvidia,tegra210", },
 
 	{ .compatible = "qcom,apq8096", },
+	{ .compatible = "qcom,msm8939", },
 	{ .compatible = "qcom,msm8996", },
 	{ .compatible = "qcom,qcs404", },
 	{ .compatible = "qcom,sa8155p" },
-- 
2.35.1


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

* [PATCH 4/5] cpufreq: qcom-cpufreq-nvmem: Rename qcs404 data to cpr_genpd
  2022-04-18 16:22 [PATCH 0/5] qcom-cpufreq-nvmem: Add msm8939 with some fixups Bryan O'Donoghue
                   ` (2 preceding siblings ...)
  2022-04-18 16:22 ` [PATCH 3/5] cpufreq: blocklist Qualcomm msm8939 in cpufreq-dt-platdev Bryan O'Donoghue
@ 2022-04-18 16:22 ` Bryan O'Donoghue
  2022-04-18 16:22 ` [PATCH 5/5] cpufreq: qcom-cpufreq-nvmem: Add msm8939 as cpr_genpd Bryan O'Donoghue
  2022-05-25 12:51 ` [PATCH 0/5] qcom-cpufreq-nvmem: Add msm8939 with some fixups Bryan O'Donoghue
  5 siblings, 0 replies; 9+ messages in thread
From: Bryan O'Donoghue @ 2022-04-18 16:22 UTC (permalink / raw)
  To: agross, bjorn.andersson, ilia.lin, rafael
  Cc: linux-arm-msm, linux-pm, bryan.odonoghue

At the moment the CPR genpd based code is named after the qcs404 however
msm8936, msm8939 and other antecedent processors of the qcs404 can also
make use of this data.

Rename it to reflect a more generic use.

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
---
 drivers/cpufreq/qcom-cpufreq-nvmem.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/cpufreq/qcom-cpufreq-nvmem.c b/drivers/cpufreq/qcom-cpufreq-nvmem.c
index 6dfa86971a75..355c8b99e974 100644
--- a/drivers/cpufreq/qcom-cpufreq-nvmem.c
+++ b/drivers/cpufreq/qcom-cpufreq-nvmem.c
@@ -252,10 +252,10 @@ static const struct qcom_cpufreq_match_data match_data_krait = {
 	.get_version = qcom_cpufreq_krait_name_version,
 };
 
-static const char *qcs404_genpd_names[] = { "cpr", NULL };
+static const char *cpr_genpd_names[] = { "cpr", NULL };
 
-static const struct qcom_cpufreq_match_data match_data_qcs404 = {
-	.genpd_names = qcs404_genpd_names,
+static const struct qcom_cpufreq_match_data match_data_cpr_genpd = {
+	.genpd_names = cpr_genpd_names,
 };
 
 static int qcom_cpufreq_probe(struct platform_device *pdev)
@@ -454,7 +454,7 @@ static struct platform_driver qcom_cpufreq_driver = {
 static const struct of_device_id qcom_cpufreq_match_list[] __initconst = {
 	{ .compatible = "qcom,apq8096", .data = &match_data_kryo },
 	{ .compatible = "qcom,msm8996", .data = &match_data_kryo },
-	{ .compatible = "qcom,qcs404", .data = &match_data_qcs404 },
+	{ .compatible = "qcom,qcs404", .data = &match_data_cpr_genpd },
 	{ .compatible = "qcom,ipq8064", .data = &match_data_krait },
 	{ .compatible = "qcom,apq8064", .data = &match_data_krait },
 	{ .compatible = "qcom,msm8974", .data = &match_data_krait },
-- 
2.35.1


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

* [PATCH 5/5] cpufreq: qcom-cpufreq-nvmem: Add msm8939 as cpr_genpd
  2022-04-18 16:22 [PATCH 0/5] qcom-cpufreq-nvmem: Add msm8939 with some fixups Bryan O'Donoghue
                   ` (3 preceding siblings ...)
  2022-04-18 16:22 ` [PATCH 4/5] cpufreq: qcom-cpufreq-nvmem: Rename qcs404 data to cpr_genpd Bryan O'Donoghue
@ 2022-04-18 16:22 ` Bryan O'Donoghue
  2022-05-25 12:51 ` [PATCH 0/5] qcom-cpufreq-nvmem: Add msm8939 with some fixups Bryan O'Donoghue
  5 siblings, 0 replies; 9+ messages in thread
From: Bryan O'Donoghue @ 2022-04-18 16:22 UTC (permalink / raw)
  To: agross, bjorn.andersson, ilia.lin, rafael
  Cc: linux-arm-msm, linux-pm, bryan.odonoghue

Add in msm8939 as a CPR genpd cpufreq SoC.

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
---
 drivers/cpufreq/qcom-cpufreq-nvmem.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/cpufreq/qcom-cpufreq-nvmem.c b/drivers/cpufreq/qcom-cpufreq-nvmem.c
index 355c8b99e974..63cbb6b57e64 100644
--- a/drivers/cpufreq/qcom-cpufreq-nvmem.c
+++ b/drivers/cpufreq/qcom-cpufreq-nvmem.c
@@ -453,6 +453,7 @@ static struct platform_driver qcom_cpufreq_driver = {
 
 static const struct of_device_id qcom_cpufreq_match_list[] __initconst = {
 	{ .compatible = "qcom,apq8096", .data = &match_data_kryo },
+	{ .compatible = "qcom,msm8939", .data = &match_data_cpr_genpd },
 	{ .compatible = "qcom,msm8996", .data = &match_data_kryo },
 	{ .compatible = "qcom,qcs404", .data = &match_data_cpr_genpd },
 	{ .compatible = "qcom,ipq8064", .data = &match_data_krait },
-- 
2.35.1


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

* Re: [PATCH 1/5] dt-bindings: opp: Add missing compat devices
  2022-04-18 16:22 ` [PATCH 1/5] dt-bindings: opp: Add missing compat devices Bryan O'Donoghue
@ 2022-04-26 20:09   ` Rob Herring
  0 siblings, 0 replies; 9+ messages in thread
From: Rob Herring @ 2022-04-26 20:09 UTC (permalink / raw)
  To: Bryan O'Donoghue
  Cc: rafael, agross, linux-pm, linux-arm-msm, krzk+dt, ilia.lin,
	robh+dt, bjorn.andersson, devicetree

On Mon, 18 Apr 2022 17:22:22 +0100, Bryan O'Donoghue wrote:
> A number of devices listed in drivers/cpufreq/qcom-cpufreq-nvmem.c appear
> to be missing from the compatible list.
> 
> Cc: ilia.lin@kernel.org
> Cc: robh+dt@kernel.org
> Cc: krzk+dt@kernel.org
> Cc: devicetree@vger.kernel.org
> Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
> ---
>  .../devicetree/bindings/cpufreq/qcom-cpufreq-nvmem.yaml     | 6 ++++++
>  1 file changed, 6 insertions(+)
> 

Acked-by: Rob Herring <robh@kernel.org>

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

* Re: [PATCH 2/5] dt-bindings: opp: Add msm8939 to the compatible list
  2022-04-18 16:22 ` [PATCH 2/5] dt-bindings: opp: Add msm8939 to the compatible list Bryan O'Donoghue
@ 2022-04-26 20:10   ` Rob Herring
  0 siblings, 0 replies; 9+ messages in thread
From: Rob Herring @ 2022-04-26 20:10 UTC (permalink / raw)
  To: Bryan O'Donoghue
  Cc: bjorn.andersson, robh+dt, ilia.lin, devicetree, krzk+dt, rafael,
	linux-pm, linux-arm-msm, agross

On Mon, 18 Apr 2022 17:22:23 +0100, Bryan O'Donoghue wrote:
> msm8939 will uses this driver instead of the generic dt-cpufreq. Add to the
> compatible list.
> 
> Cc: ilia.lin@kernel.org
> Cc: robh+dt@kernel.org
> Cc: krzk+dt@kernel.org
> Cc: devicetree@vger.kernel.org
> Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
> ---
>  .../devicetree/bindings/cpufreq/qcom-cpufreq-nvmem.yaml          | 1 +
>  1 file changed, 1 insertion(+)
> 

Acked-by: Rob Herring <robh@kernel.org>

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

* Re: [PATCH 0/5] qcom-cpufreq-nvmem: Add msm8939 with some fixups
  2022-04-18 16:22 [PATCH 0/5] qcom-cpufreq-nvmem: Add msm8939 with some fixups Bryan O'Donoghue
                   ` (4 preceding siblings ...)
  2022-04-18 16:22 ` [PATCH 5/5] cpufreq: qcom-cpufreq-nvmem: Add msm8939 as cpr_genpd Bryan O'Donoghue
@ 2022-05-25 12:51 ` Bryan O'Donoghue
  5 siblings, 0 replies; 9+ messages in thread
From: Bryan O'Donoghue @ 2022-05-25 12:51 UTC (permalink / raw)
  To: agross, bjorn.andersson, ilia.lin, rafael; +Cc: linux-arm-msm, linux-pm

On 18/04/2022 17:22, Bryan O'Donoghue wrote:
> Fix up some missing compat strings for the qcom-cpufreq-nvmem yaml.
> Add in msm8939 as a compatible qcom-cpufreq-nvmem.
> 
> Bryan O'Donoghue (5):
>    dt-bindings: opp: Add missing compat devices
>    dt-bindings: opp: Add msm8939 to the compatible list
>    cpufreq: blocklist Qualcomm msm8939 in cpufreq-dt-platdev
>    cpufreq: qcom-cpufreq-nvmem: Rename qcs404 data to cpr_genpd
>    cpufreq: qcom-cpufreq-nvmem: Add msm8939 as cpr_genpd
> 
>   .../devicetree/bindings/cpufreq/qcom-cpufreq-nvmem.yaml  | 8 ++++++++
>   drivers/cpufreq/cpufreq-dt-platdev.c                     | 1 +
>   drivers/cpufreq/qcom-cpufreq-nvmem.c                     | 9 +++++----
>   3 files changed, 14 insertions(+), 4 deletions(-)
> 
ping

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

end of thread, other threads:[~2022-05-25 12:51 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-18 16:22 [PATCH 0/5] qcom-cpufreq-nvmem: Add msm8939 with some fixups Bryan O'Donoghue
2022-04-18 16:22 ` [PATCH 1/5] dt-bindings: opp: Add missing compat devices Bryan O'Donoghue
2022-04-26 20:09   ` Rob Herring
2022-04-18 16:22 ` [PATCH 2/5] dt-bindings: opp: Add msm8939 to the compatible list Bryan O'Donoghue
2022-04-26 20:10   ` Rob Herring
2022-04-18 16:22 ` [PATCH 3/5] cpufreq: blocklist Qualcomm msm8939 in cpufreq-dt-platdev Bryan O'Donoghue
2022-04-18 16:22 ` [PATCH 4/5] cpufreq: qcom-cpufreq-nvmem: Rename qcs404 data to cpr_genpd Bryan O'Donoghue
2022-04-18 16:22 ` [PATCH 5/5] cpufreq: qcom-cpufreq-nvmem: Add msm8939 as cpr_genpd Bryan O'Donoghue
2022-05-25 12:51 ` [PATCH 0/5] qcom-cpufreq-nvmem: Add msm8939 with some fixups Bryan O'Donoghue

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.