Thread (16 messages) 16 messages, 5 authors, 2026-03-17

Re: [PATCH 5/6] ASoC: dt-bindings: loongson,ls2k1000-i2s: Document Loongson-2K0300 compatible

From: Huacai Chen <chenhuacai@kernel.org>
Date: 2026-03-11 07:57:42
Also in: linux-sound, loongarch

Hi, Binbin,

On Wed, Mar 11, 2026 at 2:38 PM Binbin Zhou [off-list ref] wrote:
Add "loongson,ls2k0300-i2s" dedicated compatible to represent the I2S
interface of the Loongson-2K0300 chip.

The hardware integration of the Loongson-2K0300 I2S interface differs
significantly from that of the Loongson-2K1000. Specifically, while both
utilize external DMA controllers, the Loongson-2K0300 configures DMA
channel routing via the `dmas` property, whereas the Loongson-2K1000
requires additional register.
Can this patch be the second one?

Huacai
quoted hunk ↗ jump to hunk
Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn>
---
 .../bindings/sound/loongson,ls2k1000-i2s.yaml | 22 ++++++++++++++++++-
 1 file changed, 21 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/sound/loongson,ls2k1000-i2s.yaml b/Documentation/devicetree/bindings/sound/loongson,ls2k1000-i2s.yaml
index da79510bb2d9..51e23c189f7a 100644
--- a/Documentation/devicetree/bindings/sound/loongson,ls2k1000-i2s.yaml
+++ b/Documentation/devicetree/bindings/sound/loongson,ls2k1000-i2s.yaml
@@ -14,9 +14,12 @@ allOf:

 properties:
   compatible:
-    const: loongson,ls2k1000-i2s
+    enum:
+      - loongson,ls2k0300-i2s
+      - loongson,ls2k1000-i2s

   reg:
+    minItems: 1
     items:
       - description: Loongson I2S controller Registers.
       - description: APB DMA config register for Loongson I2S controller.
@@ -49,6 +52,23 @@ required:

 unevaluatedProperties: false

+if:
+  properties:
+    compatible:
+      contains:
+        enum:
+          - loongson,ls2k1000-i2s
+
+then:
+  properties:
+    reg:
+      minItems: 2
+
+else:
+  properties:
+    reg:
+      maxItems: 1
+
 examples:
   - |
     #include <dt-bindings/clock/loongson,ls2k-clk.h>
--
2.52.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help