LoongArch: dts: Add I2S support to Loongson-2K1000
authorBinbin Zhou <zhoubinbin@loongson.cn>
Fri, 22 Nov 2024 07:47:58 +0000 (15:47 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Tue, 26 Nov 2024 10:06:04 +0000 (18:06 +0800)
commitb7915af6e73b2ec896f3c811a1dba4348269d272
treebd7cfa47131b17d4ddade07af98e2ddf065abe6c
parent704f06eeff65f898364981e6803e587cd941a3ed
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 <zhoubinbin@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/boot/dts/loongson-2k1000.dtsi