[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <41d84c24-a363-7f73-1590-c23cc2ecbdc5@quicinc.com>
Date: Wed, 29 Mar 2023 14:54:43 +0530
From: Mohammad Rafi Shaik <quic_mohs@...cinc.com>
To: Stephen Boyd <sboyd@...nel.org>, <agross@...nel.org>,
<andersson@...nel.org>, <broonie@...nel.org>,
<konrad.dybcio@...ainline.org>,
<krzysztof.kozlowski+dt@...aro.org>,
<linux-arm-msm@...r.kernel.org>, <linux-clk@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, <mturquette@...libre.com>,
<quic_plai@...cinc.com>, <quic_rohkumar@...cinc.com>,
<quic_visr@...cinc.com>, <robh+dt@...nel.org>,
<swboyd@...omium.org>
Subject: Re: [PATCH v1 4/4] clk: qcom: lpasscc-sc7280: Remove qdsp6ss clock
registration
On 3/29/2023 8:41 AM, Stephen Boyd wrote:
> Quoting Mohammad Rafi Shaik (2023-03-27 09:32:49)
>> diff --git a/drivers/clk/qcom/lpasscc-sc7280.c b/drivers/clk/qcom/lpasscc-sc7280.c
>> index 48432010ce24..4719e3fa8b05 100644
>> --- a/drivers/clk/qcom/lpasscc-sc7280.c
>> +++ b/drivers/clk/qcom/lpasscc-sc7280.c
>> @@ -121,17 +67,10 @@ static int lpass_cc_sc7280_probe(struct platform_device *pdev)
>> goto destroy_pm_clk;
>> }
>>
>> - 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;
>> -
>> lpass_regmap_config.name = "top_cc";
>> desc = &lpass_cc_top_sc7280_desc;
>>
>> - ret = qcom_cc_probe_by_index(pdev, 1, desc);
>> + ret = qcom_cc_probe_by_index(pdev, 0, desc);
> Instead of changing the binding, it may be better to leave it as is and
> ignore the first reg property in the driver. Then you don't need any DTS
> patch or binding patch. You can just have this one patch. After that you
> can introduce a new compatible string for the proper design and make it
> have only a single reg property and deprecate the old binding. The
> driver can then pick index 0 if the new compatible is present.
Thanks for comment,
The main issue with sc7280.dtsi file.
Required to upstream remoteproc_adsp node for audioreach adsp based
solution.
The base address for remoteproc_adsp dts node is 0x3000000.
Please refer below link audioreach dts patch:
https://patchwork.kernel.org/project/linux-arm-msm/patch/1675700201-12890-4-git-send-email-quic_srivasam@quicinc.com/
remoteproc_adsp: remoteproc@...0000 {
compatible = "qcom,sc7280-adsp-pil";
reg = <0 0x03000000 0 0x5000>, <0 0x0355b000 0 0x10>;
reg-names = "qdsp6ss_base", "lpass_efuse";
and in sc7280.dtsi lpasscc node base address also same.
lpasscc: lpasscc@...0000 {
compatible = "qcom,sc7280-lpasscc";
reg = <0 0x03000000 0 0x40>,
<0 0x03c04000 0 0x4>,
In single dtsi file should not have same physical address node.
Required to sort the nodes based on physical address.
As the qdsp6ss clocks are being enabled in remoteproc driver,
removing the qdsp6ss reg region from lpasscc in sc7280.dtsi.
Powered by blists - more mailing lists