summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Shih <sam.shih@mediatek.com>2019-09-25 10:32:33 -0400
committerThierry Reding <thierry.reding@gmail.com>2019-09-26 07:27:50 -0400
commit715d14da670e353c8c827f97e61ba00969929e33 (patch)
tree1125aabeb823f081e6bdfe70cbee9d0ebf958b55
parent1c00ad6ebf36aa3b0fa598a48b8ae59782be4121 (diff)
pwm: mediatek: Add MT7629 compatible string
This adds pwm support for MT7629, and separate mt7629 compatible string from mt7622 Signed-off-by: Sam Shih <sam.shih@mediatek.com> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
-rw-r--r--drivers/pwm/pwm-mediatek.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/pwm/pwm-mediatek.c b/drivers/pwm/pwm-mediatek.c
index 7782fadbc116..b94e0d09c300 100644
--- a/drivers/pwm/pwm-mediatek.c
+++ b/drivers/pwm/pwm-mediatek.c
@@ -297,6 +297,11 @@ static const struct pwm_mediatek_of_data mt7628_pwm_data = {
297 .pwm45_fixup = true, 297 .pwm45_fixup = true,
298}; 298};
299 299
300static const struct pwm_mediatek_of_data mt7629_pwm_data = {
301 .num_pwms = 1,
302 .pwm45_fixup = false,
303};
304
300static const struct pwm_mediatek_of_data mt8516_pwm_data = { 305static const struct pwm_mediatek_of_data mt8516_pwm_data = {
301 .num_pwms = 5, 306 .num_pwms = 5,
302 .pwm45_fixup = false, 307 .pwm45_fixup = false,
@@ -307,6 +312,7 @@ static const struct of_device_id pwm_mediatek_of_match[] = {
307 { .compatible = "mediatek,mt7622-pwm", .data = &mt7622_pwm_data }, 312 { .compatible = "mediatek,mt7622-pwm", .data = &mt7622_pwm_data },
308 { .compatible = "mediatek,mt7623-pwm", .data = &mt7623_pwm_data }, 313 { .compatible = "mediatek,mt7623-pwm", .data = &mt7623_pwm_data },
309 { .compatible = "mediatek,mt7628-pwm", .data = &mt7628_pwm_data }, 314 { .compatible = "mediatek,mt7628-pwm", .data = &mt7628_pwm_data },
315 { .compatible = "mediatek,mt7629-pwm", .data = &mt7629_pwm_data },
310 { .compatible = "mediatek,mt8516-pwm", .data = &mt8516_pwm_data }, 316 { .compatible = "mediatek,mt8516-pwm", .data = &mt8516_pwm_data },
311 { }, 317 { },
312}; 318};