dt-bindings: pwm: Add DT bindings for STMPE PWM
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 5 Apr 2016 21:22:29 +0000 (23:22 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Mon, 11 Jul 2016 10:49:28 +0000 (12:49 +0200)
This adds fairly standard device tree bindings for the STMPE PWM found
in STMPE24xx multi-purpose expanders.

Cc: devicetree@vger.kernel.org
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Documentation/devicetree/bindings/pwm/st,stmpe-pwm.txt [new file with mode: 0644]

diff --git a/Documentation/devicetree/bindings/pwm/st,stmpe-pwm.txt b/Documentation/devicetree/bindings/pwm/st,stmpe-pwm.txt
new file mode 100644 (file)
index 0000000..cb20964
--- /dev/null
@@ -0,0 +1,18 @@
+== ST STMPE PWM controller ==
+
+This is a PWM block embedded in the ST Microelectronics STMPE
+(ST Multi-Purpose Expander) chips. The PWM is registered as a
+subdevices of the STMPE MFD device.
+
+Required properties:
+- compatible: should be:
+  - "st,stmpe-pwm"
+- #pwm-cells: should be 2. See pwm.txt in this directory for a description of
+  the cells format.
+
+Example:
+
+pwm0: pwm {
+       compatible = "st,stmpe-pwm";
+       #pwm-cells = <2>;
+};