提交 8d190728 编写于 作者: F Fabien Parent 提交者: Thierry Reding

pwm: mediatek: Add MT8516 SoC support

Add the compatible and the platform data to support PWM on the MT8516
SoC.
Signed-off-by: NFabien Parent <fparent@baylibre.com>
Reviewed-by: NMatthias Brugger <matthias.bgg@gmail.com>
Acked-by: NUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: NThierry Reding <thierry.reding@gmail.com>
上级 4b046497
......@@ -302,11 +302,18 @@ static const struct mtk_pwm_platform_data mt7628_pwm_data = {
.has_clks = false,
};
static const struct mtk_pwm_platform_data mt8516_pwm_data = {
.num_pwms = 5,
.pwm45_fixup = false,
.has_clks = true,
};
static const struct of_device_id mtk_pwm_of_match[] = {
{ .compatible = "mediatek,mt2712-pwm", .data = &mt2712_pwm_data },
{ .compatible = "mediatek,mt7622-pwm", .data = &mt7622_pwm_data },
{ .compatible = "mediatek,mt7623-pwm", .data = &mt7623_pwm_data },
{ .compatible = "mediatek,mt7628-pwm", .data = &mt7628_pwm_data },
{ .compatible = "mediatek,mt8516-pwm", .data = &mt8516_pwm_data },
{ },
};
MODULE_DEVICE_TABLE(of, mtk_pwm_of_match);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册