Thread (17 messages) 17 messages, 4 authors, 2025-03-07

Re: [PATCH 3/7] ASoC: dt-bindings: add schema for rockchip SAI controllers

From: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>
Date: 2025-03-06 14:39:46
Also in: linux-clk, linux-devicetree, linux-rockchip, linux-sound, lkml

On Thursday, 6 March 2025 14:43:21 Central European Standard Time Krzysztof 
Kozlowski wrote:
On 06/03/2025 14:13, Nicolas Frattaroli wrote:
quoted
On Thursday, 6 March 2025 08:42:54 Central European Standard Time
Krzysztof

Kozlowski wrote:
quoted
On 05/03/2025 22:24, Nicolas Frattaroli wrote:
quoted
Rockchip introduced a new audio controller called the "Serial Audio
Interface", or "SAI" for short, on some of their newer SoCs. In
particular, this controller is used several times on the RK3576 SoC.

Add a schema for it, with only an RK3576 compatible for now. Other SoCs
may follow as mainline support for them lands.

Signed-off-by: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>
---

 .../devicetree/bindings/sound/rockchip,sai.yaml    | 151
 +++++++++++++++++++++
Filename based on compatible.
Sure, but more compatibles will follow. Are you certain you want a file
named rockchip,rk3576-sai.yaml to then contain rockchip,rk3528-sai? If so
then I do
Yes (or the other way around if 3528 is older)
They were released at about the same time from what I know. I'll pick the 
RK3576 though since it was the first to get upstream support.
quoted
not understand the reason behind this policy.
So the name will match hardware, instead of sai.yaml, sai2.yaml,
sai3.yaml and sai-green-frog.yaml.
Downstream called the compatible "sai-v1" so you're onto something here I'm 
afraid. :)
quoted
quoted
quoted
 MAINTAINERS                                        |   6 +
 2 files changed, 157 insertions(+)
...
quoted
+
+  dma-names:
+    minItems: 1
+    maxItems: 2
+    oneOf:
+      - const: tx
+      - const: rx
+      - items:
+          - const: tx
+          - const: rx
Why all combinations are possible?
Because they are. sai5 in rk3576 is rx only. sai7 is tx only. Others are
both
What is sai5 and sai7? Instances on the same chip? Does it mean some of
instances can only receive and some only transmit?
sai5 and sai7 are instances on the same chip, yes, see rk3576.dtsi changes in 
this series. Some instances can only receive, some can only transmit. Some can 
do both. I think the way I wrote the binding already allows for just "tx", 
just "rx", and "tx, rx" but not "rx, tx", which is I think what we want here.
quoted
tx and rx. Do you want me to enforce that those with both are always tx
followed by rx?
Best regards,
Krzysztof
Cheers,
Nicolas Frattaroli



Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help