Skip to content

Commit

Permalink
Merge pull request radxa-pkg#339 from vamrs-feng/main
Browse files Browse the repository at this point in the history
rk3588: add i2s1_8ch dummy sound card overlay
  • Loading branch information
RadxaYuntian authored Jul 3, 2024
2 parents fb9eb61 + cb67ac4 commit f54c20f
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
1 change: 1 addition & 0 deletions arch/arm64/boot/dts/rockchip/overlays/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@ dtb-$(CONFIG_CLK_RK3588) += \
rk3588-i2c7-m3.dtbo \
rk3588-i2c8-m2.dtbo \
rk3588-i2c8-m4.dtbo \
rk3588-i2s1-8ch-m0.dtbo \
rk3588-mali-enable.dtbo \
rk3588-pwm0-m1.dtbo \
rk3588-pwm0-m2.dtbo \
Expand Down
54 changes: 54 additions & 0 deletions arch/arm64/boot/dts/rockchip/overlays/rk3588-i2s1-8ch-m0.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
/dts-v1/;
/plugin/;

/ {
metadata {
title = "Enable I2S1 8-channel dummy sound card";
compatible = "radxa,rock-5a", "radxa,rock-5c", "radxa,rock-5d";
category = "misc";
exclusive = "GPIO4_A1", "GPIO4_A5", "GPIO4_B0", "GPIO4_B1", "GPIO4_B2", "GPIO4_B3", "GPIO4_B4", "i2s1_8ch";
description = "Enable I2S1 8-channel dummy sound card.
This overlay is only for demonstration purpose.
It does not support any specific hardware device.";
};
};

&{/} {
i2s1_dummy_codec: i2s1-dummy-codec {
compatible = "rockchip,dummy-codec";
#sound-dai-cells = <0>;
};

i2s1_dummy_sound: i2s1-dummy-sound {
compatible = "simple-audio-card";
simple-audio-card,format = "i2s";
simple-audio-card,name = "dummy-card";
simple-audio-card,mclk-fs = <256>;
status = "okay";

simple-audio-card,dai-link@0 {
format = "i2s";
cpu {
sound-dai = <&i2s1_8ch>;
};

codec {
sound-dai = <&i2s1_dummy_codec>;
};
};
};
};

&i2s1_8ch {
pinctrl-0 = <&i2s1m0_lrck
&i2s1m0_sclk
&i2s1m0_sdi0
&i2s1m0_sdi3
&i2s1m0_sdo0
&i2s1m0_sdo1
&i2s1m0_sdo2
&i2s1m0_sdo3>;
rockchip,i2s-rx-route = <0 3 1 2>;
rockchip,i2s-tx-route = <0 1 2 3>;
status = "okay";
};

0 comments on commit f54c20f

Please sign in to comment.