Skip to content

Commit cb696e7

Browse files
AngeloGioacchino Del Regnothierryreding
authored andcommitted
pwm: pwm-mediatek: Add support for MediaTek Helio X10 MT6795
The MediaTek Helio X10 MT6795 SoC has 7 PWMs: add a compatible string to use the right match data. Signed-off-by: AngeloGioacchino Del Regno <[email protected]> Acked-by: Uwe Kleine-König <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent b761609 commit cb696e7

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
@@ -264,6 +264,12 @@ static const struct pwm_mediatek_of_data mt2712_pwm_data = {
264264
.has_ck_26m_sel = false,
265265
};
266266

267+
static const struct pwm_mediatek_of_data mt6795_pwm_data = {
268+
.num_pwms = 7,
269+
.pwm45_fixup = false,
270+
.has_ck_26m_sel = false,
271+
};
272+
267273
static const struct pwm_mediatek_of_data mt7622_pwm_data = {
268274
.num_pwms = 6,
269275
.pwm45_fixup = false,
@@ -302,6 +308,7 @@ static const struct pwm_mediatek_of_data mt8516_pwm_data = {
302308

303309
static const struct of_device_id pwm_mediatek_of_match[] = {
304310
{ .compatible = "mediatek,mt2712-pwm", .data = &mt2712_pwm_data },
311+
{ .compatible = "mediatek,mt6795-pwm", .data = &mt6795_pwm_data },
305312
{ .compatible = "mediatek,mt7622-pwm", .data = &mt7622_pwm_data },
306313
{ .compatible = "mediatek,mt7623-pwm", .data = &mt7623_pwm_data },
307314
{ .compatible = "mediatek,mt7628-pwm", .data = &mt7628_pwm_data },

0 commit comments

Comments
 (0)