]> git.baikalelectronics.ru Git - kernel.git/commitdiff
pwm: mediatek: Add MT7629 compatible string
authorSam Shih <sam.shih@mediatek.com>
Wed, 25 Sep 2019 14:32:33 +0000 (22:32 +0800)
committerThierry Reding <thierry.reding@gmail.com>
Thu, 26 Sep 2019 11:27:50 +0000 (13:27 +0200)
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>
drivers/pwm/pwm-mediatek.c

index 7782fadbc1167e57c2cd2208a87eadf4aa72a7b9..b94e0d09c300f8bdc2cb23f85c39223d2968948f 100644 (file)
@@ -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,
@@ -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 },
        { },
 };