diff mbox series

[v2,2/2] pwm: mediatek: add MT8365 support

Message ID 20220530205038.917431-2-fparent@baylibre.com (mailing list archive)
State New, archived
Headers show
Series [v2,1/2] dt-bindings: pwm: add MT8365 SoC binding | expand

Commit Message

Fabien Parent May 30, 2022, 8:50 p.m. UTC
Add support for PWM on MT8365

Signed-off-by: Fabien Parent <fparent@baylibre.com>
---
v2: no changes

 drivers/pwm/pwm-mediatek.c | 7 +++++++
 1 file changed, 7 insertions(+)

Comments

Uwe Kleine-König May 31, 2022, 1:21 p.m. UTC | #1
On Mon, May 30, 2022 at 10:50:38PM +0200, Fabien Parent wrote:
> Add support for PWM on MT8365
> 
> Signed-off-by: Fabien Parent <fparent@baylibre.com>

looks reasonable

Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>

Best regards
Uwe
diff mbox series

Patch

diff --git a/drivers/pwm/pwm-mediatek.c b/drivers/pwm/pwm-mediatek.c
index 568b13a48717..fd586bc51c5f 100644
--- a/drivers/pwm/pwm-mediatek.c
+++ b/drivers/pwm/pwm-mediatek.c
@@ -294,6 +294,12 @@  static const struct pwm_mediatek_of_data mt8183_pwm_data = {
 	.has_ck_26m_sel = true,
 };
 
+static const struct pwm_mediatek_of_data mt8365_pwm_data = {
+	.num_pwms = 3,
+	.pwm45_fixup = false,
+	.has_ck_26m_sel = true,
+};
+
 static const struct pwm_mediatek_of_data mt8516_pwm_data = {
 	.num_pwms = 5,
 	.pwm45_fixup = false,
@@ -307,6 +313,7 @@  static const struct of_device_id pwm_mediatek_of_match[] = {
 	{ .compatible = "mediatek,mt7628-pwm", .data = &mt7628_pwm_data },
 	{ .compatible = "mediatek,mt7629-pwm", .data = &mt7629_pwm_data },
 	{ .compatible = "mediatek,mt8183-pwm", .data = &mt8183_pwm_data },
+	{ .compatible = "mediatek,mt8365-pwm", .data = &mt8365_pwm_data },
 	{ .compatible = "mediatek,mt8516-pwm", .data = &mt8516_pwm_data },
 	{ },
 };