From 03cdce1864442becfae86d4490b0e1ccf217b00a Mon Sep 17 00:00:00 2001 From: Jaehoon Chung Date: Tue, 16 Jan 2024 16:52:24 +0900 Subject: [PATCH] riscv: dts: starfive: Add HDMI-Sound card node Add HDMI-Sound card node as sound-i2s. Change-Id: Iff48e6cd370795a69ccdb026ea9de2412045fc19 Signed-off-by: Jaehoon Chung --- .../jh7110-starfive-visionfive-2.dtsi | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi b/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi index 02a4dbd26262..6484b6f288bd 100644 --- a/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi @@ -86,6 +86,29 @@ }; }; }; + + sound-i2s { + compatible = "simple-audio-card"; + simple-audio-card,name = "StarFive-HDMI-Sound-Card"; + #address-cells = <1>; + #size-cells = <0>; + + simple-audio-card,dai-link@0 { + reg = <0>; + format = "i2s"; + bitclock-master = <&sndi2s0>; + frame-master = <&sndi2s0>; + mclk-fs = <256>; + + sndi2s0: cpu { + sound-dai = <&i2stx0>; + }; + + sndhdmi0: codec { + sound-dai = <&hdmi>; + }; + }; + }; }; &dc8200 { -- 2.34.1