Re: [PATCH v2 1/7] dt-bindings: sound: sophgo: add CV1800B I2S/TDM controller binding

Krzysztof Kozlowski <[email protected]>
Newsgroups dev.linux.lists.sophgo,org.infradead.lists.linux-riscv,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-kernel,org.kernel.vger.linux-sound
Message-ID <[email protected]>
On 18/01/2026 13:18, Anton D. Stavinskii wrote:
>>
>> Again, messed constraints.
>>
>>> +    items:
>>> +      enum: [rx, tx]
>>
>> No, it has to be a specific/fixed list.
> 
> Here is the question. Can you please help to understand how to describe
> this properly. The idea is that TDM module is usable even without
> specified dmas. Each TDM can work as clock source, only rx only tx or
> both. I can force to use both channels but the user probably will want 
> to not consume all the channels for if it is not needed. DMA can provide
> channels for something else like SPI/I2C/UART etc. I'm asking because
> I'm afraid I will do some mess again here.

If any combination is valid in hardware, then:

minItems: 1
items:
  - enum: [rx, tx]
  - const: tx

Best regards,
Krzysztof
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.