From: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
To: Krzysztof Kozlowski <krzk@kernel.org>,
Bjorn Andersson <andersson@kernel.org>,
Linus Walleij <linus.walleij@linaro.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Srinivas Kandagatla <srini@kernel.org>,
Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>,
Konrad Dybcio <konradybcio@kernel.org>
Cc: <cros-qcom-dts-watchers@chromium.org>,
<linux-arm-msm@vger.kernel.org>, <linux-gpio@vger.kernel.org>,
<devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<linux-sound@vger.kernel.org>, <kernel@oss.qualcomm.com>,
Mohammad Rafi Shaik <quic_mohs@quicinc.com>
Subject: Re: [PATCH v4 2/8] ASoC: dt-bindings: qcom: Manage clock settings for ADSP solution
Date: Sun, 1 Jun 2025 18:15:07 +0530 [thread overview]
Message-ID: <13b9cbec-3d7a-4deb-b356-685e73fdf2f1@quicinc.com> (raw)
In-Reply-To: <171b980d-9c50-4891-86dc-e30d712f5384@kernel.org>
On 5/27/2025 5:28 PM, Krzysztof Kozlowski wrote:
> On 27/05/2025 13:12, Prasad Kumpatla wrote:
>> From: Mohammad Rafi Shaik <quic_mohs@quicinc.com>
>>
>> Manage clock settings for ADSP solution and document the clock properties
>> on sc7280 lpass pincontrol node which is required for ADSP based
>> solution.
>>
>> Signed-off-by: Mohammad Rafi Shaik <quic_mohs@quicinc.com>
>> Co-developed-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
>> Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
>> ---
>
> Nothing in cover letter explained what was happening with this patch.
> Provide changelog under --- in such case.
Ack, Will provide more info on commit text.
>
>> .../qcom,sc7280-lpass-lpi-pinctrl.yaml | 10 ++++++++
>> .../bindings/sound/qcom,lpass-va-macro.yaml | 12 +++++++---
>> .../bindings/sound/qcom,lpass-wsa-macro.yaml | 24 ++++++++++++++++---
>
> Split patches per subsystem. Pinctrl is not ASoC.
Ack
>
>> 3 files changed, 40 insertions(+), 6 deletions(-)
>>
>> diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,sc7280-lpass-lpi-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,sc7280-lpass-lpi-pinctrl.yaml
>> index 08801cc4e476..b1270124bfe3 100644
>> --- a/Documentation/devicetree/bindings/pinctrl/qcom,sc7280-lpass-lpi-pinctrl.yaml
>> +++ b/Documentation/devicetree/bindings/pinctrl/qcom,sc7280-lpass-lpi-pinctrl.yaml
>> @@ -20,6 +20,16 @@ properties:
>> reg:
>> maxItems: 2
>>
>> + clocks:
>> + items:
>> + - description: LPASS Core voting clock
>> + - description: LPASS Audio voting clock
>> +
>> + clock-names:
>> + items:
>> + - const: core
>> + - const: audio
>> +
>> patternProperties:
>> "-state$":
>> oneOf:
>> diff --git a/Documentation/devicetree/bindings/sound/qcom,lpass-va-macro.yaml b/Documentation/devicetree/bindings/sound/qcom,lpass-va-macro.yaml
>> index f41deaa6f4df..92b97c214060 100644
>> --- a/Documentation/devicetree/bindings/sound/qcom,lpass-va-macro.yaml
>> +++ b/Documentation/devicetree/bindings/sound/qcom,lpass-va-macro.yaml
>> @@ -78,10 +78,16 @@ allOf:
>> then:
>> properties:
>> clocks:
>> - maxItems: 1
>> + minItems: 1
>> + maxItems: 3
>> clock-names:
>> - items:
>> - - const: mclk
>> + oneOf:
>> + - items: # for ADSP based platforms
>> + - const: mclk
>> + - const: macro
>> + - const: dcodec
>> + - items: # for ADSP bypass based platforms
>> + - const: mclk
>
> This device always receives same amount of clocks. Hardware is not
> different if you decide to not use ADSP.
for sc7280 clock handling only supports non-DSP based solution, macro
and dcodec votes are placed using CPU-Powerdomains. Which are not under
clocking properties. In ADSP based platforms macro and dcodec votes
should be placed from ADSP.>
>>
>> - if:
>> properties:
>> diff --git a/Documentation/devicetree/bindings/sound/qcom,lpass-wsa-macro.yaml b/Documentation/devicetree/bindings/sound/qcom,lpass-wsa-macro.yaml
>> index 9082e363c709..6a999ed484e7 100644
>> --- a/Documentation/devicetree/bindings/sound/qcom,lpass-wsa-macro.yaml
>> +++ b/Documentation/devicetree/bindings/sound/qcom,lpass-wsa-macro.yaml
>> @@ -35,11 +35,11 @@ properties:
>> const: 0
>>
>> clocks:
>> - minItems: 4
>> + minItems: 3
>> maxItems: 6
>>
>> clock-names:
>> - minItems: 4
>> + minItems: 3
>> maxItems: 6
>>
>> clock-output-names:
>> @@ -59,12 +59,30 @@ required:
>>
>> allOf:
>> - $ref: dai-common.yaml#
>> -
>> - if:
>> properties:
>> compatible:
>> enum:
>> - qcom,sc7280-lpass-wsa-macro
>> + then:
>> + properties:
>> + clock-names:
>> + oneOf:
>> + - items: # for ADSP based platforms
>> + - const: mclk
>> + - const: npl
>> + - const: macro
>> + - const: dcodec
>> + - const: fsgen
>> + - items: # for ADSP bypass based platforms
>> + - const: mclk
>> + - const: npl
>> + - const: fsgen
>
> This silently breaks ABI. Third clock is macro.
Ack, will check and update.
Thanks,
Prasad>
>
> Best regards,
> Krzysztof
next prev parent reply other threads:[~2025-06-01 12:46 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-27 11:12 [PATCH v4 0/8] Enable audio on qcs6490-RB3Gen2 and qcm6490-idp boards Prasad Kumpatla
2025-05-27 11:12 ` [PATCH v4 1/8] arm64: dts: qcom: qcs6490-audioreach: Add gpr node Prasad Kumpatla
2025-06-17 20:45 ` Bjorn Andersson
2025-06-25 6:50 ` Prasad Kumpatla
2025-07-05 12:16 ` Dmitry Baryshkov
2025-05-27 11:12 ` [PATCH v4 2/8] ASoC: dt-bindings: qcom: Manage clock settings for ADSP solution Prasad Kumpatla
2025-05-27 11:58 ` Krzysztof Kozlowski
2025-06-01 12:45 ` Prasad Kumpatla [this message]
2025-06-01 14:50 ` Krzysztof Kozlowski
2025-06-10 13:10 ` Konrad Dybcio
2025-05-27 11:12 ` [PATCH v4 3/8] arm64: dts: qcom: sc7280: Add WSA SoundWire and LPASS support Prasad Kumpatla
2025-05-31 18:32 ` Konrad Dybcio
2025-05-27 11:12 ` [PATCH v4 4/8] arm64: dts: qcom: qcs6490-audioreach: Modify LPASS macros clock settings for audioreach Prasad Kumpatla
2025-05-31 18:27 ` Konrad Dybcio
2025-05-27 11:12 ` [PATCH v4 5/8] arm64: dts: qcom: qcs6490-rb3gen2: Add WSA8830 speakers amplifier Prasad Kumpatla
2025-05-27 11:59 ` Krzysztof Kozlowski
2025-06-01 12:52 ` Prasad Kumpatla
2025-06-01 14:54 ` Krzysztof Kozlowski
2025-06-04 8:20 ` Dmitry Baryshkov
2025-05-27 11:12 ` [PATCH v4 6/8] arm64: dts: qcom: qcs6490-rb3gen2: Add sound card Prasad Kumpatla
2025-05-27 12:00 ` Krzysztof Kozlowski
2025-06-01 12:56 ` Prasad Kumpatla
2025-05-27 11:12 ` [PATCH v4 7/8] arm64: dts: qcom: qcm6490-idp: Add WSA8830 speakers and WCD9370 headset codec Prasad Kumpatla
2025-05-28 12:20 ` Alexey Klimov
2025-06-01 12:58 ` Prasad Kumpatla
2025-05-31 12:35 ` Konrad Dybcio
2025-06-01 12:58 ` Prasad Kumpatla
2025-05-27 11:12 ` [PATCH v4 8/8] arm64: dts: qcom: qcm6490-idp: Add sound card Prasad Kumpatla
2025-05-27 14:17 ` [PATCH v4 0/8] Enable audio on qcs6490-RB3Gen2 and qcm6490-idp boards Alexey Klimov
2025-06-01 13:01 ` Prasad Kumpatla
2025-06-02 5:16 ` Dmitry Baryshkov
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=13b9cbec-3d7a-4deb-b356-685e73fdf2f1@quicinc.com \
--to=quic_pkumpatl@quicinc.com \
--cc=andersson@kernel.org \
--cc=broonie@kernel.org \
--cc=conor+dt@kernel.org \
--cc=cros-qcom-dts-watchers@chromium.org \
--cc=devicetree@vger.kernel.org \
--cc=kernel@oss.qualcomm.com \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=krzk@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linus.walleij@linaro.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=quic_mohs@quicinc.com \
--cc=robh@kernel.org \
--cc=srini@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