Re: [PATCH v2 6/7] arm64: dts: qcom: qcm6490-idp: Add WSA8830 speakers and WCD9370 headset codec
From: Konrad Dybcio
Date: Thu May 08 2025 - 13:46:29 EST
On 5/8/25 7:01 PM, Prasad Kumpatla wrote:
>
>
> On 4/29/2025 4:31 PM, Konrad Dybcio wrote:
>> On 4/29/25 11:24 AM, Prasad Kumpatla wrote:
>>> From: Mohammad Rafi Shaik <quic_mohs@xxxxxxxxxxx>
>>>
>>> Add nodes for WSA8830 speakers and WCD9370 headset codec
>>> on qcm6490-idp board.
>>>
>>> Enable lpass macros along with audio support pin controls.
>>>
>>> Signed-off-by: Mohammad Rafi Shaik <quic_mohs@xxxxxxxxxxx>
>>> Co-developed-by: Prasad Kumpatla <quic_pkumpatl@xxxxxxxxxxx>
>>> Signed-off-by: Prasad Kumpatla <quic_pkumpatl@xxxxxxxxxxx>
>>> ---
>>> arch/arm64/boot/dts/qcom/qcm6490-idp.dts | 162 +++++++++++++++++++++++
>>> 1 file changed, 162 insertions(+)
>>>
>>> diff --git a/arch/arm64/boot/dts/qcom/qcm6490-idp.dts b/arch/arm64/boot/dts/qcom/qcm6490-idp.dts
>>> index 7a155ef6492e..1a59080cbfaf 100644
>>> --- a/arch/arm64/boot/dts/qcom/qcm6490-idp.dts
>>> +++ b/arch/arm64/boot/dts/qcom/qcm6490-idp.dts
>>> @@ -18,6 +18,7 @@
>>> #include "pm7325.dtsi"
>>> #include "pm8350c.dtsi"
>>> #include "pmk8350.dtsi"
>>> +#include "qcs6490-audioreach.dtsi"
>>> /delete-node/ &ipa_fw_mem;
>>> /delete-node/ &rmtfs_mem;
>>> @@ -169,6 +170,30 @@
>>> regulator-min-microvolt = <3700000>;
>>> regulator-max-microvolt = <3700000>;
>>> };
>>> +
>>> + wcd9370: audio-codec-0 {
>>> + compatible = "qcom,wcd9370-codec";
>>> +
>>> + pinctrl-0 = <&wcd_reset_n>;
>>> + pinctrl-1 = <&wcd_reset_n_sleep>;
>>> + pinctrl-names = "default", "sleep";
>>
>> Does audio work for you? For inexplicable reasons, it didn't for me
>> on rb2 when the sleep state was defined
>>
> For Qcm6490-IDP board Audio is working fine, Not sure about rb2, Could you please provide more details about rb2 ?
I just mentioned it as something to keep in mind. Someone else has taken
over that work since.
[...]
>>> + wcd_reset_n: wcd-reset-n-state {
>>> + pins = "gpio83";
>>> + function = "gpio";
>>> + drive-strength = <8>;
>>
>> Since the definition is otherwise identical to the sleep state,
>> you should define the (other) bias type that should be set when
>> active.
>>
> Taken the reference from sc7280, which is working fine.
> Link for reference : https://elixir.bootlin.com/linux/v6.15-rc5/source/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi#L841
>
> Will cross check and modify if required.
sure it will work fine, but in the same spirit typing 147 as
1+1+1+... will work fine as well, please doublecheck :D
Konrad