|
@@ -238,6 +238,7 @@
|
|
|
clock-names = "core-clk", "cfgr-clk";
|
|
|
interrupt-parent = <&plic>;
|
|
|
interrupts = <2>;
|
|
|
+ #dma-cells = <1>;
|
|
|
dma-channels = <4>;
|
|
|
snps,dma-masters = <1>;
|
|
|
snps,data-width = <4>;
|
|
@@ -254,6 +255,7 @@
|
|
|
clock-names = "core-clk", "cfgr-clk";
|
|
|
interrupt-parent = <&plic>;
|
|
|
interrupts = <1>;
|
|
|
+ #dma-cells = <1>;
|
|
|
dma-channels = <16>;
|
|
|
snps,dma-masters = <1>;
|
|
|
snps,data-width = <3>;
|
|
@@ -674,8 +676,8 @@
|
|
|
compatible = "snps,designware-i2sadc0";
|
|
|
reg = <0x0 0x10400000 0x0 0x1000>;
|
|
|
interrupt-parent = <&plic>;
|
|
|
- interrupts = <59>;
|
|
|
- interrupt-names = "rx";
|
|
|
+ /*interrupts = <59>;*/
|
|
|
+ /*interrupt-names = "rx";*/
|
|
|
clocks = <&apb1clk>;
|
|
|
clock-names = "i2sclk";
|
|
|
#sound-dai-cells = <0>;
|
|
@@ -693,13 +695,13 @@
|
|
|
clock-names = "i2sclk";
|
|
|
#sound-dai-cells = <0>;
|
|
|
};
|
|
|
-
|
|
|
+
|
|
|
i2sdac0: i2sdac0@10450000 {
|
|
|
compatible = "snps,designware-i2sdac0";
|
|
|
reg = <0x0 0x10450000 0x0 0x1000>;
|
|
|
interrupt-parent = <&plic>;
|
|
|
- interrupts = <64>;
|
|
|
- interrupt-names = "tx";
|
|
|
+ /*interrupts = <64>; */
|
|
|
+ /*interrupt-names = "tx";*/
|
|
|
clocks = <&apb1clk>;
|
|
|
clock-names = "i2sclk";
|
|
|
#sound-dai-cells = <0>;
|
|
@@ -711,28 +713,28 @@
|
|
|
compatible = "snps,designware-i2sdac1";
|
|
|
reg = <0x0 0x10460000 0x0 0x1000>;
|
|
|
interrupt-parent = <&plic>;
|
|
|
- interrupts = <66>;
|
|
|
- interrupt-names = "tx";
|
|
|
+ /*interrupts = <66>;*/
|
|
|
+ /*interrupt-names = "tx";*/
|
|
|
clocks = <&apb1clk>;
|
|
|
clock-names = "i2sclk";
|
|
|
#sound-dai-cells = <0>;
|
|
|
dmas = <&dma2p 31>;
|
|
|
dma-names = "tx";
|
|
|
};
|
|
|
-
|
|
|
+
|
|
|
i2sdac16k: i2sdac16k@10470000 {
|
|
|
compatible = "snps,designware-i2sdac16k";
|
|
|
reg = <0x0 0x10470000 0x0 0x1000>;
|
|
|
interrupt-parent = <&plic>;
|
|
|
- interrupts = <68>;
|
|
|
- interrupt-names = "tx";
|
|
|
+ /* interrupts = <68>; */
|
|
|
+ /* interrupt-names = "tx"; */
|
|
|
clocks = <&apb1clk>;
|
|
|
clock-names = "i2sclk";
|
|
|
#sound-dai-cells = <0>;
|
|
|
dmas = <&dma2p 29>;
|
|
|
dma-names = "tx";
|
|
|
};
|
|
|
-
|
|
|
+
|
|
|
spdif0: spdif0@10430000 {
|
|
|
compatible = "starfive,sf-spdif";
|
|
|
reg = <0x0 0x10430000 0x0 0x1000>;
|
|
@@ -743,7 +745,7 @@
|
|
|
clock-names = "audioclk";
|
|
|
#sound-dai-cells = <0>;
|
|
|
};
|
|
|
-
|
|
|
+
|
|
|
pdm: pdm@10410000 {
|
|
|
compatible = "starfive,sf-pdm";
|
|
|
reg = <0x0 0x10410000 0x0 0x1000>, <0x0 0x10480000 0x0 0x1000>;
|
|
@@ -784,7 +786,7 @@
|
|
|
#sound-dai-cells = <0>;
|
|
|
};
|
|
|
|
|
|
- codec: pwmdac-transmitter {
|
|
|
+ pwmdac_codec: pwmdac-transmitter {
|
|
|
compatible = "linux,pwmdac-dit";
|
|
|
#sound-dai-cells = <0>;
|
|
|
};
|
|
@@ -795,13 +797,31 @@
|
|
|
};
|
|
|
|
|
|
sound:snd-card{
|
|
|
- compatible = "sf-audio-card";
|
|
|
+ compatible = "simple-audio-card";
|
|
|
+ simple-audio-card,name = "Starfive-Multi-Sound-Card";
|
|
|
+
|
|
|
+ /* pwmdac */
|
|
|
+ simple-audio-card,dai-link@0 {
|
|
|
+ reg = <0>;
|
|
|
+ status = "okay";
|
|
|
+ format = "left_j";
|
|
|
+ bitclock-master = <&sndcpu0>;
|
|
|
+ frame-master = <&sndcpu0>;
|
|
|
+
|
|
|
+ sndcpu0: cpu {
|
|
|
+ sound-dai = <&pwmdac>;
|
|
|
+ };
|
|
|
+
|
|
|
+ codec {
|
|
|
+ sound-dai = <&pwmdac_codec>;
|
|
|
+ };
|
|
|
+ };
|
|
|
};
|
|
|
};
|
|
|
};
|
|
|
#include "tda998x_1080p.dtsi"
|
|
|
/* #include "codecs/sf_pdm.dtsi" */
|
|
|
-#include "codecs/sf_spdif.dtsi"
|
|
|
+/* #include "codecs/sf_spdif.dtsi" */
|
|
|
/* #include "codecs/sf_ac108.dtsi" */
|
|
|
/* #include "codecs/sf_wm8960.dtsi" */
|
|
|
/* #include "codecs/sf_vad.dtsi" */
|