};
&spdif_transmitter {
- compatible = "linux,spdif-dit";
- #sound-dai-cells = <0>;
- status = "disabled";
-};
-
-&spdif_receiver {
- compatible = "linux,spdif-dir";
- #sound-dai-cells = <0>;
status = "disabled";
};
};
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>;
};
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 = {
}
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,