Skip to content

Instantly share code, notes, and snippets.

@zuigon
Last active March 5, 2024 12:58
Show Gist options
  • Save zuigon/65bfb73bb8a3f971774f80d3e2954adb to your computer and use it in GitHub Desktop.
Save zuigon/65bfb73bb8a3f971774f80d3e2954adb to your computer and use it in GitHub Desktop.
orange pi H3 i2s
$ sudo armbian-add-overlay ./i2s_overlay.dts
/dts-v1/;
/plugin/;
/ {
compatible = "allwinner,sun8i-h3";
fragment@0 {
target-path = "/";
__overlay__ {
pcm5102a: pcm5102a {
#sound-dai-cells = <0>;
compatible = "ti,pcm5102a";
pcm510x,format = "i2s";
};
};
};
fragment@1 {
target = <&i2s0>;
__overlay__ {
status = "okay";
pinctrl-0 = <&i2s0_pins>;
sound-dai = <&pcm5102a>;
pinctrl-names = "default";
};
};
fragment@2 {
target-path = "/";
__overlay__ {
sound_i2s {
compatible = "simple-audio-card";
simple-audio-card,name = "I2S-master";
simple-audio-card,mclk-fs = <256>;
simple-audio-card,format = "i2s";
status = "okay";
simple-audio-card,cpu {
sound-dai = <&i2s0>;
};
simple-audio-card,codec {
sound-dai = <&pcm5102a>;
};
};
};
};
};
@eerison
Copy link

eerison commented Sep 25, 2023

Hi @zuigon

Does it work for orange pi zero 2w?
Which module have you used?

Maybe could you add some tips how to proceed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment