diff options
author | Xingyu Wu <xingyu.wu@starfivetech.com> | 2022-09-01 09:13:53 +0300 |
---|---|---|
committer | Xingyu Wu <xingyu.wu@starfivetech.com> | 2022-09-01 09:13:59 +0300 |
commit | f4f2b1cbdf5ee6cd502bcdcdcb4515b7f5894f8a (patch) | |
tree | 2c47716a387284eed835c1b8d9324818bd4203be | |
parent | bf307564c2238560772139fe713810bd743ecfcd (diff) | |
download | linux-f4f2b1cbdf5ee6cd502bcdcdcb4515b7f5894f8a.tar.xz |
sound:i2s:Modify compatible name
Modify compatible name to 'starfive,jh7110-i2stx-4ch1'.
Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
-rwxr-xr-x | arch/riscv/boot/dts/starfive/jh7110.dtsi | 25 | ||||
-rwxr-xr-x | sound/soc/dwc/dwc-i2s.c | 8 |
2 files changed, 16 insertions, 17 deletions
diff --git a/arch/riscv/boot/dts/starfive/jh7110.dtsi b/arch/riscv/boot/dts/starfive/jh7110.dtsi index b0fe3388cad2..ea484c67ea45 100755 --- a/arch/riscv/boot/dts/starfive/jh7110.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7110.dtsi @@ -1260,7 +1260,7 @@ }; 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>, @@ -1274,11 +1274,11 @@ <&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>; @@ -1309,7 +1309,7 @@ }; 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>, @@ -1324,12 +1324,11 @@ <&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>; diff --git a/sound/soc/dwc/dwc-i2s.c b/sound/soc/dwc/dwc-i2s.c index c6aaeec03731..f2ddcfd375c8 100755 --- a/sound/soc/dwc/dwc-i2s.c +++ b/sound/soc/dwc/dwc-i2s.c @@ -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", }, {}, }; |