浏览代码

dt-bindings: pwm: Add DT bindings for STMPE PWM

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>
Linus Walleij 9 年之前
父节点
当前提交
27e8c8f351
共有 1 个文件被更改,包括 18 次插入0 次删除
  1. 18 0
      Documentation/devicetree/bindings/pwm/st,stmpe-pwm.txt

+ 18 - 0
Documentation/devicetree/bindings/pwm/st,stmpe-pwm.txt

@@ -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>;
+};