Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[RK3308] I2S output - device tree debugging

Featured Replies

I have been playing around the Rock Pi S from radxa, and am stumbling at enabling the I2S output using a device tree overlay. (Building using current Armbain that uses @piter75's kernel branch)

As per the data sheet and pinout, `i2s_8ch_0` should be broken out to the GPIO, but I don't seem to be getting far enabling it via the device tree.
Any inputs?

This is what I am playing around with atm, but `dmesg` doesn't show anything helpful atm, and no "I2S-Card" device turns up.
Tried disabling the inbuilt audio codec ( connected to `i2s_8ch_2`), but still no dice.
The closest example I could find was from `rk3308-ai-va-v10.dts`, that similarly enables the `i2s_8ch_0`, but am unable to mimic it. 

/dts-v1/;
/plugin/;

/ {
        model = "Radxa ROCK Pi S";
        compatible = "radxa,rockpis-rk3308", "rockchip,rk3308";

        fragment@0 {
                target-path = "/";
                __overlay__ {
                        pcm5102a: pcm5102a {
                        #sound-dai-cells = <0>;
                        compatible = "ti,pcm5102a";
                        pcm510x,format = "i2s";
                        };
                };
        };

        fragment@1 {
                target = <&i2s_8ch_0>;
                __overlay__ {
                        status = "okay";
                        #sound-dai-cells = <0>;
                        sound-dai = <&pcm5102a>;
                };
        };

        fragment@2 {
                target-path = "/";
                __overlay__ {
                        sound_i2s {
                                compatible = "simple-audio-card";
                                simple-audio-card,name = "I2S-Card";
                                simple-audio-card,mclk-fs = <256>;
                                simple-audio-card,format = "i2s";
                                status = "okay";

                                simple-audio-card,dai-link {
                                        format = "i2s";
                                        codec {
                                            sound-dai = <&pcm5102a>;
                                        };
                                        cpu {
                                            sound-dai = <&i2s_8ch_0>;
                                        };
                                };
                        };
                };
        };
};

 

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.