arm64: dts: rockchip: enable spdif on Quartz64 A
authorNicolas Frattaroli <frattaroli.nicolas@gmail.com>
Fri, 15 Oct 2021 11:13:02 +0000 (13:13 +0200)
committerHeiko Stuebner <heiko@sntech.de>
Sat, 16 Oct 2021 18:42:50 +0000 (20:42 +0200)
Add the necessary nodes to enable the spdif output on the
RK3566-Quartz-A board.

Co-developed-by: Peter Geis <pgwipeout@gmail.com>
Signed-off-by: Peter Geis <pgwipeout@gmail.com>
Signed-off-by: Nicolas Frattaroli <frattaroli.nicolas@gmail.com>
Link: https://lore.kernel.org/r/20211015111303.1365328-2-frattaroli.nicolas@gmail.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts

index a244f7b87e38ace2794dfb7867431467a0dacc45..b862d10b04f39018002b50d370c624af2054883b 100644 (file)
                };
        };
 
+       spdif_dit: spdif-dit {
+               compatible = "linux,spdif-dit";
+               #sound-dai-cells = <0>;
+       };
+
+       spdif_sound: spdif-sound {
+               compatible = "simple-audio-card";
+               simple-audio-card,name = "SPDIF";
+
+               simple-audio-card,cpu {
+                       sound-dai = <&spdif>;
+               };
+
+               simple-audio-card,codec {
+                       sound-dai = <&spdif_dit>;
+               };
+       };
+
        vcc12v_dcin: vcc12v_dcin {
                compatible = "regulator-fixed";
                regulator-name = "vcc12v_dcin";
        status = "okay";
 };
 
+&spdif {
+       status = "okay";
+};
+
 &tsadc {
        /* tshut mode 0:CRU 1:GPIO */
        rockchip,hw-tshut-mode = <1>;