Power & Source of Big Ideas

Volumio for NanoPi Neo3

Moderators: chensy, FATechsupport

Hi,
We are currently porting Volumio on the NanoPi Neo3 using the 5.4.50 kernel from the Friendlyarm repo
(https://github.com/friendlyarm/kernel-r ... -r2-v5.4.y)
Currently there is no support for I2S (and SPDIF), I tried enabling I2S with this patch, using the simple NanoPI Audio HAT (wired):

Code: Select all

diff --git a/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2-rev00.dts b/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2-rev00.dts
index 0d1e0507d..80ef4c588 100644
--- a/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2-rev00.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2-rev00.dts
@@ -31,6 +31,21 @@
                };
        };
 
+       i2s-sound {
+               compatible = "simple-audio-card";
+               simple-audio-card,format = "i2s";
+               simple-audio-card,mclk-fs = <256>;
+               simple-audio-card,name = "I2S Out";
+
+               simple-audio-card,cpu {
+                               sound-dai = <&i2s1>;
+               };
+
+               simple-audio-card,codec {
+                               sound-dai = <&codec>;
+               };
+       };
+
        vcc_rtl8153: vcc-rtl8153-regulator {
                compatible = "regulator-fixed";
                gpio = <&gpio2 RK_PC6 GPIO_ACTIVE_HIGH>;
@@ -50,6 +65,16 @@
        model = "NanoPi R2S";
 };
 
+&codec {
+       status = "okay";
+    #sound-dai-cells = <0>;
+};
+
+&i2s1 {
+       status = "okay";
+    #sound-dai-cells = <0>;
+};
+
 &emmc {
        status = "disabled";
 };


dmesg shows me that the binding works, but I do not get any sound from it, wiring is correct.

Code: Select all

[    1.266051] asoc-simple-card i2s-sound: ff410000.codec <-> ff010000.i2s mapping ok


Does anyone have I2S working or can techsupport help me with this?

Thanks


about Volumio:
http://volumio.org
Problem located in the device tree and "temporary fixed" locally.
I2S will never work with the rk3328-nanopi-r2-rev00.dts because of gpio pin conflicts, nanopi-r2s is not nanopi-neo3!!!
I will send FA a working neo3 device tree version, when they are interested, no reaction in this forum so far.
Currently running i2s with the pcm5102a codec, sofar so good. Not tested the rk3328 i2s codec yet.
gkkpch wrote:
I will send FA a working neo3 device tree version, when they are interested


https://github.com/armbian/build/pulls
Hi Igor,
not clear what you are trying to express, armbian did not work either.
My fix works, but I want FA to publish it as a real neo3 dts, my fixes would disable rk3328-nanopi-r2 due to gpio pin conflicts
gkkpch wrote:
not clear what you are trying to express
Armbian implementation could be few months quicker and we already provide mainline 5.8.y based kernels with many specific and general problems fixed.

gkkpch wrote:
armbian did not work either.
Yeah, DT is the same.
https://github.com/armbian/build/blob/m ... o3.wip#L11

gkkpch wrote:
My fix works, but I want FA to publish it as a real neo3 dts, my fixes would disable rk3328-nanopi-r2 due to gpio pin conflicts
Since we didn't found time to add a dedicated Neo3 DT, there is none. Also for R2S, someone took official DT and submitted it: https://github.com/armbian/build/blob/m ... -r2s.patch

Since you are already working with it and you have a device to test (tested solution) - we only have one such board and no I2S testing capabilities there ... https://docs.armbian.com/#what-is-armbian Also FA is syncing with Armbian from time to time + there are more people using Armbian builds. That's why.
Ok, understood.
I can send the rk3328-nanopi-neo3-rev02.dts if I have an email address.
Please note, the rk3328-codec is not supported on Neo3, instead the pcm5201a codec has been configured, this works fine.
gkkpch wrote:
Ok, understood.
I can send the rk3328-nanopi-neo3-rev02.dts if I have an email address.
Please note, the rk3328-codec is not supported on Neo3, instead the pcm5201a codec has been configured, this works fine.


This https://docs.armbian.com/Process_Contribute/ is best/recommended/most convenient way.

But you can also send via email info at armbian dot com if preferred.

Who is online

In total there are 3 users online :: 0 registered, 0 hidden and 3 guests (based on users active over the past 5 minutes)
Most users ever online was 5185 on Wed Jan 22, 2020 1:44 pm

Users browsing this forum: No registered users and 3 guests