All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v6 1/4] mailbox: qcom-apcs-ipc: make regmap max_register configurable
@ 2022-07-07 17:37 Robert Marko
  2022-07-07 17:37 ` [PATCH v6 2/4] mailbox: qcom-apcs-ipc: add IPQ8074 APSS clock controller support Robert Marko
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Robert Marko @ 2022-07-07 17:37 UTC (permalink / raw)
  To: agross, bjorn.andersson, konrad.dybcio, jassisinghbrar, robh+dt,
	krzysztof.kozlowski+dt, linux-arm-msm, linux-kernel, devicetree,
	dmitry.baryshkov
  Cc: Robert Marko

APCS register space in IPQ8074 is 0x6000 so regmap max_register needs to
be 0x5ffc.

Instead of making it global, make max_register configurable via match data.

Signed-off-by: Robert Marko <robimarko@gmail.com>
---
 drivers/mailbox/qcom-apcs-ipc-mailbox.c | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/drivers/mailbox/qcom-apcs-ipc-mailbox.c b/drivers/mailbox/qcom-apcs-ipc-mailbox.c
index 80a54d81412e..c05f3276d02c 100644
--- a/drivers/mailbox/qcom-apcs-ipc-mailbox.c
+++ b/drivers/mailbox/qcom-apcs-ipc-mailbox.c
@@ -27,6 +27,7 @@ struct qcom_apcs_ipc {
 struct qcom_apcs_ipc_data {
 	int offset;
 	char *clk_name;
+	unsigned int max_register;
 };
 
 static const struct qcom_apcs_ipc_data ipq6018_apcs_data = {
@@ -53,7 +54,7 @@ static const struct qcom_apcs_ipc_data sdx55_apcs_data = {
 	.offset = 0x1008, .clk_name = "qcom-sdx55-acps-clk"
 };
 
-static const struct regmap_config apcs_regmap_config = {
+static struct regmap_config apcs_regmap_config = {
 	.reg_bits = 32,
 	.reg_stride = 4,
 	.val_bits = 32,
@@ -91,12 +92,17 @@ static int qcom_apcs_ipc_probe(struct platform_device *pdev)
 	if (IS_ERR(base))
 		return PTR_ERR(base);
 
+	apcs_data = of_device_get_match_data(&pdev->dev);
+	if (!apcs_data)
+		return -ENODATA;
+
+	if (apcs_data->max_register)
+		apcs_regmap_config.max_register = apcs_data->max_register;
+
 	regmap = devm_regmap_init_mmio(&pdev->dev, base, &apcs_regmap_config);
 	if (IS_ERR(regmap))
 		return PTR_ERR(regmap);
 
-	apcs_data = of_device_get_match_data(&pdev->dev);
-
 	apcs->regmap = regmap;
 	apcs->offset = apcs_data->offset;
 
-- 
2.36.1


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

* [PATCH v6 2/4] mailbox: qcom-apcs-ipc: add IPQ8074 APSS clock controller support
  2022-07-07 17:37 [PATCH v6 1/4] mailbox: qcom-apcs-ipc: make regmap max_register configurable Robert Marko
@ 2022-07-07 17:37 ` Robert Marko
  2022-07-13 20:44   ` Bjorn Andersson
  2022-07-07 17:37 ` [PATCH v6 3/4] dt-bindings: mailbox: qcom: set correct #clock-cells Robert Marko
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 10+ messages in thread
From: Robert Marko @ 2022-07-07 17:37 UTC (permalink / raw)
  To: agross, bjorn.andersson, konrad.dybcio, jassisinghbrar, robh+dt,
	krzysztof.kozlowski+dt, linux-arm-msm, linux-kernel, devicetree,
	dmitry.baryshkov
  Cc: Robert Marko

IPQ8074 has the APSS clock controller utilizing the same register space as
the APCS, so provide access to the APSS utilizing a child device like
IPQ6018 does as well, but just by utilizing the IPQ8074 specific APSS
clock driver.

Signed-off-by: Robert Marko <robimarko@gmail.com>
---
Changes in v6:
* Adjust max_register value using match data instead of globally

Changes in v5:
* Use lower case hex for max_register
* Update the APSS clock name to match the new one without commas
---
 drivers/mailbox/qcom-apcs-ipc-mailbox.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/drivers/mailbox/qcom-apcs-ipc-mailbox.c b/drivers/mailbox/qcom-apcs-ipc-mailbox.c
index c05f3276d02c..5d6b41fa6256 100644
--- a/drivers/mailbox/qcom-apcs-ipc-mailbox.c
+++ b/drivers/mailbox/qcom-apcs-ipc-mailbox.c
@@ -34,6 +34,12 @@ static const struct qcom_apcs_ipc_data ipq6018_apcs_data = {
 	.offset = 8, .clk_name = "qcom,apss-ipq6018-clk"
 };
 
+static const struct qcom_apcs_ipc_data ipq8074_apcs_data = {
+	.offset = 8,
+	.max_register = 0x5ffc,
+	.clk_name = "qcom-apss-ipq8074-clk"
+};
+
 static const struct qcom_apcs_ipc_data msm8916_apcs_data = {
 	.offset = 8, .clk_name = "qcom-apcs-msm8916-clk"
 };
@@ -148,7 +154,7 @@ static int qcom_apcs_ipc_remove(struct platform_device *pdev)
 /* .data is the offset of the ipc register within the global block */
 static const struct of_device_id qcom_apcs_ipc_of_match[] = {
 	{ .compatible = "qcom,ipq6018-apcs-apps-global", .data = &ipq6018_apcs_data },
-	{ .compatible = "qcom,ipq8074-apcs-apps-global", .data = &msm8994_apcs_data },
+	{ .compatible = "qcom,ipq8074-apcs-apps-global", .data = &ipq8074_apcs_data },
 	{ .compatible = "qcom,msm8916-apcs-kpss-global", .data = &msm8916_apcs_data },
 	{ .compatible = "qcom,msm8939-apcs-kpss-global", .data = &msm8916_apcs_data },
 	{ .compatible = "qcom,msm8953-apcs-kpss-global", .data = &msm8994_apcs_data },
-- 
2.36.1


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

* [PATCH v6 3/4] dt-bindings: mailbox: qcom: set correct #clock-cells
  2022-07-07 17:37 [PATCH v6 1/4] mailbox: qcom-apcs-ipc: make regmap max_register configurable Robert Marko
  2022-07-07 17:37 ` [PATCH v6 2/4] mailbox: qcom-apcs-ipc: add IPQ8074 APSS clock controller support Robert Marko
@ 2022-07-07 17:37 ` Robert Marko
  2022-07-07 17:37 ` [PATCH v6 4/4] arm64: dts: ipq8074: add APCS node Robert Marko
  2022-07-13 20:43 ` [PATCH v6 1/4] mailbox: qcom-apcs-ipc: make regmap max_register configurable Bjorn Andersson
  3 siblings, 0 replies; 10+ messages in thread
From: Robert Marko @ 2022-07-07 17:37 UTC (permalink / raw)
  To: agross, bjorn.andersson, konrad.dybcio, jassisinghbrar, robh+dt,
	krzysztof.kozlowski+dt, linux-arm-msm, linux-kernel, devicetree,
	dmitry.baryshkov
  Cc: Robert Marko, Krzysztof Kozlowski

IPQ6018 and IPQ8074 require #clock-cells to be set to 1 as their APSS
clock driver provides multiple clock outputs.

So allow setting 1 as #clock-cells and check that its set to 1 for IPQ6018
and IPQ8074, check others for 0 as its currently.

Signed-off-by: Robert Marko <robimarko@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
Changes in v3:
* Drop not needed blank line

Changes in v2:
* Correct subject name
---
 .../bindings/mailbox/qcom,apcs-kpss-global.yaml | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml
index 3b5ba7ecc19d..95ecb84e3278 100644
--- a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml
+++ b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml
@@ -50,7 +50,7 @@ properties:
     const: 1
 
   '#clock-cells':
-    const: 0
+    enum: [0, 1]
 
   clock-names:
     minItems: 2
@@ -96,6 +96,21 @@ allOf:
       properties:
         clocks:
           maxItems: 3
+  - if:
+      properties:
+        compatible:
+          enum:
+            - qcom,ipq6018-apcs-apps-global
+            - qcom,ipq8074-apcs-apps-global
+    then:
+      properties:
+        '#clock-cells':
+          const: 1
+    else:
+      properties:
+        '#clock-cells':
+          const: 0
+
 examples:
 
   # Example apcs with msm8996
-- 
2.36.1


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

* [PATCH v6 4/4] arm64: dts: ipq8074: add APCS node
  2022-07-07 17:37 [PATCH v6 1/4] mailbox: qcom-apcs-ipc: make regmap max_register configurable Robert Marko
  2022-07-07 17:37 ` [PATCH v6 2/4] mailbox: qcom-apcs-ipc: add IPQ8074 APSS clock controller support Robert Marko
  2022-07-07 17:37 ` [PATCH v6 3/4] dt-bindings: mailbox: qcom: set correct #clock-cells Robert Marko
@ 2022-07-07 17:37 ` Robert Marko
  2022-07-16 15:19   ` (subset) " Bjorn Andersson
  2022-07-13 20:43 ` [PATCH v6 1/4] mailbox: qcom-apcs-ipc: make regmap max_register configurable Bjorn Andersson
  3 siblings, 1 reply; 10+ messages in thread
From: Robert Marko @ 2022-07-07 17:37 UTC (permalink / raw)
  To: agross, bjorn.andersson, konrad.dybcio, jassisinghbrar, robh+dt,
	krzysztof.kozlowski+dt, linux-arm-msm, linux-kernel, devicetree,
	dmitry.baryshkov
  Cc: Robert Marko

APCS now has support for providing the APSS clocks as the child device
for IPQ8074.

So, add the required DT node for it as it will later be used as the CPU
clocksource.

Signed-off-by: Robert Marko <robimarko@gmail.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
---
Changes in v3:
* Node does not currently exist in the upstream kernel, so add it instead
of modifying.
---
 arch/arm64/boot/dts/qcom/ipq8074.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/ipq8074.dtsi b/arch/arm64/boot/dts/qcom/ipq8074.dtsi
index b4ae13f16398..76707b9f9845 100644
--- a/arch/arm64/boot/dts/qcom/ipq8074.dtsi
+++ b/arch/arm64/boot/dts/qcom/ipq8074.dtsi
@@ -886,5 +886,13 @@ IRQ_TYPE_LEVEL_HIGH>, /* int_c */
 				      "axi_m_sticky";
 			status = "disabled";
 		};
+
+		apcs_glb: mailbox@b111000 {
+			compatible = "qcom,ipq8074-apcs-apps-global";
+			reg = <0x0b111000 0x6000>;
+
+			#clock-cells = <1>;
+			#mbox-cells = <1>;
+		};
 	};
 };
-- 
2.36.1


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

* Re: [PATCH v6 1/4] mailbox: qcom-apcs-ipc: make regmap max_register configurable
  2022-07-07 17:37 [PATCH v6 1/4] mailbox: qcom-apcs-ipc: make regmap max_register configurable Robert Marko
                   ` (2 preceding siblings ...)
  2022-07-07 17:37 ` [PATCH v6 4/4] arm64: dts: ipq8074: add APCS node Robert Marko
@ 2022-07-13 20:43 ` Bjorn Andersson
  2022-07-13 20:46   ` Robert Marko
  3 siblings, 1 reply; 10+ messages in thread
From: Bjorn Andersson @ 2022-07-13 20:43 UTC (permalink / raw)
  To: Robert Marko
  Cc: agross, konrad.dybcio, jassisinghbrar, robh+dt,
	krzysztof.kozlowski+dt, linux-arm-msm, linux-kernel, devicetree,
	dmitry.baryshkov

On Thu 07 Jul 12:37 CDT 2022, Robert Marko wrote:

> APCS register space in IPQ8074 is 0x6000 so regmap max_register needs to
> be 0x5ffc.
> 
> Instead of making it global, make max_register configurable via match data.
> 
> Signed-off-by: Robert Marko <robimarko@gmail.com>

Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>

Regards,
Bjorn

> ---
>  drivers/mailbox/qcom-apcs-ipc-mailbox.c | 12 +++++++++---
>  1 file changed, 9 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/mailbox/qcom-apcs-ipc-mailbox.c b/drivers/mailbox/qcom-apcs-ipc-mailbox.c
> index 80a54d81412e..c05f3276d02c 100644
> --- a/drivers/mailbox/qcom-apcs-ipc-mailbox.c
> +++ b/drivers/mailbox/qcom-apcs-ipc-mailbox.c
> @@ -27,6 +27,7 @@ struct qcom_apcs_ipc {
>  struct qcom_apcs_ipc_data {
>  	int offset;
>  	char *clk_name;
> +	unsigned int max_register;
>  };
>  
>  static const struct qcom_apcs_ipc_data ipq6018_apcs_data = {
> @@ -53,7 +54,7 @@ static const struct qcom_apcs_ipc_data sdx55_apcs_data = {
>  	.offset = 0x1008, .clk_name = "qcom-sdx55-acps-clk"
>  };
>  
> -static const struct regmap_config apcs_regmap_config = {
> +static struct regmap_config apcs_regmap_config = {
>  	.reg_bits = 32,
>  	.reg_stride = 4,
>  	.val_bits = 32,
> @@ -91,12 +92,17 @@ static int qcom_apcs_ipc_probe(struct platform_device *pdev)
>  	if (IS_ERR(base))
>  		return PTR_ERR(base);
>  
> +	apcs_data = of_device_get_match_data(&pdev->dev);
> +	if (!apcs_data)
> +		return -ENODATA;
> +
> +	if (apcs_data->max_register)
> +		apcs_regmap_config.max_register = apcs_data->max_register;
> +
>  	regmap = devm_regmap_init_mmio(&pdev->dev, base, &apcs_regmap_config);
>  	if (IS_ERR(regmap))
>  		return PTR_ERR(regmap);
>  
> -	apcs_data = of_device_get_match_data(&pdev->dev);
> -
>  	apcs->regmap = regmap;
>  	apcs->offset = apcs_data->offset;
>  
> -- 
> 2.36.1
> 

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

* Re: [PATCH v6 2/4] mailbox: qcom-apcs-ipc: add IPQ8074 APSS clock controller support
  2022-07-07 17:37 ` [PATCH v6 2/4] mailbox: qcom-apcs-ipc: add IPQ8074 APSS clock controller support Robert Marko
@ 2022-07-13 20:44   ` Bjorn Andersson
  2022-07-13 20:47     ` Robert Marko
  0 siblings, 1 reply; 10+ messages in thread
From: Bjorn Andersson @ 2022-07-13 20:44 UTC (permalink / raw)
  To: Robert Marko
  Cc: agross, konrad.dybcio, jassisinghbrar, robh+dt,
	krzysztof.kozlowski+dt, linux-arm-msm, linux-kernel, devicetree,
	dmitry.baryshkov

On Thu 07 Jul 12:37 CDT 2022, Robert Marko wrote:

> IPQ8074 has the APSS clock controller utilizing the same register space as
> the APCS, so provide access to the APSS utilizing a child device like
> IPQ6018 does as well, but just by utilizing the IPQ8074 specific APSS
> clock driver.
> 
> Signed-off-by: Robert Marko <robimarko@gmail.com>

Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>

Regards,
Bjorn

> ---
> Changes in v6:
> * Adjust max_register value using match data instead of globally
> 
> Changes in v5:
> * Use lower case hex for max_register
> * Update the APSS clock name to match the new one without commas
> ---
>  drivers/mailbox/qcom-apcs-ipc-mailbox.c | 8 +++++++-
>  1 file changed, 7 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/mailbox/qcom-apcs-ipc-mailbox.c b/drivers/mailbox/qcom-apcs-ipc-mailbox.c
> index c05f3276d02c..5d6b41fa6256 100644
> --- a/drivers/mailbox/qcom-apcs-ipc-mailbox.c
> +++ b/drivers/mailbox/qcom-apcs-ipc-mailbox.c
> @@ -34,6 +34,12 @@ static const struct qcom_apcs_ipc_data ipq6018_apcs_data = {
>  	.offset = 8, .clk_name = "qcom,apss-ipq6018-clk"
>  };
>  
> +static const struct qcom_apcs_ipc_data ipq8074_apcs_data = {
> +	.offset = 8,
> +	.max_register = 0x5ffc,
> +	.clk_name = "qcom-apss-ipq8074-clk"
> +};
> +
>  static const struct qcom_apcs_ipc_data msm8916_apcs_data = {
>  	.offset = 8, .clk_name = "qcom-apcs-msm8916-clk"
>  };
> @@ -148,7 +154,7 @@ static int qcom_apcs_ipc_remove(struct platform_device *pdev)
>  /* .data is the offset of the ipc register within the global block */
>  static const struct of_device_id qcom_apcs_ipc_of_match[] = {
>  	{ .compatible = "qcom,ipq6018-apcs-apps-global", .data = &ipq6018_apcs_data },
> -	{ .compatible = "qcom,ipq8074-apcs-apps-global", .data = &msm8994_apcs_data },
> +	{ .compatible = "qcom,ipq8074-apcs-apps-global", .data = &ipq8074_apcs_data },
>  	{ .compatible = "qcom,msm8916-apcs-kpss-global", .data = &msm8916_apcs_data },
>  	{ .compatible = "qcom,msm8939-apcs-kpss-global", .data = &msm8916_apcs_data },
>  	{ .compatible = "qcom,msm8953-apcs-kpss-global", .data = &msm8994_apcs_data },
> -- 
> 2.36.1
> 

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

* Re: [PATCH v6 1/4] mailbox: qcom-apcs-ipc: make regmap max_register configurable
  2022-07-13 20:43 ` [PATCH v6 1/4] mailbox: qcom-apcs-ipc: make regmap max_register configurable Bjorn Andersson
@ 2022-07-13 20:46   ` Robert Marko
  0 siblings, 0 replies; 10+ messages in thread
From: Robert Marko @ 2022-07-13 20:46 UTC (permalink / raw)
  To: Bjorn Andersson
  Cc: Andy Gross, Konrad Dybcio, Jassi Brar, Rob Herring,
	krzysztof.kozlowski+dt, linux-arm-msm, open list,
	Devicetree List, Dmitry Baryshkov

On Wed, 13 Jul 2022 at 22:43, Bjorn Andersson
<bjorn.andersson@linaro.org> wrote:
>
> On Thu 07 Jul 12:37 CDT 2022, Robert Marko wrote:
>
> > APCS register space in IPQ8074 is 0x6000 so regmap max_register needs to
> > be 0x5ffc.
> >
> > Instead of making it global, make max_register configurable via match data.
> >
> > Signed-off-by: Robert Marko <robimarko@gmail.com>
>
> Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>

Bjorn, please ignore the v6 series, a way simplified and better
support is in the v8 series.

Regards,
Robert
>
> Regards,
> Bjorn
>
> > ---
> >  drivers/mailbox/qcom-apcs-ipc-mailbox.c | 12 +++++++++---
> >  1 file changed, 9 insertions(+), 3 deletions(-)
> >
> > diff --git a/drivers/mailbox/qcom-apcs-ipc-mailbox.c b/drivers/mailbox/qcom-apcs-ipc-mailbox.c
> > index 80a54d81412e..c05f3276d02c 100644
> > --- a/drivers/mailbox/qcom-apcs-ipc-mailbox.c
> > +++ b/drivers/mailbox/qcom-apcs-ipc-mailbox.c
> > @@ -27,6 +27,7 @@ struct qcom_apcs_ipc {
> >  struct qcom_apcs_ipc_data {
> >       int offset;
> >       char *clk_name;
> > +     unsigned int max_register;
> >  };
> >
> >  static const struct qcom_apcs_ipc_data ipq6018_apcs_data = {
> > @@ -53,7 +54,7 @@ static const struct qcom_apcs_ipc_data sdx55_apcs_data = {
> >       .offset = 0x1008, .clk_name = "qcom-sdx55-acps-clk"
> >  };
> >
> > -static const struct regmap_config apcs_regmap_config = {
> > +static struct regmap_config apcs_regmap_config = {
> >       .reg_bits = 32,
> >       .reg_stride = 4,
> >       .val_bits = 32,
> > @@ -91,12 +92,17 @@ static int qcom_apcs_ipc_probe(struct platform_device *pdev)
> >       if (IS_ERR(base))
> >               return PTR_ERR(base);
> >
> > +     apcs_data = of_device_get_match_data(&pdev->dev);
> > +     if (!apcs_data)
> > +             return -ENODATA;
> > +
> > +     if (apcs_data->max_register)
> > +             apcs_regmap_config.max_register = apcs_data->max_register;
> > +
> >       regmap = devm_regmap_init_mmio(&pdev->dev, base, &apcs_regmap_config);
> >       if (IS_ERR(regmap))
> >               return PTR_ERR(regmap);
> >
> > -     apcs_data = of_device_get_match_data(&pdev->dev);
> > -
> >       apcs->regmap = regmap;
> >       apcs->offset = apcs_data->offset;
> >
> > --
> > 2.36.1
> >

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

* Re: [PATCH v6 2/4] mailbox: qcom-apcs-ipc: add IPQ8074 APSS clock controller support
  2022-07-13 20:44   ` Bjorn Andersson
@ 2022-07-13 20:47     ` Robert Marko
  0 siblings, 0 replies; 10+ messages in thread
From: Robert Marko @ 2022-07-13 20:47 UTC (permalink / raw)
  To: Bjorn Andersson
  Cc: Andy Gross, Konrad Dybcio, Jassi Brar, Rob Herring,
	krzysztof.kozlowski+dt, linux-arm-msm, open list,
	Devicetree List, Dmitry Baryshkov

On Wed, 13 Jul 2022 at 22:44, Bjorn Andersson
<bjorn.andersson@linaro.org> wrote:
>
> On Thu 07 Jul 12:37 CDT 2022, Robert Marko wrote:
>
> > IPQ8074 has the APSS clock controller utilizing the same register space as
> > the APCS, so provide access to the APSS utilizing a child device like
> > IPQ6018 does as well, but just by utilizing the IPQ8074 specific APSS
> > clock driver.
> >
> > Signed-off-by: Robert Marko <robimarko@gmail.com>
>
> Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>

Bjorn, please ignore the v6 series, a way simplified and better
support is in the v8 series.
Which is mostly reviewed, only DTS is pending.

Regards,
Robert
>
> Regards,
> Bjorn
>
> > ---
> > Changes in v6:
> > * Adjust max_register value using match data instead of globally
> >
> > Changes in v5:
> > * Use lower case hex for max_register
> > * Update the APSS clock name to match the new one without commas
> > ---
> >  drivers/mailbox/qcom-apcs-ipc-mailbox.c | 8 +++++++-
> >  1 file changed, 7 insertions(+), 1 deletion(-)
> >
> > diff --git a/drivers/mailbox/qcom-apcs-ipc-mailbox.c b/drivers/mailbox/qcom-apcs-ipc-mailbox.c
> > index c05f3276d02c..5d6b41fa6256 100644
> > --- a/drivers/mailbox/qcom-apcs-ipc-mailbox.c
> > +++ b/drivers/mailbox/qcom-apcs-ipc-mailbox.c
> > @@ -34,6 +34,12 @@ static const struct qcom_apcs_ipc_data ipq6018_apcs_data = {
> >       .offset = 8, .clk_name = "qcom,apss-ipq6018-clk"
> >  };
> >
> > +static const struct qcom_apcs_ipc_data ipq8074_apcs_data = {
> > +     .offset = 8,
> > +     .max_register = 0x5ffc,
> > +     .clk_name = "qcom-apss-ipq8074-clk"
> > +};
> > +
> >  static const struct qcom_apcs_ipc_data msm8916_apcs_data = {
> >       .offset = 8, .clk_name = "qcom-apcs-msm8916-clk"
> >  };
> > @@ -148,7 +154,7 @@ static int qcom_apcs_ipc_remove(struct platform_device *pdev)
> >  /* .data is the offset of the ipc register within the global block */
> >  static const struct of_device_id qcom_apcs_ipc_of_match[] = {
> >       { .compatible = "qcom,ipq6018-apcs-apps-global", .data = &ipq6018_apcs_data },
> > -     { .compatible = "qcom,ipq8074-apcs-apps-global", .data = &msm8994_apcs_data },
> > +     { .compatible = "qcom,ipq8074-apcs-apps-global", .data = &ipq8074_apcs_data },
> >       { .compatible = "qcom,msm8916-apcs-kpss-global", .data = &msm8916_apcs_data },
> >       { .compatible = "qcom,msm8939-apcs-kpss-global", .data = &msm8916_apcs_data },
> >       { .compatible = "qcom,msm8953-apcs-kpss-global", .data = &msm8994_apcs_data },
> > --
> > 2.36.1
> >

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

* Re: (subset) [PATCH v6 4/4] arm64: dts: ipq8074: add APCS node
  2022-07-07 17:37 ` [PATCH v6 4/4] arm64: dts: ipq8074: add APCS node Robert Marko
@ 2022-07-16 15:19   ` Bjorn Andersson
  2022-07-17 12:02     ` Robert Marko
  0 siblings, 1 reply; 10+ messages in thread
From: Bjorn Andersson @ 2022-07-16 15:19 UTC (permalink / raw)
  To: Robert Marko, linux-arm-msm, robh+dt, dmitry.baryshkov,
	linux-kernel, devicetree, jassisinghbrar, krzysztof.kozlowski+dt,
	konrad.dybcio, agross

On Thu, 7 Jul 2022 19:37:33 +0200, Robert Marko wrote:
> APCS now has support for providing the APSS clocks as the child device
> for IPQ8074.
> 
> So, add the required DT node for it as it will later be used as the CPU
> clocksource.
> 
> 
> [...]

Applied, thanks!

[4/4] arm64: dts: ipq8074: add APCS node
      commit: 50ed9fffec3aed88bc1ffed277d291f81153bd5d

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

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

* Re: (subset) [PATCH v6 4/4] arm64: dts: ipq8074: add APCS node
  2022-07-16 15:19   ` (subset) " Bjorn Andersson
@ 2022-07-17 12:02     ` Robert Marko
  0 siblings, 0 replies; 10+ messages in thread
From: Robert Marko @ 2022-07-17 12:02 UTC (permalink / raw)
  To: Bjorn Andersson
  Cc: linux-arm-msm, Rob Herring, Dmitry Baryshkov, open list,
	Devicetree List, Jassi Brar, krzysztof.kozlowski+dt,
	Konrad Dybcio, Andy Gross

On Sat, 16 Jul 2022 at 17:19, Bjorn Andersson
<bjorn.andersson@linaro.org> wrote:
>
> On Thu, 7 Jul 2022 19:37:33 +0200, Robert Marko wrote:
> > APCS now has support for providing the APSS clocks as the child device
> > for IPQ8074.
> >
> > So, add the required DT node for it as it will later be used as the CPU
> > clocksource.
> >
> >
> > [...]
>
> Applied, thanks!
>
> [4/4] arm64: dts: ipq8074: add APCS node
>       commit: 50ed9fffec3aed88bc1ffed277d291f81153bd5d

Bjorn,
can you please apply the v8 series instead which superseded the v6
series, DTS is different
as it relies on PLL being separate and is much simpler.

v6 is superseded and should be ignored.

https://patchwork.kernel.org/project/linux-arm-msm/patch/20220712100733.34261-4-robimarko@gmail.com/

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

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

end of thread, other threads:[~2022-07-17 12:02 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-07 17:37 [PATCH v6 1/4] mailbox: qcom-apcs-ipc: make regmap max_register configurable Robert Marko
2022-07-07 17:37 ` [PATCH v6 2/4] mailbox: qcom-apcs-ipc: add IPQ8074 APSS clock controller support Robert Marko
2022-07-13 20:44   ` Bjorn Andersson
2022-07-13 20:47     ` Robert Marko
2022-07-07 17:37 ` [PATCH v6 3/4] dt-bindings: mailbox: qcom: set correct #clock-cells Robert Marko
2022-07-07 17:37 ` [PATCH v6 4/4] arm64: dts: ipq8074: add APCS node Robert Marko
2022-07-16 15:19   ` (subset) " Bjorn Andersson
2022-07-17 12:02     ` Robert Marko
2022-07-13 20:43 ` [PATCH v6 1/4] mailbox: qcom-apcs-ipc: make regmap max_register configurable Bjorn Andersson
2022-07-13 20:46   ` Robert Marko

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.