pwm: mediatek: Add support for MT7981
authorDaniel Golle <daniel@makrotopia.org>
Thu, 20 Apr 2023 23:23:21 +0000 (00:23 +0100)
committerThierry Reding <thierry.reding@gmail.com>
Fri, 23 Jun 2023 13:35:33 +0000 (15:35 +0200)
commit967da67a745fb73fd0fc7aa61fd197b76fceb273
tree3b100b23186dd4070368f48fcb38405fcbd9cd25
parent88c66e018aa8b5a15d7fdba9908c01260c657bff
pwm: mediatek: Add support for MT7981

The PWM unit on MT7981 uses different register offsets than previous
MediaTek PWM units. Add support for these new offsets and add support
for PWM on MT7981 which has 3 PWM channels, one of them is typically
used for a temperature controlled fan.
While at it, also reorder pwm_mediatek_of_data entries to restore
alphabetic order.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-mediatek.c