blob: dac54094146431cbfe57c7a7cfb9337c5735a6ba [file] [log] [blame]
developer5d148cb2023-06-02 13:08:11 +08001From dcce03b49e8bac8a2c371c24dbcc9a6922861b8a Mon Sep 17 00:00:00 2001
2From: Sam Shih <sam.shih@mediatek.com>
3Date: Fri, 2 Jun 2023 13:06:07 +0800
4Subject: [PATCH] [slow-speed-io][999-2130-pwm-add-mt7986-support.patch]
5
6---
7 drivers/pwm/pwm-mediatek.c | 6 ++++++
8 1 file changed, 6 insertions(+)
9
developer8b9f2852021-06-03 21:53:08 +080010diff --git a/drivers/pwm/pwm-mediatek.c b/drivers/pwm/pwm-mediatek.c
developer5d148cb2023-06-02 13:08:11 +080011index b94e0d09c..35a0db2ff 100644
developer8b9f2852021-06-03 21:53:08 +080012--- a/drivers/pwm/pwm-mediatek.c
13+++ b/drivers/pwm/pwm-mediatek.c
14@@ -302,6 +302,11 @@ static const struct pwm_mediatek_of_data mt7629_pwm_data = {
15 .pwm45_fixup = false,
16 };
developer5d148cb2023-06-02 13:08:11 +080017
developer8b9f2852021-06-03 21:53:08 +080018+static const struct pwm_mediatek_of_data mt7986_pwm_data = {
19+ .num_pwms = 2,
20+ .pwm45_fixup = false,
21+};
22+
23 static const struct pwm_mediatek_of_data mt8516_pwm_data = {
24 .num_pwms = 5,
25 .pwm45_fixup = false,
26@@ -313,6 +318,7 @@ static const struct of_device_id pwm_mediatek_of_match[] = {
27 { .compatible = "mediatek,mt7623-pwm", .data = &mt7623_pwm_data },
28 { .compatible = "mediatek,mt7628-pwm", .data = &mt7628_pwm_data },
29 { .compatible = "mediatek,mt7629-pwm", .data = &mt7629_pwm_data },
30+ { .compatible = "mediatek,mt7986-pwm", .data = &mt7986_pwm_data },
31 { .compatible = "mediatek,mt8516-pwm", .data = &mt8516_pwm_data },
32 { },
33 };
developer5d148cb2023-06-02 13:08:11 +080034--
352.34.1
36