]> git.baikalelectronics.ru Git - kernel.git/commit
pwm: Device tree support for PWM polarity
authorPhilip, Avinash <avinashphilip@ti.com>
Wed, 21 Nov 2012 07:40:44 +0000 (13:10 +0530)
committerThierry Reding <thierry.reding@avionic-design.de>
Thu, 22 Nov 2012 21:47:12 +0000 (22:47 +0100)
commit8bae8694f42da1dd55747b0e649c3d2b5123fd2a
tree3e104ed41554bb7e97378cc7cc3866c842306dff
parent497b5c1c2f9631d443f2dce42f757dbd13ae8252
pwm: Device tree support for PWM polarity

Add support for encoding PWM properties in bit encoded form with
of_pwm_xlate_with_flags() function support. Platforms require platform
specific PWM properties has to populate in 3rd cell of the pwm-specifier
and PWM driver should also set .of_xlate support with this function.
Currently PWM property polarity encoded in bit position 0 of the third
cell in pwm-specifier.

Signed-off-by: Philip, Avinash <avinashphilip@ti.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Documentation/devicetree/bindings/pwm/pwm.txt
drivers/pwm/core.c
include/linux/pwm.h