[PATCH v2 1/7] dt-bindings: sound: sophgo: add CV1800B I2S/TDM controller binding
Krzysztof Kozlowski
krzk at kernel.org
Sun Jan 18 08:14:04 PST 2026
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
More information about the linux-riscv
mailing list