[Orange Pi 5 Plus] I2S output with 40 pin GPIO header on 24.10 builds (mainline-6.11 oracular) #1116
arun-511
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
RK3588 has total 4 i2s interfaces (i2s0/i2s1 with 8 channels and i2s2/i2s3 with 2 channels).
Orange Pi 5 Plus GPIO Pinout diagrams on the internet don't have any specific clue if any of these i2s interfaces are exposed via the 40 pin GPIO header.
However the Orange Pi 5 Plus schematics on the official downloads has something interesting
The Pins 40, 38, 35, 31, 12 seems to have some PCM functionalities.
Further diving into the dts files in the oracular branch
from
rk3588-base-pinctrl.dtsi
we conform that these are indeed i2s3 pins.again in
rk3588-base.dtsi
the i2s3_2c interface is already there with proper pins assigned.So with my zero knowledge with dts, after a lot of trial and errors, I made this overlay to add a pcm5102 node, for simple i2s output.
compile it with
device-tree-compiler
copy the
.dtbo
to the path/lib/firmware/$(uname -r)/device-tree/rockchip/overlay
(create the path if not exists) and then edit the/etc/default/u-boot
like this.Result appear as
alsa_output.platform-pcm5102.stereo-fallback
andBuilt-in Audio Stereo
alongside the onboardes8328
that doesn't seem to work for on the mainline builds.With the same procedure I am able to add I2C, SPI, PWM overlays as well, which are missing from the mainline but still has every thing defined in the
rk3588-base.dtsi
&rk3588-base-pinctrl.dtsi
.I have been looking for i2s on Orange Pi 5 Plus for more than a year. There is very little documentation on this topic, I hope this would help someone out.
Beta Was this translation helpful? Give feedback.
All reactions