pwm: tiecap: Add device-tree binding
authorPhilip, Avinash <avinashphilip@ti.com>
Tue, 27 Nov 2012 08:48:09 +0000 (14:18 +0530)
committerThierry Reding <thierry.reding@avionic-design.de>
Wed, 28 Nov 2012 14:16:15 +0000 (15:16 +0100)
commit333b08ee8c6e120d67118e4eb71c45f5c369c8a4
treea2626907a8e7d59010c64f0fb632ec1a428fcf8b
parentaf0ba001d208e117b5f4e4f504672b42a664a7f7
pwm: tiecap: Add device-tree binding

This patch
1. Add support for device-tree binding for ECAP APWM driver.
2. Set size of pwm-cells set to 3 to support PWM channel number, PWM
   period & polarity configuration from device tree.
3. Add enable/disable clock gating in PWM subsystem common config space.
4. When here set .owner member in platform_driver structure to
   THIS_MODULE.

Signed-off-by: Philip, Avinash <avinashphilip@ti.com>
Cc: Grant Likely <grant.likely@secretlab.ca>
Cc: Rob Herring <rob.herring@calxeda.com>
Cc: Rob Landley <rob@landley.net>
Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Documentation/devicetree/bindings/pwm/pwm-tiecap.txt [new file with mode: 0644]
drivers/pwm/pwm-tiecap.c