linux-arm-msm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RESEND v8 0/5] Add resets for ADSP based audio clock controller driver
@ 2023-02-15 15:13 Mohammad Rafi Shaik
  2023-02-15 15:13 ` [RESEND v8 1/5] dt-bindings: clock: qcom,sc7280-lpasscc: Add qcom,adsp-pil-mode property Mohammad Rafi Shaik
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Mohammad Rafi Shaik @ 2023-02-15 15:13 UTC (permalink / raw)
  To: swboyd, krzysztof.kozlowski+dt, agross, andersson, robh+dt,
	broonie, quic_plai, konrad.dybcio, mturquette, sboyd,
	linux-arm-msm, linux-clk, linux-kernel, quic_rohkumar, quic_visr
  Cc: Mohammad Rafi Shaik

Add resets and remove qdsp6ss clcok controller for audioreach based platforms. 
Changes since v7:
    -- Modiy AHB clock probing method in "Merge lpasscc into lpass_aon patch".
    -- Fix Typo errors in "Merge lpasscc into lpass_aon patch".
    -- Update commit message in "Merge lpasscc into lpass_aon patch" 
Changes since v6:
    -- Update commit message in "Merge lpasscc into lpass_aon patch" patch.
    -- Drop "Skip lpasscorecc registration" patch.
    -- Add comment in the code in "Skip lpass_aon_cc_pll config" patch.
Changes since v5:
    -- Fix compilation issue.
Changes since v4:
    -- Update Fixes tag in Merge lpasscc into lpass_aon patch.
    -- Revert removal of clk_regmap structure in Merge lpasscc into lpass_aon patch.

Changes since v3:
    -- Remove duplicate clock resets patch.
    -- Add binding headers for q6 clocks.
    -- Create new patch for merging lpasscc q6 clocks into lpass_aon.
    -- Create new patches for handling conflicts of ADSP and bypass solution.

Changes since v2:
    -- Revert removing qdsp6ss clock control.
    -- Add Conditional check for qdsp6ss clock registration.
Changes since v1:
    -- Update commit message.
    -- Remove qdsp6ss clock control.

Srinivasa Rao Mandadapu (5):
  dt-bindings: clock: qcom,sc7280-lpasscc: Add qcom,adsp-pil-mode
    property
  dt-bindings: clock: lpassaudiocc-sc7280: Add binding headers for
    lpasscc
  clk: qcom: lpasscc-sc7280: Skip qdsp6ss clock registration
  clk: qcom: lpassaudiocc-sc7280: Merge AHB clocks into lpass_aon
  clk: qcom: lpassaudiocc-sc7280: Skip lpass_aon_cc_pll config

 .../bindings/clock/qcom,sc7280-lpasscc.yaml       |  7 +++++++
 drivers/clk/qcom/lpassaudiocc-sc7280.c            | 15 ++++++++++++---
 drivers/clk/qcom/lpasscc-sc7280.c                 | 12 +++++++-----
 .../dt-bindings/clock/qcom,lpassaudiocc-sc7280.h  |  2 ++
 4 files changed, 28 insertions(+), 8 deletions(-)

-- 
2.25.1


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

* [RESEND v8 1/5] dt-bindings: clock: qcom,sc7280-lpasscc: Add qcom,adsp-pil-mode property
  2023-02-15 15:13 [RESEND v8 0/5] Add resets for ADSP based audio clock controller driver Mohammad Rafi Shaik
@ 2023-02-15 15:13 ` Mohammad Rafi Shaik
  2023-02-15 15:13 ` [RESEND v8 2/5] dt-bindings: clock: lpassaudiocc-sc7280: Add binding headers for lpasscc Mohammad Rafi Shaik
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 9+ messages in thread
From: Mohammad Rafi Shaik @ 2023-02-15 15:13 UTC (permalink / raw)
  To: swboyd, krzysztof.kozlowski+dt, agross, andersson, robh+dt,
	broonie, quic_plai, konrad.dybcio, mturquette, sboyd,
	linux-arm-msm, linux-clk, linux-kernel, quic_rohkumar, quic_visr
  Cc: Srinivasa Rao Mandadapu, Mohammad Rafi Shaik, Krzysztof Kozlowski

From: Srinivasa Rao Mandadapu <quic_srivasam@quicinc.com>

When this property is set, the remoteproc is used to boot the
LPASS and therefore qdsp6ss clocks would be used to bring LPASS
out of reset, hence they are directly controlled by the remoteproc.

This is a cleanup done to handle overlap of regmap of lpasscc
and adsp remoteproc blocks.

Signed-off-by: Srinivasa Rao Mandadapu <quic_srivasam@quicinc.com>
Signed-off-by: Mohammad Rafi Shaik <quic_mohs@quicinc.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
---
 .../devicetree/bindings/clock/qcom,sc7280-lpasscc.yaml     | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/Documentation/devicetree/bindings/clock/qcom,sc7280-lpasscc.yaml b/Documentation/devicetree/bindings/clock/qcom,sc7280-lpasscc.yaml
index 6151fdebbff8..97c6bd96e0cb 100644
--- a/Documentation/devicetree/bindings/clock/qcom,sc7280-lpasscc.yaml
+++ b/Documentation/devicetree/bindings/clock/qcom,sc7280-lpasscc.yaml
@@ -41,6 +41,12 @@ properties:
       - const: qdsp6ss
       - const: top_cc
 
+  qcom,adsp-pil-mode:
+    description:
+      Indicates if the LPASS would be brought out of reset using
+      remoteproc peripheral loader.
+    type: boolean
+
 required:
   - compatible
   - reg
@@ -60,6 +66,7 @@ examples:
       reg-names = "qdsp6ss", "top_cc";
       clocks = <&gcc GCC_CFG_NOC_LPASS_CLK>;
       clock-names = "iface";
+      qcom,adsp-pil-mode;
       #clock-cells = <1>;
     };
 ...
-- 
2.25.1


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

* [RESEND v8 2/5] dt-bindings: clock: lpassaudiocc-sc7280: Add binding headers for lpasscc
  2023-02-15 15:13 [RESEND v8 0/5] Add resets for ADSP based audio clock controller driver Mohammad Rafi Shaik
  2023-02-15 15:13 ` [RESEND v8 1/5] dt-bindings: clock: qcom,sc7280-lpasscc: Add qcom,adsp-pil-mode property Mohammad Rafi Shaik
@ 2023-02-15 15:13 ` Mohammad Rafi Shaik
  2023-02-15 15:13 ` [RESEND v8 3/5] clk: qcom: lpasscc-sc7280: Skip qdsp6ss clock registration Mohammad Rafi Shaik
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 9+ messages in thread
From: Mohammad Rafi Shaik @ 2023-02-15 15:13 UTC (permalink / raw)
  To: swboyd, krzysztof.kozlowski+dt, agross, andersson, robh+dt,
	broonie, quic_plai, konrad.dybcio, mturquette, sboyd,
	linux-arm-msm, linux-clk, linux-kernel, quic_rohkumar, quic_visr
  Cc: Srinivasa Rao Mandadapu, Mohammad Rafi Shaik, Krzysztof Kozlowski

From: Srinivasa Rao Mandadapu <quic_srivasam@quicinc.com>

Add binding headers for lpasscc clocks to merge lpasscc clocks into
lpass_aon clk_regmap structure.

Signed-off-by: Srinivasa Rao Mandadapu <quic_srivasam@quicinc.com>
Signed-off-by: Mohammad Rafi Shaik <quic_mohs@quicinc.com>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 include/dt-bindings/clock/qcom,lpassaudiocc-sc7280.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/dt-bindings/clock/qcom,lpassaudiocc-sc7280.h b/include/dt-bindings/clock/qcom,lpassaudiocc-sc7280.h
index 22dcd47d4513..c72a98034d8b 100644
--- a/include/dt-bindings/clock/qcom,lpassaudiocc-sc7280.h
+++ b/include/dt-bindings/clock/qcom,lpassaudiocc-sc7280.h
@@ -41,6 +41,8 @@
 #define LPASS_AON_CC_TX_MCLK_CLK			8
 #define LPASS_AON_CC_TX_MCLK_RCG_CLK_SRC		9
 #define LPASS_AON_CC_VA_MEM0_CLK			10
+#define LPASS_Q6_AHBM_CLK				11
+#define LPASS_Q6_AHBS_CLK				12
 
 /* LPASS_AON_CC power domains */
 #define LPASS_AON_CC_LPASS_AUDIO_HM_GDSC		0
-- 
2.25.1


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

* [RESEND v8 3/5] clk: qcom: lpasscc-sc7280: Skip qdsp6ss clock registration
  2023-02-15 15:13 [RESEND v8 0/5] Add resets for ADSP based audio clock controller driver Mohammad Rafi Shaik
  2023-02-15 15:13 ` [RESEND v8 1/5] dt-bindings: clock: qcom,sc7280-lpasscc: Add qcom,adsp-pil-mode property Mohammad Rafi Shaik
  2023-02-15 15:13 ` [RESEND v8 2/5] dt-bindings: clock: lpassaudiocc-sc7280: Add binding headers for lpasscc Mohammad Rafi Shaik
@ 2023-02-15 15:13 ` Mohammad Rafi Shaik
  2023-02-15 15:13 ` [RESEND v8 4/5] clk: qcom: lpassaudiocc-sc7280: Merge AHB clocks into lpass_aon Mohammad Rafi Shaik
  2023-02-15 15:13 ` [RESEND v8 5/5] clk: qcom: lpassaudiocc-sc7280: Skip lpass_aon_cc_pll config Mohammad Rafi Shaik
  4 siblings, 0 replies; 9+ messages in thread
From: Mohammad Rafi Shaik @ 2023-02-15 15:13 UTC (permalink / raw)
  To: swboyd, krzysztof.kozlowski+dt, agross, andersson, robh+dt,
	broonie, quic_plai, konrad.dybcio, mturquette, sboyd,
	linux-arm-msm, linux-clk, linux-kernel, quic_rohkumar, quic_visr
  Cc: Srinivasa Rao Mandadapu, Mohammad Rafi Shaik

From: Srinivasa Rao Mandadapu <quic_srivasam@quicinc.com>

The qdsp6ss memory region is being shared by ADSP remoteproc device and
lpasscc clock device, hence causing memory conflict.
As the qdsp6ss clocks are being enabled in remoteproc driver, skip qdsp6ss
clock registration if "qcom,adsp-pil-mode" is enabled.

Fixes: 4ab43d171181 ("clk: qcom: Add lpass clock controller driver for SC7280")
Signed-off-by: Srinivasa Rao Mandadapu <quic_srivasam@quicinc.com>
Signed-off-by: Mohammad Rafi Shaik <quic_mohs@quicinc.com>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
---
 drivers/clk/qcom/lpasscc-sc7280.c | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/drivers/clk/qcom/lpasscc-sc7280.c b/drivers/clk/qcom/lpasscc-sc7280.c
index 5c1e17bd0d76..85dd5b9d64f0 100644
--- a/drivers/clk/qcom/lpasscc-sc7280.c
+++ b/drivers/clk/qcom/lpasscc-sc7280.c
@@ -118,12 +118,14 @@ static int lpass_cc_sc7280_probe(struct platform_device *pdev)
 		goto destroy_pm_clk;
 	}
 
-	lpass_regmap_config.name = "qdsp6ss";
-	desc = &lpass_qdsp6ss_sc7280_desc;
+	if (!of_property_read_bool(pdev->dev.of_node, "qcom,adsp-pil-mode")) {
+		lpass_regmap_config.name = "qdsp6ss";
+		desc = &lpass_qdsp6ss_sc7280_desc;
 
-	ret = qcom_cc_probe_by_index(pdev, 0, desc);
-	if (ret)
-		goto destroy_pm_clk;
+		ret = qcom_cc_probe_by_index(pdev, 0, desc);
+		if (ret)
+			goto destroy_pm_clk;
+	}
 
 	lpass_regmap_config.name = "top_cc";
 	desc = &lpass_cc_top_sc7280_desc;
-- 
2.25.1


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

* [RESEND v8 4/5] clk: qcom: lpassaudiocc-sc7280: Merge AHB clocks into lpass_aon
  2023-02-15 15:13 [RESEND v8 0/5] Add resets for ADSP based audio clock controller driver Mohammad Rafi Shaik
                   ` (2 preceding siblings ...)
  2023-02-15 15:13 ` [RESEND v8 3/5] clk: qcom: lpasscc-sc7280: Skip qdsp6ss clock registration Mohammad Rafi Shaik
@ 2023-02-15 15:13 ` Mohammad Rafi Shaik
  2023-02-16  5:31   ` Stephen Boyd
  2023-02-15 15:13 ` [RESEND v8 5/5] clk: qcom: lpassaudiocc-sc7280: Skip lpass_aon_cc_pll config Mohammad Rafi Shaik
  4 siblings, 1 reply; 9+ messages in thread
From: Mohammad Rafi Shaik @ 2023-02-15 15:13 UTC (permalink / raw)
  To: swboyd, krzysztof.kozlowski+dt, agross, andersson, robh+dt,
	broonie, quic_plai, konrad.dybcio, mturquette, sboyd,
	linux-arm-msm, linux-clk, linux-kernel, quic_rohkumar, quic_visr
  Cc: Srinivasa Rao Mandadapu, Mohammad Rafi Shaik

From: Srinivasa Rao Mandadapu <quic_srivasam@quicinc.com>

Merge AHBM and AHBS clocks into lpass_aon clk_regmap structure as they
are using same register space.
Modify AHB clocks explicit registration, from qcom_cc_probe to
com_cc_probe_by_index.
In existing implementation, Q6 AHB clocks and lpass_aon clocks are
being registered exclusively and overlapping if both of them are
to be used. The regmap region used by Q6 AHB clocks is <0x03389000 0x24>
and of lpass_aon clocks is <0x03380000 0x30000>.
This is required to avoid such overlapping and to register
Q6 AHB clocks and lpass_aon clocks simultaneously.

Fixes: 4ab43d171181 ("clk: qcom: Add lpass clock controller driver for SC7280")
Signed-off-by: Srinivasa Rao Mandadapu <quic_srivasam@quicinc.com>
Signed-off-by: Mohammad Rafi Shaik <quic_mohs@quicinc.com>
Tested-by: Mohammad Rafi Shaik <quic_mohs@quicinc.com>
---
 drivers/clk/qcom/lpassaudiocc-sc7280.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/drivers/clk/qcom/lpassaudiocc-sc7280.c b/drivers/clk/qcom/lpassaudiocc-sc7280.c
index 1339f9211a14..533d68d80538 100644
--- a/drivers/clk/qcom/lpassaudiocc-sc7280.c
+++ b/drivers/clk/qcom/lpassaudiocc-sc7280.c
@@ -660,6 +660,8 @@ static struct clk_regmap *lpass_aon_cc_sc7280_clocks[] = {
 	[LPASS_AON_CC_TX_MCLK_2X_CLK] = &lpass_aon_cc_tx_mclk_2x_clk.clkr,
 	[LPASS_AON_CC_TX_MCLK_CLK] = &lpass_aon_cc_tx_mclk_clk.clkr,
 	[LPASS_AON_CC_TX_MCLK_RCG_CLK_SRC] = &lpass_aon_cc_tx_mclk_rcg_clk_src.clkr,
+	[LPASS_Q6_AHBM_CLK] = &lpass_q6ss_ahbm_clk.clkr,
+	[LPASS_Q6_AHBS_CLK] = &lpass_q6ss_ahbs_clk.clkr,
 };
 
 static struct gdsc *lpass_aon_cc_sc7280_gdscs[] = {
@@ -828,8 +830,9 @@ static int lpass_aon_cc_sc7280_probe(struct platform_device *pdev)
 	if (of_property_read_bool(pdev->dev.of_node, "qcom,adsp-pil-mode")) {
 		lpass_audio_cc_sc7280_regmap_config.name = "cc";
 		desc = &lpass_cc_sc7280_desc;
-		ret = qcom_cc_probe(pdev, desc);
-		goto exit;
+		ret = qcom_cc_probe_by_index(pdev, 1, desc);
+		if (!ret)
+			goto exit;
 	}
 
 	lpass_audio_cc_sc7280_regmap_config.name = "lpasscc_aon";
-- 
2.25.1


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

* [RESEND v8 5/5] clk: qcom: lpassaudiocc-sc7280: Skip lpass_aon_cc_pll config
  2023-02-15 15:13 [RESEND v8 0/5] Add resets for ADSP based audio clock controller driver Mohammad Rafi Shaik
                   ` (3 preceding siblings ...)
  2023-02-15 15:13 ` [RESEND v8 4/5] clk: qcom: lpassaudiocc-sc7280: Merge AHB clocks into lpass_aon Mohammad Rafi Shaik
@ 2023-02-15 15:13 ` Mohammad Rafi Shaik
  4 siblings, 0 replies; 9+ messages in thread
From: Mohammad Rafi Shaik @ 2023-02-15 15:13 UTC (permalink / raw)
  To: swboyd, krzysztof.kozlowski+dt, agross, andersson, robh+dt,
	broonie, quic_plai, konrad.dybcio, mturquette, sboyd,
	linux-arm-msm, linux-clk, linux-kernel, quic_rohkumar, quic_visr
  Cc: Srinivasa Rao Mandadapu, Mohammad Rafi Shaik

From: Srinivasa Rao Mandadapu <quic_srivasam@quicinc.com>

Skip lpass_aon_cc_pll configuration for ADSP based platforms
based on qcom,adsp-pil-mode property.
This is to avoid ADSP out of reset fail.

Signed-off-by: Srinivasa Rao Mandadapu <quic_srivasam@quicinc.com>
Signed-off-by: Mohammad Rafi Shaik <quic_mohs@quicinc.com>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
---
 drivers/clk/qcom/lpassaudiocc-sc7280.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/drivers/clk/qcom/lpassaudiocc-sc7280.c b/drivers/clk/qcom/lpassaudiocc-sc7280.c
index 533d68d80538..14ff6cb1c99b 100644
--- a/drivers/clk/qcom/lpassaudiocc-sc7280.c
+++ b/drivers/clk/qcom/lpassaudiocc-sc7280.c
@@ -845,7 +845,13 @@ static int lpass_aon_cc_sc7280_probe(struct platform_device *pdev)
 		goto exit;
 	}
 
-	clk_lucid_pll_configure(&lpass_aon_cc_pll, regmap, &lpass_aon_cc_pll_config);
+	/*
+	 * ADSP firmware is in control of this PLL frequency when
+	 * remoteproc is used. Skip frequency configuration in that
+	 * case.
+	 */
+	if (!of_property_read_bool(pdev->dev.of_node, "qcom,adsp-pil-mode"))
+		clk_lucid_pll_configure(&lpass_aon_cc_pll, regmap, &lpass_aon_cc_pll_config);
 
 	ret = qcom_cc_really_probe(pdev, &lpass_aon_cc_sc7280_desc, regmap);
 	if (ret) {
-- 
2.25.1


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

* Re: [RESEND v8 4/5] clk: qcom: lpassaudiocc-sc7280: Merge AHB clocks into lpass_aon
  2023-02-15 15:13 ` [RESEND v8 4/5] clk: qcom: lpassaudiocc-sc7280: Merge AHB clocks into lpass_aon Mohammad Rafi Shaik
@ 2023-02-16  5:31   ` Stephen Boyd
  2023-02-23 10:19     ` Mohammad Rafi Shaik
  0 siblings, 1 reply; 9+ messages in thread
From: Stephen Boyd @ 2023-02-16  5:31 UTC (permalink / raw)
  To: Mohammad Rafi Shaik, agross, andersson, broonie, konrad.dybcio,
	krzysztof.kozlowski+dt, linux-arm-msm, linux-clk, linux-kernel,
	mturquette, quic_plai, quic_rohkumar, quic_visr, robh+dt
  Cc: Srinivasa Rao Mandadapu

Quoting Mohammad Rafi Shaik (2023-02-15 07:13:29)
> @@ -828,8 +830,9 @@ static int lpass_aon_cc_sc7280_probe(struct platform_device *pdev)
>         if (of_property_read_bool(pdev->dev.of_node, "qcom,adsp-pil-mode")) {
>                 lpass_audio_cc_sc7280_regmap_config.name = "cc";
>                 desc = &lpass_cc_sc7280_desc;
> -               ret = qcom_cc_probe(pdev, desc);
> -               goto exit;
> +               ret = qcom_cc_probe_by_index(pdev, 1, desc);

Where is the patch to the binding yaml file?

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

* Re: [RESEND v8 4/5] clk: qcom: lpassaudiocc-sc7280: Merge AHB clocks into lpass_aon
  2023-02-16  5:31   ` Stephen Boyd
@ 2023-02-23 10:19     ` Mohammad Rafi Shaik
  2023-02-23 18:59       ` Stephen Boyd
  0 siblings, 1 reply; 9+ messages in thread
From: Mohammad Rafi Shaik @ 2023-02-23 10:19 UTC (permalink / raw)
  To: Stephen Boyd, agross, andersson, broonie, konrad.dybcio,
	krzysztof.kozlowski+dt, linux-arm-msm, linux-clk, linux-kernel,
	mturquette, quic_plai, quic_rohkumar, quic_visr, robh+dt
  Cc: Srinivasa Rao Mandadapu


On 2/16/2023 11:01 AM, Stephen Boyd wrote:
> Quoting Mohammad Rafi Shaik (2023-02-15 07:13:29)
>> @@ -828,8 +830,9 @@ static int lpass_aon_cc_sc7280_probe(struct platform_device *pdev)
>>          if (of_property_read_bool(pdev->dev.of_node, "qcom,adsp-pil-mode")) {
>>                  lpass_audio_cc_sc7280_regmap_config.name = "cc";
>>                  desc = &lpass_cc_sc7280_desc;
>> -               ret = qcom_cc_probe(pdev, desc);
>> -               goto exit;
>> +               ret = qcom_cc_probe_by_index(pdev, 1, desc);
> Where is the patch to the binding yaml file?
Thanks for comment.

The dtbinding  yaml file for this is already present in existing yaml.

Below is the snippet for the same:

compatible = "qcom,sc7280-lpassaoncc";
reg = <0x3380000 0x30000>;

Actually what ever the  CC register region <required range is  0x3389000 
0x24> which we are accessing is already present in the above reg map 
range of dtsi, so we have not updated the 
/devicetree/bindings/clock/qcom,sc7280-lpasscorecc.yaml file.


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

* Re: [RESEND v8 4/5] clk: qcom: lpassaudiocc-sc7280: Merge AHB clocks into lpass_aon
  2023-02-23 10:19     ` Mohammad Rafi Shaik
@ 2023-02-23 18:59       ` Stephen Boyd
  0 siblings, 0 replies; 9+ messages in thread
From: Stephen Boyd @ 2023-02-23 18:59 UTC (permalink / raw)
  To: Mohammad Rafi Shaik, agross, andersson, broonie, konrad.dybcio,
	krzysztof.kozlowski+dt, linux-arm-msm, linux-clk, linux-kernel,
	mturquette, quic_plai, quic_rohkumar, quic_visr, robh+dt
  Cc: Srinivasa Rao Mandadapu

Quoting Mohammad Rafi Shaik (2023-02-23 02:19:30)
>
> On 2/16/2023 11:01 AM, Stephen Boyd wrote:
> > Quoting Mohammad Rafi Shaik (2023-02-15 07:13:29)
> >> @@ -828,8 +830,9 @@ static int lpass_aon_cc_sc7280_probe(struct platform_device *pdev)
> >>          if (of_property_read_bool(pdev->dev.of_node, "qcom,adsp-pil-mode")) {
> >>                  lpass_audio_cc_sc7280_regmap_config.name = "cc";
> >>                  desc = &lpass_cc_sc7280_desc;
> >> -               ret = qcom_cc_probe(pdev, desc);
> >> -               goto exit;
> >> +               ret = qcom_cc_probe_by_index(pdev, 1, desc);
> > Where is the patch to the binding yaml file?
> Thanks for comment.
>
> The dtbinding  yaml file for this is already present in existing yaml.
>
> Below is the snippet for the same:
>
> compatible = "qcom,sc7280-lpassaoncc";
> reg = <0x3380000 0x30000>;
>
> Actually what ever the  CC register region <required range is  0x3389000
> 0x24> which we are accessing is already present in the above reg map
> range of dtsi, so we have not updated the
> /devicetree/bindings/clock/qcom,sc7280-lpasscorecc.yaml file.
>

The usage of '1' in qcom_cc_probe_by_index() means that the reg property
should have at least two addresses. The example you pasted above shows
only one reg address. The binding needs an update for two registers,
where is that?

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

end of thread, other threads:[~2023-02-23 18:59 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-15 15:13 [RESEND v8 0/5] Add resets for ADSP based audio clock controller driver Mohammad Rafi Shaik
2023-02-15 15:13 ` [RESEND v8 1/5] dt-bindings: clock: qcom,sc7280-lpasscc: Add qcom,adsp-pil-mode property Mohammad Rafi Shaik
2023-02-15 15:13 ` [RESEND v8 2/5] dt-bindings: clock: lpassaudiocc-sc7280: Add binding headers for lpasscc Mohammad Rafi Shaik
2023-02-15 15:13 ` [RESEND v8 3/5] clk: qcom: lpasscc-sc7280: Skip qdsp6ss clock registration Mohammad Rafi Shaik
2023-02-15 15:13 ` [RESEND v8 4/5] clk: qcom: lpassaudiocc-sc7280: Merge AHB clocks into lpass_aon Mohammad Rafi Shaik
2023-02-16  5:31   ` Stephen Boyd
2023-02-23 10:19     ` Mohammad Rafi Shaik
2023-02-23 18:59       ` Stephen Boyd
2023-02-15 15:13 ` [RESEND v8 5/5] clk: qcom: lpassaudiocc-sc7280: Skip lpass_aon_cc_pll config Mohammad Rafi Shaik

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).