Last active
March 5, 2024 12:58
-
-
Save zuigon/65bfb73bb8a3f971774f80d3e2954adb to your computer and use it in GitHub Desktop.
orange pi H3 i2s
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo armbian-add-overlay ./i2s_overlay.dts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/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>; | |
}; | |
}; | |
}; | |
}; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://linux-sunxi.org/images/7/7b/Orange_Pi%2B2e_pinout.JPG | |
https://forum.armbian.com/uploads/monthly_02_2016/post-578-0-59118400-1456768124.png | |
https://forum.armbian.com/topic/5643-h3-i2s0-dt-overlay/?tab=comments#comment-43659 | |
https://forum.armbian.com/topic/5643-h3-i2s0-dt-overlay/?tab=comments#comment-43541 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @zuigon
Does it work for orange pi zero 2w?
Which module have you used?
Maybe could you add some tips how to proceed?