So I obviously have little idea of what I am doing, but without SPDIF I have a rather expensive paperweight on my desk…
So finding this and tracking down the working github link I have tried updating to suit the 5B resulting in this overlay;
/dts-v1/;
/plugin/;
/ {
compatible = "radxa,rock-5b", "rockchip,rk3588";
fragment@0 {
target-path = "/";
__overlay__ {
acodec: acodec {
#sound-dai-cells = <0>;
compatible = "rockchip,rk3588-codec";
status = "okay";
};
};
};
fragment@1 {
target = <&spdif_tx>;
__overlay__ {
status = "okay";
};
};
fragment@2 {
target = <&i2s_8ch_0>;
__overlay__ {
status = "disabled";
};
};
fragment@3 {
target = <&i2s_8ch_2>;
__overlay__ {
status = "disabled";
};
};
fragment@4 {
target-path = "/";
__overlay__ {
acodec-sound {
compatible = "rockchip,multicodecs-card";
rockchip,card-name = "SPDIF_out";
rockchip,mclk-fs = <256>;
rockchip,cpu = <&spdif_tx>;
rockchip,codec = <&acodec>;
};
};
};
};
Which not to surprisingly just stops the board from booting… so I really need some help please!!
Stripping it back to
/dts-v1/;
/plugin/;
/ {
compatible = "radxa,rock-5b", "rockchip,rk3588";
fragment@0 {
target = <&spdif_tx>;
__overlay__ {
status = "okay";
};
};
};
Also results in a no boot!! 