diff --git a/Documentation/devicetree/bindings/sound/rockchip,i2s-tdm.txt b/Documentation/devicetree/bindings/sound/rockchip,i2s-tdm.txt index beadf8bc0ad8..88ff1c72a12a 100644 --- a/Documentation/devicetree/bindings/sound/rockchip,i2s-tdm.txt +++ b/Documentation/devicetree/bindings/sound/rockchip,i2s-tdm.txt @@ -3,6 +3,7 @@ Required properties: - compatible: should be one of the following + - "rockchip,rk1808-i2s-tdm": for rk1808 - "rockchip,rk3308-i2s-tdm": for rk3308 - reg: physical base address of the controller and length of memory mapped region. diff --git a/sound/soc/rockchip/rockchip_i2s_tdm.c b/sound/soc/rockchip/rockchip_i2s_tdm.c index 908714d5a070..e40d73e45186 100644 --- a/sound/soc/rockchip/rockchip_i2s_tdm.c +++ b/sound/soc/rockchip/rockchip_i2s_tdm.c @@ -1028,11 +1028,16 @@ static const struct regmap_config rockchip_i2s_tdm_regmap_config = { .cache_type = REGCACHE_FLAT, }; +static struct rk_i2s_soc_data rk1808_i2s_soc_data = { + .softrst_offset = 0x0300, +}; + static struct rk_i2s_soc_data rk3308_i2s_soc_data = { .softrst_offset = 0x0400, }; static const struct of_device_id rockchip_i2s_tdm_match[] = { + { .compatible = "rockchip,rk1808-i2s-tdm", .data = &rk1808_i2s_soc_data }, { .compatible = "rockchip,rk3308-i2s-tdm", .data = &rk3308_i2s_soc_data }, {}, };