ashthespy Posted January 21, 2020 Posted January 21, 2020 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>; }; }; }; }; }; };
Recommended Posts