Skip to content

Commit b7915af

Browse files
AaronDotchenhuacai
authored andcommitted
LoongArch: dts: Add I2S support to Loongson-2K1000
The module is supported, adding it. Not all Loongson-2K1000 boards have an i2s interface, here is an example of enabling it: sound { compatible = "loongson,ls-audio-card"; model = "Loongson-ASoC"; mclk-fs = <512>; cpu { sound-dai = <&i2s>; }; codec { sound-dai = <&uda1342>; }; }; &apbdma2 { status = "okay"; }; &apbdma3 { status = "okay"; }; &i2c3 { status = "okay"; pinctrl-0 = <&i2c1_pins_default>; pinctrl-names = "default"; #address-cells = <1>; #size-cells = <0>; uda1342: codec@1a { compatible = "nxp,uda1342"; reg = <0x1a>; #sound-dai-cells = <0>; }; }; &i2s { status = "okay"; pinctrl-0 = <&hda_pins_default>; pinctrl-names = "default"; }; Signed-off-by: Binbin Zhou <[email protected]> Signed-off-by: Huacai Chen <[email protected]>
1 parent 704f06e commit b7915af

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

arch/loongarch/boot/dts/loongson-2k1000.dtsi

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@
266266
status = "disabled";
267267
};
268268

269-
dma-controller@1fe00c20 {
269+
apbdma2: dma-controller@1fe00c20 {
270270
compatible = "loongson,ls2k1000-apbdma";
271271
reg = <0x0 0x1fe00c20 0x0 0x8>;
272272
interrupt-parent = <&liointc1>;
@@ -276,7 +276,7 @@
276276
status = "disabled";
277277
};
278278

279-
dma-controller@1fe00c30 {
279+
apbdma3: dma-controller@1fe00c30 {
280280
compatible = "loongson,ls2k1000-apbdma";
281281
reg = <0x0 0x1fe00c30 0x0 0x8>;
282282
interrupt-parent = <&liointc1>;
@@ -352,6 +352,19 @@
352352
status = "disabled";
353353
};
354354

355+
i2s: i2s@1fe2d000 {
356+
compatible = "loongson,ls2k1000-i2s";
357+
reg = <0 0x1fe2d000 0 0x14>,
358+
<0 0x1fe00438 0 0x8>;
359+
interrupt-parent = <&liointc0>;
360+
interrupts = <5 IRQ_TYPE_LEVEL_HIGH>;
361+
clocks = <&clk LOONGSON2_APB_CLK>;
362+
dmas = <&apbdma2 0>, <&apbdma3 0>;
363+
dma-names = "tx", "rx";
364+
#sound-dai-cells = <0>;
365+
status = "disabled";
366+
};
367+
355368
spi0: spi@1fff0220 {
356369
compatible = "loongson,ls2k1000-spi";
357370
reg = <0x0 0x1fff0220 0x0 0x10>;

0 commit comments

Comments
 (0)