pwm: Add i.MX TPM PWM driver support
authorAnson Huang <anson.huang@nxp.com>
Thu, 9 May 2019 13:29:29 +0000 (13:29 +0000)
committerThierry Reding <thierry.reding@gmail.com>
Thu, 9 May 2019 15:01:48 +0000 (17:01 +0200)
commit738a1cfec2edb4a6c53ac34fcb29447227dd135e
treedaffcb27cd031e7cf6b2229af542ca1576826782
parent2caf03843609af9dd4aa9c3b0f434f35016d4e15
pwm: Add i.MX TPM PWM driver support

i.MX7ULP has TPM(Low Power Timer/Pulse Width Modulation Module) inside,
it can support multiple PWM channels, all the channels share same
counter and period setting, but each channel can configure its duty and
polarity independently.

There are several TPM modules in i.MX7ULP, the number of channels in TPM
modules are different, it can be read from each TPM module's PARAM
register.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/Kconfig
drivers/pwm/Makefile
drivers/pwm/pwm-imx-tpm.c [new file with mode: 0644]