mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzk@kernel.org>
To: Mohammad Rafi Shaik <mohammad.rafi.shaik@oss.qualcomm.com>
Cc: Srinivas Kandagatla <srini@kernel.org>,
	Liam Girdwood <lgirdwood@gmail.com>,
	Mark Brown <broonie@kernel.org>, Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>,
	linux-sound@vger.kernel.org, linux-arm-msm@vger.kernel.org,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
Subject: Re: [PATCH v6 1/3] ASoC: dt-bindings: qcom,q6apm-lpass-dais: Document DAI subnode
Date: Tue, 21 Jul 2026 10:20:59 +0200	[thread overview]
Message-ID: <2d4513e2-7e14-49bc-8b70-6c07c9f99d6b@kernel.org> (raw)
In-Reply-To: <67179d90-6201-462c-9004-9b4cfd114250@oss.qualcomm.com>

On 21/07/2026 10:14, Mohammad Rafi Shaik wrote:
> 
> 
> On 7/21/2026 12:18 PM, Krzysztof Kozlowski wrote:
>> On Mon, Jul 20, 2026 at 09:32:24PM +0530, Mohammad Rafi Shaik wrote:
>>> +# Digital Audio Interfaces
>>> +patternProperties:
>>> +  '^dai@[0-9a-f]+$':
>>> +    type: object
>>> +    description:
>>> +      Q6DSP Digital Audio Interfaces.
>>> +
>>> +    properties:
>>> +      reg:
>>> +        maxItems: 1
>>> +        description:
>>> +          Digital Audio Interface ID
>>> +
>>> +      clocks:
>>> +        minItems: 1
>>> +        items:
>>> +          - description: MI2S bit clock
>>> +          - description: MI2S external bit clock
>>> +          - description: MI2S master clock
>>> +
>>> +      clock-names:
>>> +        minItems: 1
>>> +        items:
>>> +          - enum: [bclk, eclk, mclk]
>>> +          - const: mclk
>>
>> This does not match your clocks.
>>
> 
> will fix this.
> 
> clocks descriptions are misleading because they imply an
> ordered bclk + eclk configuration. I'll drop those descriptions.
> 
> will keep only
> 
> clocks:
>     minItems: 1
>     maxItems: 2
> 
>> I gave you exact syntax to use, then in previous version you used
>> something else. So I reminded. Again you used something else.
>>
>> If you decide not to use it, sure, your right but YOU CANNOT come with
>> clearly invalid code as a substitute.
>>
>> NAK
> 
> Suggested change: 
> https://lore.kernel.org/all/2b4448d0-81f8-410f-b849-0d957a2d2a17@kernel.org/#t
> minItems: 1
> items:
>   - enum: [ bclk, eclk ]
>   - const: eclk
>   - const: mclk
> 
> I tested the suggested schema, but it results in DT binding check failures.
> 
> DT binding check errors with the suggested change
> 1. Only mclk enabled
> bedais: dai@10:clock-names:0: 'mclk' is not one of ['bclk', 'eclk']
> 
> 2. bclk and mclk enabled
> bedais:dai@10:clock-names:1: 'eclk' was expected
> 
> 
> With the current version of this patch, I do not see any DT binding 
> check issues. I tested all supported clock combinations, and 
> dt_binding_check passes successfully in each case.

Your clocks told story that you have up to three clocks, so indeed if
you do not have three clocks then my syntax is not accurate.

Before we go further, where is upstream DTS using this?

Best regards,
Krzysztof

  reply	other threads:[~2026-07-21  8:21 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-20 16:02 [PATCH v6 0/3] ASoC: qcom: qdsp6: Add MI2S clock control Mohammad Rafi Shaik
2026-07-20 16:02 ` [PATCH v6 1/3] ASoC: dt-bindings: qcom,q6apm-lpass-dais: Document DAI subnode Mohammad Rafi Shaik
2026-07-21  6:48   ` Krzysztof Kozlowski
2026-07-21  8:14     ` Mohammad Rafi Shaik
2026-07-21  8:20       ` Krzysztof Kozlowski [this message]
2026-07-21  8:42         ` Mohammad Rafi Shaik
2026-07-21  8:46           ` Krzysztof Kozlowski
2026-07-21  9:28             ` Mohammad Rafi Shaik
2026-07-20 16:02 ` [PATCH v6 2/3] ASoC: qcom: q6apm-lpass-dais: Add MI2S clock control Mohammad Rafi Shaik
2026-07-20 16:02 ` [PATCH v6 3/3] ASoC: qcom: sc8280xp: enhance machine driver for board-specific config Mohammad Rafi Shaik

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=2d4513e2-7e14-49bc-8b70-6c07c9f99d6b@kernel.org \
    --to=krzk@kernel.org \
    --cc=broonie@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-sound@vger.kernel.org \
    --cc=mohammad.rafi.shaik@oss.qualcomm.com \
    --cc=perex@perex.cz \
    --cc=robh@kernel.org \
    --cc=srini@kernel.org \
    --cc=srinivas.kandagatla@oss.qualcomm.com \
    --cc=tiwai@suse.com \
    /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®