Skip to content

Commit cb67ac4

Browse files
bspvamrs-feng
authored andcommitted
rk3588: add i2s1_8ch dummy sound card overlay
Signed-off-by: bsp <[email protected]>
1 parent fb9eb61 commit cb67ac4

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed

arch/arm64/boot/dts/rockchip/overlays/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,7 @@ dtb-$(CONFIG_CLK_RK3588) += \
365365
rk3588-i2c7-m3.dtbo \
366366
rk3588-i2c8-m2.dtbo \
367367
rk3588-i2c8-m4.dtbo \
368+
rk3588-i2s1-8ch-m0.dtbo \
368369
rk3588-mali-enable.dtbo \
369370
rk3588-pwm0-m1.dtbo \
370371
rk3588-pwm0-m2.dtbo \
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
/dts-v1/;
2+
/plugin/;
3+
4+
/ {
5+
metadata {
6+
title = "Enable I2S1 8-channel dummy sound card";
7+
compatible = "radxa,rock-5a", "radxa,rock-5c", "radxa,rock-5d";
8+
category = "misc";
9+
exclusive = "GPIO4_A1", "GPIO4_A5", "GPIO4_B0", "GPIO4_B1", "GPIO4_B2", "GPIO4_B3", "GPIO4_B4", "i2s1_8ch";
10+
description = "Enable I2S1 8-channel dummy sound card.
11+
This overlay is only for demonstration purpose.
12+
It does not support any specific hardware device.";
13+
};
14+
};
15+
16+
&{/} {
17+
i2s1_dummy_codec: i2s1-dummy-codec {
18+
compatible = "rockchip,dummy-codec";
19+
#sound-dai-cells = <0>;
20+
};
21+
22+
i2s1_dummy_sound: i2s1-dummy-sound {
23+
compatible = "simple-audio-card";
24+
simple-audio-card,format = "i2s";
25+
simple-audio-card,name = "dummy-card";
26+
simple-audio-card,mclk-fs = <256>;
27+
status = "okay";
28+
29+
simple-audio-card,dai-link@0 {
30+
format = "i2s";
31+
cpu {
32+
sound-dai = <&i2s1_8ch>;
33+
};
34+
35+
codec {
36+
sound-dai = <&i2s1_dummy_codec>;
37+
};
38+
};
39+
};
40+
};
41+
42+
&i2s1_8ch {
43+
pinctrl-0 = <&i2s1m0_lrck
44+
&i2s1m0_sclk
45+
&i2s1m0_sdi0
46+
&i2s1m0_sdi3
47+
&i2s1m0_sdo0
48+
&i2s1m0_sdo1
49+
&i2s1m0_sdo2
50+
&i2s1m0_sdo3>;
51+
rockchip,i2s-rx-route = <0 3 1 2>;
52+
rockchip,i2s-tx-route = <0 1 2 3>;
53+
status = "okay";
54+
};

0 commit comments

Comments
 (0)