From 56e47f23e769b84f46e1f23c2505cbbbb9c003ef Mon Sep 17 00:00:00 2001 From: "curry.zhang" Date: Thu, 30 Jun 2022 19:26:52 -0700 Subject: [PATCH] [Audio: SPDIF] Add the spdif driver to jh7110-evb-uart4-emmc-spdif.dts Signed-off-by: curry.zhang --- arch/riscv/boot/dts/starfive/Makefile | 2 +- ...0-evb-uart4-emmc.dts => jh7110-evb-uart4-emmc-spdif.dts} | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) rename arch/riscv/boot/dts/starfive/{jh7110-evb-uart4-emmc.dts => jh7110-evb-uart4-emmc-spdif.dts} (88%) diff --git a/arch/riscv/boot/dts/starfive/Makefile b/arch/riscv/boot/dts/starfive/Makefile index ac4756f..c026fab 100644 --- a/arch/riscv/boot/dts/starfive/Makefile +++ b/arch/riscv/boot/dts/starfive/Makefile @@ -8,5 +8,5 @@ dtb-$(CONFIG_SOC_STARFIVE_JH7110) += jh7110-visionfive-v2.dtb \ jh7110-evb-pcie-i2s-sd.dtb \ jh7110-evb-spi-uart2.dtb \ jh7110-evb-uart1-rgb2hdmi.dtb \ - jh7110-evb-uart4-emmc.dtb \ + jh7110-evb-uart4-emmc-spdif.dtb \ jh7110-evb-uart5-pwm-i2c-tdm.dtb diff --git a/arch/riscv/boot/dts/starfive/jh7110-evb-uart4-emmc.dts b/arch/riscv/boot/dts/starfive/jh7110-evb-uart4-emmc-spdif.dts similarity index 88% rename from arch/riscv/boot/dts/starfive/jh7110-evb-uart4-emmc.dts rename to arch/riscv/boot/dts/starfive/jh7110-evb-uart4-emmc-spdif.dts index 046f485..285d125 100644 --- a/arch/riscv/boot/dts/starfive/jh7110-evb-uart4-emmc.dts +++ b/arch/riscv/boot/dts/starfive/jh7110-evb-uart4-emmc-spdif.dts @@ -6,6 +6,7 @@ /dts-v1/; #include "jh7110-evb.dtsi" +#include "codecs/sf_spdif.dtsi" / { model = "StarFive JH7110 EVB"; @@ -60,3 +61,15 @@ pinctrl-0 = <&pwm_ch6to7_pins>; status = "okay"; }; + +&spdif0 { + status = "okay"; +}; + +&spdif_transmitter { + status = "okay"; +}; + +&spdif_receiver { + status = "okay"; +}; -- 2.7.4