[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <3620feb6-12bf-48c1-b47a-ccb486e5b5de@linaro.org>
Date: Thu, 9 Oct 2025 16:03:27 +0200
From: Neil Armstrong <neil.armstrong@...aro.org>
To: Srinivas Kandagatla <srini@...nel.org>,
Liam Girdwood <lgirdwood@...il.com>, Mark Brown <broonie@...nel.org>,
Jaroslav Kysela <perex@...ex.cz>, Takashi Iwai <tiwai@...e.com>,
Rob Herring <robh@...nel.org>, Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>, Bjorn Andersson <andersson@...nel.org>,
Konrad Dybcio <konradybcio@...nel.org>
Cc: linux-sound@...r.kernel.org, linux-arm-msm@...r.kernel.org,
linux-kernel@...r.kernel.org, devicetree@...r.kernel.org
Subject: Re: [PATCH RFC v2 2/6] ASoC: dt-bindings: qcom,sm8250: Add clocks
properties for I2S
On 10/9/25 15:36, Srinivas Kandagatla wrote:
>
>
> On 10/8/25 7:56 PM, Neil Armstrong wrote:
>> In order to describe the block and master clock of each I2S bus, add
>> the first 5 I2S busses clock entries.
>>
>> The names (primary, secondary, tertiarty, quaternary, quinary, senary)
>> uses the LPASS clock naming which were used for a long time on Qualcomm
>> LPASS firmware interfaces.
>>
>> Signed-off-by: Neil Armstrong <neil.armstrong@...aro.org>
>> ---
>> .../devicetree/bindings/sound/qcom,sm8250.yaml | 21 +++++++++++++++++++++
>> 1 file changed, 21 insertions(+)
>>
>> diff --git a/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml b/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml
>> index 8ac91625dce5ccba5c5f31748c36296b12fac1a6..d1420d138b7ed8152aa53769c4d495e1674275e6 100644
>> --- a/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml
>> +++ b/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml
>> @@ -64,6 +64,27 @@ properties:
>> $ref: /schemas/types.yaml#/definitions/string
>> description: User visible long sound card name
>>
>> + clocks:
>> + minItems: 2
>> + maxItems: 12
>> +
>> + clock-names:
>> + minItems: 2
>> + items:
>> + # mclk is the I2S Master Clock, mi2s the I2S Bit Clock
>> + - const: primary-mi2s
>> + - const: primary-mclk
>> + - const: secondary-mi2s
>> + - const: secondary-mclk
>> + - const: tertiary-mi2s
>> + - const: tertiary-mclk
>> + - const: quaternary-mi2s
>> + - const: quaternary-mclk
>> + - const: quinary-mi2s
>> + - const: quinary-mclk
>> + - const: senary-mi2s
>> + - const: senary-mclk
>> +
>
> I don't this is correct way to handling bitclk and mclks for I2S, these
> are normally handled as part of snd_soc_dai_set_sysclk() transparently
> without need of any device tree description.
>
> Also doing this way is an issue as this is going to break existing Elite
> based platforms, and the device description should not change across
> these both audio firmwares.
This is only for AudioReach platforms, on those platforms the
clocks are registered in DT and are not accessible by the card.
Device description is obviously different for the AudioReach platforms.
Neil
>
> thanks,
> Srini
>
>> patternProperties:
>> ".*-dai-link$":
>> description:
>>
>
Powered by blists - more mailing lists