Skip to content

Commit f775dbb

Browse files
Patrice Chotardthom24
Patrice Chotard
authored andcommitted
arm64: dts: st: add sound card to stm32mp257f-dk board
Add sound card to stm32mp257f-dk board Change-Id: I37ca58a848232c63aba53ba6946fec8848c33f0d Signed-off-by: Olivier BIDEAU <[email protected]> Signed-off-by: Patrice Chotard <[email protected]> Signed-off-by: Olivier Moysan <[email protected]> Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/linux-stm32/+/361878 Domain-Review: Arnaud POULIQUEN <[email protected]> Reviewed-by: Arnaud POULIQUEN <[email protected]>
1 parent fbf9747 commit f775dbb

File tree

1 file changed

+116
-0
lines changed

1 file changed

+116
-0
lines changed

arch/arm64/boot/dts/st/stm32mp257f-dk.dts

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,32 @@
4545
};
4646
};
4747

48+
dmic0: dmic-0 {
49+
compatible = "dmic-codec";
50+
#sound-dai-cells = <1>;
51+
sound-name-prefix = "dmic0";
52+
status = "okay";
53+
54+
port {
55+
dmic0_endpoint: endpoint {
56+
remote-endpoint = <&mdf_endpoint0>;
57+
};
58+
};
59+
};
60+
61+
dmic1: dmic-1 {
62+
compatible = "dmic-codec";
63+
#sound-dai-cells = <1>;
64+
sound-name-prefix = "dmic1";
65+
status = "okay";
66+
67+
port {
68+
dmic1_endpoint: endpoint {
69+
remote-endpoint = <&mdf_endpoint1>;
70+
};
71+
};
72+
};
73+
4874
gpio-keys {
4975
compatible = "gpio-keys";
5076

@@ -123,6 +149,13 @@
123149
status = "okay";
124150
};
125151

152+
sound {
153+
compatible = "audio-graph-card";
154+
label = "STM32MP25-DK";
155+
dais = <&i2s2_port &mdf1_port0 &mdf1_port1>;
156+
status = "okay";
157+
};
158+
126159
wifi_pwrseq: wifi-pwrseq {
127160
compatible = "mmc-pwrseq-simple";
128161
reset-gpios = <&gpiog 8 GPIO_ACTIVE_LOW>;
@@ -309,6 +342,13 @@
309342
remote-endpoint = <&hdmi_connector_in>;
310343
};
311344
};
345+
346+
port@2 {
347+
reg = <2>;
348+
adv7535_tx_endpoint: endpoint {
349+
remote-endpoint = <&i2s2_endpoint>;
350+
};
351+
};
312352
};
313353
};
314354

@@ -335,6 +375,21 @@
335375
/delete-property/dma-names;
336376
};
337377

378+
&i2s2 {
379+
pinctrl-names = "default", "sleep";
380+
pinctrl-0 = <&i2s2_pins_b>;
381+
pinctrl-1 = <&i2s2_sleep_pins_b>;
382+
status = "okay";
383+
384+
i2s2_port: port {
385+
i2s2_endpoint: endpoint {
386+
remote-endpoint = <&adv7535_tx_endpoint>;
387+
format = "i2s";
388+
mclk-fs = <256>;
389+
};
390+
};
391+
};
392+
338393
&ipcc1 {
339394
status = "okay";
340395
};
@@ -400,6 +455,67 @@
400455
status = "okay";
401456
};
402457

458+
&mdf1 {
459+
pinctrl-names = "default", "sleep";
460+
pinctrl-0 = <&mdf_cck0_pins_a>;
461+
pinctrl-1 = <&mdf_cck0_sleep_pins_a>;
462+
#clock-cells = <1>;
463+
clock-output-names = "cck0";
464+
clock-frequency = <2048000>;
465+
status = "okay";
466+
467+
sitf6: sitf@380 {
468+
pinctrl-names = "default", "sleep";
469+
pinctrl-0 = <&mdf_sdi6_pins_a>;
470+
pinctrl-1 = <&mdf_sdi6_sleep_pins_a>;
471+
st,sitf-mode = "spi";
472+
clocks = <&mdf1 0>;
473+
status = "okay";
474+
};
475+
476+
filter0: filter@84 {
477+
st,cic-mode = <5>;
478+
st,sitf = <&sitf6 0>;
479+
st,hpf-filter-cutoff-bp = <625>;
480+
status = "okay";
481+
482+
asoc_pdm0: mdf-dai {
483+
compatible = "st,stm32mp25-mdf-dai";
484+
#sound-dai-cells = <0>;
485+
io-channels = <&filter0 0>;
486+
power-domains = <&RET_PD>;
487+
status = "okay";
488+
489+
mdf1_port0: port {
490+
mdf_endpoint0: endpoint {
491+
remote-endpoint = <&dmic0_endpoint>;
492+
};
493+
};
494+
};
495+
};
496+
497+
filter1: filter@104 {
498+
st,cic-mode = <5>;
499+
st,sitf = <&sitf6 1>;
500+
st,hpf-filter-cutoff-bp = <625>;
501+
status = "okay";
502+
503+
asoc_pdm1: mdf-dai {
504+
compatible = "st,stm32mp25-mdf-dai";
505+
#sound-dai-cells = <0>;
506+
io-channels = <&filter1 0>;
507+
power-domains = <&RET_PD>;
508+
status = "okay";
509+
510+
mdf1_port1: port {
511+
mdf_endpoint1: endpoint {
512+
remote-endpoint = <&dmic1_endpoint>;
513+
};
514+
};
515+
};
516+
};
517+
};
518+
403519
&mlahb {
404520
intc_rpmsg: interrupt-controller@1 {
405521
compatible = "rpmsg,intc";

0 commit comments

Comments
 (0)