From a10a27edd8afe3f24bc3bd3c00d65e9232354714 Mon Sep 17 00:00:00 2001 From: Hoegeun Kwon Date: Tue, 20 Jun 2023 16:54:22 +0900 Subject: [PATCH] RISCV: dts: starfive: Add hdmi audio snd card Add HDMI audio snd-card, The snd-card1 is use i2s and hdmi. Change-Id: I64102445ffad0a072d5d8f62a886bbc9945fd1f1 Signed-off-by: Hoegeun Kwon --- .../dts/starfive/jh7110-starfive-visionfive-2.dtsi | 20 ++++++++++++++++++++ arch/riscv/boot/dts/starfive/jh7110.dtsi | 7 +++++++ 2 files changed, 27 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 a82966c..18e87e0 100644 --- a/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi @@ -539,6 +539,26 @@ status = "okay"; }; +&sound1 { + /* i2s + hdmi */ + simple-audio-card,dai-link@0 { + reg = <0>; + format = "i2s"; + bitclock-master = <&sndi2s0>; + frame-master = <&sndi2s0>; + mclk-fs = <256>; + status = "okay"; + + sndi2s0: cpu { + sound-dai = <&i2stx_4ch0>; + }; + + sndhdmi0: codec { + sound-dai = <&hdmi>; + }; + }; +}; + &sound3 { simple-audio-card,dai-link@0 { reg = <0>; diff --git a/arch/riscv/boot/dts/starfive/jh7110.dtsi b/arch/riscv/boot/dts/starfive/jh7110.dtsi index 6e01c89..7e6361d 100644 --- a/arch/riscv/boot/dts/starfive/jh7110.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7110.dtsi @@ -1389,6 +1389,13 @@ #size-cells = <0>; }; + sound1: snd-card1 { + compatible = "simple-audio-card"; + simple-audio-card,name = "Starfive-HDMI-Sound-Card"; + #address-cells = <1>; + #size-cells = <0>; + }; + sound3: snd-card3 { compatible = "simple-audio-card"; simple-audio-card,name = "Starfive-PWMDAC-Sound-Card"; -- 2.7.4