};
i2srx_3ch: i2srx_3ch@100e0000 {
- compatible = "snps,designware-i2srx";
+ compatible = "starfive,jh7110-i2srx", "snps,designware-i2s";
reg = <0x0 0x100e0000 0x0 0x1000>;
clocks = <&clkgen JH7110_APB0>,
<&clkgen JH7110_I2SRX0_3CH_CLK_APB>,
<&i2srx_bclk_ext>,
<&i2srx_lrck_ext>;
clock-names = "apb0", "3ch-apb",
- "audioroot", "mclk-inner",
- "bclk_mst", "3ch-lrck",
- "rx-bclk", "rx-lrck",
- "mclk", "bclk-ext",
- "lrck-ext";
+ "audioroot", "mclk-inner",
+ "bclk_mst", "3ch-lrck",
+ "rx-bclk", "rx-lrck",
+ "mclk", "bclk-ext",
+ "lrck-ext";
resets = <&rstgen RSTN_U0_I2SRX_3CH_APB>,
<&rstgen RSTN_U0_I2SRX_3CH_BCLK>;
dmas = <&dma 24 1>;
};
i2stx_4ch1: i2stx_4ch1@120c0000 {
- compatible = "snps,designware-i2stx-4ch1";
+ compatible = "starfive,jh7110-i2stx-4ch1", "snps,designware-i2s";
reg = <0x0 0x120c0000 0x0 0x1000>;
clocks = <&clkgen JH7110_AUDIO_ROOT>,
<&clkgen JH7110_MCLK_INNER>,
<&mclk_ext>,
<&i2stx_bclk_ext>,
<&i2stx_lrck_ext>;
- clock-names = "audroot", "mclk_inner", "bclk_mst",
- "lrck_mst", "mclk", "4chbclk",
- "4chlrck", "mclk_out",
- "apb0", "clk_apb",
- "mclk_ext", "bclk_ext", "lrck_ext";
-
+ clock-names = "audroot", "mclk_inner", "bclk_mst",
+ "lrck_mst", "mclk", "4chbclk",
+ "4chlrck", "mclk_out",
+ "apb0", "clk_apb",
+ "mclk_ext", "bclk_ext", "lrck_ext";
resets = <&rstgen RSTN_U1_I2STX_4CH_APB>,
<&rstgen RSTN_U1_I2STX_4CH_BCLK>;
dmas = <&dma 48 1>;
}
}
- if (of_device_is_compatible(np, "snps,designware-i2srx")) { //record
+ if (of_device_is_compatible(np, "starfive,jh7110-i2srx")) { //record
ret = of_parse_phandle_with_fixed_args(dev->dev->of_node,
"starfive,sys-syscon", 2, 0, &args);
if (ret) {
ret = dw_i2stx_4ch0_clk_init(pdev, dev);
if (ret < 0)
goto err_clk_disable;
- } else if (of_device_is_compatible(np, "snps,designware-i2stx-4ch1")) { //playback
+ } else if (of_device_is_compatible(np, "starfive,jh7110-i2stx-4ch1")) { //playback
ret = dw_i2stx_4ch1_clk_init(pdev, dev);
if (ret < 0)
goto err_clk_disable;
#ifdef CONFIG_OF
static const struct of_device_id dw_i2s_of_match[] = {
- { .compatible = "snps,designware-i2stx-4ch1", },
- { .compatible = "snps,designware-i2srx", },
+ { .compatible = "starfive,jh7110-i2stx-4ch1", },
+ { .compatible = "starfive,jh7110-i2srx", },
{ .compatible = "snps,designware-i2stx-4ch0", },
{},
};