mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-04-13 09:59:31 +00:00
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>
This commit is contained in:
parent
704f06eeff
commit
b7915af6e7
1 changed files with 15 additions and 2 deletions
|
@ -266,7 +266,7 @@
|
|||
status = "disabled";
|
||||
};
|
||||
|
||||
dma-controller@1fe00c20 {
|
||||
apbdma2: dma-controller@1fe00c20 {
|
||||
compatible = "loongson,ls2k1000-apbdma";
|
||||
reg = <0x0 0x1fe00c20 0x0 0x8>;
|
||||
interrupt-parent = <&liointc1>;
|
||||
|
@ -276,7 +276,7 @@
|
|||
status = "disabled";
|
||||
};
|
||||
|
||||
dma-controller@1fe00c30 {
|
||||
apbdma3: dma-controller@1fe00c30 {
|
||||
compatible = "loongson,ls2k1000-apbdma";
|
||||
reg = <0x0 0x1fe00c30 0x0 0x8>;
|
||||
interrupt-parent = <&liointc1>;
|
||||
|
@ -352,6 +352,19 @@
|
|||
status = "disabled";
|
||||
};
|
||||
|
||||
i2s: i2s@1fe2d000 {
|
||||
compatible = "loongson,ls2k1000-i2s";
|
||||
reg = <0 0x1fe2d000 0 0x14>,
|
||||
<0 0x1fe00438 0 0x8>;
|
||||
interrupt-parent = <&liointc0>;
|
||||
interrupts = <5 IRQ_TYPE_LEVEL_HIGH>;
|
||||
clocks = <&clk LOONGSON2_APB_CLK>;
|
||||
dmas = <&apbdma2 0>, <&apbdma3 0>;
|
||||
dma-names = "tx", "rx";
|
||||
#sound-dai-cells = <0>;
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
spi0: spi@1fff0220 {
|
||||
compatible = "loongson,ls2k1000-spi";
|
||||
reg = <0x0 0x1fff0220 0x0 0x10>;
|
||||
|
|
Loading…
Add table
Reference in a new issue