Skip to content

Commit 9315a28

Browse files
author
Codrin Ciubotariu
committed
ARM: dts: at91: sama7g5ek: add node for Microchip's ASRC card
Add and use the new sound card that enables SAMA7G5's ASRC. Signed-off-by: Codrin Ciubotariu <codrin.ciubotariu@microchip.com>
1 parent 773ba5b commit 9315a28

1 file changed

Lines changed: 22 additions & 4 deletions

File tree

arch/arm/boot/dts/at91-sama7g5ek.dts

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include <dt-bindings/mfd/atmel-flexcom.h>
1515
#include <dt-bindings/input/input.h>
1616
#include <dt-bindings/pinctrl/at91.h>
17+
#include <dt-bindings/sound/microchip,asrc-card.h>
1718
#include <dt-bindings/sound/microchip,pdmc.h>
1819

1920
/ {
@@ -89,21 +90,34 @@
8990
};
9091

9192
sound: sound {
92-
compatible = "simple-audio-card";
93-
simple-audio-card,name = "sama7g5ek audio";
9493
#address-cells = <1>;
9594
#size-cells = <0>;
96-
simple-audio-card,dai-link@0 {
95+
assigned-clocks = <&pmc PMC_TYPE_CORE PMC_AUDIOPMCPLL>;
96+
assigned-clock-rates = <196608000>;
97+
compatible = "microchip,asrc-card";
98+
microchip,model = "mchp-asrc-card @ sama5g7 EK";
99+
status = "okay";
100+
101+
microchip,audio-asrc = <&asrc 0>, <&asrc 1>, <&asrc 2>, <&asrc 3>;
102+
103+
microchip,dai-link@0 {
97104
reg = <0>;
105+
microchip,convert-channels = <2>;
106+
microchip,convert-rate = <48000>;
107+
microchip,convert-sample-format = <MCHP_ASRC_PCM_FORMAT_S24_LE>;
98108
cpu {
99109
sound-dai = <&spdiftx>;
100110
};
101111
codec {
102112
sound-dai = <&spdif_out>;
103113
};
104114
};
105-
simple-audio-card,dai-link@1 {
115+
116+
microchip,dai-link@1 {
106117
reg = <1>;
118+
microchip,convert-channels = <2>;
119+
microchip,convert-rate = <48000>;
120+
microchip,convert-sample-format = <MCHP_ASRC_PCM_FORMAT_S24_LE>;
107121
cpu {
108122
sound-dai = <&spdifrx>;
109123
};
@@ -124,6 +138,10 @@
124138
};
125139
};
126140

141+
&asrc {
142+
status = "okay";
143+
};
144+
127145
&adc {
128146
vddana-supply = <&vddout25>;
129147
vref-supply = <&vddout25>;

0 commit comments

Comments
 (0)