]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfa57b7526d6f174a041277d0b376480545c9dfeb
treedaffcb27cd031e7cf6b2229af542ca1576826782
parent39173089354bc4ac7662d0531befc76a2d0daed9
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]