]> www.infradead.org Git - users/jedix/linux-maple.git/commit
LoongArch: dts: Add I2S support to Loongson-2K2000
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:08 +0000 (18:06 +0800)
commit900f6267e9e39f9f601f5eaf0ea32d620b9130d2
tree3f1547b15540b7a08358dde978f64b7b958d2d1c
parentb7915af6e73b2ec896f3c811a1dba4348269d272
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>
arch/loongarch/boot/dts/loongson-2k2000.dtsi