]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
pwm: mtk: add support for MediaTek MT7988 SoC
authorWeijie Gao <weijie.gao@mediatek.com>
Wed, 19 Jul 2023 09:16:24 +0000 (17:16 +0800)
committerTom Rini <trini@konsulko.com>
Thu, 3 Aug 2023 13:40:49 +0000 (09:40 -0400)
This patch adds PWM support for MediaTek MT7988 SoC.

Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
drivers/pwm/pwm-mtk.c

index 605142eab0355d16bc9433b35c9f27056bc2fceb..11e744401971ea1fa1da1b027445109f1a939275 100644 (file)
@@ -205,12 +205,19 @@ static const struct mtk_pwm_soc mt7986_data = {
        .reg_ver = PWM_REG_V1,
 };
 
+static const struct mtk_pwm_soc mt7988_data = {
+       .num_pwms = 8,
+       .pwm45_fixup = false,
+       .reg_ver = PWM_REG_V2,
+};
+
 static const struct udevice_id mtk_pwm_ids[] = {
        { .compatible = "mediatek,mt7622-pwm", .data = (ulong)&mt7622_data },
        { .compatible = "mediatek,mt7623-pwm", .data = (ulong)&mt7623_data },
        { .compatible = "mediatek,mt7629-pwm", .data = (ulong)&mt7629_data },
        { .compatible = "mediatek,mt7981-pwm", .data = (ulong)&mt7981_data },
        { .compatible = "mediatek,mt7986-pwm", .data = (ulong)&mt7986_data },
+       { .compatible = "mediatek,mt7988-pwm", .data = (ulong)&mt7988_data },
        { }
 };