aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorSteffen Trumtrar <s.trumtrar@pengutronix.de>2013-05-30 03:50:12 -0400
committerThierry Reding <thierry.reding@gmail.com>2013-06-12 07:13:18 -0400
commit88b613e6234def882b0b601bf831bf89af2e27f0 (patch)
treef864f8df0292c43ef902ac893fcb0fb66b7d8256 /Documentation
parent8796f9c5656dedd186eda88c07db6a58d1985938 (diff)
pwm: add pca9685 driver
Add pwm driver for the NXP pca9685 16 channel pwm-led controller. The driver is really barebones at this stage. E.g. the OE' pin and therefore the corresponding registers are not supported. The driver was tested on a HW where this pin is tied to GND. Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> [thierry.reding@gmail.com: style and whitespace cleanups] Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/devicetree/bindings/pwm/nxp,pca9685-pwm.txt27
1 files changed, 27 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/pwm/nxp,pca9685-pwm.txt b/Documentation/devicetree/bindings/pwm/nxp,pca9685-pwm.txt
new file mode 100644
index 000000000000..1e3dfe7a4894
--- /dev/null
+++ b/Documentation/devicetree/bindings/pwm/nxp,pca9685-pwm.txt
@@ -0,0 +1,27 @@
1NXP PCA9685 16-channel 12-bit PWM LED controller
2================================================
3
4Required properties:
5 - compatible: "nxp,pca9685-pwm"
6 - #pwm-cells: should be 2. The first cell specifies the per-chip index
7 of the PWM to use and the second cell is the period in nanoseconds.
8 The index 16 is the ALLCALL channel, that sets all PWM channels at the same
9 time.
10
11Optional properties:
12 - invert (bool): boolean to enable inverted logic
13 - open-drain (bool): boolean to configure outputs with open-drain structure;
14 if omitted use totem-pole structure
15
16Example:
17
18For LEDs that are directly connected to the PCA, the following setting is
19applicable:
20
21pca: pca@41 {
22 compatible = "nxp,pca9685-pwm";
23 #pwm-cells = <2>;
24 reg = <0x41>;
25 invert;
26 open-drain;
27};