Skip to content

Commit

Permalink
pwm: mediatek: Add MT7629 compatible string
Browse files Browse the repository at this point in the history
This adds pwm support for MT7629, and separate mt7629 compatible string
from mt7622

Signed-off-by: Sam Shih <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
  • Loading branch information
SamShih33 authored and thierryreding committed Sep 26, 2019
1 parent 1c00ad6 commit 715d14d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/pwm/pwm-mediatek.c
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,11 @@ static const struct pwm_mediatek_of_data mt7628_pwm_data = {
.pwm45_fixup = true,
};

static const struct pwm_mediatek_of_data mt7629_pwm_data = {
.num_pwms = 1,
.pwm45_fixup = false,
};

static const struct pwm_mediatek_of_data mt8516_pwm_data = {
.num_pwms = 5,
.pwm45_fixup = false,
Expand All @@ -307,6 +312,7 @@ static const struct of_device_id pwm_mediatek_of_match[] = {
{ .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,mt7629-pwm", .data = &mt7629_pwm_data },
{ .compatible = "mediatek,mt8516-pwm", .data = &mt8516_pwm_data },
{ },
};
Expand Down

0 comments on commit 715d14d

Please sign in to comment.