[Orange Pi 5 Plus] I2S output with 40 pin GPIO header on 24.10 builds (mainline-6.11 oracular) #1116
Replies: 2 comments 9 replies
-
I'm stuck here:
I reboot the system, but the device does not appear. I haven't connected the pcm5102 board yet. But I'm not sure that the reason is its absence. Tell me, what am I doing wrong? |
Beta Was this translation helpful? Give feedback.
-
I specifically purchased orange5 plus but the situation has not changed. Tell me what I am doing wrong?
|
Beta Was this translation helpful? Give feedback.
-
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
![](https://private-user-images.githubusercontent.com/37484578/382205066-88d7746d-68b7-4995-bf8f-9098cc441e31.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxMDQ4NzIsIm5iZiI6MTczOTEwNDU3MiwicGF0aCI6Ii8zNzQ4NDU3OC8zODIyMDUwNjYtODhkNzc0NmQtNjhiNy00OTk1LWJmOGYtOTA5OGNjNDQxZTMxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA5VDEyMzYxMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWMwOTMzMWQ1MjgzNzhmNTA4OWJlZmQwYjEyNjM0MWM5NGI3YmIyNWI1YTlhOWQwZDM3NTZmMThjYzYxZTNhZTEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.rX60FVbPauNLn3jVGDB0aC0P4NXQ2yYScCHGR1mTt6I)
The Pins 40, 38, 35, 31, 12 seems to have some PCM functionalities.
Further diving into the dts files in the oracular branch
from
![](https://private-user-images.githubusercontent.com/37484578/382208585-196e46bb-3aca-4ce2-95e9-07a09e9e9eb6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxMDQ4NzIsIm5iZiI6MTczOTEwNDU3MiwicGF0aCI6Ii8zNzQ4NDU3OC8zODIyMDg1ODUtMTk2ZTQ2YmItM2FjYS00Y2UyLTk1ZTktMDdhMDllOWU5ZWI2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA5VDEyMzYxMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWVlM2M1OGFiMDQzYWVhODdiY2IxNTZmNGM4ZDFlMDM2OTNhNDA2ZjRiMDg5YzRlOWViYTg1MmRlOGY5NjU0NGYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.pi0R5njKZdkSfoajtXELcjfCgsYPwnjMIWer5BMK9u0)
rk3588-base-pinctrl.dtsi
we conform that these are indeed i2s3 pins.again in
![](https://private-user-images.githubusercontent.com/37484578/382209545-250d1e29-b09c-417d-88c1-0a848d047182.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxMDQ4NzIsIm5iZiI6MTczOTEwNDU3MiwicGF0aCI6Ii8zNzQ4NDU3OC8zODIyMDk1NDUtMjUwZDFlMjktYjA5Yy00MTdkLTg4YzEtMGE4NDhkMDQ3MTgyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA5VDEyMzYxMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTBkZjNhMDZhZWNhZThmNmUxM2VhNmZjMzczZGJjZDJiNzQxZGIxYjdmNThlOGYxOGYxMjFjMGM5YWZhNWEwZjkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.UNQnyWytdypXhG627z-Cb9TPSEyRDfYPTg1xtTQZNco)
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