Skip to content

Commit 394b517

Browse files
Fabothierryreding
authored andcommitted
pwm: mediatek: Add MT8365 support
Add support for PWM on MT8365. Signed-off-by: Fabien Parent <[email protected]> Acked-by: Uwe Kleine-König <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent fe00fae commit 394b517

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

drivers/pwm/pwm-mediatek.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,12 @@ static const struct pwm_mediatek_of_data mt8183_pwm_data = {
323323
.has_ck_26m_sel = true,
324324
};
325325

326+
static const struct pwm_mediatek_of_data mt8365_pwm_data = {
327+
.num_pwms = 3,
328+
.pwm45_fixup = false,
329+
.has_ck_26m_sel = true,
330+
};
331+
326332
static const struct pwm_mediatek_of_data mt8516_pwm_data = {
327333
.num_pwms = 5,
328334
.pwm45_fixup = false,
@@ -337,6 +343,7 @@ static const struct of_device_id pwm_mediatek_of_match[] = {
337343
{ .compatible = "mediatek,mt7628-pwm", .data = &mt7628_pwm_data },
338344
{ .compatible = "mediatek,mt7629-pwm", .data = &mt7629_pwm_data },
339345
{ .compatible = "mediatek,mt8183-pwm", .data = &mt8183_pwm_data },
346+
{ .compatible = "mediatek,mt8365-pwm", .data = &mt8365_pwm_data },
340347
{ .compatible = "mediatek,mt8516-pwm", .data = &mt8516_pwm_data },
341348
{ },
342349
};

0 commit comments

Comments
 (0)