sound:starfive:spdif:Modify compatible name
authorXingyu Wu <xingyu.wu@starfivetech.com>
Thu, 1 Sep 2022 01:58:15 +0000 (09:58 +0800)
committerXingyu Wu <xingyu.wu@starfivetech.com>
Thu, 1 Sep 2022 02:13:27 +0000 (10:13 +0800)
1.Modify compatible name to 'starfive,jh7110-spdif'.
2.Remove spdif-receiver node.

Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
arch/riscv/boot/dts/starfive/jh7110-common.dtsi [changed mode: 0644->0755]
arch/riscv/boot/dts/starfive/jh7110-evb-uart4-emmc-spdif.dts [changed mode: 0644->0755]
arch/riscv/boot/dts/starfive/jh7110.dtsi
sound/soc/starfive/starfive_spdif.c

old mode 100644 (file)
new mode 100755 (executable)
index 8de5586..52cc542
 };
 
 &spdif_transmitter {
-       compatible = "linux,spdif-dit";
-       #sound-dai-cells = <0>;
-       status = "disabled";
-};
-
-&spdif_receiver {
-       compatible = "linux,spdif-dir";
-       #sound-dai-cells = <0>;
        status = "disabled";
 };
 
old mode 100644 (file)
new mode 100755 (executable)
index 285d125..3ea9c0e
@@ -70,6 +70,3 @@
        status = "okay";
 };
 
-&spdif_receiver {
-       status = "okay";
-};
index cccd577..08b0435 100755 (executable)
                };
 
                spdif0: spdif0@100a0000 {
-                       compatible = "starfive,sf-spdif";
+                       compatible = "starfive,jh7110-spdif";
                        reg = <0x0 0x100a0000 0x0 0x1000>;
                        clocks = <&clkgen JH7110_SPDIF_CLK_APB>,
                                 <&clkgen JH7110_SPDIF_CLK_CORE>,
                        status = "disabled";
                };
 
-               spdif_receiver: spdif_receiver {
-                       compatible = "linux,spdif-dir";
-                       #sound-dai-cells = <0>;
-                       status = "disabled";
-               };
-
                pwmdac_codec: pwmdac-transmitter {
                        compatible = "starfive,jh7110-pwmdac-dit";
                        #sound-dai-cells = <0>;
index cbc5c42..aff3de1 100755 (executable)
@@ -387,7 +387,7 @@ static struct snd_soc_dai_driver sf_spdif_dai = {
 };
 
 static const struct snd_soc_component_driver sf_spdif_component = {
-       .name = "sf-spdif",
+       .name = "starfive-spdif",
 };
 
 static const struct regmap_config sf_spdif_regmap_config = {
@@ -477,14 +477,14 @@ err_clk_disable:
 }
 
 static const struct of_device_id sf_spdif_of_match[] = {
-       { .compatible = "starfive,sf-spdif", },
+       { .compatible = "starfive,jh7110-spdif", },
        {},
 };
 MODULE_DEVICE_TABLE(of, sf_spdif_of_match);
 
 static struct platform_driver sf_spdif_driver = {
        .driver = {
-               .name = "sf-spdif",
+               .name = "starfive-spdif",
                .of_match_table = sf_spdif_of_match,
        },
        .probe = sf_spdif_probe,