sound:i2s:Modify compatible name
authorXingyu Wu <xingyu.wu@starfivetech.com>
Thu, 1 Sep 2022 06:13:53 +0000 (14:13 +0800)
committerXingyu Wu <xingyu.wu@starfivetech.com>
Thu, 1 Sep 2022 06:13:59 +0000 (14:13 +0800)
Modify compatible name to 'starfive,jh7110-i2stx-4ch1'.

Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
arch/riscv/boot/dts/starfive/jh7110.dtsi
sound/soc/dwc/dwc-i2s.c

index b0fe338..ea484c6 100755 (executable)
                };
 
                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>;
index c6aaeec..f2ddcfd 100755 (executable)
@@ -1186,7 +1186,7 @@ static int dw_i2s_probe(struct platform_device *pdev)
                }
        }
 
-       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) {
@@ -1207,7 +1207,7 @@ static int dw_i2s_probe(struct platform_device *pdev)
                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;
@@ -1299,8 +1299,8 @@ static int dw_i2s_remove(struct platform_device *pdev)
 
 #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",    },
        {},
 };