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

From: Krzysztof Kozlowski

Date: Sun Jan 18 2026 - 11:14:10 EST


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