Skip to content

Commit 900f626

Browse files
AaronDotchenhuacai
authored andcommitted
LoongArch: dts: Add I2S support to Loongson-2K2000
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 = <&es8323>; }; }; &i2c1 { status = "okay"; #address-cells = <1>; #size-cells = <0>; es8323:es8323@10 { compatible = "everest,es8323"; reg = <0x10>; #sound-dai-cells = <0>; }; }; &i2s { status = "okay"; clock-frequency = <175000000>; #sound-dai-cells = <0>; }; Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
1 parent b7915af commit 900f626

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

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

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,22 @@
173173
status = "disabled";
174174
};
175175

176+
i2c@1fe00120 {
177+
compatible = "loongson,ls2k-i2c";
178+
reg = <0x0 0x1fe00120 0x0 0x8>;
179+
interrupt-parent = <&liointc>;
180+
interrupts = <8 IRQ_TYPE_LEVEL_HIGH>;
181+
status = "disabled";
182+
};
183+
184+
i2c@1fe00130 {
185+
compatible = "loongson,ls2k-i2c";
186+
reg = <0x0 0x1fe00130 0x0 0x8>;
187+
interrupt-parent = <&liointc>;
188+
interrupts = <9 IRQ_TYPE_LEVEL_HIGH>;
189+
status = "disabled";
190+
};
191+
176192
uart0: serial@1fe001e0 {
177193
compatible = "ns16550a";
178194
reg = <0x0 0x1fe001e0 0x0 0x10>;
@@ -243,9 +259,11 @@
243259
status = "disabled";
244260
};
245261

246-
hda@7,0 {
262+
i2s@7,0 {
247263
reg = <0x3800 0x0 0x0 0x0 0x0>;
248-
interrupts = <58 IRQ_TYPE_LEVEL_HIGH>;
264+
interrupts = <78 IRQ_TYPE_LEVEL_HIGH>,
265+
<79 IRQ_TYPE_LEVEL_HIGH>;
266+
interrupt-names = "tx", "rx";
249267
interrupt-parent = <&pic>;
250268
status = "disabled";
251269
};

0 commit comments

Comments
 (0)