From: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
To: Johan Hovold <johan@kernel.org>
Cc: andersson@kernel.org, robh+dt@kernel.org,
krzysztof.kozlowski+dt@linaro.org, johan+linaro@kernel.org,
agross@kernel.org, konrad.dybcio@linaro.org,
mturquette@baylibre.com, sboyd@kernel.org, conor+dt@kernel.org,
linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 4/5] clk: qcom: Add lpass audio clock controller driver for SC8280XP
Date: Thu, 25 May 2023 11:31:46 +0100 [thread overview]
Message-ID: <497f6543-4d6d-256d-2fa0-be47a594a55c@linaro.org> (raw)
In-Reply-To: <ZGso3u6e0L5jXBLf@hovoldconsulting.com>
On 22/05/2023 09:33, Johan Hovold wrote:
> On Thu, May 18, 2023 at 12:37:59PM +0100, Srinivas Kandagatla wrote:
>> Add support for the lpass audio clock controller found on SC8280XP based
>> devices. This would allow lpass peripheral loader drivers to control the
>> clocks and bring the subsystems out of reset.
>>
>> Currently this patch only supports resets as the Q6DSP is in control of
>> LPASS IP which manages most of the clocks via Q6PRM service on GPR rpmsg
>> channel.
>>
>> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
>> ---
>> drivers/clk/qcom/lpasscc-sc8280xp.c | 23 +++++++++++++++++++++++
>> 1 file changed, 23 insertions(+)
>>
>> diff --git a/drivers/clk/qcom/lpasscc-sc8280xp.c b/drivers/clk/qcom/lpasscc-sc8280xp.c
>> index 118320f8ee40..e221ae2d40ae 100644
>> --- a/drivers/clk/qcom/lpasscc-sc8280xp.c
>> +++ b/drivers/clk/qcom/lpasscc-sc8280xp.c
>> @@ -13,6 +13,26 @@
>> #include "common.h"
>> #include "reset.h"
>>
>> +static const struct qcom_reset_map lpass_audio_csr_sc8280xp_resets[] = {
>> + [LPASS_AUDIO_SWR_RX_CGCR] = { 0xa0, 1 },
>> + [LPASS_AUDIO_SWR_WSA_CGCR] = { 0xb0, 1 },
>> + [LPASS_AUDIO_SWR_WSA2_CGCR] = { 0xd8, 1 },
>> +};
>> +
>> +static struct regmap_config lpass_audio_csr_sc8280xp_regmap_config = {
>> + .reg_bits = 32,
>> + .reg_stride = 4,
>> + .val_bits = 32,
>> + .name = "lpass-audio-csr",
>
> Should you update this name to match the new compatible
> ("lpassaudiocc")?
This name reflects the name from data sheet, keeping it that way would
be useful.
--srini
>
>> + .max_register = 0x1000,
>> +};
>> +
>> +static const struct qcom_cc_desc lpass_audio_csr_reset_sc8280xp_desc = {
>
> Same here (and for the reset struct as well as previous patch).
>
>> + .config = &lpass_audio_csr_sc8280xp_regmap_config,
>> + .resets = lpass_audio_csr_sc8280xp_resets,
>> + .num_resets = ARRAY_SIZE(lpass_audio_csr_sc8280xp_resets),
>> +};
>> +
>> static const struct qcom_reset_map lpass_tcsr_sc8280xp_resets[] = {
>> [LPASS_AUDIO_SWR_TX_CGCR] = { 0xc010, 1 },
>> };
>> @@ -33,6 +53,9 @@ static const struct qcom_cc_desc lpass_tcsr_reset_sc8280xp_desc = {
>>
>> static const struct of_device_id lpasscc_sc8280xp_match_table[] = {
>> {
>> + .compatible = "qcom,sc8280xp-lpassaudiocc",
>> + .data = &lpass_audio_csr_reset_sc8280xp_desc,
>> + }, {
>> .compatible = "qcom,sc8280xp-lpasscc",
>> .data = &lpass_tcsr_reset_sc8280xp_desc,
>> },
>
> Johan
next prev parent reply other threads:[~2023-05-25 10:31 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-18 11:37 [PATCH 0/5] clk: qcom: sc8280xp: add lpasscc reset control Srinivas Kandagatla
2023-05-18 11:37 ` [PATCH 1/5] dt-bindings: clock: Add YAML schemas for LPASSCC and reset on SC8280XP Srinivas Kandagatla
2023-05-22 8:21 ` Johan Hovold
2023-05-25 9:21 ` Srinivas Kandagatla
2023-05-18 11:37 ` [PATCH 2/5] dt-bindings: clock: Add YAML schemas for LPASS AUDIOCC " Srinivas Kandagatla
2023-05-22 8:24 ` Johan Hovold
2023-05-18 11:37 ` [PATCH 3/5] clk: qcom: Add lpass clock controller driver for SC8280XP Srinivas Kandagatla
2023-05-22 8:31 ` Johan Hovold
2023-05-22 8:45 ` Johan Hovold
2023-05-18 11:37 ` [PATCH 4/5] clk: qcom: Add lpass audio " Srinivas Kandagatla
2023-05-22 8:33 ` Johan Hovold
2023-05-25 10:31 ` Srinivas Kandagatla [this message]
2023-05-18 11:38 ` [PATCH 5/5] arm64: dts: qcom: sc8280xp: add resets for soundwire controllers Srinivas Kandagatla
2023-05-22 8:42 ` Johan Hovold
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=497f6543-4d6d-256d-2fa0-be47a594a55c@linaro.org \
--to=srinivas.kandagatla@linaro.org \
--cc=agross@kernel.org \
--cc=andersson@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=johan+linaro@kernel.org \
--cc=johan@kernel.org \
--cc=konrad.dybcio@linaro.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mturquette@baylibre.com \
--cc=robh+dt@kernel.org \
--cc=sboyd@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®